maint: fix public-submodule-commit to work with newer git
[gnulib.git] / ChangeLog
1 2014-01-01  Jim Meyering  <meyering@fb.com>
2
3         maint: fix public-submodule-commit to work with newer git
4         * top/maint.mk (public-submodule-commit): Remove excess quoting.
5         We were over-quoting the test arguments, and somewhere prior to
6         version 1.8.5.2.229, git stopped removing those excess quotes,
7         which made the test fail, since the unexpanded strings would
8         always differ; using GIT_TRACE=1 confirmed that the git merge-base
9         command wasn't even being run.
10
11 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12
13         doc: update main copyright year
14         * doc/gnulib.texi: Update copyright date.
15
16 2014-01-01  Eric Blake  <eblake@redhat.com>
17
18         version-etc: new year
19         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
20         * all files: run 'make update-copyright'
21
22 2013-12-24  Eric Blake  <eblake@redhat.com>
23
24         passfd: give nicer error for recvfd at eof
25         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
26         * tests/test-passfd.c (main): Enhance test to cover this.
27
28 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29
30         gettimeofday: port recent C++ fix to Emacs
31         Without this further patch, Emacs won't build due to
32         the portcheck failing.  Also, this simplifies the patch a bit.
33         * lib/time.in.h (localtime, gmtime): Don't replace unless
34         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
35         * lib/time.in.h (localtime, gmtime):
36         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
37         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
38         * modules/time (time.h):
39         Don't worry about about the possibility of localtime and gmtime
40         being absent; they're present in all C libraries we know about.
41         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
42         Don't assume sys_time is present and has been initialized.
43         Instead, use a hack that should work even if it hasn't been.
44         Don't use a portcheck for gmtime or localtime; this supports
45         the hack.
46         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
47
48 2013-12-17  John W. Eaton  <jwe@gnu.org>
49
50         gettimeofday: fix C++ crosscompilation
51
52         Never replace gmtime and localtime by macros when compiling with
53         C++, this prevents <ctime> from being included.
54
55         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
56         define gmtime and localtime as preprocessor macros.  Instead
57         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
58         REPLACE_LOCALTIME substitutions.
59         * lib/time.in.h: Declare gmtime and localtime when needed.
60         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
61         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
62         * modules/time: Depend on gettimeofday, and substitute the above
63         variables in time.h.
64
65 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
66
67         qacl: port to Windows better
68         See Eli Zaretskii in
69         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
70         * lib/file-has-acl.c (acl_access_nontrivial):
71         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
72         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
73
74 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
75
76         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
77         * lib/gl_openssl.h: Cast void pointers to a specific type.
78
79 2013-12-07  Pádraig Brady <P@draigBrady.com>
80
81         open-tests: fix build failure with -Werror=old-style-declaration
82         * tests/test-open.h: Reorder the inline to avoid the issue.
83
84 2013-12-07  Pádraig Brady <P@draigBrady.com>
85
86         md5, sha1, sha256, sha512: fix link error with partial libcrypto
87         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
88         init time, so that if early checks find crypto routines,
89         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
90         avoiding link failures.
91
92 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
93
94         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
95         This provides a new way to specify the default for
96         gl_CRYPTO_CHECK, one that is reflected in the --help message.
97         Emacs uses this, as well as the old way.
98         This attempts to implement a suggestion by Pádraig Brady in
99         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
100         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
101         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
102
103         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
104         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
105         Add support for a new option, --with-openssl=auto, which causes
106         the library to be used if available and silently ignored if not.
107         Add support to allow allow configure.ac to specify its own
108         default, by setting with_openssl_default before invoking gl_INIT.
109
110 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
111
112         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
113         Problem reported by Daiki Ueno in:
114         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
115         * tests/test-open.h (__always_inline):
116         New macro, if not already defined.
117         (test_open): Use it.
118
119 2013-12-04  Eric Blake  <eblake@redhat.com>
120
121         include_next: minimize code duplication
122         * modules/include_next (Depends-on): Add absolute-header.
123         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
124         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
125
126 2013-12-04  Pádraig Brady <P@draigBrady.com>
127
128         getcwd: fix compile error in configure check
129         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
130
131 2013-12-04  Pádraig Brady <P@draigBrady.com>
132
133         regex: suppress core dumps from detection code
134         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
135         to suppress core dumps that may well occur on glibc systems.
136         These core dumps might not be cleaned up automatically, or could
137         trigger some system core dump handling logic.
138
139 2013-12-03  Pádraig Brady <P@draigBrady.com>
140
141         md5, sha1, sha256, sha512: support mandating use of openssl
142         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
143         description, to list the now 3 separate options.  also don't
144         mention the default=no, since this is implicit given the option
145         is described as --with-openssl rather than --without-openssl.
146         If projects change the default they're free to document that.
147         with --with-openssl[=yes] we now error out when the specified
148         hash algorithm is not available in libcrypto.
149
150 2013-12-03  Ivailo  <xakepa10@gmail.com>
151
152         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
153         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
154         -Wformat-nonliteral checks, as these edge cases are part of the test.
155
156 2013-12-03  Eric Blake  <eblake@redhat.com>
157
158         regex: avoid glibc deadlock during configure
159         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
160         glibc bug 15078 in turn triggers bug 16159.
161         Reported by Michal Privoznik.
162
163 2013-12-02  Pádraig Brady <P@draigBrady.com>
164
165         md5, sha1, sha256, sha512: use openssl routines if available.
166         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
167         routines will be used if available, requiring apps to link @LIB_CRYPTO@
168         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
169         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
170         in the standard system location.
171         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
172         * m4/sha256.m4: Likewise with SHA256.
173         * m4/sha512.m4: Likewise with SHA512.
174         * m4/md5.m4: Likewise with MD5.
175         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
176         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
177         * lib/sha256.h: Likewise with SHA256.
178         * lib/sha512.h: Likewise with SHA512.
179         * lib/md5.h: Likewise with MD5.
180         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
181         * lib/sha256.c: Likewise with SHA256.
182         * lib/sha512.c: Likewise with SHA512.
183         * lib/md5.c: Likewise with MD5.
184         * modules/crypto/sha1 (Link:): Add the new optional lib.
185         (Depends-on:): Add dependency on extern-inline.
186         * modules/crypto/sha256: Likewise.
187         * modules/crypto/sha512: Likewise.
188         * modules/crypto/md5: Likewise.
189         * modules/crypto/sha1-tests: Reference the lib here too.
190         * modules/crypto/md5-tests: Likewise.
191         * modules/crypto/gc-des-tests: Likewise.
192         * modules/crypto/gc-hmac-md5-tests: Likewise.
193         * modules/crypto/gc-hmac-sha1-tests: Likewise.
194         * modules/crypto/gc-hmac-sha256-tests: Likewise.
195         * modules/crypto/gc-hmac-sha512-tests: Likewise.
196         * modules/crypto/gc-md5-tests: Likewise.
197         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
198         * modules/crypto/gc-sha1-tests: Likewise.
199         * modules/crypto/gc-tests: Likewise.
200         * modules/crypto/hmac-md5-tests: Likewise.
201         * modules/crypto/hmac-sha1-tests: Likewise.
202         * modules/crypto/hmac-sha256-tests: Likewise.
203         * modules/crypto/hmac-sha512-tests: Likewise.
204
205 2013-11-29  RV1971  <rv1971@web.de>
206
207         base64: (trivial) fix compilation regression on some compilers
208         * lib/base64.c: Don't return the void function,
209         instead split to a separate return statement.
210
211 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
212
213         ignore-value: revert previous code change
214         * lib/ignore-value.h (ignore_value): Use __extension__ and
215         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
216         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
217         Change the comment to try to explain this better.
218
219 2013-11-27  Pádraig Brady <P@draigBrady.com>
220
221         selinux-h: improve stub types and add more stub functions
222
223         * lib/se-selinux.in.h: Change security_context_t to a typedef
224         rather than a define, as it's a pointer type and so is better
225         as a typedef to avoid issues declaring multiple variables
226         with the comma operator.  Also add stub for string_to_security_class().
227         * lib/se-context.in.h: Add stub functions for
228         context_{type,range,role,user}_get().
229
230 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
231
232         ignore-value: prefer GCC version back through 2.0
233         The code didn't match the comments, so I did a bit of software
234         archaeology.  GCC 2.0 seems to support __extension__ and
235         __typeof__, so fix both code and comments to use 2.0.
236         * lib/ignore-value.h (ignore_value): Use __extension__ and
237         __typeof__ for GCC 2.0 through 3.3, too.
238
239 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
240
241         pty: Activate the signature wrapper of forkpty.
242         The intended preprocessor macro HAVE_FORKPTY is
243         never defined, yet `lib/forkpty.c' depends on it.
244
245         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
246         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
247         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
248
249 2013-11-18  Jim Meyering  <meyering@fb.com>
250         and Paul Eggert  <eggert@cs.ucla.edu>
251
252         quotearg: don't attempt to store 1 << 31 into an "int"
253         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
254         gcc's new -fsanitize=undefined and running its tests triggered some
255         new test failures due to undefined behavior, all with this diagnostic:
256           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
257             cannot be represented in type int
258         Rather than shifting "1" left to form a mask, shift the bits right and
259         simply use "1" as the mask.
260
261 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
262
263         error: depend on stdio
264         Problem reported by Nikos Mavrogiannopoulos in
265         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
266         * modules/error (Depends-on): Add stdio.
267
268 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
269
270         * doc/relocatable-maint.texi (Supporting Relocation): Improve
271         wording.
272         Reported by Reuben Thomas <rrt@sc3d.org>.
273
274 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
275
276         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
277         New function and macro, to work around _DARWIN_C_SOURCE problem.
278         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
279
280 2013-11-11  Pádraig Brady <P@draigBrady.com>
281
282         base64: provide a fast path for encoding well sized buffers
283         Avoid conditionals in the base64 encoding loop,
284         which was seen to give 60% better throughput.
285         * lib/base64.c (base64_encode_fast): A new function to be called
286         when we don't want to NUL terminate, and we have enough space
287         in the output to encode the given input.
288         (base64_encode): Call the _fast() version when appropriate.
289         Also remove a redundant mask with 0x3F on the first encoded byte.
290
291 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
292
293         extern-inline: port better to OS X 10.9
294         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
295         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
296         OS X 10.9, except for g++ where the bug is still present.
297         See <http://trac.macports.org/ticket/41033>.
298
299 2013-11-08  Eric Blake  <eblake@redhat.com>
300
301         fpending: fix regression on DragonFly BSD
302         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
303         * lib/fpending.h (__fpending): Don't declare twice.
304         Reported by GW in
305         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
306
307 2013-11-05  Jim Meyering  <meyering@fb.com>
308
309         hash: relax license to LGPLv2+, for libguestfs
310         * modules/hash (License): Change from GPL to LGPLv2+.
311
312 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
313
314         intprops: port to Oracle Studio c99
315         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
316         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
317
318 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
319
320         obstack: pacify HP C
321         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
322         warning "conversion from pointer to smaller integer" from HP
323         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
324         C89 or later nowadays, so cast to void instead of int.  Privately
325         reported by H.Merijn Brand.  Also, change header to match glibc's,
326         to make checking against glibc easier.
327
328 2013-10-29  Jim Meyering  <meyering@fb.com>
329
330         maint.mk: prefer gpgv2 over gpgv
331         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
332         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
333         Reported by Gary Vaughan.
334
335 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
336
337         isnan: port to VAX
338         Reported by John Klos for NetBSD-5/VAX in
339         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
340         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
341         (FUNC): Use it.
342
343 2013-10-28  Jim Meyering  <meyering@fb.com>
344
345         gnulib-tool: protect against CDPATH
346         * gnulib-tool: Many "cd" built-in functions print a directory name
347         to stdout when CDPATH is set, e.g.,
348           $ bash -c 'CDPATH=/; cd tmp'
349           /tmp
350         Unset it, when possible.  Prompted by a comment from Bruce Korb.
351
352         maint.mk: restore functionality removed by recent change...
353         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
354         the context of a shallow-cloned gnulib repository: "git describe"
355         would fail in such a directory.  However, that change made it so
356         the reported gnulib revision no longer includes the version number
357         or a commit count, even when run from a full clone.
358         * top/maint.mk (gnulib-version): Use the full "git describe"
359         output when possible, e.g., the form above, rather than the
360         abbreviated, no-tag, no-commit-count string, and fall back to
361         using a 10-byte hash, rather than the default minimal-length
362         hash prefix, since while the minimal-length one may be fine today,
363         it is likely not to be unique for very long.
364
365 2013-10-26  Jim Meyering  <meyering@fb.com>
366
367         maint.mk: fix "release" target to build _version
368         This fixes a bug in README-release whereby following the outlined
369         steps, one would publish a tarball whose programs would report
370         --version output not consistent with the package version number.
371         This bug caused grep-2.15 to produce a grep program whose
372         --version option made it print 2.14.56-1e3d rather than 2.15.
373         * top/maint.mk (release): Making this target build "_version"
374         ensures that the new version number is reflected in configure.
375
376 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
377
378         install-reloc: Support multi-binary installation.
379         * build-aux/install-reloc: Support installing multiple programs in
380         one invocation, as done by Automake starting with commit
381         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
382         Haible <bruno@clisp.org>, archived at
383         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
384         Reported by Sylvain <beuc@gnu.org>.
385
386 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
387
388         selinux-h: Really build without selinux when library is missing.
389         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
390         continue without selinux, as already told in the warning message.
391
392 2013-10-21  Jim Meyering  <meyering@fb.com>
393
394         regex: also remove dependency on HAVE_WCSCOLL
395         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
396
397 2013-10-21  Reuben Thomas <rrt@sc3d.org>
398
399         xfreopen: Fix typo. s/frepoen/freopen/
400         * lib/xfreopen.c: Fix description.
401         * modules/xfreopen: Likewise.
402
403 2013-10-21  Jim Meyering  <meyering@fb.com>
404
405         regex: don't depend on wcscoll
406         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
407         It is no longer used.
408
409 2013-10-20  Jim Meyering  <meyering@fb.com>
410
411         error: add the printf attribute to a static function
412         * lib/error.c (error_tail): Add the printf attribute, to placate
413         gcc's -Werror=suggest-attribute=format option.
414
415 2013-09-30  Jim Meyering  <meyering@fb.com>
416
417         fpending, obstack, strerror-override: use pure+const function attrs
418         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
419         * lib/obstack.c (_obstack_allocated_p): Likewise.
420         * lib/obstack.h (_obstack_memory_used): Likewise.
421         (_obstack_memory_used): Likewise.
422         * lib/strerror-override.h (strerror_override): Declare with
423         the "const" attribute.
424
425 2013-10-18  Eric Blake  <eblake@redhat.com>
426
427         extern-inline: make safe for -Wundef usage
428         Reported by Vladimir 'phcoder' Serbinenko in
429         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
430         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
431
432 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
433
434         mkfifo-tests, etc.: allow HP-UX 11.11 bug
435         Problem reported by Daniel Richard G. in
436         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
437         * doc/posix-functions/mkfifo.texi (mkfifo):
438         * doc/posix-functions/mkfifoat.texi (mkfifoat):
439         * doc/posix-functions/mknod.texi (mknod):
440         * doc/posix-functions/mknodat.texi (mknodat):
441         Document the HP-UX 11.11 bug.
442         * tests/test-mkfifo.h (test_mkfifo):
443         Allow the HP-UX 11.11 bug.
444
445 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
446
447         acl: allow cross-compilation to Gentoo
448         Problem reported by Gabriel Marcano in
449         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
450         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
451         test only whether it links.
452
453 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
454
455         mgetgroups: remove dependency on realloc-gnu
456         The dependency violates the comment in realloc-gnu, which
457         says that tests can't depend on realloc-gnu; some tests depend
458         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
459         Problem reported by Daniel Richard G. in
460         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
461         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
462         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
463         not realloc-gnu.
464
465 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
466
467         regex-tests: port to HP-UX 11.11
468         Problem reported by Daniel Richard G. in
469         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
470         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
471
472 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
473
474         verify: document some 'assume' pitfalls
475         * doc/verify.texi (Compile-time Assertions):
476         Mention that 'assume (E)' can sometimes slow things down.
477         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
478
479 2013-10-10  Eric Blake  <eblake@redhat.com>
480
481         strtoumax: fix typo in previous commit.
482         * modules/strtoumax (Depends-on): Fix typo.
483         * modules/strtoimax (Depends-on): Likewise.
484
485 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
486
487         strtoumax: port to Solaris 8
488         This problem was introduced in the recent HP-UX patch.
489         Reported by Tom G. Christensen in
490         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
491         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
492         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
493
494 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
495
496         strtoimax, strtoumax: port to HP-UX 11.11
497         Problem reported by Daniel Richard G. in
498         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
499         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
500         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
501         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
502         REPLACE_STRTOUMAX.
503         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
504         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
505         Replace the function if defined as a macro but not as a function.
506         * modules/inttypes-incomplete (inttypes.h): Substitute
507         REPLACE_STRTOUMAX.
508         * modules/strtoumax (configure.ac): Replace strtoumax if
509         REPLACE_STRTOUMAX.
510
511 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
512
513         strtoimax: port to HP-UX 11.11
514         Problem reported by Daniel Richard G.
515         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
516         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
517         they might clash with inttypes.h.
518
519 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
520
521         New module 'count-trailing-zeros'.
522         * MODULES.html.sh: Mention it.
523         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
524         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
525         * modules/count-trailing-zeros-tests:
526         * tests/test-count-trailing-zeros.c:
527         New files.
528
529         count-leading-zeros: port to MSC; support types wider than 64 bits
530         The ideas behind the MSC port are stolen from Emacs.
531         * lib/count-leading-zeros.h:
532         Don't include verify.h: it's no longer needed, as types wider than
533         64 bits are now supported.
534         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
535         performance with MSC.  All uses changed.  Do not assume that TYPE
536         has at most 64 bits.
537         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
538         All uses changed.  Fold the subtraction from 31 into the table.
539
540         count-one-bits: port to MSC; support types wider than 64 bits
541         The ideas behind the MSC port are stolen from Emacs.
542         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
543         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
544         Don't include verify.h: it's no longer needed, as types wider than
545         64 bits are now supported.
546         (COUNT_ONE_BITS_GENERIC): New macro.
547         (popcount_supported) [_MSC_VER]: New inline function.
548         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
549         performance with MSC.  All uses changed.  Do not assume that TYPE
550         has at most 64 bits.
551         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
552
553 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
554
555         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
556         * lib/mountlist.c (read_file_system_list): fix leak of directory
557         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
558
559 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
560
561         tests: improve diagnostic when an assertion fails
562         * tests/macros.h (ASSERT): Report the assertion that failed.
563
564 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
565
566         verify: new macro 'assume'
567         This is taken from Emacs, and should be generally useful.
568         * doc/verify.texi (assume): Document it.
569         * lib/verify.h (assume): New macro.
570         (__has_builtin): Expand to 0 if not defined.
571
572 2013-09-26  Eric Blake  <eblake@redhat.com>
573
574         dup2, dup3: work around another cygwin crasher
575         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
576         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
577         * tests/test-dup2.c (main): Likewise.
578         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
579         * lib/dup3.c (dup3): Likewise.
580         * doc/posix-functions/dup2.texi (dup2): Document it.
581         * doc/glibc-functions/dup3.texi (dup3): Likewise.
582
583         getdtablesize: work around cygwin issue
584         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
585         * modules/getdtablesize (configure.ac): Build replacement.
586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
587         * modules/unistd (Makefile.am): Expose the witness.
588         * lib/unistd.in.h (getdtablesize): Declare replacement.
589         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
590         * tests/test-getdtablesize.c (main): Test it.
591         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
592
593 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
594
595         pmccabe2html: escaping of special characters
596         Escape all '<', '>', and '&' in HTML output.
597         * build-aux/pmccabe2html (html_fnc): Call gsub()
598         instead of sub() to capture all '<', '>', and '&'.
599         Neither of '<' and '>' is special in a regexp,
600         so first arguments to gsub() are corrected. Also,
601         in replacement strings, ampersand must be escaped.
602         Finally, '&' must be handled first, then '<' and '>'.
603
604 2013-09-24  Eric Blake  <eblake@redhat.com>
605
606         manywarnings: enable nicer gcc warning messages
607         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
608         some -f options for optimal warnings.
609
610 2013-09-21  Jim Meyering  <meyering@fb.com>
611
612         timespec: use the new TIMESPEC_RESOLUTION in a few more places
613         * lib/timespec-add.c (timespec_add): Also replace 999999999
614         with TIMESPEC_RESOLUTION - 1.
615         * lib/timespec-sub.c (timespec_sub): Likewise.
616
617 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
618
619         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
620         Problem reported by Dagobert Michelsen via Eric Blake in
621         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
622         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
623         not AC_COMPILE_IFELSE.
624
625 2013-09-23  Eric Blake  <eblake@redhat.com>
626
627         configmake: support new --runstatedir option
628         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
629         even if autoconf was too old to provide the command line option.
630         * modules/configmake (Makefile.am): Propagate it to .h file.
631
632 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
633
634         ctype, string: depend on extern-inline
635         This is needed to complete the recent OS X fixes.
636         Also, fix related documentation as suggested by Eric Blake.
637         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
638         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
639         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
640         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
641         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
642         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
643         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
644         * doc/posix-functions/toupper.texi:
645         List the 'ctype' gnulib module.
646         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
647         * doc/posix-functions/strncpy.texi:
648         List the 'string' gnulib module.
649         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
650         Add string.
651         * modules/ctype, modules/string (Depends-on): Add extern-inline.
652
653 2013-09-19  Pádraig Brady  <P@draigBrady.com>
654
655         userspec: support optional parameters to parse_user_spec()
656         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
657         then avoid group processing and treat the full spec as a user.
658         (parse_with_separator): Allow the USERNAME and GROUPNAME to
659         be optional params (NULL), in which case they're ignored.
660
661 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
662
663         timespec: new function make_timespec, and new constants
664         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
665         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
666         (make_timespec): New function.
667         * lib/dtotimespec.c (dtotimespec):
668         * lib/timespec-add.c (timespec_add):
669         * lib/timespec-sub.c (timespec_sub):
670         * lib/utimens.c (validate_timespec):
671         * lib/utimensat.c (rpl_utimensat):
672         Use these new constants and functions.
673
674         stdio: OS X port of putc_unlocked + extern inline
675         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
676         * doc/posix-functions/putc_unlocked.texi:
677         * doc/posix-functions/putchar_unlocked.texi:
678         Document this portability problem.
679
680         signal: OS X port of sigaddset etc. + extern inline
681         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
682         (sigismember): #undef on problematic Apple platforms.
683         * doc/posix-functions/sigaddset.texi:
684         * doc/posix-functions/sigdelset.texi:
685         * doc/posix-functions/sigemptyset.texi:
686         * doc/posix-functions/sigfillset.texi:
687         * doc/posix-functions/sigismember.texi:
688         Document this portability problem.
689
690         extern-inline: do not always suppress extern inline on OS X
691         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
692         extern inline on Apple only if the particular compile-time
693         configuration is known to have the problem.
694         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
695         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
696         other Gnulib modules.
697
698         extern-inline: document fixes for ctype and wctype macros
699         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
700         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
701         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
702         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
703         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
704         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
705         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
706         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
707         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
708         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
709         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
710         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
711         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
712         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
713         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
714         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
715         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
716         * doc/posix-functions/strncpy.texi:
717         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
718         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
719         Document that Gnulib fixes portability problems with these
720         functions on OS X 10.8 and earlier when called from plain inline
721         or extern inline functions.
722
723 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
724
725         fflush, freadahead, fseeko: Fix for Android
726         Suggested by Bruno Haible in:
727         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
728         * lib/stdio-impl.h: Use local __sfileext definition.
729
730 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
731
732         pmccabe2html: Portability to other awk versions.
733         The functions systime() and strftime() are available
734         in Gawk only.  Properly close two HTML-tags 'style'
735         and 'span'.
736         * build-aux/pmccabe2html (BEGIN): Store timing
737         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
738         systime() in HTML_COMMENT.
739         (html_header): Correctly close tag 'style'.
740         (END): Replace strftime() by CHRONOS_TIME.  Close
741         tag 'span' correctly, not as 'div'.
742
743 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
744
745         getgroups: statement without effect
746         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
747         Change equality conditional to expected assignment.
748
749 2013-09-09  Eric Blake  <eblake@redhat.com>
750
751         glob: fix compilation
752         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
753
754 2013-09-07  Eric Blake  <eblake@redhat.com>
755
756         glob: fix build for platforms without __THROW
757         * lib/glob.in.h (__THROW): Add definition again.
758
759 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
760
761         regex-quote: fix buffer access out of bounds
762         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
763         * lib/regex-quote.c (regex_quote_spec_pcre):
764         Fix typo that resulted in an out-of-bounds read.
765
766 2013-09-04  Eric Blake  <eblake@redhat.com>
767
768         glob: avoid -Wattribute warnings on glibc
769         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
770         __THROWNL, not __THROW, on static functions.
771         * lib/glob.in.h (__THROW): Adjust...
772         (__THROWNL): ...accordingly.
773
774 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
775
776         headers: check that _GL_INLINE_HEADER_BEGIN is defined
777         Suggested by Bruce Korb in:
778         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
779         * doc/extern-inline.texi (extern inline):
780         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
781         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
782         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
783         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
784         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
785         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
786         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
787         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
788         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
789         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
790         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
791         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
792         * lib/xtime.h:
793         Check that _GL_INLINE_HEADER_BEGIN is defined.
794
795 2013-08-29  Pádraig Brady  <P@draigBrady.com>
796
797         bootstrap: remove the --version requirement from ancillary tools
798         * build-aux/bootstrap (check_exists): A new refactored function to
799         determine if a command exists.
800         (find_tool): Use the new function which does not require the
801         --version option to be supported.
802         (check_versions): Use the new function.
803
804 2013-08-26  Simon Josefsson  <simon@josefsson.org>
805
806         gc: support HMAC-SHA256 and HMAC-SHA512.
807         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
808         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
809         functions.
810         (gc_hmac_md5): Use symbolic constant.
811         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
812         (gc_hmac_sha256, gc_hmac_sha512): New functions.
813         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
814         * m4/sha256.m4: Protect against empty expansion.
815         * m4/sha512.m4: Likewise.
816         * lib/hmac-sha256.c: New file.
817         * lib/hmac-sha512.c: Likewise.
818         * m4/gc-hmac-sha256.m4: Likewise.
819         * m4/gc-hmac-sha512.m4: Likewise.
820         * m4/gc-sha256.m4: Likewise.
821         * m4/gc-sha512.m4: Likewise.
822         * modules/crypto/gc-hmac-sha256: Likewise.
823         * modules/crypto/gc-hmac-sha256-tests: Likewise.
824         * modules/crypto/gc-hmac-sha512: Likewise.
825         * modules/crypto/gc-hmac-sha512-tests: Likewise.
826         * modules/crypto/hmac-sha256: Likewise.
827         * modules/crypto/hmac-sha256-tests: Likewise.
828         * modules/crypto/hmac-sha512: Likewise.
829         * modules/crypto/hmac-sha512-tests: Likewise.
830         * tests/test-gc-hmac-sha256.c: Likewise.
831         * tests/test-gc-hmac-sha512.c: Likewise
832         * tests/test-hmac-sha256.c: Likewise.
833         * tests/test-hmac-sha512.c: Likewise
834
835 2013-08-24  Daiki Ueno  <ueno@gnu.org>
836
837         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
838         of AC_CHECK_DECLS.
839
840 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
841
842         selinux-at: omit unnecessary include
843         * lib/selinux-at.c: Don't include dosname.h; not needed, since
844         this source file doesn't use its macros, and subsidiary files that
845         use the macros already include it.
846
847 2013-08-21  Eric Blake  <eblake@redhat.com>
848
849         d-ino: avoid false negative on symlink
850         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
851         Reported by Stephane Chazelas.
852
853 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
854
855         bootstrap: port to OpenBSD sed
856         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
857         does not interpret `-' as a file argument to mean stdin.
858
859 2013-08-15  Eric Blake  <eblake@redhat.com>
860
861         warnings: minor optimization
862         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
863
864         warnings: check -Wfoo rather than -Wno-foo
865         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
866         -Wno-, test if the compiler recognizes the positive form instead.
867
868 2013-08-15  Karl Berry  <karl@gnu.org>
869
870         * config/srclist-update: add option "doclicense" to placate
871         pulling *.texi files from Emacs.  Write terse usage
872         documentation at the top.
873
874 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
875
876         xvasprintf-tests: port to GCC with hardening flags
877         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
878         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
879         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
880
881 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
882
883         fpending: port to recent Cygwin change to stdio_ext.h
884         Reported by LRN in
885         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
886         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
887         just declare __fpending unless it's a macro.
888         A duplicate decl shouldn't hurt.
889         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
890         call compiles and links, instead of separately checking for
891         decl and lib function.
892         * modules/fpending (configure-ac):
893         Adjust to fpending.m4's renaming of shell variable.
894
895 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
896
897         sys_time: port to OpenBSD
898         * lib/sys_time.in.h: Simply delegate to the system's header
899         in the BSDish cases as well.  Problem reported by Mike Miller in
900         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
901         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
902         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
903         wider than time_t.
904
905 2013-08-09  Pádraig Brady <P@draigBrady.com>
906
907         bootstrap: support checksum utils having -c but not --status
908         * build-aux/bootstrap: Only look for sha1sum if updating po files.
909         Add sha1 to the list of supported checksum utils since it's now
910         supported through adjustments below.
911         (update_po_files): Remove the use of --status
912         in a way that will suppress all error messages, but since this is
913         only used to minimize updates, it shouldn't cause an issue.
914         Exit early if there is a problem updating the po file checksums.
915         (find_tool): Remove the check for --version support as this
916         is optional as per commit 86186b17.  Don't even check for the
917         presence of the command as if that is needed, it's supported
918         through configuring prerequisites in bootstrap.conf.
919         Prompt that when a tool isn't found, one can define an environment
920         variable to add to the hardcoded search list.
921
922 2013-08-05  Jim Meyering  <meyering@fb.com>
923
924         regex: port to non-glibc/lock-using systems
925         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
926         system with GNULIB_LOCK would fail due to absence of the
927         included "glthread/lock.h".  This would affect any package
928         for which the "lock" module is used only by the regex module,
929         and not explicitly used.
930         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
931         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
932         Add a dependency on the "lock" module.
933
934 2013-07-20  Daiki Ueno  <ueno@gnu.org>
935
936         localecharset: make locale_charset thread-safe on Mac OS X
937         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
938         instead of MB_CUR_MAX.
939
940 2013-07-20  Daiki Ueno  <ueno@gnu.org>
941
942         gettext: update to version 0.18.3
943         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
944         require AC_PROG_SED to allow user to specify custom sed command when
945         generating en@quot PO file.
946
947 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
948
949         bootstrap: use correct source when copying build-aux files
950         * build-aux/bootstrap (gnulib_extra_files): This variable is
951         relative to upstream gnulib layout, not downstream.
952
953 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
954
955         tmpdir: fix bug in VMS port
956         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
957         See Steven M. Schweda in
958         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
959
960 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
961
962         tmpdir: port to VMS, to // != /, and to long dirs
963         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
964         __secure_getenv, so that we're more like the glibc version.
965         All uses changed.
966         (path_search): Don't put slash after directory if __VMS.
967         Problem reported by Steven M. Schweda in
968         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
969         Simplify code to add slash; no need for a loop.
970         Do not remove trailing slash from "//".
971         Do not assume dlen <= INT_MAX.
972
973 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
974
975         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
976         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
977         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
978         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
979
980         accept4, dup3, pipe2: port to Cygwin
981         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
982         * lib/accept4.c (accept4) [O_BINARY]:
983         * lib/dup3.c (dup3) [O_BINARY]:
984         * lib/pipe2.c (pipe2) [O_BINARY]:
985         Use set_binary_mode, not setmode.
986         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
987         * modules/binary-io (Depends-on): Remove module indicator.
988         These last two bits undo the previous change to pipe2 and binary-io.
989
990 2013-07-09  Pádraig Brady  <P@draigBrady.com>
991
992         mountlist: add support for deallocating returned list entries
993         * lib/mountlist.c (free_mount_entry): A new exported function
994         to deallocate a mount list entry.
995         (read_file_system_list): Refactor to use the new deallocation function.
996         Suggested by Anton Ovchinnikov.
997
998 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
1001         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
1002         * lib/stdalign.in.h (_Alignas, _Alignof):
1003         Port to FreeBSD 9.1, and to C11 and C++11.
1004         (_Alignas): Also support ICC.
1005         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
1006         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
1007
1008 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1009
1010         fnmatch: don't goto over declaration
1011         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
1012         undefined behavior for goto over a declaration.
1013         Problem reported by Charlie Brown in
1014         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
1015
1016         pipe2: decouple from binary-io a bit
1017         This is for Emacs, which needs pipe2 but not binary-io.
1018         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
1019         * modules/binary-io (Depends-on): Add module indicator.
1020
1021 2013-07-03  Eric Blake  <eblake@redhat.com>
1022
1023         mgetgroups: relax license to LGPLv2+
1024         * modules/getugroups (License): Change from GPLv3+.
1025         * modules/mgetgroups (License): Likewise.
1026         * modules/getgroups (License): Change from LGPLv3+.
1027
1028         xalloc-oversized: relax license to LGPLv2+
1029         * modules/xalloc-oversized (License): Change from GPLv3+.
1030
1031         nproc: relax license to LGPLv2+
1032         * modules/nproc (License): Change from LGPLv3+.
1033
1034         bootstrap: honor --no-git
1035         * build-aux/bootstrap: Don't even try to use git when user is
1036         pointing to a static checkout.
1037
1038 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1039
1040         ignore-value: port to gcc -pedantic
1041         * lib/ignore-value.h (ignore_value):
1042         Port to gcc -pedantic, by using __extension__.
1043         Reindent as per usual gnulib style nowadays.
1044         Simplify GCC version check.
1045
1046 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1047
1048         extern-inline: port to gcc -std=c89
1049         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1050         Do not use __gnu_inline__ if pedantic and pre-C99.
1051
1052 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
1053
1054         doc: document extern-inline
1055         * doc/extern-inline.texi: New file.
1056         * doc/gnulib.texi (alloca-opt): Include it.
1057         * m4/extern-inline.m4: Move some comments to documentation,
1058         and others closer to what they describe.
1059
1060         doc: chatter less
1061         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
1062         (updated-stamp): Use it.  This causes 'make' to output just
1063         one file name rather than zillions.
1064
1065         fflush, fseeko: port to musl cross-compiles
1066         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
1067         on some implementation that (1) is not known to be buggy,
1068         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
1069         cross-compiled to so we can't easily check for lack of
1070         conformance.  This is for cross-compiling to musl.
1071         Reported by Rich Felker in
1072         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
1073         * m4/fclose.m4 (gl_FUNC_FCLOSE):
1074         * m4/fflush.m4 (gl_FUNC_FFLUSH):
1075         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
1076         Adjust to above change.
1077         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
1078         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
1079         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
1080         known not to work, or unknown.
1081
1082 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         msvc-inval: port to mingw-w64
1085         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
1086         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
1087         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
1088
1089 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1090
1091         getcwd-lgpl: port to Tru64
1092         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
1093         Problem reported by Steven M. Schweda in
1094         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
1095
1096         tests: port large-fd POSIX spawn tests to OS X
1097         Problem reported by Daiki Ueno in
1098         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
1099         * tests/test-posix_spawn_file_actions_addclose.c:
1100         * tests/test-posix_spawn_file_actions_adddup2.c:
1101         * tests/test-posix_spawn_file_actions_addopen.c:
1102         Include <limits.h>, for OPEN_MAX, if available.
1103         (big_fd): New static function.
1104         (main): Use it.
1105
1106 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
1107
1108         tests/nap.h: use an adaptive delay to avoid ctime update issues
1109         The recent change in nap.h (5191133e) decreased the probability of lost
1110         races to about a third, however such problems could still be observed
1111         in virtual machines and openSUSE's OBS.
1112         Before, nap() detected the needed time once empirically and then used
1113         that delay (together with a small correction multiplier) in further
1114         calls.  This problem has been reported and discussed several times,
1115         including guesses about possible kernel issues:
1116         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
1117         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
1118         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
1119         http://bugs.gnu.org/12820
1120         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
1121         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
1122         Now, nap() avoids the race alltogether by verifying on a reference
1123         file whether a timestamp difference has happened.
1124         * tests/nap.h (nap_fd): Define file descriptor variable for the
1125         witness file.
1126         (nap_works): Change return value to bool.  Change passing
1127         the old file's status by value instead of by reference as this function
1128         does no longer update that timestamp; rename the function argument from
1129         st to old_st.  Remove the local variables cdiff and mdiff because that
1130         function now returns true/false instead of the precise delay.
1131         (guess_delay): Remove function.
1132         (clear_tmp_file): Add new function to close and unlink the witness file.
1133         (nap): Instead of re-using the delay which has been calculated during
1134         the first call, avoid the race by actually verifying that a timestamp
1135         difference can be observed on the current file system.  Use an adaptive
1136         approach for the delay to minimize execution time.  Assert that the
1137         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
1138         = 2^31 - 1 = 2.1s.
1139         Use atexit to call clear_tmp_file when the process terminates.
1140
1141 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1142
1143         sig2str: port to C++
1144         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
1145         Reported by Daniel J Sebald in
1146         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
1147
1148 2013-05-30  Eric Blake  <eblake@redhat.com>
1149
1150         docs: mention cygwin shortcoming in <sys/un.h>
1151         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
1152
1153         vasnprintf: silence mingw compiler warning
1154         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
1155
1156 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1157
1158         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
1159         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
1160         This fixes a porting bug I recently reintroduced in regex, and
1161         some other instances that I discovered while testing the fix.
1162         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
1163         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
1164         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
1165         with an empty argument if this is a pedantic pre-C99 GCC.
1166         * lib/verify.h: Do not use _Static_assert if this is a pedantic
1167         pre-C11 GCC.
1168
1169         regex: adapt to locking regime instead of depending on pthread
1170         Instead of depending on pthread, adapt to whatever thread
1171         modules are in use.  Problem reported by Ludovic Courtès in
1172         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
1173         and by Mats Erik Andersson in
1174         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
1175         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1176         Support either the 'lock' module, or the 'pthread' module, or
1177         no module.
1178         (lock_lock, lock_unlock): New macros.
1179         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
1180         * modules/lock, modules/pthread (configure.ac): Add module indicator.
1181         * modules/regex (Depends-on): Remove pthread.
1182
1183 2013-05-22  Eric Blake  <eblake@redhat.com>
1184
1185         getgroups: document portability issues
1186         * doc/glibc-functions/initgroups.texi (initgroups): Mention
1187         multithread safety.
1188         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
1189         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
1190         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
1191         getugroups.
1192         * doc/posix-functions/getgroups.texi (getgroups): Mention
1193         multithread safety and mgetgroups.
1194
1195 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
1196
1197         test-lchown, test-chown: also skip test if chown fails with EPERM
1198         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
1199         skip this test, to handle FAT file systems.
1200         * tests/test-chown.h (test_chown): Likewise.
1201
1202 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1203
1204         regex: fix dfa race in multithreaded uses
1205         Problem reported by Ludovic Courtès in
1206         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1207         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1208         New macros.  All uses of __libc_lock_define, __libc_lock_init
1209         changed to use the first two of these.
1210         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1211         non-glibc platforms.
1212         (struct re_dfa_t): Define the lock unconditionally.
1213         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1214         '#ifdef _LIBC"s.
1215         * modules/regex (Depends-on): Add pthread, if we use the
1216         included regex.
1217
1218         * lib/regcomp.c: Do actions that are not needed for glibc,
1219         but may be needed elsewhere.
1220         (regfree, re_compile_internal): Destroy the lock.
1221         (re_compile_internal): Check for lock-initialization failure.
1222
1223         malloca: port to compilers that reject size-zero arrays
1224         This fixes a bug introduced in my previous patch.
1225         * lib/malloca.c (struct preliminary_header): Use an int
1226         rather than a character array of size int; that's simpler.
1227         (struct header): Remove, replacing with ...
1228         (union header): New type.  This avoids the need for declaring a
1229         character array of size zero, which is not allowed on some platforms.
1230         All uses changed.
1231
1232 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         parse-datetime, tests: don't use "string" + int
1235         Recent versions of 'clang' complain about C source code that
1236         uses expressions of the form '"string literal" + integer',
1237         I guess on the theory that it's confusing for readers who are
1238         used to C++.  On those grounds I suppose it's OK to make this
1239         minor style change.
1240         * lib/parse-datetime.y (parse_datetime):
1241         * tests/test-fchdir.c (main):
1242         * tests/test-snprintf-posix.h (test_function):
1243         * tests/test-snprintf.c (main):
1244         * tests/test-vasnprintf-posix.c (test_function):
1245         * tests/test-vasnprintf.c (test_function):
1246         * tests/test-vsnprintf.c (main):
1247         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1248         Rewrite '"str" + E' to '&"str"[E]'.
1249
1250 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1251
1252         argmatch: port to C++
1253         * lib/argmatch.h [__cplusplus]: Add extern "C".
1254
1255         argp: typo fix
1256         * lib/argp-help.c: Typo in comment.
1257
1258 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1259
1260         manywarnings: update for GCC 4.8.0
1261         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1262         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1263         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1264         -Wmissing-noreturn, as they are duplicates of other warnings.
1265         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1266         was documented to be flaky in earlier versions of GCC.
1267
1268         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1269         * tests/test-spawn.c (main):
1270         * tests/test-sys_socket.c (main):
1271         * tests/test-sys_wait.c (main):
1272         Don't have a switch value that isn't covered by a case.
1273
1274         getaddrinfo-tests: port --enable-gcc-warnings to clang
1275         * tests/test-getaddrinfo.c (simple):
1276         Avoid casts from looser to stricter-aligned pointers.
1277
1278         thread: port --enable-gcc-warnings to clang
1279         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1280         Include <signal.h>, to pacify a warning about pthread_sigmask.
1281
1282         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1283         * lib/stdio.in.h (fwrite):
1284         When working around bug 11959, use __REDIRECT rather than '#define
1285         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1286         fix the -Wunused-value issue with clang, and it works with GCC too.
1287         Problem with targeting reported by Eric Blake in
1288         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1289         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1290         debugging the fwrite issue.
1291
1292         stdio: port --enable-gcc-warnings to clang
1293         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1294         since the GCC workaround for fwrite does not pacify clang.
1295
1296         sig2str: port --enable-gcc-warnings to clang
1297         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1298
1299         obstack: port --enable-gcc-warnings to clang
1300         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1301         Avoid casts from looser to stricter-aligned pointers.
1302
1303         memchr2: port --enable-gcc-warnings to clang
1304         * lib/memchr2.c (memchr2):
1305         Avoid casts from looser to stricter-aligned pointers.
1306
1307         mbsstr: port --enable-gcc-warnings to clang
1308         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1309         Avoid casts from looser to stricter-aligned pointers.
1310
1311         malloca: port --enable-gcc-warnings to clang
1312         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1313         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1314
1315         inttostr: port --enable-gcc-warnings to clang
1316         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1317
1318         warnings: port to clang
1319         Problem reported by Daniel P. Berrange via Eric Blake in
1320         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1321         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1322         (gl_WARN_ADD): Use it.
1323
1324 2013-05-11  Jim Meyering  <meyering@fb.com>
1325
1326         quotearg: do not read beyond end of buffer
1327         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1328         end of an ARG for which no length was specified.  With an N-byte
1329         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1330         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1331         via coreutils' misc/sort-debug-keys.sh test and detected by running
1332         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1333         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1334         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1335         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1336         characters correctly."
1337
1338 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1339
1340         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1341         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1342         compilation target is Mac OS X 10.6.
1343         Problem reported by parafin and Andoni Morales in
1344         <http://savannah.gnu.org/bugs/?37844> and
1345         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1346
1347 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1348
1349         mkdir-p: remove assumptions about umask and mode
1350         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1351         umask is 0, or that MODE is a subset of MODE_BITS.
1352
1353 2013-05-10  Eric Blake  <eblake@redhat.com>
1354
1355         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1356         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1357
1358 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1359
1360         deps: require Automake >= 1.9.6 in generated Makefile fragments
1361
1362         That is the same minimal version required in the DEPENDENCIES file.
1363         Moreover, the old code generated a requirement of Automake >= 1.5,
1364         and that is an insanely outdated version.
1365
1366         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1367         * tests/havelib/rpathlx/Makefile.am: Likewise.
1368         * tests/havelib/rpathly/Makefile.am: Likewise.
1369         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1370         * tests/havelib/rpathlz/Makefile.am: Likewise.
1371         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1372         * tests/havelib/rpathx/Makefile.am: Likewise.
1373         * tests/havelib/rpathy/Makefile.am: Likewise.
1374         * tests/havelib/rpathz/Makefile.am: Likewise.
1375
1376 2013-05-08  Eric Blake  <eblake@redhat.com>
1377
1378         bootstrap: AC_INIT may have more than four parameters
1379         * build-aux/bootstrap (extract_package_name): Correctly extract
1380         non-empty tarname field.  Avoid range in regex.
1381         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1382
1383 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1384
1385         qacl: port to MS-Windows port of GNU Emacs
1386         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1387         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1388         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1389         <http://bugs.gnu.org/14295#14>.
1390
1391 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1392
1393         acl: include quote.h
1394         * lib/copy-acl.c: Include quote.h.
1395         * lib/set-acl.c: Likewise.
1396
1397 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1398
1399         fchownat, renameat, unlinkat: update statat dependencies
1400         These modules use statat and lstatat, not fstatat; so depend on
1401         the statat module, which was split out recently from fstatat.
1402         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1403         * modules/renameat: Likewise.  Also delete fstat.
1404         URL: http://bugs.gentoo.org/468790
1405
1406 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1407
1408         Assume gnulib is checked out from Git, not CVS
1409
1410         In fact, access to the gnulib repository through CVS has been
1411         disabled, or more precisely, got broken and was never restored; see:
1412         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1413
1414         Note that support for CVS is not removed completely and unthinkingly
1415         by this change: only support for CVS checkouts of gnulib itself is
1416         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1417         files and CVS directories, for the benefit of those poor gnulib clients
1418         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1419
1420         * gnulib-tool: Simplify accordingly.
1421         * posix-modules: Likewise.
1422         * MODULES.html.sh: Likewise.
1423         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1424         repository.
1425         * doc/gnulib-intro.texi: Likewise.
1426         * doc/gnulib-readme.texi: Likewise.
1427         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1428         sample '.gitignore' file rather than a sample '.cvsignore'.
1429         * NEWS: Update.
1430         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1431         to "CVS Autoconf" rather than "git Autoconf".
1432
1433 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1434
1435         utimensat-tests, etc.: try to fix some races
1436         Problem reported by Bernhard Voelker in
1437         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1438         I don't know whether this patch fixes that race condition, but it
1439         fixes *some* race conditions, so it should be a win.
1440         * modules/chown-tests (Depends-on):
1441         * modules/fchownat-tests (Depends-on):
1442         * modules/fdutimensat-tests (Depends-on):
1443         * modules/futimens-tests (Depends-on):
1444         * modules/lchown-tests (Depends-on):
1445         * modules/stat-time-tests (Depends-on):
1446         * modules/utimens-tests (Depends-on):
1447         * modules/utimensat-tests (Depends-on):
1448         Depend on nanosleep, not usleep.
1449         * modules/chown-tests (test_chown_LDADD):
1450         * modules/lchown-tests (test_lchown_LDADD):
1451         * modules/stat-time-tests (test_stat_time_LDADD):
1452         New macro.
1453         * modules/fchownat-tests (test_fchownat_LDADD):
1454         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1455         * modules/futimens-tests (test_futimens_LDADD):
1456         * modules/utimens-tests (test_utimens_LDADD):
1457         * modules/utimensat-tests (test_utimensat_LDADD):
1458         Add $(LIB_NANOSLEEP).
1459         * modules/stat-time-tests (Files): Add tests/nap.h.
1460         * tests/nap.h: Include <limits.h>, for INT_MAX.
1461         (lt_mtime): Remove.
1462         (diff_timespec): New function.
1463         (get_stat): Rename from get_mtime.  All callers changed.
1464         (nap_works): Determine the needed delay by inspecting the
1465         file system's timestamp jumps; this should be more reliable.
1466         Look at both mtime and ctime, and take the maximum of the two jumps.
1467         (nap_works, guess_delay):
1468         Return a nanosecond cound, not a microsecond count.
1469         All callers changed.
1470         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1471         failure.
1472         (nap): Multiply the guess by 1.125, to accommodate the case where
1473         the file system's clock is a bit slower than nanosleep's clock.
1474         * tests/test-stat-time.c (BASE): New macro.
1475         Include nap.h.
1476         (nap): Remove; nap.h now defines this.  This removes a duplicate
1477         implementation of 'nap'.
1478
1479         utimens, utimensat: work around Solaris UTIME_OMIT bug
1480         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1481         Linux kernel 2.6.32 does.  Work around it in the same way.
1482         * doc/posix-functions/futimens.texi (futimens):
1483         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1484         * lib/utimens.c (fdutimens, lutimens):
1485         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1486
1487         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1488         Formerly, it was your responsibility to do this for all Makefile.ams
1489         other than Gnulib's.  Now it's your responsibility to do it for
1490         Gnulib's Makefile.am, too.
1491         * NEWS: Document this.
1492         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1493
1494         acl: include errno.h to get errno
1495         Reported by Daiki Ueno in
1496         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1497         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1498
1499 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1500
1501         tests: don't assume getdtablesize () <= 10000000
1502         * modules/cloexec-tests:
1503         * modules/dup2-tests:
1504         * modules/dup3-tests:
1505         * modules/nonblocking-tests:
1506         * modules/posix_spawn_file_actions_addclose-tests:
1507         * modules/posix_spawn_file_actions_adddup2-tests:
1508         * modules/posix_spawn_file_actions_addopen-tests:
1509         * modules/unistd-safer-tests:
1510         Depend on the getdtablesize module.
1511         * tests/test-cloexec.c:
1512         * tests/test-dup-safer.c:
1513         * tests/test-dup2.c:
1514         * tests/test-dup3.c:
1515         * tests/test-fcntl.c:
1516         * tests/test-nonblocking.c:
1517         * tests/test-posix_spawn_file_actions_addclose.c:
1518         * tests/test-posix_spawn_file_actions_adddup2.c:
1519         * tests/test-posix_spawn_file_actions_addopen.c:
1520         Don't assume getdtablesize () <= 10000000.
1521
1522 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1523
1524         extern-inline: work around bug in Sun c99
1525         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1526         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1527
1528 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1529
1530         qacl: new module, broken out from the acl module
1531         This is for GNU Emacs, which wants the acl functions but does
1532         not want 'error' invoked when they fail.
1533         * lib/acl-internal.h: Do not include error.h, quote.h.
1534         (ENOSYS, ENOTSUP): Remove; no longer needed.
1535         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1536         * lib/acl.h: Include <stdbool.h>.
1537         (acl_errno_valid): New function.
1538         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1539         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1540         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1541         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1542         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1543         * lib/file-has-acl.c (file_has_acl):
1544         * lib/qcopy-acl.c (qcopy_acl):
1545         * lib/qset-acl.c (qset_acl):
1546         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1547         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1548         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1549         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1550         Add lib/set-acl.c.
1551         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1552         Add qacl.
1553         (configure.ac): Move gl_FUNC_ACL to qacl module.
1554         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1555         Rename set-mode-acl.c to set-acl.c.
1556         * lib/acl-errno-valid.c: New file.
1557         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1558         copy_acl function remains in copy-acl.c.
1559         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1560         (_): Remove; not needed.
1561         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1562         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1563         * modules/qacl: New file, moved from the old modules/acl.
1564         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1565         Remove set-mode-acl.c, copy-acl.c.
1566         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1567
1568         alignof, intprops, malloca: port better to IBM's C compiler
1569         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1570         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1571         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1572
1573 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1574
1575         wctype-h: fix gettext link error on mingw
1576         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1577         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1578         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1579         rpl_towupper and rpl_towupper.
1580
1581 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1582
1583         regex-tests, regex: allow glibc re_search behavior
1584         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1585         re_search input data to make the multi-character collating element
1586         in it clearly visible, and treat re_search return code 0 as valid.
1587         * m4/regex.m4 (gl_REGEX): Likewise.
1588
1589 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1590
1591         stdalign: doc fix
1592         * doc/posix-headers/stdalign.texi (stdalign.h):
1593         Gnulib doesn't support '_Alignof expr'.
1594
1595 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1596
1597         stdalign: port to stricter ISO C11
1598         ISO C11 says that _Alignof's operand must be a parenthesized type.
1599         Problem reported by Eli Zaretskii in
1600         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1601         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1602         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1603
1604 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1605
1606         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1607         Problem reported by Marco Atzeri in
1608         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1609         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1610         Simply delegate to the system <sys/select.h> in this case too.
1611         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1612         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1613         be needed on Solaris either.
1614         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1615         Simply delegate to the system <sys/time.h> in this case.
1616
1617 2013-03-19  Karl Berry  <karl@gnu.org>
1618
1619         * build-aux/gnupload: check for erroneous (with gnupload) use of
1620         ftp-upload.gnu.org, tweak help.
1621
1622 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1623
1624         copy-file, rpmatch: fix problems found by cppcheck
1625         Reported by Arno Onken in
1626         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1627         * lib/rpmatch.c (try): Fix memory leak.
1628         * lib/copy-file.c: Include "ignore-value.h".
1629         (qcopy_file_preserving): Ignore chown value.
1630         * modules/copy-file (Depends-on): Add ignore-value.
1631
1632 2013-01-27  Jim Meyering  <jim@meyering.net>
1633
1634         prefix-gnulib-mk: give better diagnostics
1635         * build-aux/prefix-gnulib-mk: Don't just "die".
1636         Give better diagnostics upon failure.
1637
1638 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1639
1640         putenv: port to Solaris 10
1641         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1642         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1643         is not what is wanted here.
1644         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1645         declaration, not for its existence.
1646
1647 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1648
1649         mktime: fix configure typo
1650         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1651
1652 2013-03-12  Eric Blake  <eblake@redhat.com>
1653
1654         regex-tests: skip UTF-8 test on mingw
1655         * modules/regex-tests (Depends-on): Add localcharset.
1656         * tests/test-regex.c (main): Use it to skip test on mingw.
1657
1658 2013-03-11  Eric Blake  <eblake@redhat.com>
1659
1660         tests: make it easier to bypass alarm time in debugger
1661         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1662         * tests/test-memmem.c (main): Likewise.
1663         * tests/test-passfd.c (main): Likewise.
1664         * tests/test-ptsname.c (main): Likewise.
1665         * tests/test-ptsname_r.c (main): Likewise.
1666         * tests/test-strcasestr.c (main): Likewise.
1667         * tests/test-strstr.c (main): Likewise.
1668
1669         regex: port to mingw's recent addition of undeclared alarm
1670         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1671         exists but still doesn't work in newer mingw.
1672         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1673         not existence.  Ensure SIGALRM is not trapped.
1674         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1675         * m4/regex.m4 (gl_REGEX): Likewise.
1676         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1677         * tests/test-regex.c (main): Use correct probe for alarm.
1678
1679         putenv: avoid compilation warning on mingw
1680         * lib/putenv.c (_unsetenv): Protect variable declaration.
1681         (putenv): Fix indentation.
1682
1683 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1684
1685         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1686         * lib/unistd.in.h: be careful not to include un-needed system
1687         stdlib.h from here, because that prevents gnulib stdlib.h from
1688         defining rpl_strtod correctly.
1689
1690 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1691
1692         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1693         changesets, but for the 'precision 0' test.
1694         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1695         round-to-even, since POSIX says rounding is implementation-defined
1696         and OS X 10.8.2 rounds 1.51 to 1 here.
1697
1698         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1699         changeset.
1700         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1701         round-to-even, since POSIX says rounding is implementation-defined
1702         and OS X 10.8.2 rounds 1.5 to 1 here.
1703
1704 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1705
1706         vasnprintf-posix-tests: allow rounding 1.5 to 1
1707         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1708         round-to-even, since POSIX says rounding is implementation-defined
1709         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1710         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1711
1712         bootstrap: port to FreeBSD
1713         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1714         that treat '--' differently.  Reported by Mats Erik Andersson in
1715         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1716
1717 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1718
1719         regex: rename remaining __attribute calls to __attribute__.
1720         2012-02-25 changed definition of __attribute, but left some uses
1721         unchanged, preventing compilation of regex module on most non-gcc
1722         environments.
1723         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1724         (lookup_collation_sequence_value, build_range_exp)
1725         (build_collating_symbol): Set attributes with newly renamed
1726         __attribute__ decorator.
1727         * lib/regex_internal.c (re_string_peek_byte_case)
1728         (re_node_set_compare, re_node_set_contains): Likewise.
1729         * lib/regexec.c (acquire_init_state_context): Likewise.
1730
1731 2013-03-06  Bruno Haible  <bruno@clisp.org>
1732
1733         execute: Revert last change, but use a different condition.
1734         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1735         on Windows.
1736
1737 2013-03-05  Eric Blake  <eblake@redhat.com>
1738
1739         execute: drop dead code
1740         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1741
1742 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1743
1744         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1745         * m4/non-recursive-gnulib-prefix-hack.m4
1746         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1747         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1748         <http://bugs.gnu.org/10305#237>.
1749
1750 2013-03-04  Eric Blake  <eblake@redhat.com>
1751
1752         test-getsockopt: avoid compiler warning
1753         * tests/test-getsockopt.c (includes): Ensure close is declared.
1754
1755 2013-03-02  Bruno Haible  <bruno@clisp.org>
1756
1757         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1758         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1759
1760 2013-03-02  Bruno Haible  <bruno@clisp.org>
1761
1762         gettext: Update to version 0.18.2.
1763         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1764         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1765                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1766
1767 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1768
1769         regex: merge patches from libc
1770
1771         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1772         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1773         All uses changed.
1774         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1775         (re_string_wchar_at, re_string_elem_size_at):
1776         Mark function as possibly unused.
1777
1778         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1779         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1780         elements compare against the byte sequence of it, not its name.
1781
1782 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1783
1784         putenv: port better to native Windows
1785         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1786         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1787         (_unsetenv): Use _putenv if available.
1788         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1789         a bit less likely to cause damage.
1790         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1791         Fix the wrong value with SetEnvironmentVariable.
1792         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1793         code better.
1794
1795 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1796
1797         regex: ignore old-style-definition warnings
1798         * lib/regex.c: Add pragma to ignore these warnings.
1799         Problem reported for GNU tar by Pavel Raiskup.
1800
1801 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1802
1803         getcwd: support coreutils better
1804         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1805         but this might not be correct in coreutils, which disables
1806         the raw decl checks.  Problem reported by Nagendra in
1807         <http://bugs.gnu.org/10305#192>.
1808         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1809         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1810         Test the getcwd function, not any macro, since getcwd.c wants the
1811         function.
1812         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1813         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1814         compile, as might happen if there's a macro but no function.
1815
1816         strtod: support coreutils better
1817         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1818         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1819         disables the raw decl checks.  This assumes there is an underlying
1820         strtod, but that's a safe assumption these days.
1821         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1822
1823         mountlist: port to HP NonStop
1824         Reported by Joachim Schmitz in
1825         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1826         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1827         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1828
1829 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1830
1831         extern-inline: avoid compilation error with HP-UX cc
1832         Reported by Richard Lloyd in
1833         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1834         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1835         Suppress extern inline with HP-UX cc.  This should be safe,
1836         though it may hurt performance.  Perhaps someone with some HP-UX
1837         experience can come up with a higher-performance fix.
1838
1839 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1840
1841         putenv: fix heap corruption with mixed putenv/_putenv
1842         Problem reported by Michael Goffioul in
1843         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1844         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1845         Rely on _putenv to allocate the new environment.
1846         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1847         * modules/putenv (configure.ac): Use it.
1848
1849 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1850
1851         unsetenv etc.: port to Solaris 11 + GNU Emacs
1852         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1853         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1854         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1855         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1856         idea but is too painful to fix right now), and without this gnulib
1857         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1858         compiling unsetenv.c on Solaris 11.  Fix the problem for
1859         unsetenv.c, and fix other similar occurrences.
1860
1861 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1862
1863         secure_getenv: fix C++ declaration typo
1864         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1865         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1866         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1867
1868 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1869
1870         careadlinkat: stop exporting careadlinkatcwd
1871         Only Emacs used it directly, and Emacs no longer needs it.
1872         * NEWS: Document this simplification.
1873         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1874         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1875         for readlink.
1876         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1877         Don't include stdlib.h; no longer needed.
1878         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1879         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1880         * modules/areadlink (Depends-on): Add readlink.
1881         (Maintainer): Add self.
1882         * modules/careadlinkat (Depends-on): Remove readlink.
1883
1884         extensions: port better to HP-UX
1885         This is merged from git Autoconf.
1886         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1887         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1888         so that it's compatible with the value used when compiling.
1889
1890         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1891         Problem reported by Mats Erik Andersson in
1892         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1893         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1894         openpty function exists, not merely when we intend to replace it.
1895         This corrects the 2013-01-31 patch, which mistakenly defined
1896         HAVE_OPENPTY even on hosts that lacked it.
1897
1898 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1899
1900         secure_getenv: fix include typo
1901         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1902
1903         secure_getenv: port better to FreeBSD and Solaris
1904         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1905         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1906         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1907         This works better on BSDish platforms.
1908         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1909         Test for issetugid if __secure_getenv is missing.
1910
1911 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1912
1913         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1914         Some of these changes are merged in from git Autoconf.
1915         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1916         When deciding whether to define _XOPEN_SOURCE, inspect the
1917         preprocessor macro __hpux instead of the more-heavyweight
1918         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1919         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1920         as the key for __EXTENSIONS__.
1921
1922         unistd: avoid namespace pollution on non-glibc systems
1923         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1924         This avoids namespace pollution on non-glibc systems, by causing
1925         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1926         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1927         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1928
1929 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1930
1931         tmpdir: use secure_getenv
1932         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1933         Define to secure_getenv, not getenv.
1934         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1935         as that's now secure_getenv's job.
1936         * modules/tmpdir (Depends-on): Add secure_getenv.
1937
1938         tempname: use secure_getenv
1939         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1940         Define to secure_getenv, not getenv.
1941         * modules/tempname (Depends-on):
1942         Add secure_getenv.
1943
1944         secure_getenv: new module
1945         * MODULES.html.sh (Extra functions based on ANSI C 89):
1946         Add secure_getenv.
1947         * doc/glibc-functions/secure_getenv.texi: New file.
1948         * doc/gnulib.texi: Include it.
1949         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1950         New files.
1951         * lib/stdlib.in.h (secure_getenv): New decl.
1952         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1953         * modules/stdlib (stdlib.h):
1954         Add secure_getenv checks.
1955
1956 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1957
1958         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1959         Reported for OS X 10.8.2 by Assaf Gordon in
1960         <http://bugs.gnu.org/13516>.
1961         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1962         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1963         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1964         so that they can be kept in sync more easily.  Avoid PATH_MAX
1965         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1966         mkdir or chdir failure.
1967         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1968         lib/getcwd.c.
1969         (test_abort_bug): Do not test for the deep directory bug unless we
1970         have openat support.  Avoid PATH_MAX test on the Hurd.
1971
1972         regex-tests, regex: fix bug: memset undeclared
1973         * tests/test-regex.c: Don't include regex.h twice.  Include
1974         string.h, to declare memset.  Christensen's report also mentioned
1975         this issue.
1976         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1977         test-regex.c, to avoid future problems like this.  Remove
1978         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1979         twice.
1980
1981         regex-tests: fix link errors on older Solaris
1982         These need to link with @LIBINTL@ to get libintl_gettext.
1983         Problem reported by Tom G. Christensen in
1984         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1985         * modules/regex-tests (test_regex_LDADD): New macro.
1986
1987 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1988
1989         regex-tests: new module
1990         * modules/regex-tests, tests/test-regex.c: New files.
1991
1992         regex: fix off-by-one error in configure test
1993         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1994
1995 2013-01-31  Eric Blake  <eblake@redhat.com>
1996
1997         regex: avoid infinite configure test
1998         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1999
2000 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
2001
2002         openpty: fix bug where HAVE_OPENPTY wasn't defined
2003         See the thread starting at:
2004         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
2005         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
2006         openpty function exists, not merely when we intend to replace it.
2007
2008 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2009
2010         sys_time: port to Solaris 2.6
2011         There is a circularity problem on Solaris 2.6, where <time.h> includes
2012         <sys/time.h> for struct timespec.  The include nesting is gnulib
2013         <time.h>, system <time.h>, gnulib <sys/time.h>, system
2014         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
2015         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
2016         <sys/siginfo.h>; the last, innermost file needs struct
2017         timestruc_t, which is defined in <sys/time.h>, which has not been
2018         fully parsed.  Problem reported by Tom G. Christensen in
2019         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
2020         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
2021         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
2022         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
2023         uses split double-inclusion guards.
2024
2025 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2026
2027         regex: test for buffer overrun
2028         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
2029         for the just-fixed regex bug.
2030
2031 2013-01-29  Andreas Schwab  <schwab@suse.de>
2032
2033         regex: fix buffer overrun in regexp matcher [BZ #15078]
2034         * lib/regexec.c (extend_buffers): Add parameter min_len.
2035         (check_matching): Pass minimum needed length.
2036         (clean_state_log_if_needed): Likewise.
2037         (get_subexp): Likewise.
2038
2039 2013-01-28  Pádraig Brady  <P@draigBrady.com>
2040
2041         mountlist: don't consider "devtmpfs" as dummy
2042         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
2043         as there is storage associcated with it.
2044
2045 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         futimens-tests, utimens-tests: Depend on gettext.
2048         This works around a problem introduced in my 2013-01-12 patch,
2049         which added @LIBINTL@ to these modules.
2050         * modules/futimens-tests (Depends-on):
2051         * modules/utimens-tests (Depends-on): Add gettext.
2052
2053 2013-01-26  Eric Blake  <eblake@redhat.com>
2054
2055         test-getpeername: fix typo
2056         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
2057
2058 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2059
2060         bootstrap: remove the need for a sorted .gitignore file
2061         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
2062         rename to insert_if_absent(), so that we don't need or generate
2063         a sorted .gitignore file.  We do require a .gitignore with no
2064         existing duplicate entries and enforce that.
2065         (sort_patterns): Remove this function as we now use the simpler
2066         technigue of inserting blacklist entries at the top of the file,
2067         assuming gnulib won't be inserting !whitelist entries.
2068
2069 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2070
2071         readlinkat: don't depend on gl_FUNC_OPENAT
2072         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
2073         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
2074         renameat.m4, symlinkat.m4; but one thing at a time.
2075
2076         statat: new module, split out from fstatat
2077         GNU Emacs needs the POSIX-specified fstatat, but not the
2078         gnulib-specified statat and lstat.  Split the latter two into a
2079         new module 'statat'.
2080         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
2081         * lib/openat.h, lib/statat.c (STATAT_INLINE):
2082         Rename from FSTATAT_INLINE. All uses changed.
2083         * modules/fstatat (Files): Remove lib/statat.c.
2084         (gl_MODULE_INDICATOR([fstatat])): Remove.
2085         (lib_SOURCES): Remove.
2086         (Maintainer): Add self.
2087         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
2088         * tests/test-fstatat.c (BASE): Don't define if already defined.
2089         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
2090
2091 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
2092
2093         tests: don't assume fd 99 is closed
2094         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
2095         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
2096         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
2097         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
2098         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
2099         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
2100         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
2101         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
2102         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
2103         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
2104         * tests/test-fwrite.c, tests/test-getpeername.c:
2105         * tests/test-getsockname.c, tests/test-getsockopt.c:
2106         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
2107         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
2108         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
2109         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
2110         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
2111         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
2112         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
2113         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
2114         * tests/test-unlinkat.c, tests/test-unlockpt.c:
2115         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
2116         Close file descriptor 99, instead of assuming it's already closed.
2117
2118 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2119
2120         stpncpy: port to OS X 10.8
2121         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
2122         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
2123
2124 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2125
2126         unistd: port to recent mingw
2127         * lib/unistd.in.h: Remove special invocation convention for mingw,
2128         which breaks for the latest mingw version.  See John W. Eaton in
2129         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
2130
2131         largefile: port better to Mac OS X 10.5
2132         This patch is backported from Autoconf git.
2133         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
2134         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
2135         with ino_t size being different for configuration time versus
2136         build/run time.  Problem reported by PHO in
2137         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
2138
2139 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2140
2141         doc: clarify -Werror
2142         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
2143         clarify that it's intended for developers, not for ordinary builds,
2144         and mention --enable-gcc-warnings as one possible use.
2145
2146 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
2147
2148         stdint: fix build with Android's Bionic fox x86
2149         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
2150         was already included as _SSIZE_T_DEFINED_ might also be defined
2151         in include/machine/_types.h, which is included by stdio.h
2152
2153 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2154
2155         net_if-tests: port to Solaris 7 + GCC 3.4.6
2156         Problem reported by Tom G. Christensen in
2157         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
2158         * tests/test-net_if.c (ni): Move to next the code that uses it,
2159         so that it's declared only if needed.
2160
2161 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2162
2163         net_if-tests: port to older Solaris
2164         Problem reported by Tom G. Christensen in
2165         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2166         * modules/net_if-tests (NET_IF_LIB): New substitution.
2167         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
2168         (HAVE_IF_NAMEINDEX): New C macro.
2169         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
2170
2171         system-quote-tests: port to older Solaris
2172         Problem reported by Tom G. Christensen in
2173         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2174         * tests/test-system-quote-child.c (fopen, fread): Undef.
2175
2176         c-xvasprintf etc.: fix link errors on older Solaris
2177         These need to link with @LIBINTL@ to get libintl_gettext.
2178         Problem reported by Tom G. Christensen in
2179         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2180         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
2181         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
2182         * modules/futimens-tests (test_futimens_LDADD):
2183         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
2184
2185 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2186
2187         locale: port to Solaris 2.6 and 7 + GNU gettext
2188         * lib/locale.in.h: Just include_next <locale.h> when
2189         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
2190         when combining the localename module with GNU gettext 0.18.2.
2191         Problem reported by Tom G. Christensen in
2192         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
2193
2194 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2195
2196         stdlib: port to Solaris 2.6
2197         Also, the code worked on Solaris 7 through 9 only by accident.
2198         Problem reported by Tom G. Christensen in
2199         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
2200         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
2201         simply include the system stdlib.h.
2202         * lib/getopt.in.h (__need_system_stdlib_h):
2203         * lib/pthread.in.h (__need_system_stdlib_h):
2204         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2205         Define when including <stdlib.h>, to avoid problems at least for
2206         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2207         with the system stdlib.h.
2208
2209 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2210
2211         doc: update main copyright year
2212         * doc/gnulib.texi: Update copyright date.
2213
2214         doc: improve ISO 8601 discussion
2215         * doc/parse-datetime.texi (Combined date and time of day items):
2216         Specify more carefully what formats are supported and what is
2217         done with excess precision.
2218
2219 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2220
2221         doc: avoid small caps
2222         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2223         they're more trouble than they're worth.  Suggested by Karl Berry
2224         in <http://bugs.gnu.org/13360>.
2225
2226         regex: conform to strict C
2227         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2228         From Aharon Robbins.
2229
2230         gnulib-tool: fix incompatibility with autopoint 0.18.2
2231         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2232         Problem reported by Tom G. Christensen in
2233         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2234
2235 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2236
2237         fprintftime: bring back and reword fwrite comment
2238         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2239
2240         stdio: remove now-unnecessary stdio.c
2241         Since stdio.in.h no longer uses inline functions, we no longer
2242         need to compile the extern versions.
2243         * lib/stdio.c: Remove.
2244         * modules/stdio (Files): Remove lib/stdio.c.
2245         (lib_SOURCES): Remove.
2246
2247         unicodeio: depend on stdio, not ignore-value
2248         * lib/unicodeio.c: Do not include ignore-value.h.
2249         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2250         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2251
2252         fprintftime: depend on stdio, not ignore-value
2253         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2254         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2255         since the stdio module arranges to silence that warning now.
2256         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2257
2258 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2259
2260         stdint-tests: Fix expanded-before-required-warning.
2261         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2262
2263 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2264
2265         fwrite: silence __wur only for older glibc versions
2266         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2267         This will help us remove this workaround some time in the far future.
2268
2269 2013-01-03  Eric Blake  <eblake@redhat.com>
2270
2271         fwrite: silence __wur without using inline
2272         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2273         just gcc, and in a way that avoids inline issues.
2274         * modules/stdio (Depends-on): Drop extern-inline.
2275
2276 2013-01-03  Jim Meyering  <jim@meyering.net>
2277
2278         update-copyright: avoid copyright notice date corruption
2279         Given a sequence of copyright year numbers in which the final
2280         one was a two-digit number that happened to be a substring of
2281         a preceding four-digit year number, we would mistakenly update
2282         the substring (from two- to four-digit) rather than the two-digit
2283         number at the end, which, combined with the addition of the current
2284         4-digit year number would yield two 5-digit year numbers, e.g.,
2285         here, it would convert the first "99" to "1999, 2013" rather than
2286         the final one:
2287           1991, 99
2288           11999, 20131, 1999
2289         * build-aux/update-copyright: Tighten a regexp.
2290         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2291         Reported by Joseph Myers in
2292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2293
2294 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2295
2296         regex: omit needless signed-pointer casts
2297         * lib/regcomp.c (build_charclass, build_charclass_op):
2298         Use char *, not unsigned char *, for class name and extra.
2299         The char values are always nonnegative so there's no need to
2300         insist on unsigned char * here, and using char * removes the need
2301         for casts.  Reported by Aharon Robbins in
2302         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2303
2304         regex: support Gawk, which never uses alloca
2305         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2306         Do not include in this case.  Gawk doesn't supply a substitute
2307         alloca.h and doesn't need one.
2308
2309         regex: port __libc_lock_define usage to C89
2310         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2311         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2312         does not conform to C89, as it has an empty macro argument.
2313         Reported by Aharon Robbins in
2314         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2315
2316 2013-01-01  Eric Blake  <eblake@redhat.com>
2317
2318         maint: update all copyright year number ranges
2319         Run "make update-copyright".
2320
2321         version-etc: bump copyright year reported in --version
2322         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2323
2324 2012-12-31  Eric Blake  <eblake@redhat.com>
2325
2326         sigprocmask-tests: skip test if pid is unexpectedly large
2327         * tests/test-sigprocmask.c (main): Add range check.
2328
2329         git-version-gen: avoid test -z portability glitch
2330         * build-aux/git-version-gen: Prefer portable test spelling, since
2331         git-version-gen is run on more than just developer machines.
2332
2333 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2334
2335         git-version-gen: add --fallback option to use if git is not present
2336         * build-aux/git-version-gen: Add support for the new option --fallback,
2337         which comes into play when there is no $tarball_version_file and
2338         git is not working.
2339         (scriptversion): Update.
2340
2341         maint.mk: handle missing git with more grace
2342         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2343         Quietly proceed if git is not present.
2344
2345 2012-12-31  Eric Blake  <eblake@redhat.com>
2346
2347         dup2: work around cygwin bug
2348         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2349         * lib/dup2.c (rpl_dup2): Work around it.
2350         * doc/posix-functions/dup2.texi (dup2): Document it.
2351
2352 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2353
2354         regex: remove unnecessary dependency on localcharset.h
2355         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2356         hasn't been needed for years.
2357         * modules/regex (Depends-on): Remove localcharset.
2358
2359         regex: revert single-byte change
2360         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2361         to this function.  This was alredy fixed in a different way, at
2362         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2363         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2364         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2365
2366         regex: simplify based on Gawk version
2367         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2368         Reported by Aharon Robbins in
2369         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2370
2371 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2372
2373         regex: check that pattern char is single-byte
2374         Reported by Aharon Robbins in
2375         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2376         * lib/regexec.c (check_node_accept_bytes):
2377         Return 0 if the pattern string has a multibyte character here.
2378
2379         regex: implement rational ranges
2380         Reported by Aharon Robbins in
2381         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2382         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2383         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2384         Implement rational ranges.
2385
2386         regex: avoid redefining __wctype
2387         Reported by Aharon Robbins in
2388         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2389         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2390         #undef before defining.
2391
2392         regex: port to hosts where malloc (0) == NULL
2393         Reported by Aharon Robbins in
2394         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2395         * lib/regex_internal.c (re_node_set_alloc):
2396         Don't assume that malloc (0) yields nonnull.
2397         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2398         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2399         * modules/regex (Files): Add m4/eealloc.m4.
2400
2401         regex: port to C89
2402         Reported by Aharon Robbins in
2403         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2404         * lib/regcomp.c (init_word_char): Declaration before statement.
2405
2406         regex: merge glibc changes
2407         Also, copy the license wording from glibc.  This simplifies
2408         merging changes.  gnulib-tool will change the wording to GPL as
2409         appropriate, when importing it to other packages.  The only
2410         glibc change made since the last merge, which needs merging, is:
2411         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2412         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2413
2414         * users.txt: Add Emacs.
2415
2416         doc: omit mention of version when not needed
2417         * doc/gnulib-intro.texi (Portability and Application Code):
2418         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2419         Don't mention particular dates or versions when not necessary, so
2420         that the documentation won't go out of date so quickly.
2421
2422         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2423
2424 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2425
2426         bootstrap: pass --force to autoreconf.
2427         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2428         Add "--force" so that Automake's ylwrap and other such tools
2429         be updated at each bootstrap invocation.
2430         Use it.
2431
2432 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2433
2434         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2435         The earlier patch forgot to update one of the #if conditions, causing
2436         a problem on Debian testing i386 reported by Mats Erik Andersson
2437         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2438         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2439         (__argp_fmtstream_puts, argp_fmtstream_puts)
2440         (__argp_fmtstream_write, argp_fmtstream_write)
2441         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2442
2443         * doc/gnulib-readme.texi: Minor fixups.
2444         (Portability guidelines): Modernize URLs.  Remove some repetition.
2445         (Indent with spaces not TABs): Reword to avoid too-long lines.
2446         Remove some '@ifset standalone' stuff that isn't used.
2447
2448         * doc/gnulib-readme.texi (Portability guidelines):
2449         ctype.h, not ctime.h.
2450
2451         Correct name of POSIX.1-2001.
2452         * doc/posix-functions/fgetc.texi (fgetc):
2453         * doc/posix-functions/fgets.texi (fgets):
2454         * doc/posix-functions/fread.texi (fread):
2455         * doc/posix-functions/fscanf.texi (fscanf):
2456         * doc/posix-functions/getc.texi (getc):
2457         * doc/posix-functions/getchar.texi (getchar):
2458         * doc/posix-functions/scanf.texi (scanf):
2459         POSIX.1-2001, not POSIX-2001.
2460
2461         doc: move README into manual
2462         * README: Move contents to new file doc/gnulib-readme.texi.
2463         Replace with a one-line summary.
2464         * doc/gnulib.texi (Brief Overview): New section,
2465         with old intro preface.  Include gnulib-readme.texi for contents.
2466         (Philosophy): Rename from "Introduction", since this
2467         section no longer introduces the rest.  Write a new preface.
2468         * doc/gnulib-readme.texi: New file, with the old contents of
2469         README texinfo-ized.  This way, the README info appears
2470         in the online and printed manual.
2471
2472 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2473
2474         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2475         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2476         c_vasprintf() prototype.
2477
2478 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2479
2480         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2481         * lib/c-vasprintf.h: Remove stray semicolon.
2482
2483 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2484
2485         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2486         It is obsolete and is planned to be removed from Automake 1.14; see
2487         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2488         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2489         (installdirs-data, installdirs-data-yes):
2490         Use $(MKDIR_P), not $(mkdir_p).
2491         * m4/intl.m4 (AM_INTL_SUBDIR):
2492         * m4/po.m4 (AM_PO_SUBDIRS):
2493         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2494
2495 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2496
2497         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2498         On this platform, we are not optimizing but we are using
2499         the substitute for extern inlines, so compile as if
2500         C99-style extern inline, or a substitute, is available.
2501         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2502         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2503         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2504         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2505         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2506         Declare as ARGP_FS_EI, not as extern.
2507         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2508         (__option_is_short, _option_is_end, __option_is_end)
2509         [!_LIBC && __USE_EXTERN_INLINES]:
2510         Declare as ARGP_EI, not as extern.
2511
2512 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2513
2514         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2515         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2516         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2517         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2518         ...), as the latter is fatal with older Autoconfs.
2519         Problem reported and fix suggested by Eric Blake in thread starting at
2520         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2521
2522 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2523
2524         AC_PROG_MKDIR_P: don't workaround if not buggy
2525         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2526         Define only for Autoconf versions before 2.62.
2527         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2528         undocumented m4_PACKAGE_VERSION, for consistency with the
2529         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2530         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2531         was introduced in 2.62.
2532
2533 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2534
2535         New 'c-*printf' modules for formatted output in C locale.
2536
2537         New module 'c-vasnprintf'.
2538         * modules/c-vasnprintf: New file.
2539         * lib/c-vasnprintf.c: New file.
2540         * lib/c-vasnprintf.h: New file.
2541
2542         New module 'c-snprintf'.
2543         * modules/c-snprintf: New file.
2544         * modules/c-snprintf-tests: New file.
2545         * lib/c-snprintf.c: New file.
2546         * lib/c-snprintf.h: New file.
2547         * tests/test-c-snprintf.c: New file.
2548         * tests/test-c-snprintf.sh: New file.
2549
2550         New module 'c-vsnprintf'.
2551         * modules/c-vsnprintf: New file.
2552         * modules/c-vsnprintf-tests: New file.
2553         * lib/c-vsnprintf.c: New file.
2554         * lib/c-vsnprintf.h: New file.
2555         * tests/test-c-vsnprintf.c: New file.
2556         * tests/test-c-vsnprintf.sh: New file.
2557
2558         New module 'c-vasprintf'.
2559         * modules/c-vasprintf: New file.
2560         * modules/c-vasprintf-tests: New file.
2561         * lib/c-asprintf.c: New file.
2562         * lib/c-vasprintf.c: New file.
2563         * lib/c-vasprintf.h: New file.
2564         * tests/test-c-vasprintf.c  +: New file.
2565         * tests/test-c-vasprintf.sh: New file.
2566
2567         New module 'c-xvasprintf'.
2568         * modules/c-xvasprintf: New file.
2569         * modules/c-xvasprintf-tests: New file.
2570         * lib/c-xasprintf.c: New file.
2571         * lib/c-xvasprintf.c: New file.
2572         * lib/c-xvasprintf.h: New file.
2573         * tests/test-c-xvasprintf.c: New file.
2574         * tests/test-c-xvasprintf.sh: New file.
2575
2576 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2577
2578         argp: better 'inline'
2579         Use extern-inline module to declare extern inline functions.
2580         This avoids some bogus warning diagnostics.  Problem discovered
2581         when modifying GNU tar to use the manywarnings module.
2582         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2583         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2584         Define based on extern-inline.
2585         * modules/argp (Depends-on): Add extern-inline.
2586
2587 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2588
2589         filemode, sys_stat: Handle MPX files a la AIX.
2590         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2591         * lib/sys_stat.in.h (S_ISMPX): New macro.
2592         * tests/test-sys_stat.c: Add tests for MPX files.
2593
2594 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2595
2596         x-to-1: honor $PERL
2597         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2598         a chance to use his preferred version of Perl.  This is typically
2599         required by Darwin users whose default /usr/bin/perl does not have all
2600         the libraries required by help2man, and who need to use their MacPorts
2601         installation of Perl instead.
2602
2603 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2604
2605         gnu-web-doc-update: add all the new files, even in new directories
2606         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2607         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2608         Use it.
2609         (main): Don't use cvsutils to get the list of unknown files,
2610         just add all the existing files and directories.
2611
2612 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2613
2614         gnu-web-doc-update: improve --help
2615         * build-aux/gnu-web-doc-update: Move comments into --help.
2616
2617 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2618
2619         mountlist: recognize more "dummy" file systems
2620         * lib/mountlist.c (ME_DUMMY_0):
2621         Add these dummy FS names to the list:
2622         - "debugfs" virtual filesystem for kernel debugging
2623         - "devpts" PTY slave filesystem
2624         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2625         - "fusectl" control filesystem for FUSE
2626         - "mqueue" enumerates POSIX message queues
2627         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2628         - "sysfs" is for exporting kernel objects
2629         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2630
2631 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2632
2633         extern-inline: avoid incompatibility with Darwin Libc
2634         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2635         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2636         Problem reported by Akim Demaille in
2637         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2638
2639 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2640
2641         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2642         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2643         let it handle password prompting.
2644
2645 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2646
2647         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2648         * lib/canonicalize.c (canonicalize_filename_mode):
2649         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2650         fetching the current directory.  Don't overrun the beginning of
2651         rpath if there's no slashes after the MS-Windows drive letter.
2652
2653 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2654
2655         maint.mk: avoid extra forks
2656         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2657         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2658         So use that instead of "$(shell test -f FILE && echo FILE)".
2659
2660 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2661
2662         vasnprintf: fix ASCII_ONLY typo
2663         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2664         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2665         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2666         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2667         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2668
2669 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2670
2671         list, oset, xlist, xoset: fix extern inline issue with C99
2672         This was introduced by my recent changes for 'inline'.
2673         Problem reported for gettext by Daiki Ueno in
2674         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2675         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2676         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2677         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2678         (gl_list_previous_node, gl_list_get_at)
2679         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2680         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2681         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2682         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2683         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2684         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2685         (gl_list_iterator_free, gl_sortedlist_search)
2686         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2687         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2688         (gl_sortedlist_remove):
2689         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2690         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2691         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2692         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2693         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2694         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2695         (gl_list_add_at, gl_sortedlist_add):
2696         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2697         Wrap these extern decls inside "#if 0", because they are implemented
2698         as inline functions, and extern inline is not what's wanted here.
2699         It would simplify these .h files to remove the extern decls entirely,
2700         although a downside would be less-clear separation between
2701         specification and implementation.
2702
2703 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2704
2705         sys_stat: no 'static inline'
2706         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2707         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2708
2709         extern-inline: no 'static inline'
2710         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2711         Do not require AC_C_INLINE.
2712         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2713         'static inline', for older compilers.
2714
2715         snippet/warn-on-use: no 'static inline'
2716         * build-aux/snippet/warn-on-use.h:
2717         Remove unnecessary 'inline' in comment.
2718
2719         rbtree-list, rbtreehash-list: no 'static inline'
2720         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2721         * lib/gl_anytree_list2.h (node_at):
2722         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2723         (gl_oset_first, add_nodes_to_buckets):
2724         Now static, not static inline.
2725
2726         regex: no 'static inline'
2727         * lib/regex_internal.c (calc_state_hash):
2728         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2729         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2730         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2731         Now static, not static inline.
2732         (inline) [__GNUC__ < 3 && _LIBC]:
2733         Remove macro; no longer needed.
2734
2735         xvasprintf: no 'static inline'
2736         * lib/xvasprintf.c (xstrcat):
2737         Now static, not static inline.
2738         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2739         Do not require AC_C_INLINE.
2740
2741         parse-datetime, parse-duration: no 'static inline'
2742         * lib/parse-datetime.y (to_uchar):
2743         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2744         (scale_n_add):
2745         Now static, not static inline.
2746         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2747         * modules/parse-duration (configure.ac):
2748         Do not require AC_C_INLINE.
2749
2750         getaddrinfo: no 'static inline'
2751         * lib/getaddrinfo.c (validate_family):
2752         Now static, not static inline.
2753         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2754         Do not require AC_C_INLINE.
2755
2756         ftruncate, fts, lstat, openat, raise: no 'static inline'
2757         * lib/ftruncate.c (chsize_nothrow):
2758         * lib/fts.c (opendirat, diropen):
2759         * lib/lstat.c (orig_lstat):
2760         * lib/openat.c (orig_openat):
2761         * lib/raise.c (raise_nothrow):
2762         Now static, not static inline.
2763         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2764         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2765         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2766         * m4/openat.m4 (gl_PREREQ_OPENAT):
2767         * m4/raise.m4 (gl_PREREQ_RAISE):
2768         Do not require AC_C_INLINE.
2769
2770         fflush, stat: no 'static inline'
2771         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2772         (clear_ungetc_buffer, disable_seek_optimization)
2773         (restore_seek_optimization, update_fpos_cache):
2774         * lib/stat.c (orig_stat):
2775         Now static, not static inline.
2776         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2777         (update_fpos_cache):
2778         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2779         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2780         * m4/stat.m4 (gl_PREREQ_STAT):
2781         Do not require AC_C_INLINE.
2782
2783         error, filevercmp: no 'static inline'
2784         * lib/error.c (is_open, flush_stdout):
2785         * lib/filevercmp.c (order):
2786         Now static, not static inline.
2787         * m4/error.m4 (gl_PREREQ_ERROR):
2788         * modules/filevercmp (configure.ac):
2789         Do not require AC_C_INLINE.
2790
2791         dup, execute, fatal-signal, etc.: no 'static inline'
2792         * lib/dup.c (dup_nothrow):
2793         * lib/execute.c (nonintr_close, nonintr_open):
2794         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2795         * lib/fopen.c (orig_fopen):
2796         * lib/freadseek.c (freadptrinc):
2797         * lib/freopen.c (orig_freopen):
2798         * lib/fstat.c (orig_fstat, fstat_nothrow):
2799         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2800         (get_rusage_as_via_iterator):
2801         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2802         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2803         * lib/isatty.c (_isatty_nothrow):
2804         * lib/open.c (orig_open):
2805         * lib/read.c (read_nothrow):
2806         * lib/sigprocmask.c (signal_nothrow):
2807         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2808         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2809         * lib/wait-process.c (unregister_slave_subprocess):
2810         * lib/write.c (write_nothrow):
2811         Now static, not static inline.
2812         * lib/spawn-pipe.c (nonintr_open): Define only if
2813         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2814         * m4/dup.m4 (gl_PREREQ_DUP):
2815         * m4/execute.m4 (gl_EXECUTE):
2816         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2817         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2818         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2819         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2820         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2821         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2822         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2823         * m4/open.m4 (gl_PREREQ_OPEN):
2824         * m4/read.m4 (gl_PREREQ_READ):
2825         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2826         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2828         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2829         * m4/write.m4 (gl_PREREQ_WRITE):
2830         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2831         Do not require AC_C_INLINE.
2832
2833         c-strtod, memcoll, readutmp: no 'static inline'
2834         * lib/c-strtod.c (c_locale):
2835         * lib/memcoll.c (strcoll_loop):
2836         * lib/readutmp.c (desirable_utmp_entry):
2837         Now static, not static inline.
2838         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2839         * m4/memcoll.m4 (gl_MEMCOLL):
2840         * m4/readutmp.m4 (gl_READUTMP):
2841         Do not require AC_C_INLINE.
2842
2843         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2844         * lib/arctwo.c (to_uchar):
2845         * lib/md4.c (set_uint32):
2846         * lib/md5.c (set_uint32):
2847         * lib/sha1.c (set_uint32):
2848         * lib/sha256.c (set_uint32):
2849         * lib/sha512.c (set_uint64):
2850         Now static, not static inline.  This is a bit simpler, and doesn't
2851         affect performance with GCC and default optimization.
2852         * m4/arctwo.m4 (gl_ARCTWO):
2853         * m4/md4.m4 (gl_MD4):
2854         * m4/md5.m4 (gl_MD5):
2855         * m4/sha1.m4 (gl_SHA1):
2856         * m4/sha256.m4 (gl_SHA256):
2857         * m4/sha512.m4 (gl_SHA512):
2858         Do not require AC_C_INLINE.
2859
2860         cond, lock, thread: better 'inline'
2861         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2862         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2863         New macros.  Use them instead of static inline, for header functions.
2864         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2865         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2866         * lib/glthread/lock.c (gl_waitqueue_init)
2867         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2868         * lib/glthread/thread.c (get_current_thread_handle):
2869         Change 'static inline' to 'inline'.
2870         * lib/glthread/cond.h, lib/glthread/thread.h:
2871         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2872         * m4/cond.m4 (gl_COND):
2873         * m4/lock.m4 (gl_PREREQ_LOCK):
2874         * m4/thread.m4 (gl_THREAD):
2875         Do not require AC_C_INLINE.
2876         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2877
2878         chdir-long, cycle-check, savewd: better 'inline'
2879         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2880         (find_non_slash):
2881         * lib/cycle-check.c (is_zero_or_power_of_two):
2882         * lib/savewd.c (savewd_delegating):
2883         Change 'static inline' to 'inline'.
2884         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2885         Replace all remaining uses of 'static inline' with it.
2886         * lib/savewd.h:
2887         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2888         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2889         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2890         * m4/savewd.m4 (gl_SAVEWD):
2891         Do not require AC_C_INLINE.
2892         * modules/savewd (Depends-on): Add extern-inline.
2893
2894         base32, base64: no need for 'inline'
2895         * lib/base32.c (to_uchar, get_8, decode_8):
2896         * lib/base64.c (to_uchar, get_4, decode_4):
2897         Change 'static inline' to 'inline'.
2898         * m4/base32.m4 (gl_PREREQ_BASE32):
2899         * m4/base64.m4 (gl_PREREQ_BASE64):
2900         Do not require AC_C_INLINE.
2901
2902         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2903         * lib/gl_array_oset.c (gl_array_nx_add_at):
2904         (gl_array_remove_at):
2905         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2906         (add_to_bucket, remove_from_bucket):
2907         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2908         Change 'static inline' to 'static', as it's simpler to omit
2909         'inline' unless there's a significant performance advantage.
2910
2911         list, oset, xlist, xoset, xsublist: simplify via extern inline
2912         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2913         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2914         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2915         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2916         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2917         New macro.  Replace all uses of 'static inline' with it.
2918         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2919         instead of as macros FOO that are defined to static inline
2920         functions FOO_inline.
2921         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2922         * lib/gl_xsublist.c:
2923         Reimplement from scratch, by defining the corresponding *_INLINE
2924         macro and including the corresponding .h file.  This is simpler.
2925         * modules/list, modules/oset, modules/xlist, modules/xoset:
2926         (Files): Remove m4/gl_list.m4.
2927         (configure.ac): Remove gl_LIST.
2928         * m4/gl_list.m4: Remove.
2929         * modules/list, modules/oset, modules/xlist, modules/xoset:
2930         * modules/xsublist:
2931         (Depends-on): Depend on extern-inline, not inline.
2932
2933         xalloc: better 'inline'
2934         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2935         New macro.  Replace all uses of 'static inline' with it.
2936         (static_inline): Remove.
2937         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2938         Let 'extern inline' do the work automatically, instead of doing
2939         it by hand.
2940         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2941         Remove.  All uses removed.
2942         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2943
2944         gethrxtime: better 'inline'
2945         * lib/xtime.c: New file.
2946         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2947         * lib/xtime.h (XTIME_INCLUDE):
2948         New macros.  Replace all uses of 'static inline' with them.
2949         * lib/gethrxtime.c (gethrxtime): Define only if
2950         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2951         this source file is now always compiled, because of the extern inline.
2952         * lib/gethrxtime.h, lib/xtime.h:
2953         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2954         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2955         if gethrtime works, as they're not needed in that case.
2956         (gl_XTIME): Do not require AC_C_INLINE.
2957         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2958         compiled now.  Move the check into gl_GETHRXTIME.
2959         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2960         (Depends-on): Add extern-inline.
2961         (configure.ac): gethrxtime is always compiled now.
2962         (lib_SOURCES): Add gethrxtime.c.
2963
2964         wctype-h: better 'inline'
2965         * lib/wctype-h.c: New file.
2966         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2967         New macro.  Replace all uses of 'static inline' with it.
2968         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2969         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2970         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2971         (Depends-on): Add extern-inline.
2972
2973         unistd: better 'inline'
2974         * lib/unistd.c: New file.
2975         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2976         New macro.  Replace all uses of 'static inline' with it.
2977         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2978         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2979         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2980         (Depends-on): Add extern-inline.
2981
2982         sys_socket: better 'inline'
2983         * lib/sys_socket.c: New file.
2984         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2985         New macro.  Replace all uses of 'static inline' with it.
2986         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2987         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2988         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2989         (Depends-on): Add extern-inline.
2990
2991         stdio: better 'inline'
2992         * lib/stdio.c: New file.
2993         * lib/stdio.in.h (_GL_STDIO_INLINE):
2994         New macro.  Replace all uses of 'static inline' with it.
2995         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2996         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2997         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2998         (Depends-on): Add extern-inline.
2999
3000         sigaction: better 'inline'
3001         * lib/sig-handler.c: New file.
3002         * lib/sig-handler.h (SIG_HANDLER_INLINE):
3003         New macro.  Replace all uses of 'static inline' with it.
3004         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3005         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
3006         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
3007         (Depends-on): Add extern-inline.
3008
3009         selinux-h: better 'inline'
3010         * lib/se-context.c, lib/se-selinux.c: New files.
3011         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
3012         * lib/se-context.in.h (SE_CONTEXT_INLINE):
3013         New macro.  Replace all uses of 'static inline' with it.
3014         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3015         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
3016         New macro.  Replace all uses of 'static inline' with it.
3017         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3018         * modules/selinux-h (Files, lib_SOURCES):
3019         Add lib/se-context.c, lib/se-selinux.c.
3020         (Depends-on): Add extern-inline.
3021         (configure.ac): Do not require AC_C_INLINE.
3022
3023         pthread: better 'inline'
3024         * lib/pthread.c: New file.
3025         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
3026         New macro.  Replace all uses of 'static inline' with it.
3027         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3028         * m4/pthread.m4 (gl_PTHREAD_CHECK):
3029         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
3030         * modules/pthread (Files): Add lib/pthread.c.
3031         (Depends-on): Add extern-inline.
3032
3033         math: better 'inline'
3034         * lib/math.c: New file.
3035         * lib/math.in.h (_GL_MATH_INLINE):
3036         New macro.  Replace all uses of 'static inline' with it.
3037         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3038         * m4/math_h.m4 (gl_MATH_H):
3039         Do not require AC_C_INLINE.
3040         * modules/math (Files, lib_SOURCES):
3041         Add lib/math.c.
3042         (Depends-on): Add extern-inline.
3043
3044         count-one-bits: better 'inline'
3045         * lib/count-one-bits.c: New file.
3046         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
3047         New macro.  Replace all uses of 'static inline' with it.
3048         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3049         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
3050         Do not require AC_C_INLINE.
3051         * modules/count-one-bits (Files, lib_SOURCES):
3052         Add lib/count-one-bits.c.
3053         (Depends-on): Add extern-inline.
3054
3055         count-leading-zeros: better 'inline'
3056         * lib/count-leading-zeros.c: New file.
3057         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
3058         New macro.  Replace all uses of 'static inline' with it.
3059         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3060         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
3061         Do not require AC_C_INLINE.
3062         * modules/count-leading-zeros (Files, lib_SOURCES):
3063         Add lib/count-leading-zeros.c.
3064         (Depends-on): Add extern-inline.
3065
3066         bitrotate: better 'inline'
3067         * lib/bitrotate.c: New file.
3068         * lib/bitrotate.h (BITROTATE_INLINE):
3069         New macros.
3070         Replace all uses of 'static inline' with them.
3071         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3072         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
3073         (Depends-on): Add extern-inline.
3074         (configure.ac): Do not require AC_C_INLINE.
3075
3076 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
3077
3078         maint.mk: avoid gratuitous failure
3079         Reported by Stefano Lattarini in
3080         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
3081         * top/maint.mk (public-submodule-commit): Quote more safely.
3082
3083 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
3084
3085         canonicalize, canonicalize-lgpl: support MS-Windows file names
3086         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
3087         for test cases, which it'd be nice to add at some point.
3088         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
3089         * lib/canonicalize.c (canonicalize_filename_mode):
3090         * lib/canonicalize-lgpl.c (__realpath):
3091         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
3092         slash is at the beginning of the file name.  Use ISSLASH, instead
3093         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
3094         the first character with '/'.  Test for
3095         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
3096         with a drive letter.
3097         * lib/canonicalize.c (SLASHES): New macro.
3098         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
3099
3100 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
3101
3102         fts: introduce FTS_VERBATIM
3103         * lib/fts_.h (FTS_VERBATIM): New bit flag.
3104         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
3105         * lib/fts.c (fts_open): Honor it.
3106
3107 2012-11-09  Pádraig Brady  <P@draigBrady.com>
3108
3109         getlogin-tests: allow errno == ENXIO
3110         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3111         with errno == ENXIO (No controlling tty).
3112         getlogin_r-tests: Likewise. Also allow errno == ENOENT
3113         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
3114         with errno == ENOENT.  This was reported to happen in various
3115         situations on GNU/Linux.
3116
3117 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3118
3119         getlogin-tests: allow errno == ENOENT
3120         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3121         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
3122         when running a test in an Emacs shell buffer.
3123
3124 2012-11-08  Jim Meyering  <jim@meyering.net>
3125
3126         tests/nap.h: avoid warning about unused variable
3127         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
3128
3129         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
3130         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
3131         white space before each of the special-cased file names, to avoid
3132         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
3133         in http://bugs.gnu.org/12830.
3134
3135 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3136
3137         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
3138         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
3139         fails with errno == EBADF when fd is opened with O_PATH.
3140         Reported by Jim Meyering in
3141         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
3142         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3143         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
3144
3145 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3146
3147         test-utimens: speed up by taking shorter naps
3148         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
3149         New functions.
3150         (nap): Use them, to do a better job of guessing the delay.
3151         On Fedora 17 with ext4 atop md atop hard disks, this made
3152         test-utimens run 10x faster, because the test napped for
3153         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
3154         <http://bugs.gnu.org/12820#11>.
3155
3156 2012-11-07  Jim Meyering  <jim@meyering.net>
3157
3158         mountlist.c: fix a compilation failure
3159         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
3160         I introduced while transforming commit v0.0-7683-g613bcb6
3161
3162 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3163
3164         errno: port to LynxOS 178 2.2.2
3165         Problem reported by Joel Brobecker in
3166         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
3167         * doc/posix-headers/errno.texi (errno.h): Document this.
3168         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
3169         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
3170         Supply a string for EILSEQ.
3171         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
3172
3173 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3174
3175         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
3176         Linux kernel 2.6.39 introduced O_PATH (see
3177         <http://lwn.net/Articles/433854/>) and this is a better fallback
3178         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
3179         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3180         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
3181         * lib/fcntl.in.h (O_ACCMODE):
3182         * tests/test-fcntl-h.c (main):
3183         Do not reject O_ACCMODE merely because it has more than the
3184         minimal number of bits, as POSIX allows extensions here.
3185
3186 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
3187
3188         mountlist: do not classify a bind-mounted dir entry as "dummy"
3189         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
3190         the "none"-testing clause.
3191         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
3192         exception for bind-mounted directories.
3193
3194 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
3195
3196         quote: provide a means to escape strings with nul characters
3197         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
3198         (quote, quote_n): Rename formal arguments for consistency with
3199         quotearg.
3200
3201 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3202
3203         test-raise: don't assume 199 is an invalid signal
3204         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3205
3206         sh-quote-tests: port to Solaris 9
3207         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3208         Problem reported by Dagobert Michelsen in
3209         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3210
3211 2012-10-28  Jim Meyering  <jim@meyering.net>
3212
3213         maint.mk: rename a new configurable variable
3214         * top/maint.mk (_gl_translatable_string_re): Rename from
3215         translation-markers: _gl_ prefix to insulate from user Makefile code,
3216         and the _re suffix to inform that it's a regular expression.
3217
3218 2012-10-26  Eric Blake  <eblake@redhat.com>
3219
3220         maint.mk: let packages tweak sc_po_check pattern
3221         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3222         finding files with other translation markers.
3223
3224 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3225
3226         euidaccess: speed up 'configure' on GNU hosts
3227         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3228         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3229         it's needed only in this case.  Use AC_CHECK_DECLS, not
3230         AC_CHECK_DECLS_ONCE.
3231         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3232         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3233
3234         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3235
3236 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3237
3238         fchmodat, fchownat, fstatat: port to non-inlining compilers
3239         Problem reported for FreeBSD 9 by Jim Meyering in
3240         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3241         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3242         New files, which define FCHMODAT_INLINE etc.
3243         * lib/fchmodat.c (FCHMODAT_INLINE):
3244         * lib/fchownat.c (FCHOWNAT_INLINE):
3245         * lib/fstatat.c (FSTATAT_INLINE):
3246         Remove, as chmodat.c etc. now do this.
3247         * modules/fchmodat (Files): Add lib/chmodat.c.
3248         * modules/fchownat (Files): Add lib/chownat.c.
3249         * modules/fstatat (Files): Add lib/statat.c.
3250
3251 2012-10-15  Jim Meyering  <jim@meyering.net>
3252
3253         fchmodat.c, fchownat.c: compile-impeding typos
3254         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3255         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3256         Introduced in commit v0.0-7636-gd202279.
3257
3258 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3259
3260         fcntl-h: support GNU flags like O_IGNORE_CTTY
3261         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3262         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3263         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3264         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3265         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3266         Define to 0 if not already defined.
3267         * tests/test-fcntl-h.c: Test these new flags.
3268
3269 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3270
3271         faccessat, etc.: support AT_FDCWD-only use
3272         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3273         this function only if its first argument is AT_FDCWD.
3274         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3275         values other than AT_FDCWD, so it doesn't want all the openat
3276         machinery with fchdir etc.
3277         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3278         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3279         * modules/unlinkat (Files):
3280         Remove lib/openat-priv.h, as at-internal supplies this file.
3281         Removing this file here allows us to support programs like Emacs
3282         that avoid at-internal.
3283
3284         faccessat: speed up 'configure' on mainstream hosts
3285         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3286         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3287         since it's only on unusual platforms that we need to check for
3288         'access', and it's better not to slow 'configure' down on all
3289         platforms.
3290
3291         faccessat: port to Solaris 10
3292         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3293         Needed on Solaris 10, which doesn't have AT_EACCESS,
3294         so we need the Gnulib fcntl.h, which defines it.
3295
3296 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3297         canonicalize: fix C89 compilation
3298         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3299         declarations so C89 is supported.  Also remove the comment
3300         referencing memorty allocation as the suggested feature could
3301         not be implemented as suggested.
3302         Reported by Michael Goffioul.
3303
3304 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3305
3306         group-member: omit unnecessary dependencies
3307         This is for Emacs, which has its own allocator and where we
3308         don't want to use xalloc.
3309         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3310         since we no longer use xmalloc.  Do not include stdbool.h, since
3311         the changes below happen to remove the only use of bool.
3312         (GROUPBUF_SIZE): New constant.
3313         (struct group_info): Remove n_groups member.  Add groupbuf member.
3314         This lets us get the groups without using malloc, usually.
3315         (free_group_info, get_group_info): Adjust to this.
3316         (get_group_info): Return the number of groups found, or -1 on error.
3317         Use plain malloc not xmalloc, and treat its failure as if there
3318         are no groups, as the user already loses in case of error.
3319         (group_member): Simplify, based on changes to get_group_info.
3320         * modules/group-member (Depends-on): Remove dependencies on
3321         xalloc and stdbool.  Add dependency on xalloc-oversized.
3322
3323 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3324
3325         gethrxtime: port to C++
3326         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3327
3328 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3329
3330         ptsname: fix macro-name typo
3331         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3332
3333 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3334
3335         inttostr: Relax license.
3336         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3337
3338 2012-10-03  Eric Blake  <eblake@redhat.com>
3339
3340         ptsname_r: support ptys returned by FreeBSD posix_openpt
3341         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3342         lives in /dev/pts/.
3343
3344 2012-10-02  Eric Blake  <eblake@redhat.com>
3345
3346         pselect: reject invalid file descriptors
3347         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3348         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3349         * modules/pselect (Depends-on): Add dup2.
3350         * doc/posix-functions/pselect.texi (pselect): Document this.
3351
3352         select: reject invalid file descriptors
3353         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3354         * lib/select.c (rpl_select) [!win32]: Work around it.
3355         * modules/select (Depends-on): Add dup2.
3356         * doc/posix-functions/select.texi (select): Document this.
3357
3358         select: enhance test
3359         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3360         New functions.
3361         (test_function): Enhance test.
3362         (do_select_bad_fd): Avoid any stale errno values.
3363
3364         ptsname: reject invalid file descriptors
3365         http://www.austingroupbugs.net/view.php?id=503
3366         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3368         * modules/stdlib (Makefile.am): Replace witness.
3369         * lib/stdlib.in.h (ptsname): Allow for replacement.
3370         * modules/ptsname (configure.ac): Trigger replacement.
3371         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3372
3373 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3374
3375         hash-pjw-bare: new module
3376         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3377         * lib/hash-pjw-bare.h: Likewise.
3378         * modules/hash-pjw-bare: New file.
3379         * MODULES.html.sh (Misc): Add it.
3380
3381 2012-10-02  Eric Blake  <eblake@redhat.com>
3382
3383         manywarnings: cater to more gcc infelicities
3384         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3385         -Wuninitialized without -O.
3386
3387 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3388
3389         select, poll tests: Make setsockopt invocation effective.
3390         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3391         the bind() call.
3392         * tests/test-select.h (open_server_socket): Likewise.
3393
3394 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3395
3396         sockets, sys_stat: restore AC_C_INLINE
3397         This undoes the 2012-09-22 patch.
3398         * m4/sockets.m4 (gl_SOCKETS):
3399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3400         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3401         and does not support plain 'inline'.  Reported by Bruno Haible in
3402         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3403
3404 2012-09-30  Bruno Haible  <bruno@clisp.org>
3405
3406         localeconv tests: Avoid test failure on OpenIndiana.
3407         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3408         skip the 'grouping' and 'mon_grouping' tests.
3409         Reported by Jim Meyering.
3410
3411 2012-09-30  Bruno Haible  <bruno@clisp.org>
3412
3413         havelib: Follow libtool developments.
3414         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3415         Suggested by Simon Josefsson.
3416
3417 2012-09-29  Jim Meyering  <meyering@redhat.com>
3418
3419         fstatat.c: fix a compile-impeding typo
3420         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3421         Introduced in commit v0.0-7636-gd202279.
3422         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3423
3424 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3425
3426         extern-inline: provide a -Wundef safe config.h
3427         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3428         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3429         to produce a -Wundef warning free config.h.
3430
3431 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3432
3433         hash-pjw: relax license to LGPLv2+
3434         * modules/hash-pjw (License): Relax, with consent of author.
3435
3436 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3437
3438         maint.mk: fix strict vs. lazy variable issues with RELEASE
3439         * top/maint.mk (_equal): New function.
3440         (member_check): Strip the result to avoid spurious spaces.
3441         (url_dir_list): Do not use ifeq, which is strict, as it will
3442         require RELEASE_TYPE to be defined.
3443         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3444         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3445         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3446         (announcement_Cc_beta,announcement_mail_headers_beta)
3447         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3448         (release): Do not depend on $(release-type), as it forces its
3449         evaluation.  Bounce to it.
3450
3451 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3452
3453         maint.mk: formatting changes
3454         * top/maint.mk: Indent bodies of if's.
3455
3456 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3457
3458         maint.mk: factor the validation of RELEASE_TYPE
3459         With help from Jim Meyering.
3460         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3461         * top/maint.mk (_empty, _sp): Move their definition earlier.
3462         (member-check, release-type): New.
3463         Use the latter instead of $(RELEASE_TYPE).
3464         Remove now useless local checks.
3465
3466 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3467
3468         maint.mk: provide "make upload" to ease uploading
3469         See
3470         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3471         Do not depend simply on the current $(VERSION), as there may have been
3472         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3473         as "make release-commit" already does.
3474
3475         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3476         "make TYPE".
3477
3478         * top/maint.mk (upload_command, upload, release): New.
3479         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3480         (VERSION): first word of $(RELEASE) is always right.
3481         (emit_upload_commands): Adjust.
3482         * top/README-release: Update.
3483
3484 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3485
3486         maint.mk: silent rules
3487         With help from Stefano Lattarini.
3488         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3489         (announcement): Use $(AM_V_at).
3490
3491 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3492
3493         localename: port gl_locale_name_thread_unsafe to FreeBSD
3494         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3495         and use the simpler FreeBSD implementation on Mac OS X as well.
3496         Original idea suggested by Ed Maste in
3497         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3498
3499 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3500
3501         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3502         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3503         * lib/mbuiter.c, lib/xsize.c: New files.
3504         * lib/binary-io.h (BINARY_IO_INLINE):
3505         * lib/eealloc.h (EEALLOC_INLINE):
3506         * lib/mbfile.h (MBFILE_INLINE):
3507         * lib/mbiter.h (MBITER_INLINE):
3508         * lib/mbuiter.h (MBUITER_INLINE):
3509         * lib/xsize.h (XSIZE_INLINE):
3510         New macros.
3511         Replace all uses of 'static inline' with them.
3512         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3513         * m4/eealloc.m4 (gl_EEALLOC):
3514         * m4/mbfile.m4 (gl_MBFILE):
3515         * m4/mbiter.m4 (gl_MBITER):
3516         * m4/xsize.m4 (gl_XSIZE):
3517         Do not require AC_C_INLINE.
3518         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3519         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3520         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3521         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3522         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3523         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3524         * modules/binary-io, modules/eealloc, modules/mbfile:
3525         * modules/mbiter, modules/mbuiter:
3526         (Depends-on): Add extern-inline.
3527
3528         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3529         * lib/pipe-filter-aux.c: New file.
3530         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3531         Replace all uses of 'static inline' with it.
3532         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3533         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3534         (filter_retcode): No real need for inline here.
3535         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3536         (Files): Add lib/pipe-filter-aux.c.
3537         (Depends-on): Add extern-inline.
3538         (configure.ac): Do not require AC_C_INLINE.
3539         (lib_SOURCES): Add pipe-filter-aux.c.
3540
3541         fdutimensat: omit unnecessary AC_C_INLINE
3542         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3543
3544         fchmodat, fchownat, fstatat: use extern-inline
3545         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3546         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3547         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3548         New macros.
3549         * lib/openat.h:
3550         Replace all uses of 'static inline' with them.
3551         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3552         * modules/fchmodat, modules/fchownat, modules/fstatat:
3553         * modules/openat-h:
3554         (Depends-on):
3555         Add extern-inline.
3556         (configure.ac): Remove AC_C_INLINE.
3557
3558         acl, mbchar, priv-set: use extern-inline
3559         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3560         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3561         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3562         New macros.
3563         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3564         Replace all uses of 'static inline' with it.
3565         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3566         * m4/acl.m4 (gl_FUNC_ACL):
3567         * m4/mbchar.m4 (gl_MBCHAR):
3568         * m4/priv-set.m4 (gl_PRIV_SET):
3569         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3570         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3571         Add extern-inline.
3572
3573         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3574         * m4/sockets.m4 (gl_SOCKETS):
3575         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3576         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3577         environments where it's already guaranteed to work, so we needn't
3578         check for it at 'configure'-time.
3579
3580         tls-tests: omit unnecessary 'inline'
3581         * tests/test-tls.c (perhaps_yield): No longer inline.
3582         Simplicity and portability trump efficiency in test cases.
3583
3584         utimens-tests: avoid unnecessary 'inline'
3585         * modules/fdutimensat-tests (configure.ac):
3586         * modules/futimens-tests (configure.ac):
3587         * modules/utimens-tests (configure.ac):
3588         * modules/utimensat-tests (configure.ac):
3589         Remove AC_C_INLINE.
3590         * tests/test-utimens-common.h (ctime_compare):
3591         No longer inline.  Simplicity and portability trump efficiency here.
3592
3593         misc: don't limit commentary to inline functions
3594         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3595         * lib/xalloc-oversized.h, lib/xsize.h:
3596         Contrast macros to functions in general, not just to inline functions,
3597         when the commentary does not apply only to inline functions.
3598
3599 2012-09-20  Jim Meyering  <meyering@redhat.com>
3600
3601         non-recursive-gnulib-prefix-hack: new module
3602         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3603         the file that originated in Bison.
3604         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3605         largely copied from a snippet that resided in bison's configure.ac.
3606         * modules/non-recursive-gnulib-prefix-hack: New file.
3607         * MODULES.html.sh (Support for maintaining and releasing projects):
3608         Add it.
3609
3610 2012-09-18  Jim Meyering  <meyering@redhat.com>
3611
3612         maint.mk: generalize _gl_tight_scope for non-recursive make
3613         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3614         that *.h would describe additional .h files in the directory
3615         specified by $(_gl_TS_dir).  I.e., add this...
3616         (_gl_TS_other_headers): New variable.
3617
3618         maint.mk: exempt trailing blanks found in "binary" files
3619         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3620         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3621         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3622
3623 2012-09-17  Jim Meyering  <meyering@redhat.com>
3624
3625         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3626         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3627         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3628         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3629
3630 2012-09-17  Jim Meyering  <meyering@redhat.com>
3631
3632         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3633         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3634         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3635         It is not in the same category as "exit (0)" or "exit (1)", and
3636         besides, I know of no symbolic name for that 77.  Reported by
3637         Richard W.M. Jones in
3638         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3639
3640 2012-09-17  Jim Meyering  <meyering@redhat.com>
3641
3642         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3643         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3644         all uses of #define, not just those that start in column 1.
3645         Richard W.M. Jones reported a false positive in
3646         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3647
3648 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3649
3650         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3651         * lib/localcharset.c (locale_charset) [DARWIN7]:
3652         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3653         as these two values are incompatible.  Problem reported by Max Horn.
3654         For more discussion, please see
3655         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3656
3657         doc: document sticky-EOF issue
3658         * doc/posix-functions/fgetc.texi (fgetc):
3659         * doc/posix-functions/fgets.texi (fgets):
3660         * doc/posix-functions/fread.texi (fread):
3661         * doc/posix-functions/fscanf.texi (fscanf):
3662         * doc/posix-functions/getc.texi (getc):
3663         * doc/posix-functions/getchar.texi (getchar):
3664         * doc/posix-functions/scanf.texi (scanf):
3665         Mention that glibc and default Solaris do not conform to
3666         C99 and POSIX-2001 or later, with respect to how getchar
3667         etc. behave when feof reports nonzero.
3668
3669 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3670
3671         poll: fix poll(0, NULL, msec)
3672         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3673         but nfd is 0.  In that case poll should behave like select.
3674
3675 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3676             Paolo Bonzini <bonzini@gnu.org>
3677
3678         poll: fix for systems that can't recv() on a non-socket
3679         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3680         is readable.  In this case POLLHUP will not be supported.
3681         * doc/posix-functions/poll.texi: Document this.
3682
3683 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3684
3685         poll/select: document portability problems not fixed by Gnulib.
3686         * doc/posix-functions/poll.texi: poll does not work well on
3687         pipes under Windows.  It has the same limitations as select on
3688         BeOS.
3689         * doc/posix-functions/select.texi: select does not work well
3690         on pipes under Windows.
3691
3692 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3695         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3696         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3697         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3698
3699 2012-09-06  Eric Blake  <eblake@redhat.com>
3700
3701         net_if: give more details about the bug being fixed
3702         * doc/posix-headers/net_if.texi: Add clarification.
3703
3704 2012-09-05  Eric Blake  <eblake@redhat.com>
3705
3706         net_if: new module
3707         * modules/net_if: New module, borrowing ideas from netinet_in.
3708         * m4/net_if_h.m4: New file.
3709         * lib/net_if.in.h: Likewise.
3710         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3711         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3712         * tests/test-net_if.c: Make function checks conditional.
3713         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3714
3715 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3716
3717         readutmp: fix non-portable UT_PID use
3718         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3719         Use `UT_PID (u) > 0' as absolute condition.
3720
3721 2012-09-04  Jim Meyering  <meyering@redhat.com>
3722
3723         fts: reduce two or more trailing spaces to just one, usually
3724         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3725         or more slashes, trim all but the final one.  But if a name consists
3726         solely of two slashes, don't modify it.  If it consists solely of
3727         three or more slashes, strip all but one.
3728
3729         This is part of the solution to a minor problem with rm:
3730         it would print a bogus ELOOP diagnostic when failing to remove
3731         the slash-decorated name of a symlink-to-directory:
3732
3733             $ mkdir d && ln -s d s && env rm -r s/
3734             rm: cannot remove 's': Too many levels of symbolic links
3735
3736         With the change below and a trivial don't-trim-trailing-slashes
3737         adjustment to remove.c, it does this:
3738
3739             $ env rm -r s/
3740             rm: cannot remove 's/': Not a directory
3741
3742         Improved by: Eric Blake
3743
3744         fts: when there is no risk of overlap, use memcpy, not memmove
3745         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3746
3747 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3748
3749         stdbool: be more compatible with mixed C/C++ compiles
3750         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3751         Define to bool, true, false, respectively, as GCC's builtin
3752         stdbool.h does.  Problem reported by Michael Goffioul in
3753         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3754
3755 2012-08-28  Jim Meyering  <meyering@redhat.com>
3756
3757         revert last change: it was not needed
3758         * tests/test-vc-list-files-git.sh: There's already a test for
3759         a working git, just below.
3760
3761 2012-08-28  Jim Meyering  <meyering@redhat.com>
3762
3763         tests: test-vc-list-files-git.sh: skip if git is not available
3764         * tests/test-vc-list-files-git.sh: Skip this test when git is
3765         not available.
3766
3767 2012-08-26  Bruno Haible  <bruno@clisp.org>
3768
3769         gnulib-tool: Remove no-op option --no-changelog.
3770         * gnulib-tool (func_usage): Don't mention --no-changelog.
3771         (do_changelog): Remove variable.
3772         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3773
3774 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3775
3776         doc: remove fdl-1.2.texi
3777         It is no longer used or maintained, and its use of @acronym
3778         is problematic.  See the thread containing
3779         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3780         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3781         * doc/old-licenses/fdl-1.2.texi: Remove.
3782
3783         execinfo: port to FreeBSD
3784         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3785         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3786         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3787         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3788
3789 2012-08-23  Jim Meyering  <meyering@redhat.com>
3790
3791         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3792         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3793         to placate gcc's -Wold-style-declaration.
3794
3795 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3796
3797         doc: do not use @acronym
3798         * doc/inet_ntoa.texi (inet_ntoa):
3799         * doc/parse-datetime.texi (Seconds since the Epoch)
3800         (Specifying time zone rules):
3801         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3802         Don't use @acronym.  Problem reported by John Darlington in
3803         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3804
3805 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3806
3807         stdnoreturn: port to newer GCCs
3808         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3809         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3810         Problem reported by Jim Meyering in
3811         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3812         Also, rename the 'test' function to a void a clash with the
3813         already-supplied 'main' function; this fixes a bug that incorrectly
3814         rejected GCC 4.7.1's <stdnoreturn.h>.
3815         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3816         Document GCC problem.
3817
3818 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3819
3820         pipe-filter: fix comment typo
3821         * lib/pipe-filter.h: Mention correct function.
3822
3823 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3824
3825         execinfo: new module
3826         This is for Emacs.  Currently, it provides a no-effect stub
3827         on all platforms where it does not already work.
3828         It already works on glibc-based systems, and on Solaris 11.
3829         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3830         New files.
3831         * doc/glibc-headers/execinfo.texi (execinfo.h):
3832         * MODULES.html.sh (Misc): Document it.
3833
3834 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3835
3836         extern-inline: support old GCC 'inline'
3837         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3838         if available.  This applies to GCC versions 2.7 through 4.2, or
3839         when newer GCC is using -fgnu89-inline.  The goal is to address
3840         some of the performance issues mentioned by Bruno Haible in
3841         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3842
3843 2012-08-20  Eric Blake  <eblake@redhat.com>
3844
3845         maint.mk: avoid redundant file name in message
3846         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3847         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3848         (sc_makefile_path_separator_check): Remove bogus $(ME).
3849
3850 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3851
3852         timer-time: fix link order when static linking on glibc
3853         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3854         _after_ -lrt so that it's significant.
3855
3856 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3857
3858         timespec: omit unnecessary AC_C_INLINE
3859         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3860
3861         stat-time: omit unnecessary AC_C_INLINE
3862         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3863         Do not require AC_C_INLINE.
3864
3865         ignore-value: omit unnecessary AC_C_INLINE
3866         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3867
3868         sys_select: avoid 'static inline'
3869         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3870
3871         mktime: avoid 'static inline'
3872         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3873         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3874
3875 2012-08-19  Bruno Haible  <bruno@clisp.org>
3876
3877         gnulib-tool: Improve coding style.
3878         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3879         func_emit_lib_Makefile_am.
3880         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3881
3882 2012-08-19  Bruno Haible  <bruno@clisp.org>
3883
3884         gnulib-tool: Fix indentation.
3885         * gnulib-tool (func_import): Fix indentation.
3886
3887 2012-08-19  Bruno Haible  <bruno@clisp.org>
3888
3889         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3890         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3891         on the list of removed files.
3892
3893 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3894
3895         test-parse-datetime: avoid glibc leap-second glitch
3896         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3897         with the 2012 rules.  Problem reported by Bruce Dubbs in
3898         <http://bugs.gnu.org/12206>.
3899
3900 2012-08-14  Bruno Haible  <bruno@clisp.org>
3901
3902         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3903         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3904         from argument.
3905         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3906
3907 2012-08-14  Eric Blake  <eblake@redhat.com>
3908
3909         ldexp: relax license
3910         * modules/ldexp (License): Trivial relax, since the module only
3911         provides a permissively licensed m4 file.
3912
3913 2012-08-13  Bruno Haible  <bruno@clisp.org>
3914
3915         gnulib-tool: Fix persistence of --witness-c-macro option.
3916         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3917         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3918
3919 2012-08-11  Eric Blake  <eblake@redhat.com>
3920
3921         count-leading-zeros: use a lookup table on non-gcc compilers
3922         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3923         alternate implementation, suggested by Jim Meyering.
3924
3925 2012-08-10  Eric Blake  <eblake@redhat.com>
3926
3927         count-leading-zeros: new module
3928         * modules/count-leading-zeros: New module.
3929         * m4/count-leading-zeros.m4: New file.
3930         * lib/count-leading-zeros.h: Likewise.
3931         * modules/count-leading-zeros-tests: New test.
3932         * tests/test-count-leading-zeros.c: New file.
3933         * MODULES.html.sh (Integer arithmetic functions): Document it.
3934
3935 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3936             Jim Meyering  <meyering@redhat.com>
3937
3938         maintainer-makefile: Fix syntax error with dash.
3939         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3940         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3941
3942 2012-08-05  Jim Meyering  <meyering@redhat.com>
3943
3944         extern-inline: also ignore -Wmissing-declarations
3945         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3946         required with gcc-4.8.0-to-be.
3947
3948         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3949         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3950         for /error ?([^,]*)/.  This avoids false-positives for strings like
3951         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3952
3953 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3954
3955         gnumakefile: better interaction with Automake-NG
3956         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3957         Automake-NG always contain a definition of VPATH, even in non-VPATH
3958         builds (its value being simply '.' in that case).  So, in the
3959         'clean-GNUmakefile' rule, to determine whether running under a
3960         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3961         '$(VPATH)' expands to the empty string.
3962
3963 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3964
3965         base64: Use extern C scope in header file, for C++.
3966         * lib/base64.h: Add C++ namespace protection.
3967
3968 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3969
3970         stat-time, timespec, u64: support naive out-of-dir builds
3971         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3972         Use '#include "foo.h"', not '#include <foo.h>', when including
3973         one's own interface.  This works better when configuring with
3974         out-of-directory builds, since packages need not add an
3975         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3976
3977 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3978
3979         utimens: use extern-inline
3980         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3981         * lib/utimens.h: Add copyright notice, since this is now large enough
3982         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3983         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3984         * modules/utimens (Depends-on): Add extern-inline.
3985
3986         u64: use extern-inline
3987         * lib/u64.c: New file.
3988         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3989         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3990         * modules/u64 (Files): Add lib/u64.c.
3991         (Depends-on): Add extern-inline.
3992         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3993         does that now.
3994         (lib_SOURCES): Add u64.c.
3995
3996         timespec: use extern-inline
3997         * lib/timespec.c: New file.
3998         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3999         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
4000         * modules/timespec (Files): Add lib/timespec.c.
4001         (Depends-on): Add extern-inline.
4002         (lib_SOURCES): Add timespec.c.
4003
4004         stat-time: use extern-inline
4005         * lib/stat-time.c: New file.
4006         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4007         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
4008         * modules/stat-time (Files): Add lib/stat-time.c.
4009         (Depends-on): Add extern-inline.
4010         (lib_SOURCES): Add stat-time.c.
4011
4012         extern-inline: new module
4013         * modules/extern-inline, m4/extern-inline.m4: New files.
4014         This is for better support of 'extern inline' a la ISO C99,
4015         with a portable alternative on compilers that do not support
4016         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
4017         of the Emacs executable, when compiled with debugging disabled,
4018         which is a typical way that Emacs is built while developing.
4019
4020 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
4021
4022         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
4023         * build-aux/do-release-commit-and-tag: Move variable definitions
4024         together.
4025         ($branch): Instead of defaulting to "master", default to the current
4026         branch (as gnu-web-doc-update does).
4027         (help): Display the current values of the option arguments.
4028         * top/maint.mk (release-commit): New.
4029         * top/README-release: Simplify the corresponding step.
4030
4031 2012-07-30  Eric Blake  <eblake@redhat.com>
4032
4033         passfd: fix comment on recvfd
4034         * lib/passfd.c (recvfd): Fix comment.
4035         Reported by Jann Horn <jannhorn@googlemail.com>.
4036
4037 2012-07-30  Jim Meyering  <meyering@redhat.com>
4038
4039         maint.mk: avoid a sub-shell
4040         * top/maint.mk (release-prep): Remove unneeded sub-shell.
4041
4042 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4043
4044         maint.mk: use silent-rules support from Automake
4045         * top/maint.mk (news-check, vc-diff-check, announcement)
4046         (no-submodule-changes, alpha beta stable, release-prep)
4047         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
4048
4049 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4050
4051         maint.mk: provide a web-manual-update target
4052         * top/maint.mk: here.
4053         * top/README-release: Use it to simplify the web manual update step.
4054
4055 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4056
4057         README-release: shorten the circuit to post a news
4058         * top/README-release: Point directly to the news submission form.
4059
4060 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4061
4062         gnu-web-doc-update: fix --help
4063         * build-aux/gnu-web-doc-update: The information "top level" was written
4064         twice.
4065
4066 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4067
4068         maint.mk: absolute VPATH issue
4069         * top/maint.mk (release-prep): Help Git find .git/.
4070         From Jim Meyering.
4071
4072 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4073
4074         gitlog-to-changelog: fix previous change
4075         * build-aux/gitlog-to-changelog: Fix condition.
4076         Add missing ";".
4077
4078 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4079
4080         gitlog-to-changelog: don't expect .git to be in $srcdir
4081         Reported by Bruno Haible.
4082         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
4083         * build-aux/gitlog-to-changelog (&git_dir_option): New.
4084         Use it.
4085
4086 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4087
4088         maint.mk: absolute VPATH build fix
4089         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
4090         $(srcdir) is not a parent of $(builddir).
4091
4092 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
4093
4094         clean-temp: Fix memory leak.
4095         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
4096         'files' members of tmpdir.
4097
4098 2012-07-27  Jim Meyering  <meyering@redhat.com>
4099
4100         maint.mk: new rule: refresh-gnulib-patches
4101         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
4102         Use this rule to refresh them.
4103         * top/maint.mk (refresh-gnulib-patches): New rule.
4104
4105 2012-07-24  Bruno Haible  <bruno@clisp.org>
4106
4107         gnulib-tool: Fix handling of inctests variable.
4108         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
4109         Reported by Nick Bowler <nbowler@elliptictech.com>.
4110
4111 2012-07-22  Bruno Haible  <bruno@clisp.org>
4112
4113         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
4114         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
4115         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4116         Remove exemption for getpass.h.
4117         Suggested by Eric Blake.
4118
4119 2012-07-20  Eric Blake  <eblake@redhat.com>
4120
4121         verify: document conflict with -Wnested-externs
4122         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
4123
4124         maint.mk: forbid exit(-1)
4125         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
4126
4127 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4128
4129         fsusage: port back to Solaris
4130         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
4131         error (fsd not declared) on Solaris 10.  Reported privately by
4132         Andrew Borodin.
4133
4134 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
4135
4136         gnu-web-doc-update: fix error messages
4137         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
4138
4139         gnu-web-doc-update: check the requirements.
4140         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
4141         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
4142         * build-aux/bootstrap (find_tool): Comment change.
4143
4144 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
4145
4146         maint.mk: minor simplication.
4147         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
4148         for default values.
4149
4150 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
4151
4152         gitlog-to-changelog: VPATH build issues
4153         If builddir is not a subdirectory of srcdir, running git from it will
4154         fail.
4155         * build-aux/gitlog-to-changelog (--srcdir): New option.
4156
4157 2012-07-15  Bruno Haible  <bruno@clisp.org>
4158
4159         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4160         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
4161         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
4162         Remove exemption for fpending.h.
4163         Suggested by Eric Blake.
4164
4165 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4166
4167         pthread_sigmask: fix bug on FreeBSD 9
4168         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
4169         Include string.h.
4170         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
4171         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
4172         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
4173         but pthread_sigmask (1729, NULL, NULL) returns zero.
4174         See <http://bugs.gnu.org/11884>.
4175         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
4176         by inspecting whether the main call changed the old mask.
4177
4178 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
4179
4180         README-release: make it more legible
4181         * top/README-release: Improve typography slightly.
4182
4183 2012-07-15  Jim Meyering  <meyering@redhat.com>
4184
4185         maint: require that each sc_... command start with "@"
4186         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
4187         "make sc_maint" helps us avoid this nit.
4188
4189 2012-07-15  Jim Meyering  <meyering@redhat.com>
4190
4191         maint.mk: add leading "@" to quiet new "make syntax-check" rule
4192         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
4193
4194 2012-07-13  Eric Blake  <eblake@redhat.com>
4195
4196         maint.mk: new syntax check for HAVE_DECL checks
4197         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
4198         * cfg.mk
4199         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4200         Exempt some false positives.
4201         Based on a report by Karel Zak.
4202
4203         argp: make HAVE_DECL usage consistent
4204         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4205         macros, not whether they are defined.
4206         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4207         convention with other declaration checks.
4208         Reported by Karel Zak, with suggestions from Paul Eggert.
4209
4210         stat-time: relax license to LGPLv2+
4211         * modules/stat-time (License): Relax, with consent of all authors.
4212
4213         strndup: fix m4 usage error
4214         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4215         defined, to either 0 or 1.
4216         Reported by Karel Zak.
4217
4218 2012-07-11  Jim Meyering  <meyering@redhat.com>
4219
4220         maint: enable the sc_avoid_if_before_free syntax-check rule
4221         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4222         (if_before_free_offenders_): Define.
4223         (if_before_free_basename_re_): Define.
4224         Exempt current files with useless if-before-free.
4225
4226 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4227
4228         gettext: do not assume '#define ... defined ...' behavior
4229         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4230         Do not use '#define FOO ... defined BAR ...', as the C standard says
4231         it's not portable to expect that this works after macro expansion.
4232         Problem reported for gzip by Steven M. Schweda in
4233         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4234
4235 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4236
4237         getloadavg: clean out old Emacs and Autoconf cruft
4238         See Glenn Morris in <http://bugs.gnu.org/11905>.
4239         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4240         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4241         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4242         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4243
4244 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4245
4246         bootstrap: let warn be like tests/init.sh's warn_
4247         Reported by Jim Meyering.
4248         * build-aux/bootstrap (warn): Remove, replaced by...
4249         (warnf_, warn_): these.
4250         Adjust callers.
4251         Shorten messages that no longer fit in 80 columns.
4252
4253 2012-07-09  Bruno Haible  <bruno@clisp.org>
4254
4255         getopt: Simplify after Emacs changed.
4256         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4257         (gl_GETOPT_IFELSE): Remove macro.
4258
4259 2012-07-09  Jim Meyering  <meyering@redhat.com>
4260
4261         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4262         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4263
4264         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4265         Bugs in both of those conspired to make the
4266         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4267         _sc_search_regexp's handling of non-empty $in_files would filter
4268         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4269         choice of in_files value meant there would be no match in most
4270         projects, due to the presence of two or more Makefile.in files.
4271         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4272         Fix a bug in how a non-empty $$in_files was processed:
4273         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4274         in spite of the name, it's a regexp, not a list of file names.
4275
4276 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4277
4278         getloadavg, getopt: fix commentary re configure.in
4279         Autoconf is deprecating the name 'configure.in', so change it to
4280         to the new name 'configure.ac' in a couple of places.
4281         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4282         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4283         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4284         Emacs has renamed it to configure.ac, and it no longer refers
4285         to these macros anyway.
4286
4287         timespec: mark functions with const attributes
4288         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4289         Mark with _GL_ATTRIBUTE_CONST.
4290
4291 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4292
4293         canonicalize[-lgpl]: handle "guessing" values when cross-building
4294         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4295         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4296         matches "*yes" instead of just "yes".  Regression introduced in commit
4297         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4298
4299 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4300             Bruno Haible  <bruno@clisp.org>
4301
4302         canonicalize: make the right guess when cross-compiling to GNU
4303         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4304         determine whether cross-compiling to glibc systems, so as to
4305         include GNU/Hurd.
4306
4307 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4308
4309         timespec-sub: avoid duplicate include
4310         * lib/timespec-sub.c: Do not include <config.h> twice.
4311         Reported by Juanma Barranquero.
4312
4313 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4314
4315         bootstrap: use a more consistent error reporting scheme
4316         * build-aux/bootstrap (warn, die): New.
4317         Use them.
4318
4319 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4320
4321         sys_time: allow too-wide tv_sec
4322         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4323         timeval even if tv_sec is wider than time_t.  This allows
4324         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4325         as without this patch gnulib replaces struct timeval
4326         and OpenBSD futimes therefore has a type mismatch.
4327         * doc/posix-headers/sys_time.texi: Mention this.
4328
4329         pthread: check for both pthread_create and pthread_join
4330         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4331         alter the check so that it tests for both pthread_create and
4332         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4333         Suggested by Bruno Haible and Richard Yao in
4334         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4335
4336         parse-datetime: doc tuneup
4337         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4338         spacing issues.
4339
4340 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4341
4342         do-release-commit-and-tag: fix the previous commit
4343         * build-aux/do-release-commit-and-tag: Actually the test was right,
4344         but the comment and the error message were misleading.
4345         Fix comment, and improve error message.
4346         Perform check first, so that NEWS is not modified uselessly.
4347
4348         do-release-commit-and-tag: fix typo
4349         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4350         _not_ start with a stub.
4351
4352 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4353
4354         pthread: check for pthread_create, not pthread_join
4355         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4356         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4357         pthread_join in libc.  I hope this removes the need for all the
4358         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4359         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4360
4361 2012-07-04  Jim Meyering  <meyering@redhat.com>
4362
4363         parse-datetime: fix failure to diagnose invalid input
4364         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4365         rather than diagnosing the invalid input.  Now it reports this:
4366         date: invalid date '\260'
4367         * lib/parse-datetime.y (to_uchar): Define.
4368         (yylex): Don't sign-extend "other" bytes.
4369         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4370         Thanks to Bruno Haible for the patch to this file.
4371         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4372         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4373
4374 2012-07-03  Jim Meyering  <meyering@redhat.com>
4375
4376         bootstrap: do not require now-removed build-aux/missing
4377         Now that build-aux/missing is, er, missing, bootstrap would
4378         silently fail.
4379         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4380         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4381         no longer part of gnulib.
4382         Diagnose the failure.
4383
4384 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4385
4386         alloca: add support for HP NonStop TNS/E native
4387         * lib/alloca.in.h (alloca): Support the new host.
4388         From a suggestion by Joachim Schmitz in
4389         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4390
4391 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4392
4393         fsusage: remove code not needed on non GNU/Linux systems.
4394
4395         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4396         Don't include headers no longer needed in this case.
4397         * lib/fsusage.c [STAT_STATVFS &&
4398         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4399         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4400
4401 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4402
4403         fsusage: include files needed for glibc 2.6 fallback
4404         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4405         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4406         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4407         Problem reported by Ludovic Courtès in
4408         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4409
4410         fsusage: avoid needless check on GNU/Linux
4411         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4412         on GNU/Linux systems, since it can't possibly work.
4413
4414 2012-07-01  Bruno Haible  <bruno@clisp.org>
4415
4416         log: Fix an autoconf >= 2.64 warning.
4417         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4418         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4419
4420 2012-06-28  Bruno Haible  <bruno@clisp.org>
4421
4422         log10f: Fix possible configuration problem.
4423         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4424         $LOGF_LIBM.
4425         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4426
4427 2012-06-28  Bruno Haible  <bruno@clisp.org>
4428
4429         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4430         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4431         not gl_cv_func_unlink_works.
4432         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4433
4434 2012-06-27  Eric Blake  <eblake@redhat.com>
4435
4436         config: drop scripts that automake says are not independent
4437         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4438         * build-aux/elisp-comp: Delete.
4439         * build-aux/missing: Likewise.
4440         * build-aux/ylwrap: Likewise.
4441         * modules/elisp-comp: Likewise.
4442         * MODULES.html.sh: Drop mention of elisp-comp.
4443         * NEWS: Mention this.
4444
4445 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4446
4447         root-uid: new module
4448         This is for portability to Tandem's NonStop Kernel.
4449         * lib/root-uid.h, modules/root-uid: New files.
4450         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4451         * lib/write-any-file.c, tests/test-sethostname2.c:
4452         Include "root-uid.h".
4453         * lib/euidaccess.c (euidaccess):
4454         * lib/pt_chown.c (main):
4455         * lib/unlinkdir.c (cannot_unlink_dir):
4456         * lib/write-any-file.c (can_write_any_file):
4457         * m4/mknod.m4 (gl_FUNC_MKNOD):
4458         * tests/test-sethostname2.c (geteuid, main):
4459         Don't assume ROOT_UID == 0.
4460         * modules/euidaccess (Depends-on):
4461         * modules/pt_chown (Depends-on):
4462         * modules/sethostname-tests (Depends-on):
4463         * modules/unlinkdir (Depends-on):
4464         * modules/write-any-file (Depends-on):
4465         Add root-uid.
4466
4467         regex: use locale-independent comparison for codeset name
4468         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4469         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4470         for codeset name.
4471         * lib/regex_internal.h: Do not include <strings.h>, since we
4472         no longer use strcasecmp.
4473         * modules/regex (Depends-on): Remove strcase.
4474
4475 2012-06-23  Bruno Haible  <bruno@clisp.org>
4476
4477         getopt-posix: No longer guarantee that option processing is resettable.
4478         * doc/posix-functions/getopt.texi: Drop description of problem with
4479         internal state. Fix info about mingw and msvc9.
4480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4481         option processing by getopt(). Run three test programs instead of one.
4482         Simplify cross-compilation guess.
4483         * NEWS: Mention the change.
4484         Reported by Rich Felker <dalias@aerifal.cx>.
4485
4486 2012-06-26  Bruno Haible  <bruno@clisp.org>
4487
4488         argp, regex: Ensure strcasecmp gets declared.
4489         * lib/argp-help.c: Include <strings.h>.
4490         * lib/regex_internal.h: Likewise.
4491         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4492
4493 2012-06-24  Bruno Haible  <bruno@clisp.org>
4494
4495         ptsname_r: Make it consistent with ptsname on AIX.
4496         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4497         implementation as for OSF/1.
4498         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4499         a pty master.
4500
4501         ptsname_r: Make it consistent with ptsname on OSF/1.
4502         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4503         OSF/1.
4504
4505 2012-06-24  Bruno Haible  <bruno@clisp.org>
4506
4507         ttyname_r: Fix result on OSF/1, Solaris.
4508         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4509
4510 2012-06-24  Bruno Haible  <bruno@clisp.org>
4511
4512         ptsname_r: Add support for Solaris.
4513         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4514         Solaris.
4515
4516         ptsname_r: Fix test failure on native Windows.
4517         * modules/ptsname_r (Depends-on): Add isatty.
4518
4519         ptsname_r: Fix test failures on IRIX, Solaris.
4520         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4521         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4522         accordingly.
4523         * lib/ptsname_r.c: Include <fcntl.h>.
4524         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4525         set errno if fd is invalid.
4526         * tests/test-isatty.c (main): Update comments.
4527
4528 2012-06-24  Bruno Haible  <bruno@clisp.org>
4529
4530         ptsname test: Extend test.
4531         * tests/test-ptsname.c: Include <errno.h>.
4532         (main): Test behaviour with invalid file descriptor.
4533
4534 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4535
4536         time: fix obsolete comment
4537         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4538         reference to HAVE_STRUCT_TIMESPEC in comment.
4539
4540 2012-06-23  Bruno Haible  <bruno@clisp.org>
4541
4542         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4544         does not handle abbreviated long options with equivalent
4545         disambiguations, set gl_replace_getopt to yes.
4546         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4547
4548 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4549
4550         time_r: fix typo that always overrode localtime_r decl
4551         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4552         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4553         not in a standard include.
4554
4555 2012-06-22  Bruno Haible  <bruno@clisp.org>
4556
4557         Write "Mac OS X" instead of "MacOS X".
4558         * README: Write "Mac OS X" instead of "MacOS X".
4559         * build-aux/bootstrap: Likewise.
4560         * build-aux/install-reloc: Likewise.
4561         * lib/acl-internal.h: Likewise.
4562         * lib/acl_entries.c: Likewise.
4563         * lib/argp-ba.c: Likewise.
4564         * lib/argp-pv.c: Likewise.
4565         * lib/config.charset: Likewise.
4566         * lib/copy-acl.c: Likewise.
4567         * lib/csharpexec.c: Likewise.
4568         * lib/euidaccess.c: Likewise.
4569         * lib/fbufmode.c: Likewise.
4570         * lib/fflush.c: Likewise.
4571         * lib/file-has-acl.c: Likewise.
4572         * lib/filemode.h: Likewise.
4573         * lib/fpurge.c: Likewise.
4574         * lib/freadable.c: Likewise.
4575         * lib/freadahead.c: Likewise.
4576         * lib/freading.c: Likewise.
4577         * lib/freadptr.c: Likewise.
4578         * lib/freadseek.c: Likewise.
4579         * lib/fseeko.c: Likewise.
4580         * lib/fseterr.c: Likewise.
4581         * lib/fsusage.c: Likewise.
4582         * lib/fwritable.c: Likewise.
4583         * lib/fwriting.c: Likewise.
4584         * lib/get-rusage-as.c: Likewise.
4585         * lib/get-rusage-data.c: Likewise.
4586         * lib/getdomainname.c: Likewise.
4587         * lib/idpriv-drop.c: Likewise.
4588         * lib/idpriv-droptemp.c: Likewise.
4589         * lib/localcharset.c: Likewise.
4590         * lib/locale.in.h: Likewise.
4591         * lib/localename.c: Likewise.
4592         * lib/mbsrtowcs-state.c: Likewise.
4593         * lib/nproc.c: Likewise.
4594         * lib/passfd.c: Likewise.
4595         * lib/posix_openpt.c: Likewise.
4596         * lib/printf-parse.c: Likewise.
4597         * lib/progreloc.c: Likewise.
4598         * lib/safe-read.h: Likewise.
4599         * lib/safe-write.h: Likewise.
4600         * lib/sched.in.h: Likewise.
4601         * lib/set-mode-acl.c: Likewise.
4602         * lib/signal.in.h: Likewise.
4603         * lib/stdint.in.h: Likewise.
4604         * lib/stdio-impl.h: Likewise.
4605         * lib/stdlib.in.h: Likewise.
4606         * lib/strtod.c: Likewise.
4607         * lib/sys_select.in.h: Likewise.
4608         * lib/tcgetsid.c: Likewise.
4609         * lib/unistd.in.h: Likewise.
4610         * lib/unlockpt.c: Likewise.
4611         * lib/vasnprintf.c: Likewise.
4612         * lib/vma-iter.c: Likewise.
4613         * lib/wcsrtombs-state.c: Likewise.
4614         * m4/acl.m4: Likewise.
4615         * m4/acosl.m4: Likewise.
4616         * m4/asinl.m4: Likewise.
4617         * m4/atanl.m4: Likewise.
4618         * m4/c-stack.m4: Likewise.
4619         * m4/cosl.m4: Likewise.
4620         * m4/expl.m4: Likewise.
4621         * m4/extensions.m4: Likewise.
4622         * m4/fdatasync.m4: Likewise.
4623         * m4/fmal.m4: Likewise.
4624         * m4/frexp.m4: Likewise.
4625         * m4/frexpf.m4: Likewise.
4626         * m4/frexpl.m4: Likewise.
4627         * m4/fsusage.m4: Likewise.
4628         * m4/getdomainname.m4: Likewise.
4629         * m4/getloadavg.m4: Likewise.
4630         * m4/getopt.m4: Likewise.
4631         * m4/gettext.m4: Likewise.
4632         * m4/gnulib-common.m4: Likewise.
4633         * m4/intdiv0.m4: Likewise.
4634         * m4/intlmacosx.m4: Likewise.
4635         * m4/largefile.m4: Likewise.
4636         * m4/ldexpl.m4: Likewise.
4637         * m4/link-follow.m4: Likewise.
4638         * m4/locale-ar.m4: Likewise.
4639         * m4/locale-fr.m4: Likewise.
4640         * m4/locale-ja.m4: Likewise.
4641         * m4/locale-tr.m4: Likewise.
4642         * m4/locale-zh.m4: Likewise.
4643         * m4/locale_h.m4: Likewise.
4644         * m4/lock.m4: Likewise.
4645         * m4/logl.m4: Likewise.
4646         * m4/mathfunc.m4: Likewise.
4647         * m4/minus-zero.m4: Likewise.
4648         * m4/mktime.m4: Likewise.
4649         * m4/mmap-anon.m4: Likewise.
4650         * m4/multiarch.m4: Likewise.
4651         * m4/nanosleep.m4: Likewise.
4652         * m4/nocrash.m4: Likewise.
4653         * m4/poll.m4: Likewise.
4654         * m4/printf-frexpl.m4: Likewise.
4655         * m4/printf.m4: Likewise.
4656         * m4/signbit.m4: Likewise.
4657         * m4/sinl.m4: Likewise.
4658         * m4/sqrtl.m4: Likewise.
4659         * m4/strerror_r.m4: Likewise.
4660         * m4/tanl.m4: Likewise.
4661         * m4/threadlib.m4: Likewise.
4662         * m4/ttyname_r.m4: Likewise.
4663         * m4/unlink.m4: Likewise.
4664         * m4/visibility.m4: Likewise.
4665         * m4/wcwidth.m4: Likewise.
4666         * tests/minus-zero.h: Likewise.
4667         * tests/test-alloca-opt.c: Likewise.
4668         * tests/test-copy-acl.sh: Likewise.
4669         * tests/test-copy-file.sh: Likewise.
4670         * tests/test-fdatasync.c: Likewise.
4671         * tests/test-file-has-acl.sh: Likewise.
4672         * tests/test-flock.c: Likewise.
4673         * tests/test-fsync.c: Likewise.
4674         * tests/test-localename.c: Likewise.
4675         * tests/test-malloca.c: Likewise.
4676         * tests/test-nonblocking-pipe.h: Likewise.
4677         * tests/test-nonblocking-socket.h: Likewise.
4678         * tests/test-openpty.c: Likewise.
4679         * tests/test-posix_openpt.c: Likewise.
4680         * tests/test-ptsname.c: Likewise.
4681         * tests/test-ptsname_r.c: Likewise.
4682         * tests/test-sameacls.c: Likewise.
4683         * tests/test-select.h: Likewise.
4684         * tests/test-set-mode-acl.sh: Likewise.
4685         * tests/test-snprintf-posix.h: Likewise.
4686         * tests/test-sprintf-posix.h: Likewise.
4687         * tests/test-strtod.c: Likewise.
4688         * tests/test-time.c: Likewise.
4689         * tests/test-vasnprintf-posix.c: Likewise.
4690         * tests/test-vasprintf-posix.c: Likewise.
4691         * doc/acl-resources.txt: Likewise.
4692         * doc/**/*.texi: Likewise.
4693         Reported by Max Horn <max@quendi.de>.
4694
4695 2012-06-22  Bruno Haible  <bruno@clisp.org>
4696
4697         grantpt: Relax requirement regarding invalid file descriptors.
4698         * lib/grantpt.c: Don't include <fcntl.h>.
4699         (grantpt): Don't verify the validity of the file descriptor.
4700         * modules/grantpt (Depends-on): Remove fcntl-h.
4701         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4702         file descriptors.
4703         * doc/posix-functions/grantpt.texi: Document more platforms on which
4704         grantpt succeeds for invalid file descriptors.
4705         Reported by Rich Felker <dalias@aerifal.cx>.
4706
4707 2012-06-22  Bruno Haible  <bruno@clisp.org>
4708
4709         fbufmode test: Don't test unportable behaviour.
4710         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4711         (main): Invoke it three times.
4712         Reported by Szabolcs Nagy <nsz@port70.net>
4713         and Rich Felker <dalias@aerifal.cx>.
4714
4715 2012-06-21  Bruno Haible  <bruno@clisp.org>
4716
4717         gnulib-tool: Refactor inctests variable.
4718         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4719         (func_modules_transitive_closure,
4720         func_modules_transitive_closure_separately,
4721         func_import, func_create_testdir): Update.
4722
4723         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4724         * gnulib-tool: Accept option --without-tests.
4725         (func_usage): Document --without-tests option. Rearrange.
4726         (inctests): Normalize according to the mode.
4727         * NEWS: Mention the change.
4728         Suggested by Simon Josefsson.
4729
4730 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4731
4732         parse-duration test: Avoid spurious output.
4733         * tests/test-parse-duration.sh: Reindent with leading tabs.
4734
4735 2012-06-21  Jim Meyering  <meyering@redhat.com>
4736
4737         maint: disable the strncpy prohibition
4738         * cfg.mk: Do not prohibit strncpy here.
4739
4740 2012-06-21  Bruno Haible  <bruno@clisp.org>
4741
4742         nonblocking: Avoid compilation error on mingw64.
4743         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4744         fscanf.
4745         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4746         * modules/vfscanf (configure.ac): Likewise.
4747         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4748         definition only if stdio.h has prepared it.
4749         Reported by Daniel P. Berrange <berrange@redhat.com>.
4750
4751 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4752
4753         gnulib-tool: Use readlink if it is available.
4754         * gnulib-tool (func_readlink): Choose function more appropriately.
4755
4756 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4757
4758         posixtm-tests: port to buggy compiler
4759         Problem reported by Simon Josefsson in
4760         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4761         * modules/posixtm-tests (Depends-on): Add stdint.
4762         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4763         Now of type int_least64_t, not int64_t, both because that's
4764         what INT64_C returns and because int_least64_t works even
4765         on 72-bit hosts.
4766         (T): Use INT64_C on constants outside the traditional int range,
4767         to work around compiler bug noted by Simon.
4768
4769         mktime: fix integer overflow in 'configure'-time test
4770         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4771         after integer overflow.  Problem reported by Rich Felker in
4772         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4773         Also, don't look for further instances of a bug if we've already
4774         found one instance; this helps 'configure' run faster.
4775
4776 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4777
4778         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4779         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4780         GetVersionEx correctly.
4781         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4782
4783 2012-06-20  Bruno Haible  <bruno@clisp.org>
4784
4785         fdopen: Allow implementations that don't reject invalid fd arguments.
4786         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4787         succeeds.
4788         Reported by Rich Felker <dalias@aerifal.cx>.
4789
4790 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4791
4792         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4793         bring in LIBINTL.
4794
4795 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4796
4797         init.sh: do not rely on autoupated PWD
4798         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4799         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4800         Although Nelson's bug was not necessarily fixed by this patch,
4801         it seems wise to make the change for safety.
4802         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4803         automagically after 'cd'; this is not reliable on older shells.
4804         (setup_): Fail if we cannot cd to temporary directory.
4805
4806 2012-06-19  Bruno Haible  <bruno@clisp.org>
4807
4808         stat, fstat: Avoid warnings on mingw64.
4809         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4810         redefining.
4811         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4812         Reported by Daniel P. Berrange <berrange@redhat.com>.
4813
4814 2012-06-19  Bruno Haible  <bruno@clisp.org>
4815
4816         stdioext: Add support for musl libc.
4817
4818         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4819         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4820
4821         * m4/fseterr.m4: New file.
4822         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4823         function exists.
4824         * modules/fseterr (Files): Add m4/fseterr.m4.
4825         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4826         __fseterr does not exist.
4827         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4828
4829         * lib/freadable.h: Update comment.
4830
4831         * lib/fwritable.h: Update comment.
4832
4833         * lib/freading.h: Update comment.
4834
4835         * lib/fwriting.h: Update comment.
4836
4837         * m4/freadahead.m4: New file.
4838         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4839         that function exists.
4840         * modules/freadahead (Files): Add m4/freadahead.m4.
4841         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4842         __freadahead does not exist.
4843         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4844
4845         * m4/freadptr.m4: New file.
4846         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4847         function exists.
4848         * modules/freadptr (Files): Add m4/freadptr.m4.
4849         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4850         __freadptr does not exist.
4851         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4852
4853         * m4/freadseek.m4: New file.
4854         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4855         exists.
4856         * modules/freadseek (Files): Add m4/freadseek.m4.
4857         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4858
4859         * lib/fpurge.c (fpurge): Update comment.
4860
4861         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4862
4863 2012-06-19  Bruno Haible  <bruno@clisp.org>
4864
4865         *printf-posix: Put more info into config.log.
4866         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4867         exit code into config.log.
4868
4869 2012-06-19  Bruno Haible  <bruno@clisp.org>
4870
4871         getopt-gnu: Fix exit code overflow in autoconf test.
4872         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4873         to keep them below < 128.
4874
4875 2012-06-17  Jim Meyering  <meyering@redhat.com>
4876
4877         maint.mk: fix typo in code to derive GPG key at release time
4878         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4879
4880 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4881
4882         regex: avoid warning when pointers are not long
4883         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4884         and uintptr_t, not long, for portability to hosts where pointers and
4885         long have different sizes.  Issue noted by Daniel P. Berrange in
4886         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4887         and fix suggested by Bruno Haible in
4888         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4889
4890 2012-06-17  Bruno Haible  <bruno@clisp.org>
4891
4892         dummy: Relicense into the public domain.
4893         * modules/dummy (License): Set to "public domain".
4894         Suggested by Reuben Thomas.
4895
4896 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4897
4898         announce-gen: VPATH issues
4899         * build-aux/announce-gen (--srcdir): New option, used to trim the
4900         $srcdir part of the path from $builddir to NEWS.
4901         * top/maint.mk (announcement): Adjust.
4902
4903 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4904
4905         gnu-web-doc-update: VPATH builds
4906         * build-aux/gnu-web-doc-update (--builddir): New option.
4907         Revamp the handling of options.
4908         Prefer $(...) to `...`.
4909         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4910         the template, and it is GNU mktemp specific.
4911         Prefer set -e to long series of &&.
4912         Restore the initial git branch, not "master".
4913         Properly initialize submodules (don't rely only on bootstrap).
4914         Do not reconfigure blindly, use config.status.
4915         * top/README-release: Update instructions for gnu-web-doc-update.
4916
4917 2012-06-11  Jim Meyering  <meyering@redhat.com>
4918
4919         maint.mk: revert most of the previous change re "all these"
4920         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4921         For rationale, see the discussion at
4922         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4923
4924 2012-06-10  Karl Berry  <karl@gnu.org>
4925
4926         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4927
4928         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4929
4930 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4931
4932         parse-duration: Relicense under LGPLv2+.
4933         * modules/parse-duration (License): Change to LGPLv2+.
4934
4935 2012-06-10  Jim Meyering  <meyering@redhat.com>
4936
4937         maint.mk: prohibit common grammar error: "all these"
4938         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4939         the list of prohibited word sequences.  It should be "all of these".
4940         * lib/tempname.c (__gen_tempname): Fix one of them.
4941
4942 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4943
4944         do-release-commit-and-tag: support VPATH builds
4945         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4946         (noteworthy): Defined earlier to factor its value.
4947         (noteworthy_stub): New.
4948         Use it to factor.
4949         (help_version): Split into...
4950         (help, version): these.
4951         Adjust the option processing part.
4952         Support "--option=value" in addition to "--option value".
4953         (builddir): New.
4954         (--builddir): New option.
4955         * top/README-release: Document this.
4956         Reword slightly so that the reader cannot understand that he
4957         has to do these steps before calling do-release-commit-and-tag.
4958
4959 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4960
4961         readme-release: also require announce-gen and maintainer-makefile
4962         * modules/readme-release (Depends-on): here.
4963         * modules/announce-gen, modules/do-release-commit-and-tag,
4964         modules/gnu-web-doc-update, modules/maintainer-makefile
4965         (Description): Point to readme-release.
4966
4967 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4968
4969         maint.mk: fix VPATH issues.
4970         * top/maint.mk (news-check): GNU Make understand $< very well.
4971         (release-prep): NEWS is in $(srcdir).
4972
4973 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4974
4975         readme-release: require the promoted modules.
4976         * modules/readme-release (Depends-on): Add
4977         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4978         in this text.
4979
4980 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4981             Bruno Haible  <bruno@clisp.org>
4982
4983         error, strerror-override: Support mingw64 from Fedora 17.
4984         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4985         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4986         EINPROGRESS.
4987         * lib/strerror-override.h (strerror_override): Test it.
4988         * lib/strerror-override.c (strerror_override): Likewise.
4989         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4990
4991 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4992             Bruno Haible  <bruno@clisp.org>
4993
4994         error, strerror-override: Support mingw64 from Fedora 17.
4995         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4996         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4997         * lib/strerror-override.h (strerror_override): Test it.
4998         * lib/strerror-override.c (strerror_override): Likewise.
4999
5000 2012-06-03  Bruno Haible  <bruno@clisp.org>
5001
5002         error, strerror-override: Support new errno values from POSIX:2008.
5003         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
5004         ENOTRECOVERABLE.
5005         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
5006         platforms.
5007         * lib/strerror-override.c (strerror_override): Conditionalize the
5008         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
5009         * lib/strerror-override.h (strerror_override): Declare also if
5010         GNULIB_defined_EOWNERDEAD is defined.
5011         * tests/test-errno.c (e130, e131): New variables.
5012         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
5013         ENOTRECOVERABLE.
5014         Reported by Paolo Bonzini.
5015
5016 2012-05-31  Jim Meyering  <meyering@redhat.com>
5017
5018         savewd: add missing dependency on sys_wait module
5019         * modules/savewd (Depends-on): Add sys_wait, needed at least
5020         for MSVC.  Report and suggested change by Michael Goffioul.
5021
5022 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5023
5024         system-quote-tests: port to CentOS 5
5025         Problem reported by Tom G. Christensen in
5026         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
5027         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
5028
5029 2012-05-29  Jim Meyering  <meyering@redhat.com>
5030
5031         maint: fix typos in comments and ChangeLog
5032         Culprits identified and fixed mostly automatically using these commands:
5033         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
5034         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
5035         using http://github.com/lyda/misspell-check
5036         * ChangeLog: Fix typos.
5037         * doc/solaris-versions: Likewise.
5038         * lib/regexec.c (re_search_stub): Likewise.
5039         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5040
5041 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5042
5043         manywarnings: remove duplicate -Wmultichar entry
5044         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
5045         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
5046         so keep the entry marked as documented.
5047
5048 2012-05-27  Karl Berry  <karl@gnu.org>
5049
5050         * config/srclist.txt (mktime.c): remove last libc sync,
5051         perhaps just temporarily.
5052
5053 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5054
5055         regex: don't assume uint64_t or uint32_t
5056         * lib/regcomp.c (init_word_char): Don't assume that the types
5057         uint64_t and uint32_t exist.  The C standard doesn't guarantee
5058         them, and on some 32-bit compilers there is no uint64_t.
5059         Problem reported by Gianluigi Tiesi in
5060         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
5061
5062 2012-05-25  Jim Meyering  <meyering@redhat.com>
5063
5064         maint.mk: add strncpy-prohibiting syntax-check rule
5065         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
5066
5067 2012-05-24  Jim Meyering  <meyering@redhat.com>
5068
5069         maint.mk: compute $(gpg_key_ID) more portably
5070         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
5071         That use of sed is not portable to some fringe systems.
5072         Reported by Paul Eggert in
5073         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
5074
5075 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5076
5077         mktime: sync from glibc
5078         * config/srclist.txt: Uncomment mktime.c.
5079         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
5080         First, indent with tabs, since glibc uses tabs and doesn't want to
5081         change and we'd rather be identical to glibc.  Also, two small
5082         coding changes:
5083         (isdst_differ): Use &&, not &, as && is the usual style.
5084         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
5085         for clarity.
5086
5087 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5088
5089         announce-gen: du -h is more portable than du --human
5090         * build-aux/announce-gen (sizes): Invoke du with -h instead
5091         of --human.  Accept leading white space in its output.
5092
5093 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5094
5095         announce-gen: Improve diagnostics.
5096         * build-aux/announce-gen: When parsing command line options,
5097         prefer "announce-gen: option --release-type requires an argument"
5098         to "Option release-type requires an argument".
5099
5100 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5101
5102         maint.mk: gpg_key_ID: use sed more portably
5103         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
5104         the closing brace.
5105         (refresh-po): Fuse two sed invocations into one.
5106
5107 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
5108
5109         gitlog-to-changelog: support the log message format used in Bison.
5110         * build-aux/gitlog-to-changelog: Support --strip-tab and
5111         --strip-cherry-picked.
5112
5113 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5114
5115         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
5116         the rest of the current time slice to another thread in the current
5117         process. So if the thread that feeds the file decscriptor we're
5118         polling is not in the current process, we get busy-waiting.
5119         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
5120         Patch from Theodore Leblond.
5121         * lib/select.c: Split polling out of the loop that sets the output
5122         fd_sets.  Check for zero result and loop if the wait timeout is
5123         infinite.
5124
5125 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5126
5127         select: Fix build error on IRIX 6.5.
5128         * lib/select.c: Include stddef.h for NULL.
5129
5130 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5131
5132         gc: fix libgcrypt detection on older machines.
5133         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
5134         copyright years because the file has been distributed every year
5135         since it was created.
5136
5137 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5138
5139         crypto: fix bug in large buffer handling
5140         Problem reported by Serge Belyshev for glibc in
5141         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
5142         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
5143         * lib/md4.c (md4_process_block):
5144         * lib/md5.c (md5_process_block):
5145         * lib/sha1.c (sha1_process_block):
5146         * lib/sha256.c (sha256_process_block):
5147         Don't assume the buffer length is less than 2**32.
5148         * lib/sha512.c (sha512_process_block): Likewise.
5149         Here, the bug is present only in the rare case where the host does
5150         not support uint64_t or where size_t is wider than 64 bits.
5151         Use u64size to work around the problems.
5152         * lib/u64.h (u64size): New macro.
5153
5154 2012-05-15  Pádraig Brady  <P@draigBrady.com>
5155
5156         fsusage: fix block size returned on older Linux 2.6
5157
5158         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
5159         which is available since Linux 2.6.
5160         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
5161         when the member is available so it can be used as a fallback.
5162         * doc/posix-functions/statvfs.texi: Mention the hang issue
5163         on Linux < 2.6.36.
5164
5165 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5166
5167         bootstrap: suppress stderr chatter
5168         * build-aux/bootstrap (insert_sorted_if_absent, main program):
5169         Omit unnecessary chatter to stderr.  The main program chatter
5170         was there only inadvertantly.
5171
5172         bootstrap: .gitignore files created by autopoint, libtool
5173         I ran into this problem when bootstrapping the latest diffutils.
5174         After './bootstrap', 'git status' reported lots of untracked files
5175         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
5176         autopoint and do not need to be version-controlled.
5177         * build-aux/bootstrap: Put into .gitignore the files that
5178         autopoint and libtool create, by keeping track of files that exist
5179         after but not before these programs are run.
5180         (version_controlled_file): Move up.  2nd arg is now full file
5181         name, not base name; this is more convenient.  Put CVS at the end,
5182         as it's now somewhat deprecated.
5183
5184 2012-05-14  Jim Meyering  <meyering@redhat.com>
5185
5186         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
5187         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
5188         definition.  Reported by Bruno Haible.
5189
5190 2012-05-13  Bruno Haible  <bruno@clisp.org>
5191             Paul Eggert  <eggert@cs.ucla.edu>
5192
5193         binary-io: Define set_binary_mode function.
5194         * lib/binary-io.h (set_binary_mode): New function.
5195         (SET_BINARY): Define in terms of set_binary_mode.
5196         * modules/binary-io (configure.ac): Require AC_C_INLINE.
5197         * tests/test-binary-io.c (main): Accept an argument, and test either
5198         set_binary_mode or SET_BINARY depending on the argument.
5199         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
5200         argument. Clean up also t-bin-out0.tmp.
5201
5202 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5203
5204         bootstrap: take advantage of POSIX shell features
5205
5206         The 'bootstrap' script offered by Gnulib script already uses POSIX
5207         shell features (like $((...)) arithmetic expansions) that are not
5208         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5209         means that bootstrap must already be run using a proper POSIX shell,
5210         which will thus provide more features, like ${var#pattern} parameter
5211         expansion or inversion of a command exit status with '!'.  We can
5212         thus use these features to improve the clarity and the performances
5213         of the bootstrap script.
5214
5215         Suggested by Eric Blake.
5216
5217         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5218         of sed/expr plus command substitutions, to save some forks.  While
5219         we are at it, prefer the POSIX $(...) form of command substitution,
5220         rather than the legacy form `...` (since the former is visually
5221         clearer and interacts better with quoting), and prefer the idiom:
5222           "if ! CMD; then ACTION ..."
5223         over the idiom:
5224           "if CMD; then :; else ACTION ..."
5225         which was required by legacy Bourne shells not supporting '!'.
5226
5227 2012-05-12  Bruno Haible  <bruno@clisp.org>
5228
5229         system-quote: Add more comments.
5230         * lib/system-quote.h: Add more comments about wilcards and limitations.
5231         Suggested by Eli Zaretskii <eliz@gnu.org>.
5232
5233         sh-quote, system-quote: Add comments about wildcards.
5234         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5235         * lib/system-quote.h: Likewise.
5236         Reported by Eli Zaretskii <eliz@gnu.org>.
5237
5238 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5239
5240         fsusage: check for GNU/Linux statvfs problem dynamically
5241         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5242         Define STAT_STATFS2_BSIZE too, since in this case the code now
5243         checks dynamically whether statvfs is reliable, falling back on
5244         Linux-style statfs otherwise.
5245         (statvfs_works): New function, for dynamically testing statvfs.
5246         (get_fs_usage) [STAT_STATVFS]: Use it.
5247         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5248         statvfs on GNU/Linux hosts, since it's now done dynamically.
5249
5250 2012-05-10  Bruno Haible  <bruno@clisp.org>
5251
5252         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5253         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5254         '?' character.
5255         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5256         * tests/test-system-quote-main.c (check_all): Check also strings like
5257         "??????????".
5258         Reported by Eli Zaretskii <eliz@gnu.org>.
5259
5260 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5261
5262         _Noreturn: port config.h to gcc -Wundef
5263         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5264         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5265         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5266
5267 2012-05-10  Bruno Haible  <bruno@clisp.org>
5268
5269         system-quote: Refactor.
5270         * lib/system-quote.h (system_quote_copy): Fix comment.
5271         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5272         New functions, extracted from system_quote_copy.
5273         (system_quote_length, system_quote_copy): Use these functions.
5274         Reported by Paul Eggert.
5275
5276 2012-05-08  Bruno Haible  <bruno@clisp.org>
5277
5278         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5279         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5280
5281 2012-05-08  Bruno Haible  <bruno@clisp.org>
5282
5283         Tests for module 'system-quote'.
5284         * modules/system-quote-tests: New file.
5285         * tests/test-system-quote.sh: New file.
5286         * tests/test-system-quote-main.c: New file.
5287         * tests/test-system-quote-child.c: New file.
5288
5289         New module 'system-quote'.
5290         * lib/system-quote.h: New file.
5291         * lib/system-quote.c: New file.
5292         * modules/system-quote: New file.
5293
5294 2012-05-08  Bruno Haible  <bruno@clisp.org>
5295
5296         sh-quote: Make C++ safe and allow multiple inclusion.
5297         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5298         declarations in extern "C".
5299
5300 2012-05-08  Bruno Haible  <bruno@clisp.org>
5301
5302         sh-quote tests: Make tests stricter.
5303         * tests/test-sh-quote.c (check_one): Check the return value of
5304         shell_quote_copy.
5305         (main): Check a string with a CR character. Check a string that
5306         contains UCHAR_MAX.
5307
5308 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5309
5310         warnings.m4: provide a means to specify the program to compile.
5311         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5312         (gl_WARN_ADD): here.
5313         Use gl_AS_VAR_APPEND.
5314         Support an argument to specify the program to compile.
5315         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5316         AC_SUBST the WARN_CFLAGS when they are used.
5317         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5318         leave this to gl_WARN_ADD.
5319
5320 2012-05-08  Eric Blake  <eblake@redhat.com>
5321
5322         doc: recommendations on gettext version
5323         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5324         choice between versions.
5325         * DEPENDENCIES (gettext): Cover both approaches.
5326
5327 2012-05-08  Jim Meyering  <meyering@redhat.com>
5328
5329         init.sh: explain why EXEEXT support uses aliases rather than functions
5330         * tests/init.sh: Add a comment.
5331
5332         init.sh: don't let bash aliases interfere with tests
5333         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5334         is bash.  This avoids problems for those who alias standard commands to
5335         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5336         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5337
5338 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5339
5340         stdint: be more consistent with glibc, SunOS libc
5341         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5342         (gl_int_fast16_t, gl_uint_fast16_t)
5343         (gl_int_fast32_t, gl_uint_fast32_t)
5344         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5345         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5346         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5347         Be consistent with glibc by default, and with SunOS 5.10 and later
5348         if __sun is defined.  This lessens the likelihood of clashes if
5349         code compiled for older hosts is combined with code compiled for
5350         newer ones.  Problem reported by Niels Möller in
5351         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5352
5353 2012-05-07  Eric Blake  <eblake@redhat.com>
5354
5355         isatty: relax license to LGPLv2+
5356         * modules/isatty (License): Relax license.
5357
5358 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5359
5360         stat-size: comment fix
5361         * lib/stat-size.h: Remove obsolete comment about indenting.
5362
5363 2012-05-06  Bruno Haible  <bruno@clisp.org>
5364
5365         Tests for module 'sh-quote'.
5366         * modules/sh-quote-tests: New file.
5367         * tests/test-sh-quote.c: New file.
5368
5369 2012-05-06  Bruno Haible  <bruno@clisp.org>
5370
5371         sh-quote: Improve shell_quote_argv's signature.
5372         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5373         * lib/sh-quote.c (shell_quote_argv): Likewise.
5374
5375 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5376
5377         stdint: document issues with int_fast8_t etc.
5378         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5379         stdint.h substitutes may define these types differently.  See
5380         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5381
5382 2012-05-05  Bruno Haible  <bruno@clisp.org>
5383
5384         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5385         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5386         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5387         or 'guessing no (mishandles large arguments)'.
5388
5389 2012-05-05  Bruno Haible  <bruno@clisp.org>
5390
5391         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5392         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5393         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5394         set gl_cv_func_link_follows_symlink to "guessing no".
5395
5396 2012-05-05  Bruno Haible  <bruno@clisp.org>
5397
5398         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5399         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5400         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5401         "guessing no".
5402         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5403
5404 2012-05-05  Bruno Haible  <bruno@clisp.org>
5405
5406         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5407         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5408         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5409         set gl_cv_struct_dirent_d_ino to "guessing yes".
5410
5411 2012-05-05  Bruno Haible  <bruno@clisp.org>
5412
5413         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5414         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5415         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5416         "guessing yes".
5417
5418 2012-05-05  Bruno Haible  <bruno@clisp.org>
5419
5420         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5421         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5422         compiling to a glibc system, set gl_cv_func_signbit and
5423         gl_cv_func_signbit_gcc to "guessing yes".
5424
5425 2012-05-05  Bruno Haible  <bruno@clisp.org>
5426
5427         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5428         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5429         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5430         to "guessing yes".
5431         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5432         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5433
5434 2012-05-05  Bruno Haible  <bruno@clisp.org>
5435
5436         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5437         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5438         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5439         gl_cv_func_realpath_works to "guessing yes".
5440
5441 2012-05-05  Bruno Haible  <bruno@clisp.org>
5442
5443         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5444         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5445         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5446
5447 2012-05-04  Bruno Haible  <bruno@clisp.org>
5448
5449         Tweak last commit.
5450         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5451         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5452
5453 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5454
5455         unistd_h: make it easier to avoid sys_types_h
5456         This is useful for Emacs, which has its own method of porting to
5457         Windows, and which therefore does not need the sys_types_h module.
5458         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5459         code moved here from gl_SYS_TYPES_H.
5460         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5461         using the code directly.
5462         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5463         gl_SYS_TYPES_H.
5464         * modules/sys_types (Files):
5465         * modules/unistd (Files): Add m4/off_t.m4.
5466
5467 2012-05-03  Bruno Haible  <bruno@clisp.org>
5468
5469         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5470         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5471         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5472         "guessing yes" or "guessing no".
5473         (gl_FUNC_LSTAT): Update.
5474         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5475         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5476         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5477
5478 2012-05-03  Bruno Haible  <bruno@clisp.org>
5479
5480         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5481         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5482         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5483         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5484         cross-compiling, choose the first alternative on glibc systems.
5485         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5486
5487 2012-05-03  Bruno Haible  <bruno@clisp.org>
5488
5489         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5490         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5491         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5492
5493 2012-05-03  Bruno Haible  <bruno@clisp.org>
5494
5495         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5496         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5497
5498 2012-05-03  Bruno Haible  <bruno@clisp.org>
5499
5500         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5501         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5502         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5503         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5504         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5505         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5506         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5507         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5508         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5509         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5510         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5511         gl_cv_func_chown_ctime_works to "guessing yes".
5512         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5513         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5514         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5515         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5516         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5518         compiling to glibc systems, set gl_cv_func_open_directory_works to
5519         "guessing yes".
5520         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5521         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5522         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5523         "guessing yes".
5524         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5525         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5526         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5527         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5528         "guessing yes".
5529         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5530         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5531         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5532         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5533         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5534         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5535         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5536         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5537         "guessing yes".
5538         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5539         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5540         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5541         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5542         "guessing yes".
5543         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5544         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5545         "guessing yes".
5546         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5547         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5548         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5549         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5550         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5551         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5552         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5553         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5554         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5555         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5556         "guessing yes".
5557         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5558         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5559         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5560         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5561         "guessing yes".
5562         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5563         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5564         "guessing yes".
5565         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5566         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5567         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5568         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5569         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5570         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5571         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5572         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5573         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5574         "guessing yes".
5575         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5576         compiling to glibc systems, set gl_cv_func_mknod_works to
5577         "guessing yes".
5578         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5579         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5580         "guessing yes".
5581         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5582         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5583         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5584         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5585         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5586         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5587         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5588         compiling to glibc systems, set gl_cv_func_svid_putenv to
5589         "guessing yes".
5590         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5591         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5592         "guessing yes".
5593         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5594         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5595         "guessing yes".
5596         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5597         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5598         to "guessing yes".
5599         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5600         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5601         to "guessing yes".
5602         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5603         compiling to glibc systems, set gl_cv_func_rmdir_works to
5604         "guessing yes".
5605         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5606         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5607         gl_cv_func_unlink_parent_fails to "guessing yes".
5608         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5609         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5610         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5611         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5612         gl_cv_func_rename_dest_works to "guessing yes".
5613         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5614         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5616         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5617         "guessing yes".
5618         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5619         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5620         "guessing yes".
5621         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5622         compiling to glibc systems, set gl_cv_func_setenv_works to
5623         "guessing yes".
5624         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5625         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5626         "guessing yes".
5627         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5628         compiling to glibc systems, set gl_cv_func_sleep_works to
5629         "guessing yes".
5630         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5631         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5632         "guessing yes".
5633         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5634         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5635         "guessing yes".
5636         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5637         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5638         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5639         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5640         "guessing yes".
5641         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5642         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5643         "guessing yes".
5644         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5645         compiling to glibc systems, set gl_cv_func_usleep_works to
5646         "guessing yes".
5647         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5648         compiling to glibc systems, set gl_cv_func_futimesat_works to
5649         "guessing yes".
5650
5651 2012-05-03  Bruno Haible  <bruno@clisp.org>
5652
5653         Say "guessing yes" or "guessing no" when cross-compiling.
5654         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5655         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5656         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5657         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5658         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5659         am_cv_func_working_getline to "guessing yes" or "guessing no".
5660         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5661         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5662         (gl_FUNC_MEMMEM): When cross-compiling, set
5663         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5664         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5665         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5667         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5668         "guessing no".
5669         (gl_FUNC_STRCASESTR): When cross-compiling, set
5670         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5671         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5672         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5673         (gl_FUNC_STRSTR): When cross-compiling, set
5674         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5675         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5676         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5677         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5678         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5679
5680 2012-05-01  Bruno Haible  <bruno@clisp.org>
5681
5682         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5683         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5684         * build-aux/reloc-ldflags: Likewise.
5685         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5686
5687 2012-05-01  Bruno Haible  <bruno@clisp.org>
5688
5689         gnulib-tool: Remove transitional code.
5690         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5691         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5692
5693 2012-05-01  Bruno Haible  <bruno@clisp.org>
5694
5695         getcwd: Fix misindentation.
5696         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5697
5698 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5699
5700         exclude: process exclude and include directives in order
5701         This restores the pre-2009 behavior, and is part of a fix of a
5702         grep bug reported by Quentin Arce in
5703         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5704         * lib/exclude.c (struct exclude): Remove 'tail' member.
5705         (new_exclude_segment): Prepend the new segment instead of appending.
5706         Return void, since that's now more convenient.
5707         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5708         (file_name_matches): Renamed from excluded_file_name_p.
5709         (file_pattern_matches, file_name_matches):
5710         Return true if the pattern matches, not if it excludes.
5711         All callers changed.
5712         (excluded_file_name): Process the list in reverse order;
5713         since the list is now reversed this restores the pre-2009 behavior.
5714         (add_exclude): Adjust to new reversed-order list.  Use local var
5715         rather than macro, for clarity.
5716         * tests/test-exclude7.sh: Adjust to corrected behavior.
5717
5718         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5719         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5720         it's not possible here.  Handle the case of \ at end of pattern
5721         without dumping core.
5722         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5723
5724         _Noreturn: future-proof non-GNU and non-MSVC compilers
5725         * build-aux/snippet/_Noreturn.h (_Noreturn):
5726         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5727         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5728         C11 or later.  This is more likely to work with random future C
5729         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5730         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5731
5732         exclude: handle wildcards with FNM_EXTMATCH
5733         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5734         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5735         comment that "has wildcards" really means "has or may have
5736         wildcards".  Simplify by avoiding the need to call strcspn.
5737
5738 2012-04-29  Bruno Haible  <bruno@clisp.org>
5739
5740         gnulib-tool: Fix list of authors.
5741         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5742
5743 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5744
5745         bootstrap: support Automake-NG in $buildreq
5746         * bootstrap (check_versions): Handle automake and aclocal from
5747         Automake-NG specially.  They can be specified as respectively
5748         the "automake-ng" and "aclocal-ng" requirements.
5749
5750 2012-04-25  Eric Blake  <eblake@redhat.com>
5751
5752         bootstrap: only force latest Makefile.in.in for gettext module
5753         * build-aux/bootstrap (with_gettext): Only install latest
5754         Makefile.in.in for projects requesting bleeding edge gettext.
5755
5756 2012-04-22  Bruno Haible  <bruno@clisp.org>
5757
5758         doc: Mention reason for replacement on glibc/Linux systems.
5759         * doc/posix-functions/dprintf.texi: Mention the problem with special
5760         'long double' values.
5761         * doc/posix-functions/fprintf.texi: Likewise.
5762         * doc/posix-functions/printf.texi: Likewise.
5763         * doc/posix-functions/snprintf.texi: Likewise.
5764         * doc/posix-functions/sprintf.texi: Likewise.
5765         * doc/posix-functions/vdprintf.texi: Likewise.
5766         * doc/posix-functions/vfprintf.texi: Likewise.
5767         * doc/posix-functions/vprintf.texi: Likewise.
5768         * doc/posix-functions/vsnprintf.texi: Likewise.
5769         * doc/posix-functions/vsprintf.texi: Likewise.
5770         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5771         platforms with F_DUPFD_CLOEXEC problems.
5772         * doc/posix-functions/glob.texi: Mention which platforms are affected
5773         by the problem with symbolic links.
5774         * doc/posix-functions/linkat.texi: Mention the problem with
5775         AT_SYMLINK_FOLLOW on Linux.
5776
5777 2012-04-22  Bruno Haible  <bruno@clisp.org>
5778
5779         pwrite: Don't replace on all platforms.
5780         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5781
5782 2012-04-22  Bruno Haible  <bruno@clisp.org>
5783
5784         rint* tests: Avoid gcc warnings.
5785         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5786         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5787         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5788
5789 2012-04-21  Bruno Haible  <bruno@clisp.org>
5790
5791         users.txt: Update.
5792         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5793         switched from CVS to git, bzr, or svn.
5794
5795 2012-04-21  Bruno Haible  <bruno@clisp.org>
5796
5797         Large File Support for native Windows platforms.
5798
5799         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5800         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5801
5802         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5803         type.
5804         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5805         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5806         * doc/posix-headers/sys_types.texi: Mention the effect of the
5807         'largefile' module.
5808
5809         * lib/fcntl.in.h: Add comments about off_t.
5810         * modules/fcntl-h (Depends-on): Add sys_types.
5811
5812         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5813         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5814         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5815         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5816         * modules/unistd (Depends-on): Add sys_types.
5817         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5818
5819         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5820         instead of lseek.
5821         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5822         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5823         * modules/lseek (Depends-on): Add sys_types.
5824
5825         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5826         msvc-nothrow.h.
5827         (SetFileSize): New function.
5828         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5829         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5830         if Large File Support is requested.
5831         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5832         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5833
5834         * lib/stdio.in.h: Add comments about off_t.
5835         * modules/stdio (Depends-on): Add sys_types.
5836
5837         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5838         instead of ftello.
5839         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5840         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5841         (gl_PREREQ_FTELLO): New macro.
5842         * modules/ftello (Depends-on): Add sys_types.
5843         (configure.ac): Incoke gl_PREREQ_FTELLO.
5844
5845         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5846         instead of fseeko.
5847         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5848         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5849         (gl_PREREQ_FSEEKO): New macro.
5850         * modules/fseeko (Depends-on): Add sys_types.
5851         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5852
5853         * lib/sys_stat.in.h: Add comments about off_t.
5854         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5855         64-bit integer for st_size in 'struct stat'.
5856         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5857         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5858         * modules/sys_stat (Depends-on): Add sys_types.
5859         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5860
5861         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5862         instead of stat or _stat.
5863
5864         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5865         'struct _stati64' instead of fstat and 'struct stat'.
5866         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5867         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5868
5869         Reported by Ray Satiro <raysatiro@yahoo.com>.
5870
5871 2012-04-19  Eric Blake  <eblake@redhat.com>
5872
5873         bootstrap: accommodate older libtool
5874         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5875         Reported by Daniel P. Berrange.
5876
5877 2012-04-19  Jim Meyering  <meyering@redhat.com>
5878
5879         announce-gen: avoid failure due to lack of Digest::SHA1
5880         Even with the preferred Digest::SHA available, this script
5881         would fail when the backup module, Digest::SHA1, was not installed.
5882         * build-aux/announce-gen: Quote the conditional use of "use".
5883         Reported by Reuben Thomas in:
5884         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5885
5886         bootstrap: don't let a user's CDPATH setting affect this script
5887         When CDPATH is set, cd will sometimes generate output.
5888         When "cd" is run in a subshell whose output matters, that
5889         surprising-to-some output can cause malfunction.
5890         Unsetting CDPATH turns off this shell "feature."
5891         * build-aux/bootstrap (CDPATH): Unset.
5892         Reported by Reuben Thomas in:
5893         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5894         and inspired by his patch here:
5895         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5896
5897 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5898         and Jim Meyering  <meyering@redhat.com>
5899
5900         maint.mk: catch "see @xref{}" and similar
5901         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5902         prohibit "See also @xref{", "Also see @pxref{", and similar.
5903
5904 2012-04-16  Jim Meyering  <meyering@redhat.com>
5905
5906         bootstrap: really use gnulib's po/Makefile.in.in
5907         * build-aux/bootstrap: Correct the source file name in previous change.
5908         Reported by Akim Demaille.
5909
5910         configmake: correct minor inconsistency in Makefile rule
5911         * modules/configmake (Makefile.am): All other rules like this one
5912         run the final "mv -f ..." in the same backslash-continued command
5913         as the one that does everything else.  This one put the mv -f ...
5914         command on a separate, non-backslash-continued line.
5915         Make it like the others.
5916
5917         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5918         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5919         the one from gettext.  Reported by Akim Demaille.
5920
5921 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5922
5923         Fix recursion of install-* into po directories.
5924         Bison's install-pdf bug reported by Hans Aberg at
5925         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5926         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5927         (install-info, install-pdf, install-ps): New targets.
5928
5929 2012-04-16  Jim Meyering  <meyering@redhat.com>
5930
5931         maint: avoid spurious "make sc_maint" failure
5932         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5933         exempt all *.class file names, for lib/javaversion.class.
5934
5935 2012-04-15  Bruno Haible  <bruno@clisp.org>
5936
5937         lseek: Make configure test independent of environment.
5938         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5939         Windows, we know that lseek() on pipes is broken; skip the runtime
5940         test.
5941
5942 2012-04-14  Bruno Haible  <bruno@clisp.org>
5943
5944         stat: Bypass buggy override in mingw64.
5945         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5946         * lib/stat.c (stat) [mingw64]: Define to _stat.
5947         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5948
5949 2012-04-14  Bruno Haible  <bruno@clisp.org>
5950
5951         pathmax: Fix compilation error on MSVC 9.
5952         * modules/pathmax (Depends-on): Add unistd.
5953
5954 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5955
5956         README: document pointer comparison assumption
5957         * README (Portability guidelines): Document assumption about
5958         pointer comparisons, in response to a recent bug-gnulib comment by
5959         Jeffrey Kegler.
5960
5961 2012-04-12  Bruno Haible  <bruno@clisp.org>
5962
5963         Tests for module 'getrusage'.
5964         * modules/getrusage-tests: New file.
5965         * tests/test-getrusage.c: New file.
5966
5967         New module 'getrusage'.
5968         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5969         warn-on-use.h.
5970         (getrusage): New declaration.
5971         * lib/getrusage.c: New file.
5972         * m4/getrusage.m4: New file.
5973         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5974         is declared.
5975         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5976         HAVE_GETRUSAGE.
5977         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5978         snippet/c++defs, snippet/warn-on-use.
5979         (Makefile.am): Update generation of sys/resource.h. Substitute
5980         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5981         * modules/getrusage: New file.
5982         * doc/posix-functions/getrusage.texi: Mention the new module.
5983
5984 2012-04-12  Bruno Haible  <bruno@clisp.org>
5985
5986         Tests for module 'sys_resource'.
5987         * modules/sys_resource-tests: New file.
5988         * tests/test-sys_resource.c: New file.
5989
5990         New module 'sys_resource'.
5991         * lib/sys_resource.in.h: New file.
5992         * m4/sys_resource_h.m4: New file.
5993         * modules/sys_resource: New file.
5994         * doc/posix-headers/sys_resource.texi: Mention the new module.
5995
5996 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5997
5998         ioctl: Fix compilation error on mingw.
5999         * lib/ioctl.c: Include <windows.h>.
6000         Also reported by Ray Satiro <raysatiro@yahoo.com>.
6001
6002 2012-04-04  Jim Meyering  <meyering@redhat.com>
6003
6004         regex: correct #pragma guard expression
6005         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
6006         not 4.3.  Correct its cpp guard expression.
6007
6008 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6009
6010         regex: remove unnecessary type punning
6011         Problem reported by Vladimir Serbinenko in
6012         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
6013         * lib/regex.h (struct re_pattern_buffer): Change the type of
6014         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
6015         Fix comment to match code.
6016         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
6017         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
6018         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
6019         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
6020         (set_regs):
6021         Omit no-longer-necessary casts.
6022
6023 2012-04-03  Bruno Haible  <bruno@clisp.org>
6024
6025         Tests for module 'ilogbl'.
6026         * modules/ilogbl-tests: New file.
6027         * tests/test-ilogbl.c: New file.
6028
6029         New module 'ilogbl'.
6030         * lib/math.in.h (ilogbl): New declaration.
6031         * lib/ilogbl.c: New file.
6032         * m4/ilogbl.m4: New file.
6033         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
6034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
6035         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
6036         Split sed invocation, to avoid the limit of 100 substitutions of
6037         HP-UX 'sed'.
6038         * modules/ilogbl: New file.
6039         * tests/test-math-c++.cc: Check the declaration of ilogbl.
6040         * doc/posix-functions/ilogbl.texi: Mention the new module.
6041
6042 2012-04-03  Bruno Haible  <bruno@clisp.org>
6043
6044         Tests for module 'ilogbf'.
6045         * modules/ilogbf-tests: New file.
6046         * tests/test-ilogbf.c: New file.
6047
6048         New module 'ilogbf'.
6049         * lib/math.in.h (ilogbf): New declaration.
6050         * lib/ilogbf.c: New file.
6051         * m4/ilogbf.m4: New file.
6052         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
6053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
6054         REPLACE_ILOGBF.
6055         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
6056         REPLACE_ILOGBF.
6057         * modules/ilogbf: New file.
6058         * tests/test-math-c++.cc: Check the declaration of ilogbf.
6059         * doc/posix-functions/ilogbf.texi: Mention the new module.
6060
6061 2012-04-03  Bruno Haible  <bruno@clisp.org>
6062
6063         Tests for module 'ilogb'.
6064         * modules/ilogb-tests: New file.
6065         * tests/test-ilogb.c: New file.
6066         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
6067         tests/test-logb-ieee.h.
6068
6069         New module 'ilogb'.
6070         * lib/math.in.h (ilogb): New declaration.
6071         * lib/ilogb.c: New file.
6072         * m4/ilogb.m4: New file.
6073         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
6074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
6075         REPLACE_ILOGB.
6076         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
6077         REPLACE_ILOGB.
6078         * modules/ilogb: New file.
6079         * tests/test-math-c++.cc: Check the declaration of ilogb.
6080         * doc/posix-functions/ilogb.texi: Mention the new module.
6081
6082 2012-04-03  Bruno Haible  <bruno@clisp.org>
6083
6084         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
6085         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
6086         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
6087         (main): Check their values.
6088         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
6089         problem.
6090
6091 2012-04-03  Bruno Haible  <bruno@clisp.org>
6092
6093         Tests for module 'logbl-ieee'.
6094         * modules/logbl-ieee-tests: New file.
6095         * tests/test-logbl-ieee.c: New file.
6096
6097         New module 'logbl-ieee'.
6098         * modules/logbl-ieee: New file.
6099
6100         Tests for module 'logb-ieee'.
6101         * modules/logb-ieee-tests: New file.
6102         * tests/test-logb-ieee.c: New file.
6103
6104         New module 'logb-ieee'.
6105         * modules/logb-ieee: New file.
6106
6107         Tests for module 'logbf-ieee'.
6108         * modules/logbf-ieee-tests: New file.
6109         * tests/test-logbf-ieee.c: New file.
6110         * tests/test-logb-ieee.h: New file.
6111
6112         New module 'logbf-ieee'.
6113         * modules/logbf-ieee: New file.
6114
6115 2012-04-03  Bruno Haible  <bruno@clisp.org>
6116
6117         Tests for module 'logbl'.
6118         * modules/logbl-tests: New file.
6119         * tests/test-logbl.c: New file.
6120
6121         New module 'logbl'.
6122         * lib/math.in.h (logbl): New declaration.
6123         * lib/logbl.c: New file.
6124         * m4/logbl.m4: New file.
6125         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
6126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
6127         REPLACE_LOGBL.
6128         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
6129         REPLACE_LOGBL.
6130         * modules/logbl: New file.
6131         * tests/test-math-c++.cc: Check the declaration of logbl.
6132         * doc/posix-functions/logbl.texi: Mention the new module.
6133
6134 2012-04-02  Bruno Haible  <bruno@clisp.org>
6135
6136         Tests for module 'logbf'.
6137         * modules/logbf-tests: New file.
6138         * tests/test-logbf.c: New file.
6139
6140         New module 'logbf'.
6141         * lib/math.in.h (logbf): New declaration.
6142         * lib/logbf.c: New file.
6143         * m4/logbf.m4: New file.
6144         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
6145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
6146         REPLACE_LOGBF.
6147         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
6148         REPLACE_LOGBF.
6149         * modules/logbf: New file.
6150         * tests/test-math-c++.cc: Check the declaration of logbf.
6151         * doc/posix-functions/logbf.texi: Mention the new module.
6152
6153 2012-04-02  Bruno Haible  <bruno@clisp.org>
6154
6155         logb tests: More tests.
6156         * tests/test-logb.h: New file, based on tests/test-logb.c and
6157         tests/test-frexp.h.
6158         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
6159         (main): Just invoke test_function.
6160         * modules/logb-tests (Files): Add tests/test-logb.h,
6161         tests/minus-zero.h, tests/randomd.c.
6162         (Makefile.am): Add randomd.c to test_logb_SOURCES.
6163
6164         logb: Provide replacement and workarounds.
6165         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
6166         is 1.
6167         * lib/logb.c: New file.
6168         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
6169         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
6170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
6171         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
6172         * modules/logb (Files): Add lib/logb.c.
6173         (Depends-on): Add isfinite, frexp, isnand.
6174         (configure.ac): Compile the replacement code logb.c if needed.
6175         * tests/test-math-c++.cc: Check the declaration of logb.
6176         * doc/posix-functions/logb.texi: Mention the replacement and the bug
6177         with subnormal numbers.
6178
6179 2012-04-02  Bruno Haible  <bruno@clisp.org>
6180
6181         log10* tests: Speed up.
6182         * tests/test-log10.h (test_function): Reduce amount of random numbers
6183         to test.
6184
6185 2012-04-01  Bruno Haible  <bruno@clisp.org>
6186
6187         logf-ieee: Fix test whether logf works.
6188         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
6189
6190 2012-04-01  Bruno Haible  <bruno@clisp.org>
6191
6192         log10l: Work around log10l-ieee test failure on IRIX 6.5.
6193         * lib/log10l.c: Include <float.h>
6194         (log10l): On IRIX, normalize the +Infinity value.
6195         * modules/log10l (Depends-on): Add 'float'.
6196         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
6197         +Infinity.
6198
6199         log10f-ieee: Work around test failure on NetBSD 5.1.
6200         * m4/log10f-ieee.m4: New file.
6201         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
6202         test whether log10f works with a negative argument. Replace it if not.
6203         * lib/log10f.c (log10f): For negative arguments, return NaN.
6204         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6205         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6206         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6207
6208         log10f-ieee: Work around test failure on Solaris 9.
6209         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6210         (configure.ac): Require gl_FUNC_LOG10F.
6211
6212         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6213         * m4/log10-ieee.m4: New file.
6214         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6215         whether log10 works with a negative argument. Replace it if not.
6216         * lib/log10.c (log10): For negative arguments, return NaN.
6217         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6218         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6219         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6220
6221         Tests for module 'log10l-ieee'.
6222         * modules/log10l-ieee-tests: New file.
6223         * tests/test-log10l-ieee.c: New file.
6224
6225         New module 'log10l-ieee'.
6226         * modules/log10l-ieee: New file.
6227
6228         Tests for module 'log10-ieee'.
6229         * modules/log10-ieee-tests: New file.
6230         * tests/test-log10-ieee.c: New file.
6231
6232         New module 'log10-ieee'.
6233         * modules/log10-ieee: New file.
6234
6235         Tests for module 'log10f-ieee'.
6236         * modules/log10f-ieee-tests: New file.
6237         * tests/test-log10f-ieee.c: New file.
6238         * tests/test-log10-ieee.h: New file.
6239
6240         New module 'log10f-ieee'.
6241         * modules/log10f-ieee: New file.
6242
6243 2012-04-01  Bruno Haible  <bruno@clisp.org>
6244
6245         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6246         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6247         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6248         workaround.
6249         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6250         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6252         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6253         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6254         (Depends-on): Update conditions.
6255         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6256         IRIX 6.5, OSF/1 5.1 problems.
6257
6258 2012-04-01  Bruno Haible  <bruno@clisp.org>
6259
6260         log10f: Work around OSF/1 5.1 bug.
6261         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6262         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6263         workaround.
6264         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6265         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6267         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6268         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6269         (Depends-on): Update conditions.
6270         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6271
6272 2012-04-01  Bruno Haible  <bruno@clisp.org>
6273
6274         log10: Work around OSF/1 5.1 bug.
6275         * lib/math.in.h (log10): New declaration.
6276         * lib/log10.c: New file.
6277         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6278         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6279         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6281         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6282         * modules/log10 (Files): Add lib/log10.c.
6283         (Depends-on): Add math.
6284         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6285         * tests/test-math-c++.cc: Check the declaration of log10.
6286         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6287
6288 2012-03-31  Bruno Haible  <bruno@clisp.org>
6289
6290         log10l tests: More tests.
6291         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6292         tests/minus-zero.h, tests/randoml.c.
6293         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6294         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6295         (main): Invoke test_function.
6296
6297         log10f tests: More tests.
6298         * modules/log10f-tests (Files): Add tests/test-log10.h,
6299         tests/minus-zero.h, tests/randomf.c.
6300         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6301         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6302         (main): Invoke test_function.
6303
6304         log10 tests: More tests.
6305         * tests/test-log10.h: New file.
6306         * modules/log10-tests (Files): Add tests/test-log10.h,
6307         tests/minus-zero.h, tests/randomd.c.
6308         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6309         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6310         (main): Invoke test_function.
6311
6312 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6313
6314         fflush: Fix syntax error.
6315         * lib/fflush.c: Include unused-parameter.h, needed for
6316         _GL_UNUSED_PARAMETER.
6317         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6318
6319 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6320
6321         regex: pacify GCC when compiling GRUB
6322         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6323         a diagnostic.  Reported by Vladimir Serbinenko in
6324         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6325
6326 2012-03-29  Eric Blake  <eblake@redhat.com>
6327
6328         stdio: don't assume gets any more
6329         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6330         support.
6331         * modules/stdio (Makefile.am): Likewise.
6332         * lib/stdio-read.c (gets): Likewise.
6333         * tests/test-stdio-c++.cc: Likewise.
6334         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6335         * lib/stdio.in.h (gets): Make warning occur in more places.
6336         * doc/posix-functions/gets.texi (gets): Update documentation.
6337         Reported by Christer Solskogen.
6338
6339         maint.mk: fix syntax checks without exclusions
6340         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6341         Reported by Daniel P. Berrange.
6342
6343         strerror_r: avoid compiler warning
6344         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6345         level.
6346
6347         fflush: avoid compiler warning
6348         * lib/fflush.c (update_fpos_cache): Mark variables that are
6349         potentially unused.
6350
6351 2012-03-25  Bruno Haible  <bruno@clisp.org>
6352
6353         Tests for module 'localeconv'.
6354         * modules/localeconv-tests: New file.
6355         * tests/test-localeconv.c: New file.
6356
6357         New module 'localeconv'.
6358         * lib/locale.in.h (localeconv): New declaration.
6359         * lib/localeconv.c: New file.
6360         * m4/localeconv.m4: New file.
6361         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6362         REPLACE_LOCALECONV.
6363         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6364         REPLACE_LOCALECONV.
6365         * modules/localeconv: New file.
6366         * modules/nl_langinfo (Depends-on): Add localeconv.
6367         * modules/human (Depends-on): Likewise.
6368         * doc/posix-functions/localeconv.texi: Mention the new module.
6369
6370 2012-03-25  Bruno Haible  <bruno@clisp.org>
6371
6372         locale: Provide a complete 'struct lconv'.
6373         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6374         'struct lconv' does not contain int_p_cs_precedes.
6375         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6376         * doc/posix-headers/locale.texi: Update.
6377
6378         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6379         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6380         * doc/posix-headers/locale.texi: Update.
6381
6382         locale: Provide a working 'struct lconv'.
6383         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6384         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6385         'struct lconv' does not even contain decimal_point.
6386         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6387         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6388         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6389         * doc/posix-headers/locale.texi: Mention the problems with
6390         'struct lconv'.
6391         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6392
6393 2012-03-24  Bruno Haible  <bruno@clisp.org>
6394
6395         Enable common subexpression optimization in GCC.
6396         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6397         macros.
6398         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6399         GCC attribute 'const'.
6400         (uc_locale_language): Declare with GCC attribute 'pure'.
6401         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6402         with GCC attribute 'const'.
6403         * lib/unictype.in.h (uc_is_general_category_withtable,
6404         uc_combining_class, uc_combining_class_name,
6405         uc_combining_class_long_name, uc_bidi_class_name,
6406         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6407         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6408         uc_decimal_value, uc_digit_value, uc_numeric_value,
6409         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6410         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6411         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6412         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6413         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6414         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6415         Declare with GCC attribute 'const'.
6416         (uc_general_category_name, uc_general_category_long_name,
6417         uc_general_category_byname, uc_general_category,
6418         uc_is_general_category, uc_combining_class_byname,
6419         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6420         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6421         Declare with GCC attribute 'pure'.
6422         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6423         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6424         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6425         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6426         with GCC attribute 'pure'.
6427         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6428         'const'.
6429         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6430         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6431         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6432         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6433         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6434         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6435         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6436         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6437         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6438         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6439         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6440         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6441         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6442         GCC attribute 'pure'.
6443         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6444         'const'.
6445         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6446         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6447         u32_strwidth): Declare with GCC attribute 'pure'.
6448
6449         Enable common subexpression optimization in GCC.
6450         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6451         (alphasort): Declare with GCC attribute 'pure'.
6452         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6453         (atoll): Declare with GCC attribute 'pure'.
6454         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6455         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6456         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6457         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6458         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6459         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6460         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6461
6462 2012-03-24  Bruno Haible  <bruno@clisp.org>
6463
6464         gnulib-tool: Avoid unintended error output from 'cmp'.
6465         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6466         "cmp -s", not "cmp > /dev/null".
6467
6468 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6469
6470         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6471
6472         It's not just Automake versions < 1.9b that creates an empty
6473         pkgdatadir at installation time if pkgdata_DATA is specified
6474         to empty; modern automake versions do this as well, at least
6475         until automake 1.11.4 (not yet released at the moment of writing,
6476         but soon to appear).  That behaviour was generally considered a
6477         feature rather than a bug, at least until this discussion:
6478         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6479
6480         See also automake bugs #10997 and #11030.
6481
6482         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6483         reference to relevant automake bug numbers.
6484         (func_emit_tests_Makefile_am): Likewise.
6485
6486 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6487
6488         announce-gen: use Digest::SHA when possible
6489         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6490         back to Digest::SHA1 if necessary.
6491
6492 2012-03-20  Jim Meyering  <meyering@redhat.com>
6493
6494         tests: avoid gcc warnings about argv vs. const initializers
6495         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6496         warnings about discarding 'const' qualifier from pointer target type.
6497         * tests/test-posix_spawn2.c (main): Likewise.
6498
6499 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6500
6501         README-release: simplify slightly
6502         * top/README-release: Run "git checkout master" only once.
6503
6504 2012-03-15  Mark Wielaard  <mark@klomp.org>
6505
6506         git-merge-changelog: add specific example on how to use with hg.
6507         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6508
6509 2012-03-18  Mark Wielaard  <mark@klomp.org>
6510
6511         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6512
6513 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6514
6515         git-version-gen: don't let "prefix" envvar cause trouble
6516         * build-aux/git-version-gen (prefix): Initialize properly,
6517         so as not to use a value specified via the environment.
6518         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6519
6520 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6521
6522         regex: diagnose too-large repeat counts in EREs
6523         Previously, the code did not diagnose the too-large repeat count
6524         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6525         as if it were 'b\{1000000000}', which is unexpected.
6526         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6527         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6528         is a reasonable one for this problem.  Another option would be to
6529         create a new REG_OVERFLOW error for repeat counts that are too large.
6530         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6531         count is too large, so that the caller can distinguish the two cases.
6532         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6533         "Too large" return code, and that repeat counts are one example of this.
6534
6535 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6536
6537         doc: some glibc x32 integer width issues
6538         * doc/posix-headers/sys_types.texi (sys/types.h):
6539         * doc/posix-headers/time.texi (time.h):
6540         Mention that glibc x32 does not conform to POSIX in a couple of
6541         areas related to integer widths.
6542
6543 2012-03-15  Bruno Haible  <bruno@clisp.org>
6544
6545         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6546         * lib/fma.c (VOLATILE): New macro.
6547         (FUNC): Use it to work around a GCC compiler bug.
6548
6549 2012-03-13  Bruno Haible  <bruno@clisp.org>
6550
6551         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6552         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6553         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6554         REPLACE_HYPOTL to 1.
6555         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6556
6557 2012-03-13  Bruno Haible  <bruno@clisp.org>
6558
6559         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6560         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6561         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6562         REPLACE_REMAINDERL to 1.
6563         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6564         bug.
6565
6566 2012-03-13  Bruno Haible  <bruno@clisp.org>
6567
6568         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6569         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6570         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6571         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6572         too big rounding errors.
6573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6574         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6575         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6576         (Depends-on): Update conditions.
6577         * tests/test-sqrtl.c (my_ldexpl): New function.
6578         (main): Add test of a particular value.
6579         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6580
6581 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6582
6583         doc: Update timer_* platform portability notes.
6584         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6585         that always return ENOSYS.
6586         * doc/posix-functions/timer_delete.texi: Likewise.
6587         * doc/posix-functions/timer_gettime.texi: Likewise.
6588         * doc/posix-functions/timer_settime.texi: Likewise.
6589
6590 2012-03-13  Bruno Haible  <bruno@clisp.org>
6591
6592         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6593         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6594         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6595         REPLACE_CBRTL to 1.
6596         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6597
6598 2012-03-13  Bruno Haible  <bruno@clisp.org>
6599
6600         remainderl: Avoid compilation error on AIX >= 5.2.
6601         * lib/math.in.h (remainderl): Undefine macro from the system header.
6602
6603 2012-03-13  Bruno Haible  <bruno@clisp.org>
6604
6605         Avoid compilation errors with MSVC option -fp:strict.
6606         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6607         * lib/cbrtf.c: Likewise.
6608         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6609
6610 2012-03-12  Bruno Haible  <bruno@clisp.org>
6611
6612         uninorm: Don't crash in out-of-memory conditions.
6613         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6614         gracefully.
6615         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6616         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6617
6618 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6619
6620         quote: fix syntax-check
6621         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6622         also exports quote_quoting_options.
6623
6624 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6625
6626         Collapse list of copyright years to ranges.  See
6627         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6628         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6629         build-aux/csharpexec.sh.in, build-aux/gnupload,
6630         build-aux/install-reloc, build-aux/javacomp.sh.in,
6631         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6632         build-aux/move-if-change, build-aux/reloc-ldflags,
6633         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6634
6635 2012-03-11  Bruno Haible  <bruno@clisp.org>
6636
6637         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6638         * m4/log2f-ieee.m4: New file.
6639         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6640         whether log2f works with a minus zero argument. Replace it if not.
6641         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6642         (Depends-on): Add log2-ieee.
6643         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6644         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6645
6646         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6647         * m4/log2-ieee.m4: New file.
6648         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6649         whether log2 works with a minus zero argument. Replace it if not.
6650         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6651         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6652         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6653
6654         Tests for module 'log2l-ieee'.
6655         * modules/log2l-ieee-tests: New file.
6656         * tests/test-log2l-ieee.c: New file.
6657
6658         New module 'log2l-ieee'.
6659         * modules/log2l-ieee: New file.
6660
6661         Tests for module 'log2-ieee'.
6662         * modules/log2-ieee-tests: New file.
6663         * tests/test-log2-ieee.c: New file.
6664
6665         New module 'log2-ieee'.
6666         * modules/log2-ieee: New file.
6667
6668         Tests for module 'log2f-ieee'.
6669         * modules/log2f-ieee-tests: New file.
6670         * tests/test-log2f-ieee.c: New file.
6671         * tests/test-log2-ieee.h: New file.
6672
6673         New module 'log2f-ieee'.
6674         * modules/log2f-ieee: New file.
6675
6676 2012-03-11  Bruno Haible  <bruno@clisp.org>
6677
6678         Tests for module 'log2l'.
6679         * modules/log2l-tests: New file.
6680         * tests/test-log2l.c: New file.
6681
6682         New module 'log2l'.
6683         * lib/math.in.h (log2l): New declaration.
6684         * lib/log2l.c: New file.
6685         * m4/log2l.m4: New file.
6686         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6688         REPLACE_LOG2L.
6689         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6690         REPLACE_LOG2L.
6691         * modules/log2l: New file.
6692         * tests/test-math-c++.cc: Check the declaration of log2l.
6693         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6694         and OSF/1 problems.
6695
6696 2012-03-11  Bruno Haible  <bruno@clisp.org>
6697
6698         Tests for module 'log2f'.
6699         * modules/log2f-tests: New file.
6700         * tests/test-log2f.c: New file.
6701
6702         New module 'log2f'.
6703         * lib/math.in.h (log2f): New declaration.
6704         * lib/log2f.c: New file.
6705         * m4/log2f.m4: New file.
6706         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6708         REPLACE_LOG2F.
6709         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6710         REPLACE_LOG2F.
6711         * modules/log2f: New file.
6712         * tests/test-math-c++.cc: Check the declaration of log2f.
6713         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6714         and OSF/1 and Cygwin problems.
6715
6716 2012-03-11  Bruno Haible  <bruno@clisp.org>
6717
6718         Tests for module 'log2'.
6719         * modules/log2-tests: New file.
6720         * tests/test-log2.c: New file.
6721         * tests/test-log2.h: New file.
6722
6723         New module 'log2'.
6724         * lib/math.in.h (log2): New declaration.
6725         * lib/log2.c: New file.
6726         * m4/log2.m4: New file.
6727         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6729         REPLACE_LOG2.
6730         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6731         REPLACE_LOG2.
6732         * modules/log2: New file.
6733         * tests/test-math-c++.cc: Check the declaration of log2.
6734         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6735         and OSF/1 and Cygwin problems.
6736
6737 2012-03-11  Bruno Haible  <bruno@clisp.org>
6738
6739         exp2* tests: More tests.
6740         * tests/test-exp2.h (test_function): Test all integral arguments that
6741         don't need to overflow or denormalized numbers.
6742         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6743         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6744         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6745
6746 2012-03-10  Bruno Haible  <bruno@clisp.org>
6747
6748         log1pl-ieee: Work around test failure on AIX 7.1.
6749         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6750
6751         log1pl-ieee: Work around test failure on IRIX 6.5.
6752         * m4/log1pl-ieee.m4: New file.
6753         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6754         test whether log1pl works with a minus zero argument. Replace it if
6755         not.
6756         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6758         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6759         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6760         (Depends-on): Update conditions.
6761         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6762         m4/signbit.m4.
6763         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6764         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6765
6766         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6767         * m4/log1pf-ieee.m4: New file.
6768         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6769         test whether log1pf works with a minus zero argument. Replace it if
6770         not.
6771         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6772         m4/signbit.m4.
6773         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6774         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6775
6776         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6777         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6778         (configure.ac): Require gl_FUNC_LOG1PF.
6779
6780         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6781         * m4/log1p-ieee.m4: New file.
6782         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6783         whether log1p works with a minus zero argument. Replace it if not.
6784         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6786         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6787         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6788         (Depends-on): Update conditions.
6789         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6790         m4/signbit.m4.
6791         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6792         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6793
6794         Tests for module 'log1pl-ieee'.
6795         * modules/log1pl-ieee-tests: New file.
6796         * tests/test-log1pl-ieee.c: New file.
6797
6798         New module 'log1pl-ieee'.
6799         * modules/log1pl-ieee: New file.
6800
6801         Tests for module 'log1p-ieee'.
6802         * modules/log1p-ieee-tests: New file.
6803         * tests/test-log1p-ieee.c: New file.
6804
6805         New module 'log1p-ieee'.
6806         * modules/log1p-ieee: New file.
6807
6808         Tests for module 'log1pf-ieee'.
6809         * modules/log1pf-ieee-tests: New file.
6810         * tests/test-log1pf-ieee.c: New file.
6811         * tests/test-log1p-ieee.h: New file.
6812
6813         New module 'log1pf-ieee'.
6814         * modules/log1pf-ieee: New file.
6815
6816 2012-03-10  Bruno Haible  <bruno@clisp.org>
6817
6818         Tests for module 'log1pl'.
6819         * modules/log1pl-tests: New file.
6820         * tests/test-log1pl.c: New file.
6821
6822         New module 'log1pl'.
6823         * lib/math.in.h (log1pl): New declaration.
6824         * lib/log1pl.c: New file.
6825         * m4/log1pl.m4: New file.
6826         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6828         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6829         * modules/log1pl: New file.
6830         * tests/test-math-c++.cc: Check the declaration of log1pl.
6831         * doc/posix-functions/log1pl.texi: Mention the new module.
6832
6833 2012-03-10  Bruno Haible  <bruno@clisp.org>
6834
6835         Tests for module 'log1pf'.
6836         * modules/log1pf-tests: New file.
6837         * tests/test-log1pf.c: New file.
6838
6839         New module 'log1pf'.
6840         * lib/math.in.h (log1pf): New declaration.
6841         * lib/log1pf.c: New file.
6842         * m4/log1pf.m4: New file.
6843         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6845         REPLACE_LOG1PF.
6846         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6847         REPLACE_LOG1PF.
6848         * modules/log1pf: New file.
6849         * tests/test-math-c++.cc: Check the declaration of log1pf.
6850         * doc/posix-functions/log1pf.texi: Mention the new module.
6851
6852 2012-03-10  Bruno Haible  <bruno@clisp.org>
6853
6854         log1p tests: More tests.
6855         * tests/test-log1p.h: New file.
6856         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6857         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6858         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6859         (main): Invoke test_function.
6860
6861         log1p: Provide replacement for Minix and MSVC.
6862         * lib/math.in.h (log1p): New declaration.
6863         * lib/log1p.c: New file.
6864         * m4/log1p.m4: New file.
6865         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6867         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6868         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6869         (Depends-on): Add math, isnand, log, round.
6870         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6871         HAVE_LOG1P is 0.
6872         * tests/test-math-c++.cc: Check the declaration of log1p.
6873         * doc/posix-functions/log1p.texi: Mention the replacement.
6874
6875 2012-03-10  Bruno Haible  <bruno@clisp.org>
6876
6877         math tests: Small simplification.
6878         * tests/test-exp.h (test_function): Use the same err_bound for
6879         'double' on platforms with sizeof (long double) == sizeof (double)
6880         than on platforms with sizeof (long double) > sizeof (double).
6881         * tests/test-exp2.h (test_function): Likewise.
6882         * tests/test-expm1.h (test_function): Likewise.
6883         * tests/test-log.h (test_function): Likewise.
6884
6885 2012-03-10  Bruno Haible  <bruno@clisp.org>
6886
6887         Fix some comments.
6888         * lib/expl.c: Fix an ambiguous comment.
6889         * lib/expm1.c: Likewise.
6890         * lib/expm1l.c: Likewise.
6891         * lib/exp2.c: Likewise.
6892         * lib/exp2l.c: Likewise.
6893
6894 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6895
6896         regex: allow inclusion of <regex.h> before <limits.h>
6897         Without this patch, portable programs had to include <limits.h> before
6898         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6899         I ran into this problem with a test version of GNU grep on Solaris 8.
6900         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6901         This is done conditionally so that this change can be merged
6902         back to glibc.
6903         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6904         using the included regex.
6905
6906         fts: depend on fdopendir
6907         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6908         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6909         problem was introduced when fdopendir was split out.
6910
6911 2012-03-10  Bruno Haible  <bruno@clisp.org>
6912
6913         Remove unused variables.
6914         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6915         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6916
6917 2012-03-10  Bruno Haible  <bruno@clisp.org>
6918
6919         isnanf-nolibm: Fix last commit.
6920         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6921
6922         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6923         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6924
6925 2012-03-10  Bruno Haible  <bruno@clisp.org>
6926
6927         logf-ieee: Work around test failure on NetBSD 5.1.
6928         * m4/logf-ieee.m4: New file.
6929         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6930         whether logf works with a negative argument. Replace it if not.
6931         * lib/logf.c (logf): For negative arguments, return NaN.
6932         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6933         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6934         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6935
6936         logf-ieee: Work around test failure on Solaris 9.
6937         * modules/logf-ieee (Depends-on): Add log-ieee.
6938         (configure.ac): Require gl_FUNC_LOGF.
6939
6940         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6941         * m4/log-ieee.m4: New file.
6942         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6943         log works with a negative argument. Replace it if not.
6944         * lib/log.c (log): For negative arguments, return NaN.
6945         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6946         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6947         * doc/posix-functions/log.texi: Mention the log-ieee module.
6948
6949         Tests for module 'logl-ieee'.
6950         * modules/logl-ieee-tests: New file.
6951         * tests/test-logl-ieee.c: New file.
6952
6953         New module 'logl-ieee'.
6954         * modules/logl-ieee: New file.
6955
6956         Tests for module 'log-ieee'.
6957         * modules/log-ieee-tests: New file.
6958         * tests/test-log-ieee.c: New file.
6959
6960         New module 'log-ieee'.
6961         * modules/log-ieee: New file.
6962
6963         Tests for module 'logf-ieee'.
6964         * modules/logf-ieee-tests: New file.
6965         * tests/test-logf-ieee.c: New file.
6966         * tests/test-log-ieee.h: New file.
6967
6968         New module 'logf-ieee'.
6969         * modules/logf-ieee: New file.
6970
6971 2012-03-10  Bruno Haible  <bruno@clisp.org>
6972
6973         log: Fix bug introduced on 2012-03-09.
6974         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6975
6976 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6977
6978         timer-time: link explicitly with pthreads on glibc
6979         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6980         to support static linking, when newer glibc is
6981         detected, as that contains pthread emulation of
6982         POSIX timer functions where required.
6983         * modules/timer-time: Depend on threadlib to
6984         pull in the appropriate library to link.
6985
6986 2012-03-10  Bruno Haible  <bruno@clisp.org>
6987
6988         log* tests: More tests.
6989         * tests/test-log.h: New file.
6990         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6991         (main): Invoke test_function.
6992         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6993         (main): Invoke test_function.
6994         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6995         (main): Invoke test_function.
6996         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6997         tests/randomd.c.
6998         (Makefile.am): Add randomd.c to test_log_SOURCES.
6999         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7000         tests/randomf.c.
7001         (Makefile.am): Add randomf.c to test_logf_SOURCES.
7002         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7003         tests/randoml.c.
7004         (Depends-on): Add 'float'.
7005         (Makefile.am): Add randoml.c to test_logl_SOURCES.
7006
7007 2012-03-09  Bruno Haible  <bruno@clisp.org>
7008
7009         logl: Work around OSF/1 5.1 bug.
7010         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
7011         * lib/logl.c (logl): If logl exists, use it and provide just the
7012         workaround.
7013         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
7014         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
7015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
7016         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
7017         * modules/logl (configure.ac): Consider REPLACE_LOGL.
7018         (Depends-on): Update conditions.
7019         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
7020
7021 2012-03-09  Bruno Haible  <bruno@clisp.org>
7022
7023         logf: Work around OSF/1 5.1 bug.
7024         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
7025         * lib/logf.c (logf): If logf exists, use it and provide just the
7026         workaround.
7027         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
7028         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
7029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
7030         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
7031         * modules/logf (configure.ac): Consider REPLACE_LOGF.
7032         (Depends-on): Update conditions.
7033         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
7034
7035 2012-03-09  Bruno Haible  <bruno@clisp.org>
7036
7037         log: Work around OSF/1 5.1 bug.
7038         * lib/math.in.h (log): New declaration.
7039         * lib/log.c: New file.
7040         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
7041         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
7042         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
7043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
7044         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
7045         * modules/log (Files): Add lib/log.c.
7046         (Depends-on): Add math.
7047         (configure.ac): If REPLACE_LOG is 1, compile an override.
7048         * tests/test-math-c++.cc: Check the declaration of log.
7049         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
7050
7051 2012-03-09  Jim Meyering  <meyering@redhat.com>
7052
7053         readtokens.c: adjust wording in a comment
7054         * lib/readtokens.c: Insert omitted "that" in a comment.
7055
7056 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7057
7058         modechange: add notations +40, 00440, etc.
7059         * lib/modechange.c (mode_compile): Support new notations
7060         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
7061
7062 2012-03-08  Bruno Haible  <bruno@clisp.org>
7063
7064         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
7065         * m4/exp2l-ieee.m4: New file.
7066         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
7067         test whether exp2l works with a NaN argument and with a negative
7068         infinity argument. Replace it if not.
7069         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
7070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
7071         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
7072         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
7073         (Depends-on): Update conditions.
7074         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
7075         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
7076         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
7077
7078         Tests for module 'exp2l-ieee'.
7079         * modules/exp2l-ieee-tests: New file.
7080         * tests/test-exp2l-ieee.c: New file.
7081
7082         New module 'exp2l-ieee'.
7083         * modules/exp2l-ieee: New file.
7084
7085         Tests for module 'exp2-ieee'.
7086         * modules/exp2-ieee-tests: New file.
7087         * tests/test-exp2-ieee.c: New file.
7088
7089         New module 'exp2-ieee'.
7090         * modules/exp2-ieee: New file.
7091
7092         Tests for module 'exp2f-ieee'.
7093         * modules/exp2f-ieee-tests: New file.
7094         * tests/test-exp2f-ieee.c: New file.
7095         * tests/test-exp2-ieee.h: New file.
7096
7097         New module 'exp2f-ieee'.
7098         * modules/exp2f-ieee: New file.
7099
7100 2012-03-08  Bruno Haible  <bruno@clisp.org>
7101
7102         Tests for module 'exp2l'.
7103         * modules/exp2l-tests: New file.
7104         * tests/test-exp2l.c: New file.
7105
7106         New module 'exp2l'.
7107         * lib/math.in.h (exp2l): New declaration.
7108         * lib/exp2l.c: New file.
7109         * lib/expl-table.c: New file, extracted from lib/expl.c.
7110         * lib/expl.c (gl_expl_table): New declaration.
7111         (expl): Remove expl_table. Update reference.
7112         * m4/exp2l.m4: New file.
7113         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
7114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
7115         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
7116         * modules/exp2l: New file.
7117         * modules/expl (Files): Add lib/expl-table.c.
7118         (configure.ac): Compile also expl-table.c.
7119         * tests/test-math-c++.cc: Check the declaration of exp2l.
7120         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
7121         problem.
7122
7123 2012-03-08  Bruno Haible  <bruno@clisp.org>
7124
7125         Tests for module 'exp2f'.
7126         * modules/exp2f-tests: New file.
7127         * tests/test-exp2f.c: New file.
7128
7129         New module 'exp2f'.
7130         * lib/math.in.h (exp2f): New declaration.
7131         * lib/exp2f.c: New file.
7132         * m4/exp2f.m4: New file.
7133         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
7134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
7135         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
7136         * modules/exp2f: New file.
7137         * tests/test-math-c++.cc: Check the declaration of exp2f.
7138         * doc/posix-functions/exp2f.texi: Mention the new module and the
7139         IRIX problem.
7140
7141 2012-03-08  Bruno Haible  <bruno@clisp.org>
7142
7143         Tests for module 'exp2'.
7144         * modules/exp2-tests: New file.
7145         * tests/test-exp2.c: New file.
7146         * tests/test-exp2.h: New file.
7147
7148         New module 'exp2'.
7149         * lib/math.in.h (exp2): New declaration.
7150         * lib/exp2.c: New file.
7151         * m4/exp2.m4: New file.
7152         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
7153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
7154         REPLACE_EXP2.
7155         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
7156         REPLACE_EXP2.
7157         * modules/exp2: New file.
7158         * tests/test-math-c++.cc: Check the declaration of exp2.
7159         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
7160         and OpenBSD problems.
7161
7162 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7163
7164         savedir: fix comment typo
7165         * lib/savedir.c (savedirstream): Fix typo in comment.
7166
7167 2012-03-08  Bruno Haible  <bruno@clisp.org>
7168
7169         test-readtokens.c: use const; remove unwarranted cast
7170         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
7171
7172 2012-03-08  Bruno Haible  <bruno@clisp.org>
7173
7174         fmal: Avoid compilation error on AIX.
7175         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
7176         AIX 5.2..7.1.
7177
7178 2012-03-08  Bruno Haible  <bruno@clisp.org>
7179
7180         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
7181         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
7182         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
7183         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
7184         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
7185         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
7186         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
7187
7188 2012-03-08  Bruno Haible  <bruno@clisp.org>
7189
7190         remainderf: Override buggy system function on IRIX 6.5.
7191         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
7192         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
7193         when it exists.
7194         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
7195
7196 2012-03-08  Jim Meyering  <meyering@redhat.com>
7197
7198         test-readtokens.c: avoid const-related compilation warnings
7199         * tests/test-readtokens.c: Avoid const-related compilation warnings.
7200
7201 2012-03-07  Jim Meyering  <meyering@redhat.com>
7202             Bruno Haible  <bruno@clisp.org>
7203
7204         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7205         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7206         tests/randomd.c.
7207         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7208         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7209         tests/randoml.c.
7210         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7211
7212 2012-03-07  Bruno Haible  <bruno@clisp.org>
7213
7214         expm1l: Avoid compilation error on AIX.
7215         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7216         AIX 5.2..7.1.
7217
7218 2012-03-07  Bruno Haible  <bruno@clisp.org>
7219
7220         expm1l: Don't override undeclared system function on IRIX 6.5.
7221         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7222         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7223         it exists. Set HAVE_DECL_EXPM1L.
7224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7225         HAVE_EXPM1L.
7226         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7227         HAVE_EXPM1L.
7228         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7229
7230 2012-03-07  Bruno Haible  <bruno@clisp.org>
7231
7232         remainderl: Don't override undeclared system function on IRIX 6.5.
7233         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7234         HAVE_REMAINDERL.
7235         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7236         declared when it exists. Set HAVE_DECL_REMAINDERL.
7237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7238         not HAVE_REMAINDERL.
7239         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7240         HAVE_REMAINDERL.
7241         * doc/posix-functions/remainderl.texi: Mention missing declaration
7242         problem.
7243
7244 2012-03-07  Bruno Haible  <bruno@clisp.org>
7245
7246         rintf: Don't override undeclared system function on IRIX 6.5.
7247         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7248         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7249         exists. Set HAVE_DECL_RINTF.
7250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7251         HAVE_RINTF.
7252         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7253         HAVE_RINTF.
7254         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7255
7256 2012-03-07  Bruno Haible  <bruno@clisp.org>
7257
7258         roundl: Avoid compilation error on AIX.
7259         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7260         AIX 5.2..7.1.
7261
7262 2012-03-07  Bruno Haible  <bruno@clisp.org>
7263
7264         roundl: Don't override undeclared system function on IRIX 6.5.
7265         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7266         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7267         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7268         * modules/roundl (configure.ac): For replacement code, test
7269         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7270         (Depends-on): Update conditions.
7271         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7272
7273 2012-03-07  Bruno Haible  <bruno@clisp.org>
7274
7275         roundf: Don't override undeclared system function on IRIX 6.5.
7276         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7277         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7278         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7279         * modules/roundf (configure.ac): For replacement code, test
7280         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7281         (Depends-on): Update conditions.
7282         * modules/roundf-ieee (Depends-on): Update conditions.
7283         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7284
7285 2012-03-07  Bruno Haible  <bruno@clisp.org>
7286
7287         round: Don't override undeclared system function on IRIX 6.5.
7288         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7289         argument.
7290         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7291         also when it is not declared. Set HAVE_ROUND. For replacement code,
7292         test HAVE_ROUND, not HAVE_DECL_ROUND.
7293         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7294         not HAVE_DECL_ROUND.
7295         (Depends-on): Update conditions.
7296         * modules/round-ieee (Depends-on): Update conditions.
7297         * doc/posix-functions/round.texi: Mention the IRIX problem.
7298
7299 2012-03-07  Bruno Haible  <bruno@clisp.org>
7300
7301         copysignf: Don't override undeclared system function on IRIX 6.5.
7302         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7303         HAVE_COPYSIGNF.
7304         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7305         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7307         not HAVE_COPYSIGNF.
7308         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7309         HAVE_COPYSIGNF.
7310         * doc/posix-functions/copysignf.texi: Mention missing declaration
7311         problem.
7312
7313 2012-03-07  Jim Meyering  <meyering@redhat.com>
7314
7315         readtokens: add tests
7316         * modules/readtokens-tests: New file.
7317         * tests/test-readtokens.c: New file.
7318
7319 2012-03-07  Jim Meyering  <meyering@redhat.com>
7320
7321         quotearg: the module must now include quote.h
7322         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7323         So must the module.
7324         * modules/quotearg (Files): Add quote.h.
7325
7326 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7327
7328         readtokens: avoid core dumps with unusual calling patterns
7329         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7330         * lib/readtokens.c: Include limits.h.
7331         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7332         (readtoken): Don't cache the delimiters; the cache code was buggy
7333         if !delim && saved_delim, or if the new n_delim differs from the old.
7334         Also, it wasn't thread-safe.
7335
7336 2012-03-07  Bruno Haible  <bruno@clisp.org>
7337
7338         quote: Adhere to common module description layout.
7339         * modules/quote (Makefile.am): Add back empty section.
7340
7341 2012-03-06  Akim Demaille  <demaille@gostai.com>
7342
7343         quote: fuse into quotearg
7344         This patch is made for the benefit of Bison.
7345         quote does not leave the choice of the quoting style to the user.
7346         quoting_style provides poor customizability, yet quoting_options,
7347         which is very rich, is hidden inside quotearg.c.  So in order to
7348         allow quote customization, move its implementation to quotearg.c.
7349         * lib/quote.c: Remove.
7350         * modules/quote: Adjust.
7351         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7352         warning: provide all the members of literal structs.
7353         (quote_quoting_options): New.
7354         (quote, quote_n): Import implementation from quote.c.
7355         * lib/quote.h: Import the comments from quote.c.
7356         (quote_quoting_options): New.
7357
7358 2012-03-06  Bruno Haible  <bruno@clisp.org>
7359
7360         Tests for module 'expm1l-ieee'.
7361         * modules/expm1l-ieee-tests: New file.
7362         * tests/test-expm1l-ieee.c: New file.
7363
7364         New module 'expm1l-ieee'.
7365         * modules/expm1l-ieee: New file.
7366
7367         Tests for module 'expm1f-ieee'.
7368         * modules/expm1f-ieee-tests: New file.
7369         * tests/test-expm1f-ieee.c: New file.
7370
7371         New module 'expm1f-ieee'.
7372         * modules/expm1f-ieee: New file.
7373
7374         Tests for module 'expm1-ieee'.
7375         * modules/expm1-ieee-tests: New file.
7376         * tests/test-expm1-ieee.c: New file.
7377         * tests/test-expm1-ieee.h: New file.
7378
7379         New module 'expm1-ieee'.
7380         * modules/expm1-ieee: New file.
7381         * m4/expm1-ieee.m4: New file.
7382         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7383         whether expm1 works with a minus zero argument. Replace it if not.
7384         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7386         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7387         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7388         (Depends-on): Update conditions.
7389         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7390         AIX problem.
7391
7392 2012-03-06  Bruno Haible  <bruno@clisp.org>
7393
7394         Work around expm1f bug on IRIX 6.5.
7395         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7396         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7397         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7398         not work.
7399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7400         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7401         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7402         (Depends-on): Update conditions.
7403         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7404
7405 2012-03-06  Bruno Haible  <bruno@clisp.org>
7406
7407         Tests for module 'expm1l'.
7408         * modules/expm1l-tests: New file.
7409         * tests/test-expm1l.c: New file.
7410
7411         New module 'expm1l'.
7412         * lib/math.in.h (expm1l): New declaration.
7413         * lib/expm1l.c: New file.
7414         * m4/expm1l.m4: New file.
7415         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7417         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7418         * modules/expm1l: New file.
7419         * tests/test-math-c++.cc: Check the declaration of expm1l.
7420         * doc/posix-functions/expm1l.texi: Mention the new module.
7421
7422 2012-03-06  Bruno Haible  <bruno@clisp.org>
7423
7424         Tests for module 'expm1f'.
7425         * modules/expm1f-tests: New file.
7426         * tests/test-expm1f.c: New file.
7427
7428         New module 'expm1f'.
7429         * lib/math.in.h (expm1f): New declaration.
7430         * lib/expm1f.c: New file.
7431         * m4/expm1f.m4: New file.
7432         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7434         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7435         * modules/expm1f: New file.
7436         * tests/test-math-c++.cc: Check the declaration of expm1f.
7437         * doc/posix-functions/expm1f.texi: Mention the new module.
7438
7439 2012-03-06  Bruno Haible  <bruno@clisp.org>
7440
7441         Tests for module 'expm1'.
7442         * modules/expm1-tests: New file.
7443         * tests/test-expm1.c: New file.
7444         * tests/test-expm1.h: New file.
7445
7446         New module 'expm1'.
7447         * lib/math.in.h (expm1): New declaration.
7448         * lib/expm1.c: New file.
7449         * m4/expm1.m4: New file.
7450         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7452         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7453         * modules/expm1: New file.
7454         * tests/test-math-c++.cc: Check the declaration of expm1.
7455         * doc/posix-functions/expm1.texi: Mention the new module.
7456
7457 2012-03-06  Bruno Haible  <bruno@clisp.org>
7458
7459         math: Ensure declarations of math functions.
7460         * modules/acosf (Depends-on): Add 'extensions'.
7461         * modules/asinf (Depends-on): Likewise.
7462         * modules/atan2f (Depends-on): Likewise.
7463         * modules/atanf (Depends-on): Likewise.
7464         * modules/cbrt (Depends-on): Likewise.
7465         * modules/cbrtf (Depends-on): Likewise.
7466         * modules/cbrtl (Depends-on): Likewise.
7467         * modules/copysignf (Depends-on): Likewise.
7468         * modules/copysignl (Depends-on): Likewise.
7469         * modules/cosf (Depends-on): Likewise.
7470         * modules/coshf (Depends-on): Likewise.
7471         * modules/expf (Depends-on): Likewise.
7472         * modules/fabsf (Depends-on): Likewise.
7473         * modules/fabsl (Depends-on): Likewise.
7474         * modules/fmaf (Depends-on): Likewise.
7475         * modules/fmal (Depends-on): Likewise.
7476         * modules/fmodf (Depends-on): Likewise.
7477         * modules/fmodl (Depends-on): Likewise.
7478         * modules/frexpf (Depends-on): Likewise.
7479         * modules/frexpl (Depends-on): Likewise.
7480         * modules/hypot (Depends-on): Likewise.
7481         * modules/hypotf (Depends-on): Likewise.
7482         * modules/hypotl (Depends-on): Likewise.
7483         * modules/ldexpf (Depends-on): Likewise.
7484         * modules/ldexpl (Depends-on): Likewise.
7485         * modules/log10f (Depends-on): Likewise.
7486         * modules/log10l (Depends-on): Likewise.
7487         * modules/log1p (Depends-on): Likewise.
7488         * modules/logb (Depends-on): Likewise.
7489         * modules/logf (Depends-on): Likewise.
7490         * modules/modff (Depends-on): Likewise.
7491         * modules/modfl (Depends-on): Likewise.
7492         * modules/powf (Depends-on): Likewise.
7493         * modules/remainderf (Depends-on): Likewise.
7494         * modules/remainderl (Depends-on): Likewise.
7495         * modules/rintf (Depends-on): Likewise.
7496         * modules/rintl (Depends-on): Likewise.
7497         * modules/sinf (Depends-on): Likewise.
7498         * modules/sinhf (Depends-on): Likewise.
7499         * modules/sqrtf (Depends-on): Likewise.
7500         * modules/tanf (Depends-on): Likewise.
7501         * modules/tanhf (Depends-on): Likewise.
7502         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7503         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7504         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7505         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7506         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7507         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7508         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7509         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7510         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7511         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7512         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7513         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7514         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7515         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7516         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7517         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7518         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7519         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7520         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7521         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7522         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7523         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7524         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7525         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7526         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7527         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7528         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7529         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7530         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7531         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7532         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7533         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7534         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7535         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7536         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7537         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7538         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7539         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7540         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7541         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7542         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7543
7544 2012-03-06  Bruno Haible  <bruno@clisp.org>
7545
7546         math: Update module names in warnings.
7547         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7548         tanl): Use specific module name in warn-on-use warning.
7549
7550 2012-03-06  Bruno Haible  <bruno@clisp.org>
7551
7552         expl: Simplify computation.
7553         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7554
7555 2012-03-05  Bruno Haible  <bruno@clisp.org>
7556
7557         exp* tests: More tests.
7558         * tests/test-exp.h: New file.
7559         * tests/test-exp.c: Include <float.h> and test-exp.h.
7560         (main): Invoke test_function.
7561         * tests/test-expf.c: Include <float.h> and test-exp.h.
7562         (main): Invoke test_function.
7563         * tests/test-expl.c: Include <float.h> and test-exp.h.
7564         (main): Invoke test_function.
7565         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7566         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7567         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7568         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7569         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7570         (Depends-on): Add 'float'.
7571         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7572
7573         expl: Fix precision of computed result.
7574         * lib/expl.c: Completely rewritten.
7575         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7576         (Maintainer): Add me.
7577         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7578
7579 2012-03-05  Bruno Haible  <bruno@clisp.org>
7580
7581         cbrt* tests: More tests.
7582         * tests/test-cbrt.h: New file.
7583         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7584         (main): Invoke test_function.
7585         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7586         (main): Invoke test_function.
7587         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7588         (main): Invoke test_function.
7589         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7590         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7591         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7592         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7593         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7594         (Depends-on): Add 'float'.
7595         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7596
7597 2012-03-05  Bruno Haible  <bruno@clisp.org>
7598
7599         hypot* tests: More tests.
7600         * tests/test-hypot.h: New file, partially extracted from
7601         tests/test-hypotl.c.
7602         * tests/test-hypot.c: Include test-hypot.h.
7603         (main): Invoke test_function.
7604         * tests/test-hypotf.c: Include test-hypot.h.
7605         (main): Invoke test_function.
7606         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7607         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7608         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7609         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7610         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7611         tests/randomf.c.
7612         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7613         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7614         tests/randoml.c.
7615         (Depends-on): Add 'fpucw', 'float'.
7616         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7617
7618 2012-03-05  Bruno Haible  <bruno@clisp.org>
7619
7620         fpucw: Doc about FreeBSD.
7621         * lib/fpucw.h: Mention FreeBSD in comments.
7622
7623 2012-03-04  Bruno Haible  <bruno@clisp.org>
7624
7625         sqrt* tests: More tests.
7626         * tests/test-sqrt.h: New file.
7627         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7628         (main): Invoke test_function.
7629         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7630         (main): Invoke test_function.
7631         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7632         (main): Invoke test_function.
7633         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7634         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7635         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7636         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7637         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7638         (Depends-on): Add 'float'.
7639         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7640
7641 2012-03-04  Bruno Haible  <bruno@clisp.org>
7642
7643         remainder* tests: More tests.
7644         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7645         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7646         (main): Invoke test_function.
7647         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7648         (main): Invoke test_function.
7649         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7650         (main): Invoke test_function.
7651         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7652         tests/randomd.c.
7653         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7654         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7655         tests/randomf.c.
7656         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7657         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7658         tests/randoml.c.
7659         (Depends-on): Add 'float'.
7660         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7661
7662 2012-03-04  Bruno Haible  <bruno@clisp.org>
7663
7664         remainder, remainderf, remainderl: Fix computation for large quotients.
7665         * lib/remainder.c: Completely rewritten.
7666         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7667         USE_FLOAT.
7668         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7669         USE_LONG_DOUBLE.
7670         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7671         isnand, isinf. Remove round, fma.
7672         * modules/remainderf (Files): Add lib/remainder.c.
7673         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7674         Remove roundf, fmaf.
7675         * modules/remainderl (Files): Add lib/remainder.c.
7676         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7677         isinf. Remove roundl, fmal.
7678         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7679         REMAINDER_LIBM.
7680         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7681         REMAINDERF_LIBM.
7682         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7683         REMAINDERL_LIBM.
7684
7685 2012-03-04  Bruno Haible  <bruno@clisp.org>
7686
7687         fmod* tests: More tests.
7688         * tests/test-fmod.h (my_ldexp): New function.
7689         (test_function): Reduce amount of random numbers to test. Add tests
7690         of very large quotients x / y.
7691         * tests/test-fmod.c (MAX_EXP): New macro.
7692         * tests/test-fmodf.c (MAX_EXP): Likewise.
7693         * tests/test-fmodl.c (MAX_EXP): Likewise.
7694
7695 2012-03-04  Bruno Haible  <bruno@clisp.org>
7696
7697         fmod, fmodl: Fix computation for large quotients x / y.
7698         * lib/fmod.c: Completely rewritten.
7699         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7700         USE_LONG_DOUBLE.
7701         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7702         isnand. Remove fma.
7703         * modules/fmodl (Files): Add lib/fmod.c.
7704         (Depends-on): Add float, isfinite, signbit, fabsl,
7705         frexpl, ldexpl, isnanl. Remove fma.
7706         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7707         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7708
7709 2012-03-03  Bruno Haible  <bruno@clisp.org>
7710
7711         fmod* tests: More tests.
7712         * tests/test-fmod.h: New file.
7713         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7714         (main): Invoke test_function.
7715         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7716         (main): Invoke test_function.
7717         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7718         (main): Invoke test_function.
7719         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7720         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7721         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7722         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7723         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7724         (Depends-on): Add 'float'.
7725         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7726
7727 2012-03-03  Bruno Haible  <bruno@clisp.org>
7728
7729         rint* tests: More tests.
7730         * tests/test-rint.h: New file, partially extracted from
7731         tests/test-rintl.c.
7732         * tests/test-rint.c: Include test-rint.h.
7733         (main): Invoke test_function.
7734         * tests/test-rintf.c: Include test-rint.h.
7735         (main): Invoke test_function.
7736         * tests/test-rintl.c: Include test-rint.h.
7737         (main): Invoke test_function.
7738         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7739         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7740         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7741         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7742         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7743         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7744
7745 2012-03-03  Bruno Haible  <bruno@clisp.org>
7746
7747         modf* tests: More tests.
7748         * tests/test-modf.h: New file.
7749         * tests/test-modf.c: Include <float.h> and test-modf.h.
7750         (main): Invoke test_function.
7751         * tests/test-modff.c: Include <float.h> and test-modf.h.
7752         (main): Invoke test_function.
7753         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7754         (main): Invoke test_function.
7755         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7756         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7757         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7758         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7759         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7760         (Depends-on): Add 'float'.
7761         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7762
7763 2012-03-03  Bruno Haible  <bruno@clisp.org>
7764
7765         fabs* tests: More tests.
7766         * tests/test-fabs.h: New file, partially extracted from
7767         tests/test-fabsl.c.
7768         * tests/test-fabs.c (RANDOM): New macro.
7769         * tests/test-fabsf.c (RANDOM): New macro.
7770         * tests/test-fabsl.c (RANDOM): New macro.
7771         * modules/fabs-tests (Files): Add tests/randomd.c.
7772         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7773         * modules/fabsf-tests (Files): Add tests/randomf.c.
7774         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7775         * modules/fabsl-tests (Files): Add tests/randoml.c.
7776         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7777
7778 2012-03-03  Bruno Haible  <bruno@clisp.org>
7779
7780         ldexp* tests: More tests.
7781         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7782         * tests/test-ldexp.c (RANDOM): New macro.
7783         * tests/test-ldexpf.c (RANDOM): New macro.
7784         * tests/test-ldexpl.c (RANDOM): New macro.
7785         * modules/ldexp-tests (Files): Add tests/randomd.c.
7786         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7787         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7788         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7789         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7790         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7791
7792 2012-03-03  Bruno Haible  <bruno@clisp.org>
7793
7794         frexp* tests: More tests.
7795         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7796         * tests/test-frexp.c (RANDOM): New macro.
7797         * tests/test-frexpf.c (RANDOM): New macro.
7798         * tests/test-frexpl.c (RANDOM): New macro.
7799         * modules/frexp-tests (Files): Add tests/randomd.c.
7800         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7801         * modules/frexpf-tests (Files): Add tests/randomf.c.
7802         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7803         * modules/frexpl-tests (Files): Add tests/randoml.c.
7804         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7805
7806 2012-03-03  Bruno Haible  <bruno@clisp.org>
7807
7808         Support for pseudo-random numbers in tests.
7809         * tests/randomf.c: New file.
7810         * tests/randomd.c: New file.
7811         * tests/randoml.c: New file.
7812         * tests/macros.h (randomf, randomd, randoml): New declarations.
7813
7814 2012-03-03  Bruno Haible  <bruno@clisp.org>
7815
7816         frexp* tests: Refactor.
7817         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7818         * tests/test-frexp.c: Include and use it.
7819         * tests/test-frexpf.c: Likewise.
7820         * tests/test-frexpl.c: Likewise.
7821         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7822         * modules/frexpf-tests (Files): Likewise.
7823         * modules/frexpl-tests (Files): Likewise.
7824
7825 2012-03-02  Jim Meyering  <meyering@redhat.com>
7826
7827         maint: don't specify XZ_OPT=-9ev in dist-related rule
7828         Using xz's -9 option is warranted only if you have a very large
7829         tarball (see xz's documentation for the sizes vs. presets), and
7830         requires 64MiB of memory at decompression time.
7831         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7832         Automake's default of just "-e" is fine.  Override on a
7833         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7834
7835 2012-03-01  Eric Blake  <eblake@redhat.com>
7836
7837         maint.mk: allow announcement for non-gnulib project
7838         * maint.mk (announcement): Skip gnulib version if not used.
7839
7840 2012-03-01  Jim Meyering  <meyering@redhat.com>
7841
7842         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7843         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7844         envvar settings cannot interfere.  Otherwise, setting envvars like
7845         prohibit=foo require=bar, etc. would cause spurious test failures.
7846
7847 2012-03-01  Eric Blake  <eblake@redhat.com>
7848
7849         maint.mk: add per-line exclusions to prohibitions
7850         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7851         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7852         (sc_const_long_option): Use it.
7853
7854 2012-03-01  Bruno Haible  <bruno@clisp.org>
7855
7856         Tests for module 'expl-ieee'.
7857         * modules/expl-ieee-tests: New file.
7858         * tests/test-expl-ieee.c: New file.
7859
7860         New module 'expl-ieee'.
7861         * modules/expl-ieee: New file.
7862
7863         Tests for module 'exp-ieee'.
7864         * modules/exp-ieee-tests: New file.
7865         * tests/test-exp-ieee.c: New file.
7866
7867         New module 'exp-ieee'.
7868         * modules/exp-ieee: New file.
7869
7870         Tests for module 'expf-ieee'.
7871         * modules/expf-ieee-tests: New file.
7872         * tests/test-expf-ieee.c: New file.
7873         * tests/test-exp-ieee.h: New file.
7874
7875         New module 'expf-ieee'.
7876         * modules/expf-ieee: New file.
7877
7878 2012-02-29  Bruno Haible  <bruno@clisp.org>
7879
7880         cbrtl-ieee: Work around test failure on IRIX 6.5.
7881         * m4/cbrtl-ieee.m4: New file.
7882         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7883         test whether cbrtl works with a minus zero argument. Replace it if not.
7884         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7886         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7887         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7888         (Depends-on): Update conditions.
7889         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7890         m4/signbit.m4.
7891         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7892         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7893         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7894
7895         Tests for module 'cbrtl-ieee'.
7896         * modules/cbrtl-ieee-tests: New file.
7897         * tests/test-cbrtl-ieee.c: New file.
7898
7899         New module 'cbrtl-ieee'.
7900         * modules/cbrtl-ieee: New file.
7901
7902         Tests for module 'cbrt-ieee'.
7903         * modules/cbrt-ieee-tests: New file.
7904         * tests/test-cbrt-ieee.c: New file.
7905
7906         New module 'cbrt-ieee'.
7907         * modules/cbrt-ieee: New file.
7908
7909         Tests for module 'cbrtf-ieee'.
7910         * modules/cbrtf-ieee-tests: New file.
7911         * tests/test-cbrtf-ieee.c: New file.
7912         * tests/test-cbrt-ieee.h: New file.
7913
7914         New module 'cbrtf-ieee'.
7915         * modules/cbrtf-ieee: New file.
7916
7917 2012-02-29  Bruno Haible  <bruno@clisp.org>
7918
7919         cbrtf: Work around bug in IRIX 6.5 system function.
7920         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7921         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7922         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7923         work.
7924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7925         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7926         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7927         (Depends-on): Update conditions.
7928         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7929
7930 2012-02-29  Bruno Haible  <bruno@clisp.org>
7931
7932         Tests for module 'cbrtl'.
7933         * modules/cbrtl-tests: New file.
7934         * tests/test-cbrtl.c: New file.
7935
7936         New module 'cbrtl'.
7937         * lib/math.in.h (cbrtl): New declaration.
7938         * lib/cbrtl.c: New file.
7939         * m4/cbrtl.m4: New file.
7940         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7942         HAVE_DECL_CBRTL.
7943         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7944         HAVE_DECL_CBRTL.
7945         * modules/cbrtl: New file.
7946         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7947         * doc/posix-functions/cbrtl.texi: Mention the new module.
7948
7949 2012-02-29  Bruno Haible  <bruno@clisp.org>
7950
7951         Tests for module 'cbrtf'.
7952         * modules/cbrtf-tests: New file.
7953         * tests/test-cbrtf.c: New file.
7954
7955         New module 'cbrtf'.
7956         * lib/math.in.h (cbrtf): New declaration.
7957         * lib/cbrtf.c: New file.
7958         * m4/cbrtf.m4: New file.
7959         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7961         HAVE_DECL_CBRTF.
7962         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7963         HAVE_DECL_CBRTF.
7964         * modules/cbrtf: New file.
7965         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7966         * doc/posix-functions/cbrtf.texi: Mention the new module.
7967
7968 2012-02-29  Bruno Haible  <bruno@clisp.org>
7969
7970         cbrt: Provide replacement on MSVC and Minix.
7971         * lib/math.in.h (cbrt): New declaration.
7972         * lib/cbrt.c: New file.
7973         * m4/cbrt.m4: New file.
7974         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7976         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7977         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7978         (Depends-on): Add dependencies.
7979         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7980         * tests/test-math-c++.cc: Check the declaration of cbrt.
7981         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7982         replacement.
7983
7984 2012-02-29  Bruno Haible  <bruno@clisp.org>
7985
7986         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7987         * m4/hypotl-ieee.m4: New file.
7988         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7989         test whether hypotl works with mixed NaN and Infinity arguments.
7990         Replace it if not.
7991         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7993         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7994         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7995         (Depends-on): Update conditions.
7996         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7997         (Depends-on): Add hypot-ieee.
7998         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7999         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
8000
8001         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
8002         * m4/hypotf-ieee.m4: New file.
8003         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
8004         test whether hypotf works with mixed NaN and Infinity arguments.
8005         Replace it if not.
8006         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
8007         (Depends-on): Add hypot-ieee.
8008         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
8009         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
8010
8011         hypot-ieee: Work around test failure on OSF/1 and native Windows.
8012         * lib/math.in.h (hypot): New declaration.
8013         * lib/hypot.c: New file.
8014         * m4/hypot-ieee.m4: New file.
8015         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
8016         whether hypot works with mixed NaN and Infinity arguments. Replace it
8017         if not.
8018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
8019         REPLACE_HYPOT.
8020         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
8021         * modules/hypot (Files): Add lib/hypot.c.
8022         (Depends-on): Add dependencies.
8023         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
8024         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
8025         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
8026         * tests/test-math-c++.cc: Check the declaration of hypot.
8027         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
8028
8029         Tests for module 'hypotl-ieee'.
8030         * modules/hypotl-ieee-tests: New file.
8031         * tests/test-hypotl-ieee.c: New file.
8032
8033         New module 'hypotl-ieee'.
8034         * modules/hypotl-ieee: New file.
8035
8036         Tests for module 'hypot-ieee'.
8037         * modules/hypot-ieee-tests: New file.
8038         * tests/test-hypot-ieee.c: New file.
8039
8040         New module 'hypot-ieee'.
8041         * modules/hypot-ieee: New file.
8042
8043         Tests for module 'hypotf-ieee'.
8044         * modules/hypotf-ieee-tests: New file.
8045         * tests/test-hypotf-ieee.c: New file.
8046         * tests/test-hypot-ieee.h: New file.
8047
8048         New module 'hypotf-ieee'.
8049         * modules/hypotf-ieee: New file.
8050
8051 2012-02-29  Bruno Haible  <bruno@clisp.org>
8052
8053         Remove unused variables.
8054         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
8055         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
8056         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
8057         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
8058
8059 2012-02-29  Eric Blake  <eblake@redhat.com>
8060
8061         termios: fix pid_t always, not just for tcgetsid
8062         * doc/posix-headers/termios.texi (termios.h): Mention problem.
8063         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
8064         just when building tcgetsid.
8065
8066 2012-02-29  Bruno Haible  <bruno@clisp.org>
8067
8068         Tests for module 'hypotl'.
8069         * modules/hypotl-tests: New file.
8070         * tests/test-hypotl.c: New file.
8071
8072         New module 'hypotl'.
8073         * lib/math.in.h (hypotl): New declaration.
8074         * lib/hypotl.c: New file.
8075         * m4/hypotl.m4: New file.
8076         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
8078         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
8079         * modules/hypotl: New file.
8080         * tests/test-math-c++.cc: Check the hypotl declaration.
8081         * doc/posix-functions/hypotl.texi: Mention the new module.
8082
8083 2012-02-29  Eric Blake  <eblake@redhat.com>
8084
8085         tcgetsid: fix cygwin header bug
8086         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
8087
8088         docs: update cygwin progress
8089         * doc/posix-functions/llround.texi (llround): Added in cygwin
8090         1.7.8.
8091         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
8092         * doc/glibc-functions/program_invocation_name.texi
8093         (program_invocation_name): Likewise.
8094         * doc/glibc-functions/program_invocation_short_name.texi
8095         (program_invocation_short_name): Likewise.
8096         * doc/glibc-functions/madvise.texi (madvise): Likewise.
8097         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
8098         Likewise.
8099         * doc/posix-functions/pthread_spin_destroy.texi
8100         (pthread_spin_destroy): Added in cygwin 1.7.10.
8101         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
8102         Likewise.
8103         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
8104         Likewise.
8105         * doc/posix-functions/pthread_spin_trylock.texi
8106         (pthread_spin_trylock): Likewise.
8107         * doc/posix-functions/pthread_spin_unlock.texi
8108         (pthread_spin_unlock): Likewise.
8109         * doc/posix-functions/pthread_setschedprio.texi
8110         (pthread_setschedprio): Likewise.
8111         * doc/posix-functions/pthread_attr_getstack.texi
8112         (pthread_attr_getstack): Likewise.
8113         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
8114         (pthread_attr_getstackaddr): Likewise.
8115         * doc/glibc-functions/pthread_getattr_np.texi
8116         (pthread_getattr_np): Likewise.
8117         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
8118         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
8119         * doc/posix-functions/clock_settime.texi (clock_settime):
8120         Likewise.
8121         * doc/posix-functions/pthread_attr_getguardsize.texi
8122         (pthread_attr_getguardsize): Likewise.
8123         * doc/posix-functions/pthread_attr_setguardsize.texi
8124         (pthread_attr_setguardsize): Likewise.
8125         * doc/posix-functions/pthread_attr_setstack.texi
8126         (pthread_attr_setstack): Likewise.
8127         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
8128         (pthread_attr_setstackaddr): Likewise.
8129         * doc/posix-functions/clock_getcpuclockid.texi
8130         (clock_getcpuclockid): Likewise.
8131         * doc/posix-functions/pthread_getcpuclockid.texi
8132         (pthread_getcpuclockid): Likewise.
8133         * doc/glibc-functions/error.texi (error): Likewise.
8134         * doc/glibc-functions/error_at_line.texi (error_at_line):
8135         Likewise.
8136         * doc/glibc-functions/error_message_count.texi
8137         (error_message_count): Likewise.
8138         * doc/glibc-functions/error_one_per_line.texi
8139         (error_one_per_line): Likewise.
8140         * doc/glibc-functions/error_print_progname.texi
8141         (error_print_progname): Likewise.
8142         * doc/posix-functions/pthread_condattr_getclock.texi
8143         (pthread_condattr_getclock): Likewise.
8144         * doc/posix-functions/pthread_condattr_setclock.texi
8145         (pthread_condattr_setclock): Likewise.
8146         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
8147         Likewise.
8148         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
8149         * doc/glibc-functions/getpt.texi (getpt): Likewise.
8150         * doc/glibc-functions/get_current_dir_name.texi
8151         (get_current_dir_name): Likewise.
8152         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
8153         Likewise.
8154         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
8155         wrong return type.
8156         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
8157         1.7.11.
8158
8159 2012-02-29  Bruno Haible  <bruno@clisp.org>
8160
8161         Tests for module 'hypotf'.
8162         * modules/hypotf-tests: New file.
8163         * tests/test-hypotf.c: New file.
8164
8165         New module 'hypotf'.
8166         * lib/math.in.h (hypotf): New declaration.
8167         * lib/hypotf.c: New file.
8168         * m4/hypotf.m4: New file.
8169         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
8171         REPLACE_HYPOTF.
8172         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
8173         REPLACE_HYPOTF.
8174         * modules/hypotf: New file.
8175         * tests/test-math-c++.cc: Check the hypotf declaration.
8176         * doc/posix-functions/hypotf.texi: Mention the new module.
8177
8178         hypot: Prepare for hypotf module.
8179         * m4/hypot.m4: New file.
8180         * modules/hypot (Files): Add m4/hypot.m4.
8181         (configure.ac): Invoke gl_FUNC_HYPOT.
8182
8183 2012-02-29  Bruno Haible  <bruno@clisp.org>
8184
8185         hypot tests: More tests.
8186         * tests/test-hypot.c: Include <float.h>.
8187         (main): Add tests about overflow and underflow.
8188
8189 2012-02-29  Bruno Haible  <bruno@clisp.org>
8190
8191         math code: Add comments.
8192         * lib/acosl.c: Add comment about related glibc source files.
8193         * lib/asinl.c: Likewise.
8194         * lib/atanl.c: Likewise.
8195         * lib/expl.c: Likewise.
8196         * lib/logl.c: Likewise.
8197         * lib/sincosl.c: Likewise.
8198         * lib/sinl.c: Likewise.
8199         * lib/tanl.c: Likewise.
8200         * lib/trigl.c: Likewise.
8201         * lib/cosl.c: Likewise. Fix comments.
8202
8203 2012-02-28  Bruno Haible  <bruno@clisp.org>
8204
8205         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8206         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8207         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8208         HUGE_VALL are defined.
8209         (numeric_equald): Renamed from numeric_equal.
8210         (numeric_equalf, numeric_equall): New functions.
8211         (main): Check also HUGE_VALF, HUGE_VALL.
8212         * modules/math-tests (Files): Add tests/macros.h.
8213         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8214         HUGE_VALL.
8215
8216 2012-02-28  Bruno Haible  <bruno@clisp.org>
8217
8218         doc: Move ISO C11 feature notes into POSIX chapters.
8219         * doc/posix-functions/aligned_alloc.texi: Renamed from
8220         doc/glibc-functions/aligned_alloc.texi.
8221         * doc/posix-functions/quick_exit.texi: Renamed from
8222         doc/glibc-functions/quick_exit.texi.
8223         * doc/posix-headers/uchar.texi: Renamed from
8224         doc/glibc-headers/uchar.texi.
8225         * doc/posix-functions/c16rtomb.texi: Renamed from
8226         doc/glibc-functions/c16rtomb.texi.
8227         * doc/posix-functions/c32rtomb.texi: Renamed from
8228         doc/glibc-functions/c32rtomb.texi.
8229         * doc/posix-functions/mbrtoc16.texi: Renamed from
8230         doc/glibc-functions/mbrtoc16.texi.
8231         * doc/posix-functions/mbrtoc32.texi: Renamed from
8232         doc/glibc-functions/mbrtoc32.texi.
8233         * doc/gnulib.texi: Update.
8234         (Glibc uchar.h): Remove section.
8235         Suggested by Eric Blake.
8236
8237 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8238
8239         stdnoreturn: port to MSVC better
8240         MSVC standard headers use __declspec(noreturn), so #define noreturn
8241         to empty on that platform.  Reported by Bruno Haible in
8242         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8243         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8244         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8245
8246 2012-02-28  Bruno Haible  <bruno@clisp.org>
8247
8248         doc: Mention new glibc headers and functions.
8249         * doc/glibc-headers/uchar.texi: New file.
8250         * doc/glibc-functions/aligned_alloc.texi: New file.
8251         * doc/glibc-functions/c16rtomb.texi: New file.
8252         * doc/glibc-functions/c32rtomb.texi: New file.
8253         * doc/glibc-functions/clock_adjtime.texi: New file.
8254         * doc/glibc-functions/fanotify_init.texi: New file.
8255         * doc/glibc-functions/fanotify_mark.texi: New file.
8256         * doc/glibc-functions/inet6_opt_append.texi: New file.
8257         * doc/glibc-functions/inet6_opt_find.texi: New file.
8258         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8259         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8260         * doc/glibc-functions/inet6_opt_init.texi: New file.
8261         * doc/glibc-functions/inet6_opt_next.texi: New file.
8262         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8263         * doc/glibc-functions/inet6_rth_add.texi: New file.
8264         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8265         * doc/glibc-functions/inet6_rth_init.texi: New file.
8266         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8267         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8268         * doc/glibc-functions/inet6_rth_space.texi: New file.
8269         * doc/glibc-functions/login.texi: New file.
8270         * doc/glibc-functions/mbrtoc16.texi: New file.
8271         * doc/glibc-functions/mbrtoc32.texi: New file.
8272         * doc/glibc-functions/name_to_handle_at.texi: New file.
8273         * doc/glibc-functions/ntp_gettimex.texi: New file.
8274         * doc/glibc-functions/open_by_handle_at.texi: New file.
8275         * doc/glibc-functions/prlimit.texi: New file.
8276         * doc/glibc-functions/process_vm_readv.texi: New file.
8277         * doc/glibc-functions/process_vm_writev.texi: New file.
8278         * doc/glibc-functions/recvmmsg.texi: New file.
8279         * doc/glibc-functions/scandirat.texi: New file.
8280         * doc/glibc-functions/sendmmsg.texi: New file.
8281         * doc/glibc-functions/setns.texi: New file.
8282         * doc/glibc-functions/timespec_get.texi: New file.
8283         * doc/gnulib.texi: Include them.
8284         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8285         sections.
8286         Reported by Eric Blake.
8287
8288 2012-02-28  Bruno Haible  <bruno@clisp.org>
8289
8290         Avoid compilation errors with MSVC option -fp:strict.
8291         * lib/floor.c: Use MSVC specific pragma fenv_access.
8292         * lib/ceil.c: Likewise.
8293         * lib/trunc.c: Likewise.
8294         * lib/round.c: Likewise.
8295         * lib/rint.c: Likewise.
8296         * lib/fma.c: Likewise.
8297         * lib/integer_length.c: Likewise.
8298         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8299         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8300         * tests/test-floor2.c: Likewise.
8301         * tests/test-floorf2.c: Likewise.
8302         * tests/test-ceil2.c: Likewise.
8303         * tests/test-ceilf2.c: Likewise.
8304         * tests/test-trunc2.c: Likewise.
8305         * tests/test-truncf2.c: Likewise.
8306         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8307
8308 2012-02-27  Bruno Haible  <bruno@clisp.org>
8309
8310         Tests for module 'sqrtl-ieee'.
8311         * modules/sqrtl-ieee-tests: New file.
8312         * tests/test-sqrtl-ieee.c: New file.
8313
8314         New module 'sqrtl-ieee'.
8315         * modules/sqrtl-ieee: New file.
8316
8317         Tests for module 'sqrt-ieee'.
8318         * modules/sqrt-ieee-tests: New file.
8319         * tests/test-sqrt-ieee.c: New file.
8320
8321         New module 'sqrt-ieee'.
8322         * modules/sqrt-ieee: New file.
8323
8324         Tests for module 'sqrtf-ieee'.
8325         * modules/sqrtf-ieee-tests: New file.
8326         * tests/test-sqrtf-ieee.c: New file.
8327         * tests/test-sqrt-ieee.h: New file.
8328
8329         New module 'sqrtf-ieee'.
8330         * modules/sqrtf-ieee: New file.
8331
8332 2012-02-27  Bruno Haible  <bruno@clisp.org>
8333
8334         remainderl-ieee: Work around test failure on OSF/1.
8335         * m4/remainderl-ieee.m4: New file.
8336         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8337         present, test whether remainderl works with a zero second argument.
8338         Replace it if not.
8339         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8341         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8342         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8343         (Depends-on): Update conditions.
8344         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8345         (Depends-on): Add remainder-ieee.
8346         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8347         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8348         module.
8349
8350         remainderf-ieee: Work around test failure on OSF/1.
8351         * m4/remainderf-ieee.m4: New file.
8352         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8353         present, test whether remainderf works with a zero second argument.
8354         Replace it if not.
8355         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8357         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8358         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8359         (Depends-on): Update conditions.
8360         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8361         (Depends-on): Add remainder-ieee.
8362         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8363         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8364         module.
8365
8366         remainder-ieee: Work around test failure on OSF/1.
8367         * m4/remainder-ieee.m4: New file.
8368         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8369         present, test whether remainder works with a zero second argument.
8370         Replace it if not.
8371         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8373         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8374         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8375         (Depends-on): Update dependencies.
8376         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8377         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8378         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8379
8380         Tests for module 'remainderl-ieee'.
8381         * modules/remainderl-ieee-tests: New file.
8382         * tests/test-remainderl-ieee.c: New file.
8383
8384         New module 'remainderl-ieee'.
8385         * modules/remainderl-ieee: New file.
8386
8387         Tests for module 'remainder-ieee'.
8388         * modules/remainder-ieee-tests: New file.
8389         * tests/test-remainder-ieee.c: New file.
8390
8391         New module 'remainder-ieee'.
8392         * modules/remainder-ieee: New file.
8393
8394         Tests for module 'remainderf-ieee'.
8395         * modules/remainderf-ieee-tests: New file.
8396         * tests/test-remainderf-ieee.c: New file.
8397         * tests/test-remainder-ieee.h: New file.
8398
8399         New module 'remainderf-ieee'.
8400         * modules/remainderf-ieee: New file.
8401
8402 2012-02-27  Bruno Haible  <bruno@clisp.org>
8403
8404         modff, modfl: Fix configure syntax error.
8405         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8406         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8407
8408 2012-02-27  Bruno Haible  <bruno@clisp.org>
8409
8410         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8411         * m4/fmodl-ieee.m4: New file.
8412         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8413         whether fmodl works with zero arguments. Replace it if not.
8414         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8415         (Depends-on): Add fmod-ieee.
8416         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8417         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8418
8419         fmodf-ieee: Work around test failure on OSF/1.
8420         * m4/fmodf-ieee.m4: New file.
8421         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8422         whether fmodf works with zero arguments. Replace it if not.
8423         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8425         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8426         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8427         (Depends-on): Update dependencies.
8428         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8429         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8430         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8431
8432         fmodf-ieee: Work around test failure on MSVC 9.
8433         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8434         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8435
8436         fmod-ieee: Work around test failures on OSF/1, mingw.
8437         * m4/fmod-ieee.m4: New file.
8438         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8439         whether fmod works with zero arguments. Replace it if not.
8440         * lib/math.in.h (fmod): New declaration.
8441         * lib/fmod.c: New file.
8442         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8444         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8445         * modules/fmod (Files): Add lib/fmod.c.
8446         (Depends-on): Add math, isinf, trunc, fma.
8447         (configure.ac): Arrange to compile lib/fmod.c if needed.
8448         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8449         m4/signbit.m4.
8450         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8451         * tests/test-math-c++.cc: Check the declaration of fmod.
8452         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8453
8454         fmodl-ieee: Fix test failures.
8455         * lib/fmodl.c (fmodl): Treat Inf specially.
8456         * modules/fmodl (Depends-on): Add isinf.
8457
8458         Tests for module 'fmodl-ieee'.
8459         * modules/fmodl-ieee-tests: New file.
8460         * tests/test-fmodl-ieee.c: New file.
8461
8462         New module 'fmodl-ieee'.
8463         * modules/fmodl-ieee: New file.
8464
8465         Tests for module 'fmod-ieee'.
8466         * modules/fmod-ieee-tests: New file.
8467         * tests/test-fmod-ieee.c: New file.
8468
8469         New module 'fmod-ieee'.
8470         * modules/fmod-ieee: New file.
8471
8472         Tests for module 'fmodf-ieee'.
8473         * modules/fmodf-ieee-tests: New file.
8474         * tests/test-fmodf-ieee.c: New file.
8475         * tests/test-fmod-ieee.h: New file.
8476
8477         New module 'fmodf-ieee'.
8478         * modules/fmodf-ieee: New file.
8479
8480 2012-02-27  Bruno Haible  <bruno@clisp.org>
8481
8482         Tests for module 'rintl-ieee'.
8483         * modules/rintl-ieee-tests: New file.
8484         * tests/test-rintl-ieee.c: New file.
8485
8486         New module 'rintl-ieee'.
8487         * modules/rintl-ieee: New file.
8488
8489         Tests for module 'rint-ieee'.
8490         * modules/rint-ieee-tests: New file.
8491         * tests/test-rint-ieee.c: New file.
8492
8493         New module 'rint-ieee'.
8494         * modules/rint-ieee: New file.
8495
8496         Tests for module 'rintf-ieee'.
8497         * modules/rintf-ieee-tests: New file.
8498         * tests/test-rintf-ieee.c: New file.
8499         * tests/test-rint-ieee.h: New file.
8500
8501         New module 'rintf-ieee'.
8502         * modules/rintf-ieee: New file.
8503
8504 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8505
8506         regex: re_search etc. should return -2 when memory exhausted
8507         This bug was uncovered when testing 'grep'.  Without the fix,
8508         re_search and friends return -1 when memory is exhausted, but -1
8509         means no match, and this causes grep to falsely report no-match
8510         instead of memory-exhaustion.  See
8511         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8512         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8513         trouble; this can occur if re_search_internal ran out of memory.
8514
8515 2012-02-26  Bruno Haible  <bruno@clisp.org>
8516
8517         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8518         * m4/modfl-ieee.m4: New file.
8519         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8520         whether modfl works with Inf. Replace it if not.
8521         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8523         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8524         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8525         (Depends-on): Update dependencies.
8526         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8527         m4/signbit.m4.
8528         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8529         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8530
8531         modfl-ieee: Fix dependencies.
8532         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8533
8534         modfl-ieee: Fix test failures.
8535         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8536         * modules/modfl (Depends-on): Add isfinite, isinf.
8537
8538         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8539         * m4/modff-ieee.m4: New file.
8540         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8541         whether modff works with NaN and Inf. Replace it if not.
8542         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8544         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8545         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8546         (Depends-on): Update dependencies.
8547         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8548         m4/signbit.m4.
8549         (Depends-on): Add modf-ieee.
8550         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8551         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8552
8553         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8554         * m4/modf-ieee.m4: New file.
8555         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8556         whether modf works with NaN and Inf. Replace it if not.
8557         * lib/math.in.h (modf): New declaration.
8558         * lib/modf.c: New file.
8559         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8561         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8562         * modules/modf (Files): Add lib/modf.c.
8563         (Depends-on): Add math, isfinite, trunc, isinf.
8564         (configure.ac): Addrange to compile lib/modf.c if needed.
8565         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8566         m4/signbit.m4.
8567         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8568         * tests/test-math-c++.cc: Check the declaration of modf.
8569         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8570
8571         Tests for module 'modfl-ieee'.
8572         * modules/modfl-ieee-tests: New file.
8573         * tests/test-modfl-ieee.c: New file.
8574
8575         New module 'modfl-ieee'.
8576         * modules/modfl-ieee: New file.
8577
8578         Tests for module 'modf-ieee'.
8579         * modules/modf-ieee-tests: New file.
8580         * tests/test-modf-ieee.c: New file.
8581
8582         New module 'modf-ieee'.
8583         * modules/modf-ieee: New file.
8584
8585         Tests for module 'modff-ieee'.
8586         * modules/modff-ieee-tests: New file.
8587         * tests/test-modff-ieee.c: New file.
8588         * tests/test-modf-ieee.h: New file.
8589
8590         New module 'modff-ieee'.
8591         * modules/modff-ieee: New file.
8592
8593 2012-02-26  Bruno Haible  <bruno@clisp.org>
8594
8595         Tests for module 'fabsl-ieee'.
8596         * modules/fabsl-ieee-tests: New file.
8597         * tests/test-fabsl-ieee.c: New file.
8598
8599         New module 'fabsl-ieee'.
8600         * modules/fabsl-ieee: New file.
8601
8602         Tests for module 'fabs-ieee'.
8603         * modules/fabs-ieee-tests: New file.
8604         * tests/test-fabs-ieee.c: New file.
8605
8606         New module 'fabs-ieee'.
8607         * modules/fabs-ieee: New file.
8608
8609         Tests for module 'fabsf-ieee'.
8610         * modules/fabsf-ieee-tests: New file.
8611         * tests/test-fabsf-ieee.c: New file.
8612         * tests/test-fabs-ieee.h: New file.
8613
8614         New module 'fabsf-ieee'.
8615         * modules/fabsf-ieee: New file.
8616
8617 2012-02-26  Bruno Haible  <bruno@clisp.org>
8618
8619         Tests for module 'fmal-ieee'.
8620         * modules/fmal-ieee-tests: New file.
8621         * tests/test-fmal-ieee.c: New file.
8622
8623         New module 'fmal-ieee'.
8624         * modules/fmal-ieee: New file.
8625
8626         Tests for module 'fma-ieee'.
8627         * modules/fma-ieee-tests: New file.
8628         * tests/test-fma-ieee.c: New file.
8629
8630         New module 'fma-ieee'.
8631         * modules/fma-ieee: New file.
8632
8633         Tests for module 'fmaf-ieee'.
8634         * modules/fmaf-ieee-tests: New file.
8635         * tests/test-fmaf-ieee.c: New file.
8636         * tests/test-fma-ieee.h: New file.
8637
8638         New module 'fmaf-ieee'.
8639         * modules/fmaf-ieee: New file.
8640
8641 2012-02-26  Bruno Haible  <bruno@clisp.org>
8642
8643         Tests for module 'ldexpl-ieee'.
8644         * modules/ldexpl-ieee-tests: New file.
8645         * tests/test-ldexpl-ieee.c: New file.
8646
8647         New module 'ldexpl-ieee'.
8648         * modules/ldexpl-ieee: New file.
8649
8650         Tests for module 'ldexp-ieee'.
8651         * modules/ldexp-ieee-tests: New file.
8652         * tests/test-ldexp-ieee.c: New file.
8653
8654         New module 'ldexp-ieee'.
8655         * modules/ldexp-ieee: New file.
8656
8657         Tests for module 'ldexpf-ieee'.
8658         * modules/ldexpf-ieee-tests: New file.
8659         * tests/test-ldexpf-ieee.c: New file.
8660         * tests/test-ldexp-ieee.h: New file.
8661
8662         New module 'ldexpf-ieee'.
8663         * modules/ldexpf-ieee: New file.
8664
8665 2012-02-26  Bruno Haible  <bruno@clisp.org>
8666
8667         Refactor frexp*-ieee tests.
8668         * tests/test-frexp-ieee.h: New file.
8669         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8670         (main): Just call test_function.
8671         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8672         (main): Just call test_function.
8673         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8674         (main): Just call test_function.
8675         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8676         * modules/frexp-ieee-tests (Files): Likewise.
8677         * modules/frexpl-ieee-tests (Files): Likewise.
8678
8679         Tests for module 'frexpl-ieee'.
8680         * modules/frexpl-ieee-tests: New file.
8681         * tests/test-frexpl-ieee.c: New file.
8682
8683         New module 'frexpl-ieee'.
8684         * modules/frexpl-ieee: New file.
8685
8686         Tests for module 'frexp-ieee'.
8687         * modules/frexp-ieee-tests: New file.
8688         * tests/test-frexp-ieee.c: New file.
8689
8690         New module 'frexp-ieee'.
8691         * modules/frexp-ieee: New file.
8692
8693         Tests for module 'frexpf-ieee'.
8694         * modules/frexpf-ieee-tests: New file.
8695         * tests/test-frexpf-ieee.c: New file.
8696
8697         New module 'frexpf-ieee'.
8698         * modules/frexpf-ieee: New file.
8699
8700 2012-02-26  Bruno Haible  <bruno@clisp.org>
8701
8702         roundl-ieee tests: More tests.
8703         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8704         (main): Add tests for [MX] shaded specification in POSIX.
8705         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8706         (Depends-on): Add isnanl-nolibm.
8707
8708         round-ieee tests: More tests.
8709         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8710         (main): Add tests for [MX] shaded specification in POSIX.
8711         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8712         (Depends-on): Add isnand-nolibm.
8713
8714         roundf-ieee tests: More tests.
8715         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8716         (main): Add tests for [MX] shaded specification in POSIX.
8717         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8718         (Depends-on): Add isnanf-nolibm.
8719
8720         truncl-ieee tests: More tests.
8721         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8722         (main): Add tests for [MX] shaded specification in POSIX.
8723         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8724         (Depends-on): Add isnanl-nolibm.
8725
8726         trunc-ieee tests: More tests.
8727         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8728         (main): Add tests for [MX] shaded specification in POSIX.
8729         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8730         (Depends-on): Add isnand-nolibm.
8731
8732         truncf-ieee tests: More tests.
8733         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8734         (main): Add tests for [MX] shaded specification in POSIX.
8735         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8736         (Depends-on): Add isnanf-nolibm.
8737
8738         ceill-ieee tests: More tests.
8739         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8740         (main): Add tests for [MX] shaded specification in POSIX.
8741         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8742         (Depends-on): Add isnanl-nolibm.
8743
8744         ceil-ieee tests: More tests.
8745         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8746         (main): Add tests for [MX] shaded specification in POSIX.
8747         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8748         (Depends-on): Add isnand-nolibm.
8749
8750         ceilf-ieee tests: More tests.
8751         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8752         (main): Add tests for [MX] shaded specification in POSIX.
8753         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8754         (Depends-on): Add isnanf-nolibm.
8755
8756         floorl-ieee tests: More tests.
8757         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8758         (main): Add tests for [MX] shaded specification in POSIX.
8759         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8760         (Depends-on): Add isnanl-nolibm.
8761
8762         floor-ieee tests: More tests.
8763         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8764         (main): Add tests for [MX] shaded specification in POSIX.
8765         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8766         (Depends-on): Add isnand-nolibm.
8767
8768         floorf-ieee tests: More tests.
8769         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8770         (main): Add tests for [MX] shaded specification in POSIX.
8771         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8772         (Depends-on): Add isnanf-nolibm.
8773
8774 2012-02-26  Bruno Haible  <bruno@clisp.org>
8775
8776         fpieee: More comments.
8777         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8778
8779 2012-02-25  Bruno Haible  <bruno@clisp.org>
8780
8781         Tests for module 'log10l'.
8782         * modules/log10l-tests: New file.
8783         * tests/test-log10l.c: New file.
8784         * tests/test-math-c++.cc: Check the declaration of log10l.
8785
8786         New module 'log10l'.
8787         * lib/math.in.h (log10l): New declaration.
8788         * lib/log10l.c: New file.
8789         * m4/log10l.m4: New file.
8790         * modules/log10l: New file.
8791         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8793         HAVE_DECL_LOG10L.
8794         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8795         HAVE_DECL_LOG10L.
8796         * doc/posix-functions/log10l.texi: Mention the new module.
8797
8798 2012-02-25  Bruno Haible  <bruno@clisp.org>
8799
8800         fmodl, remainder*: Avoid wrong results due to rounding errors.
8801         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8802         expected bounds.
8803         * lib/remainderf.c (remainderf): Likewise.
8804         * lib/remainder.c (remainder): Likewise.
8805         * lib/remainderl.c (remainderl): Likewise.
8806
8807 2012-02-25  Bruno Haible  <bruno@clisp.org>
8808
8809         Tests for module 'remainderl'.
8810         * modules/remainderl-tests: New file.
8811         * tests/test-remainderl.c: New file.
8812         * tests/test-math-c++.cc: Check the declaration of remainderl.
8813
8814         New module 'remainderl'.
8815         * lib/math.in.h (remainderl): New declaration.
8816         * lib/remainderl.c: New file.
8817         * m4/remainderl.m4: New file.
8818         * modules/remainderl: New file.
8819         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8821         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8822         HAVE_REMAINDERL.
8823         * doc/posix-functions/remainderl.texi: Mention the new module.
8824
8825 2012-02-25  Bruno Haible  <bruno@clisp.org>
8826
8827         Tests for module 'remainderf'.
8828         * modules/remainderf-tests: New file.
8829         * tests/test-remainderf.c: New file.
8830         * tests/test-math-c++.cc: Check the declaration of remainderf.
8831
8832         New module 'remainderf'.
8833         * lib/math.in.h (remainderf): New declaration.
8834         * lib/remainderf.c: New file.
8835         * m4/remainderf.m4: New file.
8836         * modules/remainderf: New file.
8837         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8839         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8840         HAVE_REMAINDERF.
8841         * doc/posix-functions/remainderf.texi: Mention the new module.
8842
8843 2012-02-25  Bruno Haible  <bruno@clisp.org>
8844
8845         remainder: Support for MSVC.
8846         * lib/math.in.h (remainder): New declaration.
8847         * lib/remainder.c: New file.
8848         * m4/remainder.m4: New file.
8849         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8850         (Depends-on): Add math, round, fma.
8851         (configure.ac): Use results of gl_FUNC_REMAINDER.
8852         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8854         HAVE_DECL_REMAINDER.
8855         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8856         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8857         * tests/test-math-c++.cc: Check the declaration of remainder.
8858         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8859         problems are fixed.
8860
8861 2012-02-25  Bruno Haible  <bruno@clisp.org>
8862
8863         Tests for module 'fmodl'.
8864         * modules/fmodl-tests: New file.
8865         * tests/test-fmodl.c: New file.
8866         * tests/test-math-c++.cc: Check the declaration of fmodl.
8867
8868         New module 'fmodl'.
8869         * lib/math.in.h (fmodl): New declaration.
8870         * lib/fmodl.c: New file.
8871         * m4/fmodl.m4: New file.
8872         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8874         REPLACE_FMODL.
8875         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8876         REPLACE_FMODL.
8877         * modules/fmodl: New file.
8878         * doc/posix-functions/fmodl.texi: Mention the new module.
8879
8880 2012-02-25  Bruno Haible  <bruno@clisp.org>
8881
8882         Tests for module 'modfl'.
8883         * modules/modfl-tests: New file.
8884         * tests/test-modfl.c: New file.
8885         * tests/test-math-c++.cc: Check the declaration of modfl.
8886
8887         New module 'modfl'.
8888         * lib/math.in.h (modfl): New declaration.
8889         * lib/modfl.c: New file.
8890         * m4/modfl.m4: New file.
8891         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8893         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8894         * modules/modfl: New file.
8895         * doc/posix-functions/modfl.texi: Mention the new module.
8896
8897 2012-02-25  Bruno Haible  <bruno@clisp.org>
8898
8899         Tests for module 'fabsl'.
8900         * modules/fabsl-tests: New file.
8901         * tests/test-fabsl.c: New file.
8902         * tests/test-math-c++.cc: Check the declaration of fabsl.
8903
8904         New module 'fabsl'.
8905         * lib/math.in.h (fabsl): New declaration.
8906         * lib/fabsl.c: New file.
8907         * m4/fabsl.m4: New file.
8908         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8910         REPLACE_FABSL.
8911         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8912         REPLACE_FABSL.
8913         * modules/fabsl: New file.
8914         * doc/posix-functions/fabsl.texi: Mention the new module.
8915
8916 2012-02-25  Bruno Haible  <bruno@clisp.org>
8917
8918         fabs tests: More tests.
8919         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8920         (zero): New variable.
8921         (main): Add tests for signed zero.
8922         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8923
8924         fabsf tests: More tests.
8925         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8926         (zero): New variable.
8927         (main): Add tests for signed zero.
8928         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8929
8930 2012-02-24  Bruno Haible  <bruno@clisp.org>
8931
8932         atanl: Provide function definition on MSVC.
8933         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8934         function pointer.
8935         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8936
8937 2012-02-24  Bruno Haible  <bruno@clisp.org>
8938
8939         acosl: Provide function definition on MSVC.
8940         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8941         function pointer.
8942         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8943
8944 2012-02-24  Bruno Haible  <bruno@clisp.org>
8945
8946         asinl: Provide function definition on MSVC.
8947         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8948         function pointer.
8949         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8950
8951 2012-02-24  Bruno Haible  <bruno@clisp.org>
8952
8953         tanl: Provide function definition on MSVC.
8954         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8955         function pointer.
8956         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8957
8958 2012-02-24  Bruno Haible  <bruno@clisp.org>
8959
8960         cosl: Provide function definition on MSVC.
8961         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8962         function pointer.
8963         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8964
8965 2012-02-24  Bruno Haible  <bruno@clisp.org>
8966
8967         sinl: Provide function definition on MSVC.
8968         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8969         function pointer.
8970         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8971
8972 2012-02-24  Bruno Haible  <bruno@clisp.org>
8973
8974         logl: Provide function definition on MSVC.
8975         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8976         function pointer.
8977         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8978
8979 2012-02-24  Bruno Haible  <bruno@clisp.org>
8980
8981         expl: Provide function definition on MSVC.
8982         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8983         function pointer.
8984         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8985
8986 2012-02-24  Bruno Haible  <bruno@clisp.org>
8987
8988         sqrtl: Provide function definition on MSVC.
8989         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8990         a function pointer.
8991         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8992
8993 2012-02-24  Bruno Haible  <bruno@clisp.org>
8994
8995         ceill: Provide function definition on MSVC.
8996         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8997         used as a function pointer.
8998         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8999
9000 2012-02-24  Bruno Haible  <bruno@clisp.org>
9001
9002         floorl: Provide function definition on MSVC.
9003         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
9004         used as a function pointer.
9005         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
9006
9007 2012-02-24  Bruno Haible  <bruno@clisp.org>
9008
9009         ceilf: Provide function definition on MSVC.
9010         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
9011         used as a function pointer.
9012         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
9013
9014 2012-02-24  Bruno Haible  <bruno@clisp.org>
9015
9016         floorf: Provide function definition on MSVC.
9017         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
9018         used as a function pointer.
9019         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
9020
9021 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9022
9023         stdnoreturn: new module
9024         This implements a replacement for C11's <stdnoreturn.h>.
9025         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
9026         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
9027         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9028         * tests/test-stdnoreturn.c: New files.
9029
9030 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
9031
9032         regex: fix false multibyte matches in some regular expressions
9033         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
9034         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
9035         * lib/regex_internal.c (re_string_skip_chars):
9036         Fix miscomputation of remain_len that may cause incomplete
9037         multi-byte character and false match.
9038
9039 2012-02-24  Jim Meyering  <meyering@redhat.com>
9040
9041         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
9042         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
9043         uses with "==" *before* the call, e.g., 0 == strcmp (...)
9044         Remove now-unnecessary str''cmp obfuscation.
9045         Suggested by Akim Demaille.
9046
9047 2012-02-24  Bruno Haible  <bruno@clisp.org>
9048
9049         streq: Rename macro.
9050         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
9051         * NEWS: Mention the change.
9052         * lib/mbrtowc.c (mbrtowc): Update.
9053         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
9054         * lib/wcwidth.c (wcwidth): Update.
9055         Suggested by Akim Demaille and Jim Meyering.
9056
9057 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9058
9059         regex: fix typo in definition of MIN
9060         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
9061         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
9062
9063 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9064             Bruno Haible  <bruno@clisp.org>
9065
9066         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
9067         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
9068         entries into a stack-allocated buffer directly.
9069         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
9070
9071 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9072             Bruno Haible  <bruno@clisp.org>
9073
9074         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
9075
9076          - There were several instances of this pattern:
9077
9078              for (;;) {
9079                n = acl (f, GETACLCNT, 0, NULL);
9080                [ allocate an array A of size N ]
9081                if (acl (f, GETACL, n, a) == n)
9082                  break;
9083              }
9084
9085            This loop might never terminate if some other process is constantly
9086            manipulating the file's ACL.  The loop should be rewritten to
9087            terminate.
9088
9089          - The acl (... GETACLNT ...) call is merely an optimization; its value
9090            is merely a hint as to how big to make the array.  A better
9091            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
9092            and just guess a reasonably-big size, growing the size and trying
9093            again if it's not large enough.  This guarantees termination, and
9094            saves a system call.
9095
9096         * lib/acl-internal.h: Include <limits.h>.
9097         (MIN, SIZE_MAX): New macros.
9098         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
9099         a stack-allocated buffer, and use malloc if it does not fit. Don't
9100         use GETACLCNT.
9101         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9102
9103 2012-02-19  Bruno Haible  <bruno@clisp.org>
9104
9105         acl: Fix endless loop on Solaris with vxfs.
9106         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
9107         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
9108         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9109         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
9110         * tests/test-sameacls.c (main)[Solaris]: Likewise.
9111         Reported by Bill Jones in
9112         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
9113
9114 2012-02-19  Bruno Haible  <bruno@clisp.org>
9115
9116         acl: Fix copy-acl test failure on Solaris 11 2011-11.
9117         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
9118         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
9119         that this function returns 0 in some more cases.
9120
9121 2012-02-19  Bruno Haible  <bruno@clisp.org>
9122
9123         acl: Update doc references.
9124         * doc/acl-resources.txt: Update links to Solaris documentation.
9125
9126 2012-02-19  Bruno Haible  <bruno@clisp.org>
9127
9128         Fix test failure in many locales on Solaris 11.
9129         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
9130         'tr' arguments.
9131         * tests/test-pipe-filter-ii1.c (main): Likewise.
9132         * build-aux/bootstrap (check_versions): Run 'tr' command with range
9133         expressions in the C locale.
9134         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9135         * m4/host-os.m4 (gl_HOST_OS): Likewise.
9136
9137 2012-02-19  Bruno Haible  <bruno@clisp.org>
9138
9139         gnulib-tool: Improve usage message.
9140         * gnulib-tool (func_usage): Move doc of --help and --version to the
9141         section "Operation modes".
9142
9143 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
9144
9145         README-release: make it easier to execute commands
9146         * top/README-release: break commands out on to separate lines.
9147
9148 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9149
9150         GNUmakefile: simplify detection of unconfigured trees
9151         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
9152         whether the tree make is being run from is already configured or
9153         not.  Related simplifications.
9154
9155 2012-02-13  Simon Josefsson  <simon@josefsson.org>
9156
9157         * gnulib-tool (func_usage): Document --help and --version.
9158
9159 2012-02-11  Jim Meyering  <meyering@redhat.com>
9160
9161         bootstrap: don't exit 0 upon gnulib-tool failure
9162         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
9163         its exit status, not 0.
9164
9165 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
9166
9167         README-release: various improvements
9168         * top/README-release: Give a command to push changes for the
9169         release.  Add "distcheck" to list of other pre-release checks.
9170         Fix instance of "make stable" which should be "make TYPE".
9171
9172 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9173
9174         maint: replace FSF snail-mail addresses with URLs
9175         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
9176         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
9177         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
9178         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
9179         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
9180         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
9181         * lib/check-version.c, lib/check-version.h, lib/config.charset:
9182         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
9183         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
9184         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
9185         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
9186         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
9187         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
9188         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
9189         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
9190         * lib/glthread/thread.c, lib/glthread/thread.h:
9191         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
9192         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
9193         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
9194         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
9195         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
9196         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
9197         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
9198         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
9199         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
9200         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
9201         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
9202         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
9203         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9204         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9205         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9206         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9207         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9208         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9209         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9210         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9211         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9212         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9213         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9214         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9215         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9216         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9217         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9218         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9219         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9220         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9221         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9222         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9223         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9224         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9225         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9226         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9227         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9228         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9229         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9230         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9231         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9232         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9233         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9234         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9235         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9236         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9237         * tests/test-poll.c, tests/test-quotearg-simple.c:
9238         * tests/test-quotearg.c, tests/test-quotearg.h:
9239         * tests/test-round-ieee.c, tests/test-round1.c:
9240         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9241         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9242         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9243         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9244         * tests/test-strerror.c, tests/test-strerror_r.c:
9245         * tests/test-strsignal.c, tests/test-strverscmp.c:
9246         * tests/test-xmemdup0.c:
9247         Replace FSF snail mail addresses with URLs, as per GNU coding
9248         standards.  See glibc bug
9249         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9250
9251 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9252
9253         README-release: capitalize a word and split a line
9254         * top/README-release: Fix punctuation and spacing.
9255
9256 2012-02-08  Akim Demaille  <demaille@gostai.com>
9257
9258         fatal-signal: use C prototypes (with explicit void).
9259         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9260         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9261
9262 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9263
9264         regex: spelling fix
9265         * lib/regexec.c: spelling fix
9266
9267         regex: rely on stdint.h for SIZE_MAX
9268         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9269
9270 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9271
9272         regex: merge glibc changes
9273
9274         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9275         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9276         (init_word_char): Work even if bitset words are not exactly 32 or
9277         64 bits wide.  Don't assume there are no padding bits.
9278         * lib/regex.c [_LIBC]: Do not include <config.h>.
9279         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9280         and -Wtype-limits.
9281         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9282         needless disagreement with glibc.  All uses changed.  Define it to
9283         1 only if _GNU_SOURCE, to match glibc.
9284         (_REG_RM_NAME): Remove; no longer needed, since the names in
9285         question are now all protected by __USE_GNU.
9286         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9287         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9288         * lib/regex_internal.h (MIN): New macro.
9289
9290         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9291         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9292
9293         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9294         * lib/regex_internal.c (re_string_fetch_byte_case):
9295         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9296         is miscompiled, and it turns out it is because of an incorrect
9297         attribute on re_string_fetch_byte_case.  Unlike
9298         re_string_peek_byte_case, this one is really not pure, it modifies
9299         memory (increments pstr->cur_idx), and with the pure attribute GCC
9300         assumed it doesn't and it cached the presumed value of
9301         regexp->cur_idx in a variable across the
9302          for (;; ++i)
9303            {
9304              if (i >= BRACKET_NAME_BUF_SIZE)
9305                return REG_EBRACK;
9306              if (token->type == OP_OPEN_CHAR_CLASS)
9307                ch = re_string_fetch_byte_case (regexp);
9308              else
9309                ch = re_string_fetch_byte (regexp);
9310              if (re_string_eoi(regexp))
9311                return REG_EBRACK;
9312              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9313                break;
9314              elem->opr.name[i] = ch;
9315            }
9316
9317         2011-11-29 Andreas Schwab <schwab@redhat.com>
9318         * lib/regcomp.c (build_equiv_class):
9319         Fix access after end of search string in regex matcher.
9320
9321         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9322         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9323
9324         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9325         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9326
9327         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9328         * lib/regcomp.c (parse_branch, parse_sub_exp):
9329         More regex memory leak fixes and tests.
9330         (parse_sub_exp, parse_bracket_exp):
9331         Fix memory leak for some invalid regular expressions.
9332
9333         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9334         * lib/regex_internal.c, lib/regexec.c:
9335         Fix unnecessary overallocation due to incomplete character.  When
9336         incomplete characters are found at the end of a string the code
9337         ran amok and allocated lots of memory.  Stricter limits are now in
9338         place.
9339
9340         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9341         * lib/regex.h: Update documentation.
9342
9343         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9344         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9345
9346         2010-05-05 Andreas Schwab <schwab@redhat.com>
9347         * lib/regexec.c (find_collation_sequence_value):
9348         Fix lookup of collation sequence value during regexp matching.
9349
9350         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9351         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9352
9353         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9354         * lib/regex.h: Cleanup namespace.
9355
9356         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9357         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9358
9359         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9360         * lib/regex_internal.h: Prevent some declarations and definitions
9361         to be seen when used in tests.
9362
9363         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9364         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9365         __libc_lock_* macros if not _LIBC.
9366         (struct re_dfa_t): Add lock.
9367
9368 2012-02-07  Eric Blake  <eblake@redhat.com>
9369
9370         maint.mk: also prohibit lower-case @var@
9371         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9372         lower case, like @top_srcdir@.
9373
9374 2012-02-04  Eric Blake  <eblake@redhat.com>
9375
9376         canonicalize: avoid uninitialized memory use
9377         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9378         random '/' left in dest.
9379         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9380
9381 2012-02-04  Bruno Haible  <bruno@clisp.org>
9382
9383         isatty: Fix test failure of ptsname_r on native Windows.
9384         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9385         and don't set errno.
9386         (isatty): Test first whether fd is valid. Set errno when returning 0.
9387
9388 2012-02-04  Bruno Haible  <bruno@clisp.org>
9389
9390         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9391         * tests/test-spawn-pipe-main.c: Include progname.h.
9392         (main): Invoke set_program_name.
9393         * modules/spawn-pipe-tests (Depends-on): Add progname.
9394
9395         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9396         * tests/test-nonblocking-socket-main.c: Include progname.h.
9397         (main): Invoke set_program_name.
9398         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9399
9400         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9401         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9402         (main): Invoke set_program_name.
9403         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9404
9405 2012-02-04  Eric Blake  <eblake@redhat.com>
9406
9407         canonicalize-lgpl: fix // handling
9408         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9409
9410         canonicalize: fix // handling
9411         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9412         /// to //, since only // is special.
9413
9414 2012-02-04  Bruno Haible  <bruno@clisp.org>
9415
9416         ioctl: Fix test failure on native Windows.
9417         * lib/ioctl.c: Include msvc-nothrow.h.
9418         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9419
9420 2012-02-04  Bruno Haible  <bruno@clisp.org>
9421
9422         fsync: Avoid test failure on native Windows.
9423         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9424         read-only.
9425
9426 2012-02-04  Bruno Haible  <bruno@clisp.org>
9427
9428         sys_select: Avoid syntax error on OpenBSD 5.0.
9429         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9430         currently being included, just include the system's <sys/select.h>.
9431
9432 2012-02-04  Bruno Haible  <bruno@clisp.org>
9433
9434         sys_select: Avoid syntax error on OpenBSD 5.0.
9435         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9436         <sys/select.h>, not before.
9437         Reported by Jiri B <jirib@devio.us>.
9438
9439 2012-02-04  Bruno Haible  <bruno@clisp.org>
9440
9441         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9442         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9443         global variables.
9444         * tests/test-get-rusage-data.c (main): Likewise.
9445         Reported by Jim Meyering.
9446
9447 2012-02-04  Bruno Haible  <bruno@clisp.org>
9448
9449         stdioext: Fix last commit.
9450         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9451
9452 2012-02-03  Bruno Haible  <bruno@clisp.org>
9453
9454         stdioext: Add tentative support for Plan9.
9455         * lib/stdio-impl.h: Include <errno.h>.
9456         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9457         * lib/freadable.c (freadable): Likewise.
9458         * lib/fwritable.c (fwritable): Likewise.
9459         * lib/fbufmode.c (fbufmode): Likewise.
9460         * lib/freading.c (freading): Likewise.
9461         * lib/fwriting.c (fwriting): Likewise.
9462         * lib/freadptr.c (freadptr): Likewise.
9463         * lib/freadseek.c (freadptrinc): Likewise.
9464         * lib/freadahead.c (freadahead): Likewise.
9465         * lib/fpurge.c (fpurge): Likewise.
9466         * lib/fseeko.c (rpl_fseeko): Likewise.
9467         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9468         Reported by Jens Staal <staal1978@gmail.com>.
9469
9470 2012-02-02  Jim Meyering  <meyering@redhat.com>
9471
9472         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9473         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9474         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9475         not even to try to add the attribute.  Instead, add a pragma to suppress
9476         the suggestion/warning.
9477
9478 2012-01-31  Karl Berry  <karl@gnu.org>
9479
9480         setstate doc: typo.
9481         * doc/posix-functions/setstate.texi (setstate): { not (.
9482
9483 2012-01-31  Bruno Haible  <bruno@clisp.org>
9484
9485         popen: Make more robust on Windows.
9486         * lib/popen.c: On native Windows, use the _popen based code even if
9487         HAVE_POPEN is set.
9488         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9489         environment variable on native Windows.
9490
9491 2012-01-30  Bruno Haible  <bruno@clisp.org>
9492
9493         pclose: Fix typo.
9494         * lib/stdio.in.h (pclose): Fix typo in warning message.
9495
9496 2012-01-30  Bruno Haible  <bruno@clisp.org>
9497
9498         doc about getlogin_r, setstate.
9499         * doc/posix-functions/getlogin_r.texi: List the incompatible
9500         declaration problem under "not fixed by gnulib".
9501         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9502         problem on Solaris 11 and other platforms.
9503
9504 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9505             Bruno Haible  <bruno@clisp.org>
9506
9507         poll tests: Make test more robust.
9508         * tests/test-poll.c: Include macros.h.
9509         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9510         return value of various I/O operations.
9511         * modules/poll-tests (Files): Add tests/macros.h.
9512
9513 2012-01-30  Bruno Haible  <bruno@clisp.org>
9514
9515         sys_stat: Fix support for mingw64 and MSVC.
9516         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9517         header files already do it.
9518         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9519         stat itself.
9520         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9521
9522 2012-01-30  Bruno Haible  <bruno@clisp.org>
9523
9524         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9526         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9527
9528 2012-01-29  Bruno Haible  <bruno@clisp.org>
9529
9530         quotearg: Fix test failure on MacOS X 10.5.
9531         * tests/test-quotearg-simple.c: Include localcharset.h.
9532         (main): If the locale encoding is not ASCII, bypass the tests of
9533         locale_quoting_style and clocale_quoting_style.
9534         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9535
9536 2012-01-29  Jim Meyering  <meyering@redhat.com>
9537
9538         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9539         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9540         detect uses of canonicalize_file_name.
9541
9542 2012-01-28  Bruno Haible  <bruno@clisp.org>
9543
9544         test-framework-sh: Fix test failure with AIX 7.1 diff.
9545         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9546         in column 1, like 'diff -c' does.
9547         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9548         whether 'diff -u' is used. Instead, test whether the output contains
9549         some '@' character.
9550
9551 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9552
9553         strtoimax: eliminate need for stdint.h, inttypes.h checks
9554         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9555         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9556         the prerequisites for a recently-introduced strtoimax test.
9557         I guess this might cause strtoimax to be replaced when not
9558         strictly necessary on older hosts, but this shouldn't introduce
9559         any bugs and it should make Emacs 'configure' faster on typical
9560         modern hosts.  Problem discovered when importing the latest gnulib
9561         to an Emacs test version.
9562         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9563
9564 2012-01-28  Bruno Haible  <bruno@clisp.org>
9565
9566         sys_time: Override 'struct timeval' on some native Windows platforms.
9567         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9568         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9569         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9570         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9571         needs to be overridden.
9572         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9573         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9574         * tests/test-sys_select.c: Check that the tv_sec member has the same
9575         size as a 'time_t'.
9576         * tests/test-sys_time.c: Likewise.
9577         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9578         is set, set also REPLACE_GETTIMEOFDAY.
9579         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9580         convert the resulting 'struct timeval' before returning.
9581         * lib/select.c: Include <sys/time.h>.
9582         (select, timeval): Undefine at the right place.
9583         * modules/select (Depends-on): Add sys_time.
9584         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9585         some Windows platforms.
9586         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9587
9588 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9589
9590         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9591         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9592         an integer.
9593         * lib/fcntl.c (dupfd): Likewise.
9594         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9595
9596 2012-01-28  Bruno Haible  <bruno@clisp.org>
9597
9598         fcntl: Avoid compilation error on native Windows.
9599         * modules/fcntl (Depends-on): Add 'close'.
9600
9601 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9602
9603         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9604         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9605         pointer to an integer.
9606         * lib/poll.c (IsConsoleHandle): Likewise.
9607         * lib/isatty.c (IsConsoleHandle): Likewise.
9608
9609 2012-01-28  Jim Meyering  <meyering@redhat.com>
9610
9611         doc: clarify README-release
9612         * top/README-release: Clarify: you should make a point to have
9613         the latest stable versions of build tools in your PATH, and the
9614         reference to buildreq is solely for its list of tool names, not
9615         for its minimal-functional version numbers.
9616         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9617
9618         maint.mk: use more readable (yet functionally equivalent) quoting
9619         It is common to quote a single quote in a single quoted string like
9620         this:  '...'\''...'.  Unless you know the idiom, that looks like
9621         gibberish, so prefer to double-quote the string when possible.
9622         Then you can use a more readable, lone single quote: "...'..."
9623         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9624         "don't" is more readable than the equivalent 'don'\''t'.
9625         (sc_cast_of_x_alloc_return_value): Likewise.
9626         (sc_cast_of_alloca_return_value): Likewise.
9627         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9628         rather than '\'':'\''.
9629
9630 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9631
9632         stdalign: relax _Alignof and tighten _Alignas test
9633         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9634         as it was too strict: alignof must divide offsetof, but it need
9635         not equal offsetof.  Inspired by Joseph S. Myers's comment
9636         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9637         Conversely, tighten the _Alignas test a bit, as the resulting
9638         alignment must be exactly 8.
9639
9640 2012-01-27  Bruno Haible  <bruno@clisp.org>
9641
9642         stdalign: Document the last change.
9643         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9644
9645 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9646
9647         stdalign: check that alignof and offsetof are consistent
9648         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9649         Problem reported for gnulib by Richard W.M. Jones in
9650         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9651
9652 2012-01-27  Jim Meyering  <meyering@redhat.com>
9653
9654         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9655         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9656         convert a sequence with gaps to the minimal containing range.
9657         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9658         * tests/test-update-copyright.sh: Test for this.
9659         The FSF confirmed it is ok to do this, assuming there is at
9660         least one significant change per year in the affected range:
9661         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9662
9663 2012-01-26  Bruno Haible  <bruno@clisp.org>
9664
9665         pipe2: refine doc about thread-safety
9666         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9667         multithread-safety problem.
9668         * doc/glibc-functions/accept4.texi: Likewise.
9669
9670 2012-01-26  Bruno Haible  <bruno@clisp.org>
9671
9672         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9673         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9674         In the test program, include <fcntl.h>, for O_RDONLY.
9675
9676 2012-01-26  Eric Blake  <eblake@redhat.com>
9677
9678         pipe2: document lack of thread-safety in replacement
9679         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9680         issue in replacement.
9681         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9682         Based on a report by Eric Wong.
9683
9684 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9685             Bruno Haible  <bruno@clisp.org>
9686
9687         malloca: Avoid warnings on x86_64 mingw64.
9688         * lib/malloca.c: Include <stdint.h>.
9689         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9690         * modules/malloca (Depends-on): Add stdint.
9691         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9692
9693 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9694
9695         obstack: remove __STDC__ conditionals
9696         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9697         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9698         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9699         m4/include_next.m4 as the only gnulib-maintained places that still
9700         refer to __STDC__.
9701
9702 2012-01-24  Bruno Haible  <bruno@clisp.org>
9703
9704         havelib: Modern quoting.
9705         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9706         the recent change to the GNU coding standards.
9707
9708 2012-01-24  Bruno Haible  <bruno@clisp.org>
9709
9710         stdint: Improve support for Android.
9711         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9712         Reported by Simon Josefsson <simon@josefsson.org>.
9713
9714 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9715
9716         doc: omit trailing empty lines from INSTALL etc.
9717         * doc/Makefile (INSTALL): Omit trailing empty lines.
9718         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9719         omit trailing empty lines.  This simplifies the build procedure.
9720
9721 2012-01-23  Jim Meyering  <meyering@redhat.com>
9722
9723         tests: avoid spurious warnings about gl_sockets_startup
9724         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9725         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9726         reporting a "statement with no effect".
9727         * tests/test-accept.c (main): Mark as "(void)".
9728         * tests/test-accept4.c (main): Likewise.
9729         * tests/test-bind.c (main): Likewise.
9730         * tests/test-connect.c (main): Likewise.
9731         * tests/test-getpeername.c (main): Likewise.
9732         * tests/test-getsockname.c (main): Likewise.
9733         * tests/test-getsockopt.c (main): Likewise.
9734         * tests/test-listen.c (main): Likewise.
9735         * tests/test-recv.c (main): Likewise.
9736         * tests/test-recvfrom.c (main): Likewise.
9737         * tests/test-send.c (main): Likewise.
9738         * tests/test-sendto.c (main): Likewise.
9739         * tests/test-setsockopt.c (main): Likewise.
9740         * tests/test-shutdown.c (main): Likewise.
9741
9742 2012-01-21  Bruno Haible  <bruno@clisp.org>
9743
9744         locale-fr.m4: Fix for Android.
9745         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9746         failure of the test program on Bionic libc.
9747
9748 2012-01-21  Jim Meyering  <meyering@redhat.com>
9749
9750         bootstrap: fail when bootstrap_post_import_hook fails
9751         Otherwise, it's far too easy to miss diagnostics emitted
9752         between gnulib-tool's output and that of running configure.
9753         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9754
9755 2012-01-17  Jim Meyering  <meyering@redhat.com>
9756
9757         maint: enable sc_trailing_blank
9758         * build-aux/pmccabe.css: Remove trailing blanks.
9759         * doc/acl-cygwin.txt: Likewise.
9760         * doc/gnu-oids.texi: Likewise
9761         * cfg.mk: Enable sc_trailing_blank.
9762         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9763
9764 2012-01-17  Jim Meyering  <meyering@redhat.com>
9765
9766         maint: enable sc_prohibit_openat_without_use
9767         * cfg.mk: Enable sc_prohibit_openat_without_use.
9768         Exempt lib/selinux-at.c.
9769
9770 2012-01-17  Jim Meyering  <meyering@redhat.com>
9771
9772         maint: enable sc_prohibit_cloexec_without_use
9773         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9774         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9775
9776 2012-01-17  Jim Meyering  <meyering@redhat.com>
9777
9778         maint: enable sc_prohibit_intprops_without_use
9779         * cfg.mk: Enable sc_prohibit_intprops_without_use
9780         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9781
9782 2012-01-17  Jim Meyering  <meyering@redhat.com>
9783
9784         maint: enable sc_prohibit_hash_pjw_without_use
9785         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9786         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9787         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9788         following " (".
9789
9790 2012-01-17  Jim Meyering  <meyering@redhat.com>
9791
9792         maint: enable double-word-prohibiting rule
9793         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9794         Exempt three files.
9795
9796 2012-01-17  Jim Meyering  <meyering@redhat.com>
9797
9798         maint: remove empty lines at EOF, but excluding modules/*
9799         Apply syntax rules at home as well as abroad.  Most changes
9800         were induced by running this:
9801           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9802             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9803             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9804         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9805         Exempt modules/* and two binary files.
9806         Also exempt doc/INSTALL*, per request from Bruno Haible.
9807         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9808         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9809         * doc/Copyright/request-assign.future: Likewise.
9810         * doc/Copyright/request-disclaim.changes: Likewise.
9811         * doc/INSTALL: Likewise.
9812         * doc/INSTALL.ISO: Likewise.
9813         * doc/INSTALL.UTF-8: Likewise.
9814         * doc/acl-cygwin.txt: Likewise.
9815         * doc/acl-resources.txt: Likewise.
9816         * doc/fdl-1.2.texi: Likewise.
9817         * doc/fdl-1.3.texi: Likewise.
9818         * doc/fdl.texi: Likewise.
9819         * lib/argp-pin.c: Likewise.
9820         * lib/round.c: Likewise.
9821         * lib/unicase/u16-totitle.c: Likewise.
9822         * lib/unictype/block_test.c: Likewise.
9823         * lib/uninorm/canonical-decomposition.c: Likewise.
9824         * m4/README: Likewise.
9825         * m4/relocatable-lib.m4: Likewise.
9826         * tests/test-isnand-nolibm.c: Likewise.
9827         * tests/test-isnand.c: Likewise.
9828         * tests/uninorm/NormalizationTest.txt: Likewise.
9829
9830 2012-01-17  Jim Meyering  <meyering@redhat.com>
9831
9832         maint: add framework to run syntax-check rules against gnulib sources
9833         * cfg.mk: New file, to disable all currently-failing tests.
9834         We'll enable them one by one, as they are made to pass.
9835         * Makefile (sc_maint): New rule.
9836
9837 2012-01-21  Bruno Haible  <bruno@clisp.org>
9838
9839         stdint: Add support for Android.
9840         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9841         include the system's <stdint.h>.
9842         Reported by Simon Josefsson <simon@josefsson.org>.
9843
9844 2012-01-19  Jim Meyering  <meyering@redhat.com>
9845
9846         bootstrap: add bootstrap_post_import_hook
9847         Bison does still need something like the gnulib_mk_hook whose
9848         invocation I had to remove along with slurp in commit 767ccd40.
9849         Technically, we could get along without it, but doing so would
9850         have required living with a warning and a mandatory post-bootstrap
9851         automake rerun.
9852         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9853         (bootstrap_post_import_hook): New function.
9854         Invoke it after gnulib-tool --import and before autoreconf.
9855
9856 2012-01-18  Jim Meyering  <meyering@redhat.com>
9857
9858         gitlog-to-changelog: don't use "no_"-prefixed variable name
9859         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9860         to enable both --cluster and --no-cluster.  Change variable name,
9861         s/\$no_cluster/$cluster/, and reverse usage to match.
9862
9863         gitlog-to-changelog: use "||", not "or" in expressions
9864         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9865         expressions.
9866
9867 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9868
9869         gitlog-to-changelog: new option --no-cluster
9870         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9871         clustering of adjacent commit messages.
9872
9873 2012-01-17  Jim Meyering  <meyering@redhat.com>
9874
9875         maint: spell file systems with two words, not one
9876         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9877         two words, not one.
9878
9879 2012-01-16  Jim Meyering  <meyering@redhat.com>
9880
9881         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9882         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9883
9884 2012-01-16  Eric Blake  <eblake@redhat.com>
9885
9886         bootstrap: cater to autoconf 2.59
9887         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9888         is not available.
9889
9890         bootstrap: properly check for libtool
9891         * build-aux/bootstrap (libtoolize): Also run libtool when older
9892         usage is detected.
9893
9894 2012-01-15  Bruno Haible  <bruno@clisp.org>
9895
9896         Improve support for MSVC 9.
9897         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9898         clashes on MSVC.
9899         * lib/fcntl.in.h: Likewise.
9900         * lib/stdlib.in.h: Likewise.
9901         * lib/sys_stat.in.h: Likewise.
9902
9903 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9904
9905         gnupload: we hold the master copy of this script now
9906         For motivation and more information, see:
9907         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9908         * build-aux/gnupload: Make it clear in the heading comments that the
9909         master copy of this file is maintained by gnulib.  Since we are at
9910         it, bump its copyright year and ...
9911         ($scriptversion): ... the date in its version.
9912         ($usage): Patches and bug reports should be sent to the gnulib list,
9913         not the automake one.
9914         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9915         anymore.
9916
9917 2012-01-15  Bruno Haible  <bruno@clisp.org>
9918
9919         Fix module 'random'.
9920         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9921         initstate, setstate are declared.
9922
9923 2012-01-14  Bruno Haible  <bruno@clisp.org>
9924
9925         Tests for module 'random'.
9926         * modules/random-tests: New file.
9927         * tests/test-random.c: New file, based on tests/test-random_r.c.
9928
9929         New module 'random'.
9930         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9931         declarations.
9932         * lib/random.c: New file, based on glibc/stdlib/random.c.
9933         * m4/random.m4: New file.
9934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9935         HAVE_RANDOM.
9936         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9937         * modules/random: New file.
9938         * config/srclist.txt: Add an entry for random.c.
9939         * doc/posix-functions/random.texi: Mention the 'random' module.
9940         * doc/posix-functions/initstate.texi: Likewise.
9941         * doc/posix-functions/setstate.texi: Likewise.
9942         * doc/posix-functions/srandom.texi: Likewise.
9943
9944 2012-01-12  Bruno Haible  <bruno@clisp.org>
9945
9946         random_r: Use common idioms.
9947         * lib/random_r.c: Include <stdlib.h> first.
9948
9949         random_r: Override incompatible API on AIX, OSF/1.
9950         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9951         Override the system function if REPLACE_RANDOM_R is 1.
9952         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9953         and OSF/1, set REPLACE_RANDOM_R.
9954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9955         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9956         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9957         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9958         * doc/glibc-functions/random_r.texi: Likewise.
9959         * doc/glibc-functions/setstate_r.texi: Likewise.
9960
9961         random_r: Support for MSVC 9.
9962         * lib/random_r.c: Include stdint.h, not inttypes.h.
9963
9964 2012-01-12  Eric Blake  <eblake@redhat.com>
9965
9966         inet_ntop: guard extra work by IF_LINT
9967         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9968         better code generation when not checking for warnings.
9969         Suggested by Paul Eggert and Jim Meyering.
9970
9971         strptime: fix regression on mingw
9972         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9973         Fix regression.  Reported by Bruno Haible.
9974
9975 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9976             Bruno Haible  <bruno@clisp.org>
9977
9978         copy-file: add error-code-returning variant.
9979         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9980         (qcopy_file_preserving): New declaration.
9981         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9982         copy_file_preserving. Change return type to 'int'. Don't emit an error
9983         message here.
9984         (copy_file_preserving): New function.
9985         * tests/test-copy-file.c: Include <stdlib.h>.
9986         (main): Test qcopy_file_preserving if the environment variable
9987         NO_STDERR_OUTPUT is set.
9988         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9989         with NO_STDERR_OUTPUT
9990         * tests/test-copy-file-2.sh: Likewise.
9991
9992 2012-01-10  Bruno Haible  <bruno@clisp.org>
9993
9994         copy-file: Use 'quote' module consistently.
9995         * lib/copy-file.c (copy_file_preserving): Use quote().
9996
9997         copy-file: Refactor.
9998         * lib/copy-file.c: Include quote.h.
9999         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
10000         message here.
10001         * modules/copy-file (Depends-on): Add quote.
10002
10003         acl: Export qcopy_acl.
10004         * lib/acl.h (qcopy_acl): New declaration.
10005         * lib/copy-acl.c (qcopy_acl): Make non-static.
10006
10007         acl: Rename a local variable.
10008         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
10009
10010         acl: Align return values of copy_acl and qcopy_acl.
10011         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
10012         maybe < -1.
10013
10014 2012-01-11  Eric Blake  <eblake@redhat.com>
10015
10016         strptime: silence gcc warnings
10017         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
10018         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
10019         Reported by Daniel P. Berrange.
10020
10021         inet_ntop: silence gcc warning
10022         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
10023         Reported by Daniel P. Berrange.
10024
10025 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
10026
10027         getloadavg test: skip the test on GNU/Linux without /proc mounted
10028         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
10029         file.  When /proc is not mounted, it always fails with ENOENT.
10030         * tests/test-getloadavg.c (main): Treat ENOENT return code from
10031         getloadavg(3) the same way as ENOSYS and ENOTSUP.
10032
10033 2012-01-10  Bruno Haible  <bruno@clisp.org>
10034
10035         regex: Avoid link error on MSVC 9.
10036         * modules/regex (Depends-on): Add wctype.
10037
10038 2012-01-10  Bruno Haible  <bruno@clisp.org>
10039
10040         doc: Mention --with-tests option.
10041         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
10042         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
10043         --with-tests.
10044         Reported by Reuben Thomas.
10045
10046 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
10047
10048         users.txt: order package names lexicographically.
10049         * users.txt: Order package names lexicographically.
10050
10051 2012-01-10  Jim Meyering  <meyering@redhat.com>
10052
10053         maint.mk: fix description in comment
10054         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
10055
10056         ignore-value: remove deprecated ignore_ptr function
10057         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
10058         * NEWS: Note this.
10059
10060 2012-01-09  Jim Meyering  <meyering@redhat.com>
10061
10062         test-init.sh: avoid a subshell
10063         * tests/test-init.sh: Remove protective subshell.
10064         Suggested by Bernhard Voelker.  While a subshell is normally
10065         required to protect against older shells (Solaris, FreeBSD) that
10066         warn about a missing program before performing redirection, the
10067         shell-selection tests performed by init.sh probably exclude any
10068         offending shell.
10069
10070 2012-01-08  Bruno Haible  <bruno@clisp.org>
10071
10072         setlocale tests: Avoid test failure on Solaris 11 2011-11.
10073         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
10074         variable.
10075
10076 2012-01-08  Bruno Haible  <bruno@clisp.org>
10077
10078         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
10079         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10080         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10081         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
10082         macro.
10083         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
10084         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10085         * lib/spawn_faction_addopen.c: Add workaround implementation if
10086         HAVE_WORKING_POSIX_SPAWN.
10087         * modules/spawn (Makefile): Substitute
10088         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10089         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
10090         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
10091         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10092         (Depends-on): Update conditions.
10093         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10094         the Solaris 11 bug.
10095
10096 2012-01-08  Bruno Haible  <bruno@clisp.org>
10097
10098         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
10099         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10100         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10101         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
10102         macro.
10103         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
10104         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10105         * lib/spawn_faction_adddup2.c: Add workaround implementation if
10106         HAVE_WORKING_POSIX_SPAWN.
10107         * modules/spawn (Makefile): Substitute
10108         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10109         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
10110         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
10111         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10112         (Depends-on): Update conditions.
10113         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10114         the Solaris 11 bug.
10115
10116 2012-01-08  Bruno Haible  <bruno@clisp.org>
10117
10118         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
10119         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10120         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
10122         HAVE_WORKING_POSIX_SPAWN.
10123         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
10124         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
10125         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10126         * lib/spawn_faction_addclose.c: Add workaround implementation if
10127         HAVE_WORKING_POSIX_SPAWN.
10128         * modules/spawn (Makefile): Substitute
10129         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10130         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
10131         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
10132         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10133         (Depends-on): Update conditions.
10134         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10135         the Solaris 11 bug.
10136
10137 2012-01-08  Bruno Haible  <bruno@clisp.org>
10138
10139         doc: Update for Solaris 11 2011-11.
10140         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
10141         * m4/printf.m4: Update comments.
10142
10143 2012-01-08  Bruno Haible  <bruno@clisp.org>
10144
10145         mktime: Avoid compilation error on Solaris 11.
10146         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
10147
10148 2012-01-08  Bruno Haible  <bruno@clisp.org>
10149
10150         doc: Small fix.
10151         * doc/posix-headers/nl_types.texi: Correct platforms list.
10152
10153 2012-01-08  Simon Josefsson  <simon@josefsson.org>
10154
10155         Add lgpl-3.0 module.
10156         * MODULES.html.sh (Support for building documentation): Add
10157         lgpl-3.0.
10158         * modules/lgpl-3.0: New file.
10159
10160 2012-01-08  Jim Meyering  <meyering@redhat.com>
10161
10162         select.c: indent with spaces, not TABs
10163         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
10164
10165 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10166
10167         quotearg: do not use grave accent for left quote
10168         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10169         locale_quoting_style.
10170         (quotearg_buffer_restyled): Fix example.
10171         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
10172
10173 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10174
10175         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
10176         Most programs do not have translation catalogs for English and much
10177         less separate catalogs for British and American English.  Drop the
10178         suggestion to translators about these two, and provide it
10179         automatically for Unicode locales.  Like most programs, even those
10180         using American English, we use single quotation marks.  This conflicts
10181         with the American typographic convention, but works better when you
10182         cite the entire error message within double quotes.  It also tries not
10183         to clash with established practice and with what non-gnulib programs
10184         will usually do.
10185         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
10186         using an UTF-8 or GB-18030 locale.  The list of other locales with
10187         quotes was provided by Bruno Haible.
10188         (quotearg_buffer_restyled): Adjust instructions to translators.
10189         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
10190         text, since this would be wrong when using Unicode.
10191         * modules/quotearg: Depend on c-strcaseeq.
10192
10193 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10194
10195         quotearg: fix Wikipedia link
10196         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
10197
10198 2012-01-07  Simon Josefsson  <simon@josefsson.org>
10199
10200         Fix for mingw with MSVC9.
10201         * m4/ld-version-script.m4: Check that compiler rejects version
10202         scripts with syntax errors.  Reported by Bruno Haible
10203         <bruno@clisp.org>.
10204
10205 2012-01-06  Bruno Haible  <bruno@clisp.org>
10206
10207         Talk about "native Windows API", not "Woe32".
10208         * lib/accept4.c: Update comments to mention native Windows.
10209         * lib/execute.c: Likewise.
10210         * lib/fatal-signal.c: Likewise.
10211         * lib/localcharset.c: Likewise.
10212         * lib/nanosleep.c: Likewise.
10213         * lib/nl_langinfo.c: Likewise.
10214         * lib/pclose.c: Likewise.
10215         * lib/pipe-filter-gi.c: Likewise.
10216         * lib/pipe-filter-ii.c: Likewise.
10217         * lib/pipe.c: Likewise.
10218         * lib/pipe2.c: Likewise.
10219         * lib/popen.c: Likewise.
10220         * lib/progreloc.c: Likewise.
10221         * lib/relocatable.c: Likewise.
10222         * lib/sigaction.c: Likewise.
10223         * lib/sigprocmask.c: Likewise.
10224         * lib/spawn-pipe.h: Likewise.
10225         * lib/spawn-pipe.c: Likewise.
10226         * lib/spawni.c: Likewise.
10227         * lib/stat-time.h: Likewise.
10228         * lib/w32spawn.h: Likewise.
10229         * tests/test-isatty.c: Likewise.
10230         * lib/config.charset: More comments.
10231         * doc/gnulib-intro.texi: Mention native Windows.
10232         * doc/posix-functions/_Exit_C99.texi: Likewise.
10233         * doc/posix-headers/fcntl.texi: Likewise.
10234
10235 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10236
10237         argp: Avoid crash if translator uses % characters in a translation.
10238         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10239         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10240
10241 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10242
10243         doc: C11 and C++11 are now official
10244         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10245         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10246         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10247         * modules/stdalign:
10248         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10249
10250 2012-01-06  Bruno Haible  <bruno@clisp.org>
10251
10252         uc-is-grapheme-break tests: Tweak.
10253         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10254         message.
10255
10256 2012-01-06  Bruno Haible  <bruno@clisp.org>
10257
10258         test-init.sh: correct the test for diff -u
10259         * tests/test-init.sh: Also redirect stdout to /dev/null.
10260
10261 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10262
10263         Use ', not `, for quoting output.
10264         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10265         (print_changelog_deltas, get_tool_versions, main program):
10266         * build-aux/git-version-gen:
10267         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10268         * build-aux/move-if-change (help):
10269         * build-aux/useless-if-before-free (usage, main program):
10270         * check-module (parse_module_file, usage)
10271         (find_included_lib_files, check_module):
10272         * lib/argmatch.c (main) [TEST]:
10273         * lib/argp-help.c (_help):
10274         * lib/getopt1.c (main) [TEST]:
10275         * lib/git-merge-changelog.c (usage):
10276         * lib/xstrtol-error.c (xstrtol_error):
10277         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10278         * m4/argz.m4 (gl_FUNC_ARGZ):
10279         * m4/bison.m4 (gl_BISON):
10280         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10281         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10282         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10283         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10284         * m4/gc-random.m4 (gl_GC_RANDOM):
10285         * m4/intl.m4 (gt_CHECK_DECL):
10286         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10287         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10288         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10289         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10290         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10291         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10292         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10293         * tests/test-dirname.c (main):
10294         * tests/test-getpass.c (main):
10295         * tests/test-iconvme.c (main):
10296         * tests/test-parse-datetime.c (LOG):
10297         * tests/test-xstrtoimax.sh:
10298         * tests/test-xstrtol.sh:
10299         * tests/test-xstrtoll.sh:
10300         * tests/test-xstrtoumax.sh:
10301         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10302         * top/GNUmakefile (abort-due-to-no-makefile):
10303         Quote 'like this', not `like this', as per the recent change to
10304         the GNU coding standards.
10305
10306 2012-01-05  Bruno Haible  <bruno@clisp.org>
10307
10308         strtoimax: Don't force a replacement on systems where intmax_t is int.
10309         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10310         'intmax_t' is not larger than 'int'.
10311         Reported by Pádraig Brady <P@draigBrady.com>.
10312
10313 2012-01-05  Bruno Haible  <bruno@clisp.org>
10314
10315         doc: Mention NetBSD bugs.
10316         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10317         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10318
10319 2012-01-05  Bruno Haible  <bruno@clisp.org>
10320
10321         strtoumax tests: Enhance tests.
10322         * tests/test-strtoumax.c (main): Add tests for large values.
10323
10324 2012-01-05  Bruno Haible  <bruno@clisp.org>
10325
10326         strtoimax: Work around AIX 5.1 bug.
10327         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10328         definition.
10329         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10330         Set HAVE_STRTOIMAX.
10331         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10332         REPLACE_STRTOIMAX.
10333         * modules/inttypes-incomplete (Makefile.am): Substitute
10334         REPLACE_STRTOIMAX.
10335         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10336         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10337         (Depends-on): Update conditions.
10338         * tests/test-strtoimax.c (main): Add tests for large values.
10339         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10340
10341 2012-01-05  Bruno Haible  <bruno@clisp.org>
10342
10343         inttypes: Modernize.
10344         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10345         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10346         (Makefile.am): Update inttypes.h rule.
10347
10348 2012-01-05  Jim Meyering  <meyering@redhat.com>
10349
10350         init.sh: don't waste a subshell just to redirect stderr
10351         * tests/init.sh: In testing for diff -u and diff -c, use a
10352         stderr-redirecting exec inside `...` rather than a subshell.
10353
10354         test-init.sh: avoid failure on HP-UX 11.00
10355         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10356         resolves to diff -c or cmp.  Reported by Bruno Haible.
10357
10358 2012-01-05  Bruno Haible  <bruno@clisp.org>
10359
10360         Tests for module 'strtoull'.
10361         * modules/strtoull-tests: New file.
10362         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10363
10364 2012-01-05  Bruno Haible  <bruno@clisp.org>
10365
10366         Tests for module 'strtoll'.
10367         * modules/strtoll-tests: New file.
10368         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10369
10370 2012-01-05  Bruno Haible  <bruno@clisp.org>
10371
10372         Tests for module 'strtoul'.
10373         * modules/strtoul-tests: New file.
10374         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10375
10376 2012-01-05  Bruno Haible  <bruno@clisp.org>
10377
10378         Tests for module 'strtol'.
10379         * modules/strtol-tests: New file.
10380         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10381
10382 2012-01-04  Jim Meyering  <meyering@redhat.com>
10383
10384         test-init.sh: accommodate Solaris 5.10's different diff -u output
10385         * tests/test-init.sh: Also exempt @@ lines from the comparison
10386         of diff output, since Solaris 5.10 and GNU diff formats differ.
10387         Reported by Stefano Lattarini.
10388
10389 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10390
10391         test-posixtm: don't assume signed integer wraparound
10392         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10393         after signed integer overflow.  Inspired by (though it may not
10394         fix) Bruno Haible's bug report in
10395         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10396
10397         Spell out "Windows 9x" and "Windows XP".
10398         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10399         "Windows 9x" and "WinXP" with "Windows XP".
10400
10401 2012-01-04  Jim Meyering  <meyering@redhat.com>
10402
10403         test-vc-list-files-cvs.sh: remove obsolete comment
10404         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10405         double exit.  Now that's all encapsulated via skip_ and Exit.
10406
10407 2012-01-04  Bruno Haible  <bruno@clisp.org>
10408
10409         Talk about "native Windows API", not "Win32".
10410         * lib/classpath.c: Update comments to mention native Windows.
10411         * lib/csharpexec.c: Likewise.
10412         * lib/dup2.c: Likewise.
10413         * lib/error.c: Likewise.
10414         * lib/fcntl.c: Likewise.
10415         * lib/filename.h: Likewise.
10416         * lib/findprog.c: Likewise.
10417         * lib/get-rusage-as.c: Likewise.
10418         * lib/get-rusage-data.c: Likewise.
10419         * lib/getpagesize.c: Likewise.
10420         * lib/javaexec.c: Likewise.
10421         * lib/msvc-inval.c: Likewise.
10422         * lib/msvc-nothrow.c: Likewise.
10423         * lib/nanosleep.c: Likewise.
10424         * lib/nonblocking.c: Likewise.
10425         * lib/printf-parse.c: Likewise.
10426         * lib/setlocale.c: Likewise.
10427         * lib/sigaction.c: Likewise.
10428         * lib/strerror_r.c: Likewise.
10429         * lib/tmpdir.c: Likewise.
10430         * lib/vasnprintf.c: Likewise.
10431         * lib/w32spawn.h: Likewise.
10432         * lib/waitpid.c: Likewise.
10433         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10434         * m4/locale-ar.m4: Likewise.
10435         * m4/locale-fr.m4: Likewise.
10436         * m4/locale-ja.m4: Likewise.
10437         * m4/locale-tr.m4: Likewise.
10438         * m4/locale-zh.m4: Likewise.
10439         * m4/printf.m4: Likewise.
10440         * tests/test-cloexec.c: Likewise.
10441         * tests/test-copy-acl.sh: Likewise.
10442         * tests/test-copy-file.sh: Likewise.
10443         * tests/test-file-has-acl.sh: Likewise.
10444         * tests/test-set-mode-acl.sh: Likewise.
10445         * tests/test-dup-safer.c: Likewise.
10446         * tests/test-dup2.c: Likewise.
10447         * tests/test-dup3.c: Likewise.
10448         * tests/test-fcntl.c: Likewise.
10449         * tests/test-nonblocking-pipe.h: Likewise.
10450         * tests/test-nonblocking-socket.h: Likewise.
10451         * tests/test-pipe.c: Likewise.
10452         * tests/test-pipe2.c: Likewise.
10453         * tests/test-spawn-pipe-child.c: Likewise.
10454         * doc/acl-resources.txt: Likewise.
10455         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10456         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10457         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10458         * lib/localcharset.c: Update comments to mention native Windows.
10459         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10460         * lib/localename.c: Likewise.
10461         * lib/progreloc.c: Likewise.
10462         * lib/relocatable.c: Likewise.
10463         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10464         (windows_compute_revents): Renamed from win32_compute_revents.
10465         (windows_compute_revents_socket): Renamed from
10466         win32_compute_revents_socket.
10467         * lib/select.c: Update comments to mention native Windows.
10468         (windows_poll_handle): Renamed from win32_poll_handle.
10469         * m4/threadlib.m4: Update comments to mention native Windows.
10470         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10471         --enable-threads=windows instead of --enable-threads=win32. Set
10472         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10473         * lib/glthread/lock.h: Update comments to mention native Windows.
10474         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10475         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10476         USE_WIN32_THREADS.
10477         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10478         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10479         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10480         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10481         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10482         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10483         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10484         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10485         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10486         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10487         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10488         * tests/test-tls.c: Likewise.
10489         Rationale:
10490         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10491         on both 32-bit and 64-bit Windows systems.
10492         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10493         line of distinction is between "native Windows" on one side and Unix/
10494         POSIX systems on the other side. More details in
10495         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10496         Suggested by Paul Eggert.
10497
10498 2012-01-03  Bruno Haible  <bruno@clisp.org>
10499
10500         isatty: Support for MSVC 9.
10501         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10502         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10503         (_isatty_nothrow): New function.
10504         (isatty): Use it instead of _isatty.
10505         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10506         * lib/poll.c (IsConsoleHandle): Likewise.
10507         * lib/select.c (IsConsoleHandle): Likewise.
10508         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10509         (gl_PREREQ_ISATTY): New macro.
10510         * modules/isatty (Depends-on): Add msvc-inval.
10511         (configure.ac): Invoke gl_PREREQ_ISATTY.
10512
10513 2012-01-03  Jim Meyering  <meyering@redhat.com>
10514
10515         maint.mk: remove temporary transition aid from over 1.5 years ago
10516         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10517         purpose was to aid in the transition (avoiding silent malfunction)
10518         from that old name to the new _sc_search_regexp.  This shim was
10519         added by commit 219c504b.
10520
10521         init.sh: do not try to accommodate compare arguments starting with "-"
10522         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10523         compare arguments that start with "-".  Besides, we do not worry
10524         about this when invoking diff or cmp; why start now with sed?
10525         Using "--" to separate options from argument would trigger sed
10526         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10527         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10528
10529 2012-01-02  Bruno Haible  <bruno@clisp.org>
10530
10531         Enhance tests for module 'isatty'.
10532         * modules/isatty-tests (Depends-on): Add pipe-posix.
10533         * tests/test-isatty.c: Include <fcntl.h>.
10534         (DEV_NULL): New macro.
10535         (main): Test the resut of isatty() also on regular files, pipes, and
10536         /dev/null.
10537
10538         New module 'isatty'.
10539         * lib/unistd.in.h (isatty): New declaration.
10540         * lib/isatty.c: New file, based on an idea of
10541         Bastien Roucariès <roucaries.bastien@gmail.com>.
10542         * m4/isatty.m4: New file.
10543         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10544         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10545         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10546         REPLACE_ISATTY.
10547         * modules/isatty: New file.
10548         * doc/posix-functions/isatty.texi: Mention the new module.
10549         Suggested by Paolo Bonzini.
10550
10551 2012-01-02  Bruno Haible  <bruno@clisp.org>
10552
10553         canonicalize: Tweak 2011-12-29 commit.
10554         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10555         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10556
10557 2012-01-02  Jim Meyering  <meyering@redhat.com>
10558
10559         gitlog-to-changelog: describe input syntax in --help output
10560         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10561
10562         gitlog-to-changelog: fix typo in --help: show backslash before email @
10563         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10564         in sources, but not in actual output.
10565
10566 2011-12-30  Jim Meyering  <meyering@redhat.com>
10567
10568         gitlog-to-changelog: don't malfunction when name contains %-directive
10569         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10570         in a name string cause trouble.  E.g., with a user name of "%s",
10571         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10572
10573 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10574
10575         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10576         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10577         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10578         the "  (tiny change)" notation that is appended to the standard
10579         ChangeLog "date  name  email" header line.
10580
10581 2012-01-01  Jim Meyering  <meyering@redhat.com>
10582
10583         test-framework-sh: init.sh: fix "make dist" failure
10584         When using gnulib-tool's --with-tests option and any module that
10585         depends on test-framework-sh, "make dist" would fail due to the
10586         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10587         in the gltests directory, and not in the gllib/ directory.
10588         One way to work around that is to move the EXTRA_DIST += init.sh
10589         from the primary module to the -tests one:
10590         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10591         * modules/test-framework-sh (Makefile.am): ...not here.
10592         Reported by Tom G. Christensen in
10593         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10594
10595         version-etc: update copyright year reported by --version
10596         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10597
10598 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10599
10600         canonicalize: only stat() if required
10601         * lib/canonicalize.c (canonicalize_filename_mode):
10602         Avoid calling l?stat() when both CAN_MISSING,
10603         and CAN_NOLINKS are set, as we neither need
10604         to resolve symlinks or test component existence.
10605
10606 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10607
10608         doc: cover st_ino issues once; add OpenVMS etc.
10609         * doc/posix-functions/stat.texi (stat):
10610         * doc/posix-functions/lstat.texi (lstat):
10611         * doc/posix-functions/fstatat.texi (fstatat):
10612         * doc/posix-functions/fstat.texi (fstat):
10613         Move general 'struct stat' stuff to sys_stat.texi,
10614         leaving behind a pointer.
10615         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10616         Merge duplicate info about 'struct stat' problems into here.
10617         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10618         and suggest partial workarounds.
10619
10620         same-inode: port to OpenVMS
10621         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10622         three st_ino values.
10623
10624 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10625
10626         canonicalize: fix references to stat() and lstat()
10627         * lib/canonicalize.c (canonicalize_filename_mode):
10628         Ensure references always resolve to a replacement
10629         function if required (even via a macro).
10630
10631 2011-12-30  Jim Meyering  <meyering@redhat.com>
10632
10633         gitlog-to-changelog: remove a little duplication
10634         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10635         rather than twice.
10636
10637 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10638
10639         canonicalize: add support for not resolving symlinks
10640         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10641         indicate we don't want to follow symlinks.  Also
10642         provide CAN_MODE_MASK to aid setting these existing
10643         mutually exclusive values.
10644         * lib/canonicalize.c (canonicalize_filename_mode):
10645         Extract the flags from can_mode parameter, which
10646         are currently just used to select between stat()
10647         and lstat().  Also ensure that mutually exclusive
10648         values are flagged immediately as invalid.
10649         * tests/test-canonicalize.c: Verify symlinks are
10650         not followed, and that invalid flag combinations
10651         are diagnosed.
10652
10653 2011-12-25  Jim Meyering  <meyering@redhat.com>
10654
10655         gitlog-to-changelog: do not clump multi-paragraph entries
10656         Identical header lines (date,name,email+coauthors) are suppressed,
10657         thus putting all entries with those same characteristics under
10658         a single header.  However, when a log entry consists of two or
10659         more paragraphs, it may not be clear where it starts and ends.
10660         This change makes it so that such an entry is always separated
10661         from others by a header line, even when that header would
10662         otherwise be suppressed.
10663         * build-aux/gitlog-to-changelog: Implement the above.
10664         Inspired by a related request from Stefano Lattarini in
10665         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10666
10667 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10668
10669         announce-gen: fix `cmd' typo in diagnostic
10670         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10671         diagnostic: a missing '$' meant that the command was not output.
10672
10673 2011-12-23  Jim Meyering  <meyering@redhat.com>
10674
10675         test-framework-sh: distribute init.sh
10676         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10677         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10678         fail due to the lack of init.sh.
10679
10680         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10681         * modules/atexit-tests: Rather than listing tests/init.sh,
10682         now that there's a module for it, simply depend on that new module.
10683         * modules/closein-tests: Likewise.
10684         * modules/exclude-tests: Likewise.
10685         * modules/getcwd-tests: Likewise.
10686         * modules/perror-tests: Likewise.
10687         * modules/pread-tests: Likewise.
10688         * modules/pwrite-tests: Likewise.
10689         * modules/vc-list-files-tests: Likewise.
10690         * modules/verify-tests: Likewise.
10691         * modules/xalloc-die-tests: Likewise.
10692         * modules/xstrtoimax-tests: Likewise.
10693         * modules/xstrtol-tests: Likewise.
10694         * modules/xstrtoll-tests: Likewise.
10695         * modules/xstrtoumax-tests: Likewise.
10696         * modules/yesno-tests: Likewise.
10697
10698 2011-12-22  Jim Meyering  <meyering@redhat.com>
10699
10700         test-framework-sh: add minimal tests of init.sh's compare function
10701         * modules/test-framework-sh-tests: New file.
10702         * tests/test-init.sh: New file.
10703
10704         test-framework-sh: new module
10705         * modules/test-framework-sh: New file.
10706         * MODULES.html.sh (Support for maintaining and releasing projects):
10707         List it.
10708
10709         init.sh: do not emit simulated diff output to stderr
10710         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10711
10712 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10713
10714         .gitignore: ignore gnulib.dvi and regex.info
10715         * doc/.gitignore:add gnulib.dvi and regex.info
10716
10717 2011-12-22  Jim Meyering  <meyering@redhat.com>
10718
10719         init.sh: correct previous change
10720         * tests/init.sh (compare): My previous change was wrong.
10721         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10722
10723         init.sh: avoid unwarranted test failure when using "set -e"
10724         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10725         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10726         a use like "compare exp out" would get evoke an unconditional failure.
10727
10728 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10729
10730         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10731         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10732         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10733         autoreconf that did not.
10734         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10735         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10736
10737 2011-12-17  Jim Meyering  <meyering@redhat.com>
10738
10739         bootstrap: remove some now-unneeded code
10740         This script arose back when gnulib-tool was young.
10741         Since then, it has seen improvements that render much of this
10742         script unnecessary.  In particular, it can now make symlinks
10743         to the files it uses.  Also, I no longer see as much value in
10744         marking files as read-only via comments.
10745         If you relied on the symlink-creation feature of the preceding
10746         version of this script, you can get most of that functionality
10747         by adding the --symlink option to the definition of
10748         gnulib_tool_option_extras in your bootstrap.conf file.
10749         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10750         Run autopoint and libtoolize *before* gnulib-tool.
10751         After it, run an abbreviated autoreconf, rather than a loop around
10752         all tools.
10753         (slirp, bt_mark_as_generated): Remove functions.
10754
10755 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10756
10757         ftoastr: fix typo
10758         * lib/ftoastr.h: Fix misspelling in comment.
10759
10760 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10761
10762         * top/README-release: fix punctuation.
10763
10764 2011-12-17  Jim Meyering  <meyering@redhat.com>
10765
10766         bootstrap: correct the recent buildreq change
10767         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10768         had no effect.
10769         * build-aux/bootstrap (buildreq): Bracket each search term with
10770         "*...*", so that the shell "case" statement works as intended.
10771         Add comments.
10772
10773 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10774
10775         build: let bootstrap resort to wget when downloading .po files
10776         * build-aux/bootstrap (download_po_files): Fallback to wget when
10777         downloading the .po files via rsync fails.  This is necessary to
10778         bootstrap from behind a strict firewall.
10779
10780 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10781
10782         stdint: don't assume C++11 when compiling with g++
10783         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10785         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10786         work also in C++ before C++11, as that improperly inhibits
10787         generating a substitute stdint.h for that case.
10788
10789 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10790
10791         alloca: protect comment from gnulib-tool
10792         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10793         that gnulib-tool doesn't think it's a license, and munge it to
10794         say "GCC version 3".
10795
10796 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10797
10798         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10799         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10800         $(abs_top_builddir) instead of $(top_builddir).
10801
10802 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10803
10804         strftime-tests: also test nanoseconds
10805         * tests/test-strftime.c (T): Add a test of %N.
10806
10807 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10808
10809         inttypes, stdint: add C++11 support
10810         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10811         when including inttypes.h and stdint.h.  Support this change to
10812         the standard.
10813         * doc/posix-headers/inttypes.texi (inttypes.h):
10814         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10815         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10816         Define if not defined already, for the benefit of pre-C++11 hosts.
10817         Define the standard format macros (e.g., PRId8) always.
10818         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10819         Likewise, if __cpluspus.  Define the standard constant and limit
10820         macros (e.g., INT8_C, INT8_MAX) always.
10821         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10822         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10823         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10824         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10825         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10826         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10827         Likewise.
10828
10829 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10830
10831         nonblocking tests: Fix test failure on Linux/PPC.
10832         Suggested by Prerna Saxena in
10833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10834         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10835         Set to 1100000.
10836
10837 2011-12-12  Jim Meyering  <meyering@redhat.com>
10838
10839         argmatch: don't hard-code `' when listing valid option arguments
10840         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10841         use the quote function to add quotes.  Use fputs rather than
10842         fprintf for the format string with no format directive.
10843
10844 2011-12-07  Eric Blake  <eblake@redhat.com>
10845
10846         bootstrap: detect tools required by gnulib-tool
10847         * build-aux/bootstrap (buildreq): Provide minimum implicit
10848         dependencies.
10849         * DEPENDENCIES: Mention patch as a prereq.
10850
10851 2011-12-04  Bruno Haible  <bruno@clisp.org>
10852
10853         sethostname: Port to Windows platforms.
10854         * lib/sethostname.c: Provide an alternate implementation for Windows
10855         platforms.
10856         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10857         (main): Skip the test if sethostname() fails with EPERM. On Windows
10858         platforms, don't check the result of gethostname().
10859
10860 2011-12-04  Bruno Haible  <bruno@clisp.org>
10861             Jim Meyering  <meyering@redhat.com>
10862
10863         tests: Avoid spurious error message on platforms without mktemp program.
10864         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10865
10866 2011-12-04  Bruno Haible  <bruno@clisp.org>
10867
10868         sethostname: Fix documentation.
10869         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10870         "not fixed" section.
10871
10872 2011-12-03  Bruno Haible  <bruno@clisp.org>
10873
10874         gnulib-tool: Verify that the License field is present and non-empty.
10875         * gnulib-tool (func_get_license_raw): New function, extracted from
10876         func_get_license.
10877         (func_get_license): Use it. Warn if the module is not a test module and
10878         has no license.
10879         Suggested by Jim Meyering.
10880
10881 2011-12-03  Bruno Haible  <bruno@clisp.org>
10882
10883         sethostname tests: Fix link error on mingw.
10884         * tests/test-sethostname1.c: New file, extracted from
10885         tests/test-sethostname.c.
10886         * tests/test-sethostname2.c: New file, extracted from
10887         tests/test-sethostname.c.
10888         * tests/test-sethostname.c: Remove file.
10889         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10890         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10891         (Depends-on): Add gethostname.
10892         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10893         Link the latter with $(GETHOSTNAME_LIB).
10894
10895         sethostname tests: Fix compilation error on mingw.
10896         * tests/test-sethostname.c: Don't include <sys/types.h>.
10897         (geteuid): Use a dummy value without uid_t.
10898         * modules/sethostname-tests (Depends-on): Remove sys_types.
10899
10900         sethostname tests: Avoid a gcc warning.
10901         * tests/test-sethostname.c (main): Remove an unused variable.
10902
10903         Tweak last commit.
10904         * modules/sethostname-tests (Files): Sort by decreasing importance.
10905         (configure.ac): Check for geteuid.
10906         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10907         the test when there's nothing to test. Drop an unnecessary cast.
10908         Improve an error message. Verify that the final sethostname() call
10909         succeeds.
10910
10911 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10912
10913         Add a test suite for the sethostname module.
10914         * modules/sethostname-tests: New file.  A test program
10915         for the sethostname module.
10916         * tests/test-sethostname.c: Likewise.
10917
10918 2011-12-03  Bruno Haible  <bruno@clisp.org>
10919
10920         Tweak last commit.
10921         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10922         Fix preprocessor directives indentation. Fix typos.
10923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10924         * modules/unistd (Makefile): Likewise.
10925
10926 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10927
10928         Integrate the sethostname module into unistd.
10929         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10930         into the unistd.h header.
10931         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10932         preprocessor directives.
10933         * modules/unistd: Setup the Makefile substitutions of the
10934         SETHOSTNAME preprocessor directives.
10935
10936 2011-12-03  Bruno Haible  <bruno@clisp.org>
10937
10938         Tweak last commit.
10939         * lib/sethostname.c: Don't include <string.h>.
10940         (sethostname): No need to copy the argument string to the stack. Don't
10941         call clearerr. Preserve errno when fprintf failed.
10942         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10943         Don't invoke AC_REPLACE_FUNCS.
10944         * modules/sethostname (Link): Remove empty section.
10945         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10946         failure problem.
10947
10948 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10949
10950         New module 'sethostname'.
10951         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10952         for systems that lack it.
10953         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10954         sethostname declaration and function.
10955         * modules/sethostname: New file.  Define the sethostname module.
10956
10957 2011-12-03  Bruno Haible  <bruno@clisp.org>
10958
10959         Tweak last commit.
10960         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10961
10962 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10963
10964         Split the HOST_NAME_MAX detection into a separate m4 macro.
10965         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10966         macro so it can be used by the pending sethostname module.
10967
10968 2011-12-03  Bruno Haible  <bruno@clisp.org>
10969
10970         Fix module descriptions syntax.
10971         * modules/argv-iter (License): Fix syntax.
10972         * modules/di-set (License): Likewise.
10973         * modules/ino-map (License): Likewise.
10974         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10975
10976 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10977
10978         stdalign: port to Clang 3.0
10979         Problem reported by Simon Josefsson in
10980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10981         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10982         which has <stdalign.h> but which does not define alignof.
10983         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10984
10985 2011-12-01  Eric Blake  <eblake@redhat.com>
10986
10987         mktempd: silence dd usage
10988         * build-aux/mktempd (rand_bytes): Silence dd.
10989
10990 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10991
10992         manywarnings: Don't mention gcc version in docstring.
10993         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10994         Jim Meyering <meyering@redhat.com>.
10995
10996 2011-11-30  Jim Meyering  <meyering@redhat.com>
10997
10998         hash: mark a few floating point constants with "f" suffix
10999         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
11000         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
11001         floating point constants with "f", since they're destined to be
11002         saved/used as "float"s.
11003
11004 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
11005
11006         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
11007         * tests/test-float.c (test_long_double): Correct and re-enable the
11008         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
11009
11010 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
11011
11012         Avoid subtracting two pointers that don't point into the same block.
11013         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
11014         only pointers into the same memory block are subtracted. We cannot
11015         assume that sizeof (ptrdiff_t) == sizeof (void *).
11016
11017 2011-11-29  Eric Blake  <eblake@redhat.com>
11018
11019         maint.mk: add syntax check for use of compare from init.sh
11020         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
11021         moved here from coreutils.
11022
11023         manywarnings: drop -Wunsuffixed-float-constants
11024         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
11025         '1.0D', which is the only way to silence this warning for 'double'.
11026
11027 2011-11-29  Jim Meyering  <meyering@redhat.com>
11028
11029         hash: mark compute_bucket_size with the pure attribute
11030         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
11031
11032         quotearg, propername: correct pragma guard expression
11033         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
11034         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
11035
11036 2011-11-28  Jim Meyering  <meyering@redhat.com>
11037
11038         propername: do not mark proper_name with the const attribute
11039         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
11040         since it examines data pointed to by its parameter.
11041         * lib/propername.c (proper_name): Instead, add a pragma to suppress
11042         the suggestion from -Wsuggest-attribute=const.
11043
11044         propername: mark one more function as const
11045         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
11046
11047 2011-11-27  Jim Meyering  <meyering@redhat.com>
11048
11049         mark functions with const and pure attributes
11050
11051         Mark functions per suggestions from gcc-4.6 when using these options:
11052         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
11053         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
11054         Follow these guidelines: when possible, apply the attribute to
11055         an extern declaration, not to its definition.  Apply it to the
11056         definition only when the definition is static.
11057         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
11058         * lib/argv-iter.h (argv_iter_n_args): Likewise.
11059         * lib/base64.h (isbase64): Likewise.
11060         * lib/basename-lgpl.c (last_component, base_len): Likewise.
11061         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
11062         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
11063         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
11064         (c_tolower, c_toupper): Likewise.
11065         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
11066         * lib/chdir-long.c (find_non_slash): Likewise.
11067         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
11068         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
11069         * lib/file-type.h (file_type): Likewise.
11070         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
11071         * lib/filevercmp.c (verrevcmp): Likewise.
11072         * lib/freadahead.h (freadahead): Likewise.
11073         * lib/fts.c (fts_maxarglen): Likewise.
11074         * lib/hash-pjw.h (hash_pjw): Likewise.
11075         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
11076         * lib/hash.c (is_prime, next_prime): Likewise.
11077         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
11078         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
11079         (hash_table_ok, hash_get_first, hash_string): Likewise.
11080         (compute_bucket_size): Likewise.
11081         * lib/i-ring.h (i_ring_empty): Likewise.
11082         * lib/isnan.c (isnanl): Likewise.
11083         * lib/math.h (isnanl, rpl_isnanl): Likewise.
11084         * lib/memcasecmp.h (memcasecmp): Likewise.
11085         * lib/memchr2.h (memchr2): Likewise.
11086         * lib/memcmp2.h (memcmp2): Likewise.
11087         * lib/parse-datetime.y (lookup_zone): Likewise.
11088         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
11089         [!WINDOWS_SOCKETS]: Likewise.
11090         * lib/strnlen1.h (strnlen1): Likewise.
11091         * lib/uniwidth.in.h (uc_width): Likewise.
11092         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
11093         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
11094         (quoting_options_from_style): Add a comment.
11095         * lib/propername.h (proper_name): Add a comment.
11096
11097 2011-11-27  Bruno Haible  <bruno@clisp.org>
11098
11099         Remove unused macros from !_LIBC code in glibc-borrowed files.
11100         * lib/fnmatch.c (STRCOLL): Remove macro.
11101         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
11102         * lib/glob.c (__stat, __readdir64): Remove macros.
11103         * lib/tempname.c (__open64, __xstat64): Remove macros.
11104         Suggested by Paul Eggert.
11105
11106 2011-11-27  Bruno Haible  <bruno@clisp.org>
11107
11108         getcwd: Fix link error on MSVC 9.
11109         * modules/getcwd (Depends-on): Add readdir, rewinddir.
11110
11111 2011-11-27  Bruno Haible  <bruno@clisp.org>
11112
11113         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
11114         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
11115         HAVE_OPENDIR is 0.
11116         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
11117         HAVE_CLOSEDIR is 0.
11118         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
11119         is 0.
11120         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
11121
11122 2011-11-27  Bruno Haible  <bruno@clisp.org>
11123
11124         getcwd: Fix bug from 2011-08-17.
11125         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
11126         platforms that need it.
11127         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
11128         code of 4 to be a failure, not a success. This ensures that
11129         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
11130
11131 2011-11-27  Bruno Haible  <bruno@clisp.org>
11132
11133         binary-io tests: Avoid test failure on mingw when libtool is used.
11134         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
11135         Don't verify the size of t-bin-out1.tmp here.
11136         * tests/test-binary-io.sh: Verify it here.
11137         Reported by Simon Josefsson.
11138
11139 2011-11-26  Bruno Haible  <bruno@clisp.org>
11140
11141         Fix conflict between two instantiations of module 'unistd'.
11142         * gnulib-tool (func_emit_autoconf_snippet): Substitute
11143         ${include_guard_prefix} also in the autoconf snippet.
11144         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
11145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
11146         GNULIB_UNISTD_H_GETOPT.
11147         * modules/getopt-posix (configure.ac): Set the
11148         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
11149         * modules/getopt-gnu (configure.ac): Likewise.
11150         * modules/unistd (Makefile.am): Change the substitution value of
11151         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
11152         Reported by Simon Josefsson.
11153
11154 2011-11-25  Bruno Haible  <bruno@clisp.org>
11155
11156         pagealign_alloc: Doc and comments.
11157         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
11158         module.
11159         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
11160
11161 2011-11-25  Jim Meyering  <meyering@redhat.com>
11162
11163         test-update-copyright.sh: avoid false-positive failure
11164         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
11165         around false positive failure on Cygwin/Windows.  The latter was
11166         matching erroneously-created files with names like
11167         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
11168
11169 2011-11-25  Simon Josefsson  <simon@josefsson.org>
11170
11171         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
11172         * m4/valgrind-tests.m4: Check that the parameters that will be
11173         used works, not just a subset of them.  Reported by Bruno Haible
11174         <bruno@clisp.org>.
11175
11176 2011-11-24  Jim Meyering  <meyering@redhat.com>
11177
11178         test-stdalign.c: comment out long double tests
11179         * tests/test-stdalign.c: Don't try to reduce alignment of long double
11180         variables.  That provokes errors like this from gcc-4.7.0 20111124:
11181         error: '_Alignas' specifiers cannot reduce alignment of \
11182         'static_longdouble_alignas'.
11183
11184 2011-11-22  Jim Meyering  <meyering@redhat.com>
11185
11186         init.sh: make "compare /dev/null FILE" output more readable
11187         * tests/init.sh (compare_): Document the preferred order of arguments.
11188         (emit_diff_u_header_): New function.
11189         (compare_dev_null_): Emit a simulated diff, rather than just the
11190         contents of the unexpected file.  Suggestion from Bruno Haible.
11191
11192 2011-11-21  Jim Meyering  <meyering@redhat.com>
11193             Eric Blake  <eblake@redhat.com>
11194
11195         init.sh: work around OSF/1 5.1's mishandling of /dev/null
11196         * tests/init.sh: Make our compare function slightly more portable.
11197         Reported by Bruno Haible in
11198         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
11199
11200 2011-11-21  Simon Josefsson  <simon@josefsson.org>
11201
11202         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
11203         before using it, in code that ends up in config.h.
11204
11205 2011-11-20  Bruno Haible  <bruno@clisp.org>
11206
11207         getcwd: Work around getcwd bug on AIX 5..7.
11208         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11209         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11210         Use a different value for gl_cv_func_getcwd_path_max. Move the
11211         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11212         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11213         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11214         Define HAVE_MINIMALLY_WORKING_GETCWD.
11215         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11216         where it is not even minimally working, that is, on AIX.
11217         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11218         m4/getcwd-path-max.m4.
11219         (main): Update exit code computation.
11220         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11221         getcwd does not handle long file names.
11222
11223 2011-11-20  Bruno Haible  <bruno@clisp.org>
11224
11225         getcwd: Fix bug from 2009-09-10.
11226         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11227         like "no".
11228
11229 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11230
11231         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11232
11233 2011-11-20  Bruno Haible  <bruno@clisp.org>
11234
11235         fma tests: Avoid shadowing local variables.
11236         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11237         expected.
11238
11239 2011-11-20  Bruno Haible  <bruno@clisp.org>
11240
11241         copysignf tests: Fix.
11242         * tests/test-copysignf.c: Fix signature check.
11243
11244 2011-11-20  Bruno Haible  <bruno@clisp.org>
11245
11246         fma: Remove unused code.
11247         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11248         unused macros.
11249
11250 2011-11-20  Bruno Haible  <bruno@clisp.org>
11251
11252         sethostname: Fix doc about AIX.
11253         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11254         sethostname; it has it.
11255
11256         sethostname: Mention more portability problems.
11257         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11258         problem.
11259         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11260
11261 2011-11-19  Bruno Haible  <bruno@clisp.org>
11262
11263         Depend on module fcntl-h when AT_FDCWD is used.
11264         * modules/utimens (Depends-on): Add fcntl-h.
11265         * modules/areadlinkat (Depends-on): Likewise.
11266         * modules/areadlinkat-with-size (Depends-on): Likewise.
11267         * modules/faccessat (Depends-on): Likewise.
11268         * modules/fchmodat (Depends-on): Likewise.
11269         * modules/fchownat (Depends-on): Likewise.
11270         * modules/getcwd (Depends-on): Likewise.
11271         * modules/mkdirat (Depends-on): Likewise.
11272         * modules/mkfifoat (Depends-on): Likewise.
11273         * modules/readlinkat (Depends-on): Likewise.
11274         * modules/symlinkat (Depends-on): Likewise.
11275         * modules/dup2-tests (Depends-on): Likewise.
11276         * modules/fdutimensat-tests (Depends-on): Likewise.
11277         * modules/futimens-tests (Depends-on): Likewise.
11278
11279 2011-11-19  Bruno Haible  <bruno@clisp.org>
11280
11281         euidaccess: Update a comment.
11282         * lib/euidaccess.c: Update comment about platforms with faccessat.
11283
11284 2011-11-19  Bruno Haible  <bruno@clisp.org>
11285
11286         openat: Fix file list.
11287         * modules/openat (Files): Remove lib/at-func.c.
11288
11289 2011-11-19  Bruno Haible  <bruno@clisp.org>
11290
11291         fstatat: Simplify.
11292         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11293         gnulib should define rpl_fstatat, there is a
11294         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11295
11296 2011-11-19  Bruno Haible  <bruno@clisp.org>
11297
11298         Ensure 'inline' can be used in tests/test-utimens-common.h.
11299         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11300         * modules/futimens-tests (configure.ac): Likewise.
11301         * modules/utimens-tests (configure.ac): Likewise.
11302         * modules/utimensat-tests (configure.ac): Likewise.
11303
11304 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11305
11306         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11307         not hash_insert0.
11308         (hash_insert_if_absent): Doc fix.
11309
11310 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11311
11312         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11313
11314 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11315
11316         test-getcwd: disambiguate exit status
11317         * tests/test-getcwd.c (test_long_name): Return 0..7.
11318         (main): Exit with an unambiguous exit status.  The old
11319         code yielded a mysterious mixture of two failure codes.
11320
11321         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11322         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11323         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11324         rpl_fstatat or fstatat.  This should fix the other problem
11325         reported by Kai Habel in
11326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11327         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11329         and I reproduced it on a Solaris 8 host we still have in production.
11330
11331 2011-11-18  Jim Meyering  <meyering@redhat.com>
11332
11333         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11334         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11335         Add a sentence to the comment.
11336         (hash_insert0): New function that simply calls hash_insert_if_absent.
11337         * lib/hash.h (hash_insert_if_absent): Declare it.
11338         (hash_insert0): Add deprecation attribute.
11339         (_GL_ATTRIBUTE_DEPRECATED): Define.
11340         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11341         not hash_insert0.
11342         * NEWS: Mention it, even though it's not really an incompatible change.
11343
11344 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11345
11346         openat: avoid compilation failure due to lack of <errno.h> inclusion
11347         * lib/openat.c: Include <errno.h>.
11348
11349 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11350
11351         * modules/getcwd (Depends-on): Add fdopendir.
11352         This fixes one of the two problems reported by Kai Habel in
11353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11354
11355         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11356         stdalign problem reported by Ian Beckwith in
11357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11358         * modules/crypto/gc-arcfour (Depends-on):
11359         Depend conditionally on crypto/arcfour.
11360         * modules/crypto/gc-arctwo (Depends-on):
11361         Depend conditionally on crypto/arctwo.
11362         * modules/crypto/gc-des (Depends-on):
11363         Depend conditionally on crypto/des.
11364         * modules/crypto/gc-hmac-md5 (Depends-on):
11365         Depend conditionally on crypto/hmac-md5.
11366         * modules/crypto/gc-hmac-sha1 (Depends-on):
11367         Depend conditionally on crypto/hmac-sha1.
11368         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11369         * modules/crypto/gc-md4 (Depends-on):
11370         Depend conditionally on crypto/md4.
11371         * modules/crypto/gc-md5 (Depends-on):
11372         Depend conditionally on crypto/md5.
11373         * modules/crypto/gc-rijndael (Depends-on):
11374         Depend conditionally on crypto/rijndael.
11375         * modules/crypto/gc-sha1 (Depends-on):
11376         Depend conditionally on crypto/sha1.
11377         * modules/crypto/gc-arcfour:
11378         * modules/crypto/gc-arctwo:
11379         * modules/crypto/gc-des:
11380         * modules/crypto/gc-hmac-md5:
11381         * modules/crypto/gc-hmac-sha1:
11382         * modules/crypto/gc-md2:
11383         * modules/crypto/gc-md4:
11384         * modules/crypto/gc-md5:
11385         * modules/crypto/gc-rijndael:
11386         * modules/crypto/gc-sha1:
11387         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11388         now that the conditional dependencies do the work for us.
11389
11390 2011-11-17  Jim Meyering  <meyering@redhat.com>
11391
11392         tests: factor st_ctime-comparison out of two headers
11393         * tests/test-utimens-common.h (ctime_compare): Define.
11394         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11395         * tests/test-lutimens.h (test_lutimens): Likewise.
11396         * tests/test-utimens.h (test_utimens): Likewise.
11397
11398         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11399         Invoke the test program via an init.sh-using wrapper.
11400         * tests/test-getcwd.sh: New file.
11401         * modules/getcwd-tests (Files): Add it.
11402         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11403
11404 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11405
11406         gitlog-to-changelog: support multi-author commits.
11407         The FSF cares about keeping track of all authors of patches to its
11408         projects, but Git doesn't provide obvious support for multi-author
11409         changesets. Consensus seems to be forming around the use of extra
11410         Signed-off-by inspired lines in the log message formatted as
11411         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11412         multi-author commits between version control systems.
11413         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11414         log message and output in standard ChangeLog multi-author format.
11415         Reported by Peter Rosin <peda@lysator.liu.se>
11416
11417 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11418             Bruno Haible  <bruno@clisp.org>
11419
11420         Fix some modules' file list.
11421         * modules/fstatat (Files): Add m4/lstat.m4.
11422         * modules/openat (Files): Likewise.
11423         * modules/unlinkat (Files): Likewise.
11424
11425 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11426
11427         maint.mk: fix tight-scope.mk generation in VPATH builds.
11428         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11429         reference with $(srcdir) so that the file is found correctly even
11430         when running `make syntax-check' in a VPATH build.
11431
11432 2011-11-13  Bruno Haible  <bruno@clisp.org>
11433             Jim Meyering  <meyering@redhat.com>
11434
11435         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11436         * tests/init.sh (compare): Remove "No differences encountered" or
11437         synonymous output from the 'diff' program.
11438
11439 2011-11-13  Bruno Haible  <bruno@clisp.org>
11440
11441         Makefile: Tweak indentation.
11442         * Makefile: Use tab as first character in every line that contains rule
11443         commands.
11444
11445 2011-11-13  Bruno Haible  <bruno@clisp.org>
11446
11447         Syntax check for copyright statements.
11448         * check-copyright: New file.
11449         * Makefile (sc_check_copyright): New rule.
11450
11451 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11452
11453         * build-aux/git-version-gen: Add --prefix to configure the tag
11454         match string.
11455
11456 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11457
11458         * build-aux/git-version-gen: Add --help and --version.
11459
11460 2011-11-12  Jim Meyering  <meyering@redhat.com>
11461
11462         revamp the other test-exclude?.sh scripts to use init.sh, too
11463         * tests/test-exclude1.sh: Use init.sh.
11464         * tests/test-exclude2.sh: Likewise.
11465         * tests/test-exclude3.sh: Likewise.
11466         * tests/test-exclude4.sh: Likewise.
11467         * tests/test-exclude5.sh: Likewise.
11468         * tests/test-exclude6.sh: Likewise.
11469         * tests/test-exclude7.sh: Likewise.
11470         * tests/test-exclude8.sh: Likewise.
11471         * modules/exclude-tests (Files): List init.sh.
11472
11473         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11474         These shell scripts ignored failure of the binary test-exclude,
11475         so making the latter return 77 didn't cause them to be skipped.
11476         * tests/test-exclude5.sh: Exit with test-exclude's error status
11477         when that program fails.  Revamp to use init.sh.
11478         * tests/test-exclude2.sh: Likewise.
11479
11480         test-exclude: fix a typo
11481         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11482
11483 2011-11-11  Bruno Haible  <bruno@clisp.org>
11484
11485         obstack: Fix compilation error on MSVC 9.
11486         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11487
11488 2011-11-11  Jim Meyering  <meyering@redhat.com>
11489
11490         test-exclude: skip tests rather than failing on deficient systems
11491         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11492         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11493         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11494         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11495
11496 2011-11-10  Bruno Haible  <bruno@clisp.org>
11497
11498         ptsname_r test: Avoid gcc warning on glibc systems.
11499         * tests/test-ptsname_r.c (null_ptr): New function.
11500         (test_errors): Use it.
11501
11502 2011-11-10  Bruno Haible  <bruno@clisp.org>
11503
11504         ptsname_r: Avoid compilation error on OSF/1 5.1.
11505         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11507         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11508         function is not declared or incompatibly declared.
11509         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11510         * modules/ptsname_r (Depends-on, configure.ac): Update.
11511         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11512
11513 2011-11-10  Bruno Haible  <bruno@clisp.org>
11514
11515         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11516         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11517         When cross-compiling, guess yes on all platforms except AIX.
11518         Reported by Ludovic Courtès <ludo@gnu.org>.
11519
11520 2011-11-09  Bruno Haible  <bruno@clisp.org>
11521
11522         ptsname_r tests: Fix bugs.
11523         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11524         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11525
11526 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11527
11528         fstatat: work with cross-compilation
11529         Problem reported by Ludovic Courtès in
11530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11531         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11532         "cross-compiling" and assume the bug is present.  Replace
11533         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11534         an inverted sense, to be more conservative about our assumptions.
11535         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11536
11537 2011-11-09  Bruno Haible  <bruno@clisp.org>
11538
11539         Improve MODULES.html output.
11540         * modules/mkfifoat (Description): Use the word "function".
11541         * modules/readlinkat (Description): Likewise.
11542         * modules/symlinkat (Description): Likewise.
11543
11544 2011-11-09  Eric Blake  <eblake@redhat.com>
11545
11546         ptsname_r-tests: new test module
11547         * modules/ptsname_r-tests: New module.
11548         * tests/test-ptsname_r.c: New file.
11549
11550         ptsname_r: new module
11551         * modules/ptsname_r: New module.
11552         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11553         * lib/ptsname.c (__ptsname_r): Split...
11554         * lib/ptsname_r.c: ...into new file.
11555         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11556         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11557         * modules/stdlib (Makefile.am): Substitute witnesses.
11558         * lib/stdlib.in.h (ptsname_r): Declare it.
11559         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11560         * MODULES.html.sh (Misc): Likewise.
11561         * modules/ptsname (Depends-on): Alter dependency.
11562         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11563
11564 2011-11-09  Jim Meyering  <meyering@redhat.com>
11565
11566         announce-gen: be more concise when there's only one URL+tarball
11567         * build-aux/announce-gen (get_tool_versions): When you distribute
11568         only one type of tarball, combine the first two "Here are..."
11569         sections and make the key-checking grammar independent of
11570         how many tarballs there are.
11571
11572 2011-11-09  Eric Blake  <eblake@redhat.com>
11573
11574         openpty: provide a stub on mingw
11575         * lib/pty.in.h (includes): Provide forward declarations.
11576         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11577
11578         raise: fix mingw handling of SIGPIPE
11579         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11580
11581 2011-11-08  Bruno Haible  <bruno@clisp.org>
11582
11583         More conditional dependencies.
11584         * modules/faccessat (Depends-on): Add conditions.
11585         * modules/fchmodat (Depends-on): Likewise.
11586         * modules/fchownat (Depends-on): Likewise.
11587         * modules/fstatat (Depends-on): Likewise.
11588         * modules/mkfifoat (Depends-on): Likewise.
11589         * modules/readlinkat (Depends-on): Likewise.
11590         * modules/symlinkat (Depends-on): Likewise.
11591         * modules/unlinkat (Depends-on): Likewise.
11592         * modules/utimensat (Depends-on): Likewise.
11593         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11594         * modules/linkat (Depends-on): Refine the conditions.
11595         * modules/renameat (Depends-on): Likewise.
11596
11597 2011-11-08  Bruno Haible  <bruno@clisp.org>
11598
11599         faccessat: Move AC_LIBOBJ invocation to module description.
11600         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11601         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11602         invocation from here...
11603         * modules/faccessat (configure.ac): ... to here. Invoke
11604         gl_PREREQ_FACCESSAT.
11605
11606 2011-11-08  Bruno Haible  <bruno@clisp.org>
11607
11608         faccessat: Simplify autoconf macro.
11609         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11610         gl_FUNC_EUIDACCESS.
11611
11612 2011-11-08  Bruno Haible  <bruno@clisp.org>
11613
11614         renameat: Fix dependencies.
11615         * modules/renameat (Depends-on): Add stdbool.
11616
11617 2011-11-08  Bruno Haible  <bruno@clisp.org>
11618
11619         mkfifoat: Fix module description.
11620         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11621         not gl_UNISTD_MODULE_INDICATOR.
11622
11623 2011-11-08  Bruno Haible  <bruno@clisp.org>
11624
11625         fstatat: Remove unused dependency.
11626         * modules/fstatat (Depends-on): Remove fstat.
11627
11628 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11629
11630         GNUmakefile: behave when Makefile is missing.
11631         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11632
11633 2011-11-08  Bruno Haible  <bruno@clisp.org>
11634
11635         openat: Conditionalize dependencies.
11636         * lib/openat.c: Reduce the scope of some #includes.
11637         * modules/openat (Depends-on): Add conditions.
11638
11639 2011-11-07  Jim Meyering  <meyering@redhat.com>
11640
11641         maint.mk: extract GPG key ID without using a temporary file
11642         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11643         without using a temporary file.  Based on a suggestion from Werner Koch
11644         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11645
11646 2011-11-07  Eric Blake  <eblake@redhat.com>
11647
11648         grantpt: fix typo
11649         * lib/stdlib.in.h (grantpt): Check correct function.
11650
11651         maint.mk: silence new syntax check
11652         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11653
11654 2011-11-06  Bruno Haible  <bruno@clisp.org>
11655
11656         Doc about floating-point and math API.
11657         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11658         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11659
11660 2011-11-06  Bruno Haible  <bruno@clisp.org>
11661
11662         stdalign tests: Skip the test when compiled by Sun C.
11663         * tests/test-stdalign.c (main): Skip the test on Sun C.
11664
11665 2011-11-06  Bruno Haible  <bruno@clisp.org>
11666
11667         ansi-c++-opt: Complete the 2011-06-05 change.
11668         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11669         does not support namespaces, set the variable to "no", not to ":".
11670
11671 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11672
11673         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11674
11675 2011-11-06  Bruno Haible  <bruno@clisp.org>
11676
11677         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11678         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11679         (minus_zerol) [HP-UX]: New macro.
11680         (unary_minus) [HP-UX]: New function.
11681         (copysignl) [HP-UX]: Use unary_minus function.
11682
11683 2011-11-06  Bruno Haible  <bruno@clisp.org>
11684
11685         ldexp, ldexpf, ldexpl: Enhance tests.
11686         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11687         and tests/test-ldexpl.c.
11688         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11689         LDEXP, MIN_EXP, MAX_EXP): New macros.
11690         Include test-ldexp.h.
11691         (main): Just call test_function.
11692         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11693         infinity.h, nan.h.
11694         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11695         MAX_EXP): New macros.
11696         Include test-ldexp.h.
11697         (x, y): Remove variables.
11698         (main): Just call test_function.
11699         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11700         infinity.h, nan.h.
11701         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11702         MAX_EXP): New macros.
11703         Include test-ldexp.h.
11704         (x, y): Remove variables.
11705         (main): Just call test_function.
11706         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11707         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11708         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11709         (Depends-on): Add isnand-nolibm, signbit, float.
11710         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11711         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11712         (Depends-on): Add isnanf-nolibm, signbit, float.
11713
11714 2011-11-06  Bruno Haible  <bruno@clisp.org>
11715
11716         math tests: Cosmetics.
11717         * tests/test-math-c++.cc: Reorder declarations.
11718
11719 2011-11-05  Bruno Haible  <bruno@clisp.org>
11720
11721         fma*: Simplify test.
11722         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11723         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11724
11725         Tests for module 'fmal'.
11726         * modules/fmal-tests: New file.
11727         * tests/test-fmal1.c: New file.
11728         * tests/test-fmal2.c: New file.
11729
11730         New module 'fmal'.
11731         * lib/math.in.h (fmal): New declaration.
11732         * lib/fmal.c: New file.
11733         * m4/fmal.m4: New file.
11734         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11736         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11737         REPLACE_FMAL.
11738         * modules/fmal: New file.
11739         * doc/posix-functions/fmal.texi: Mention the new module and the various
11740         bugs.
11741
11742         Tests for module 'fmaf'.
11743         * modules/fmaf-tests: New file.
11744         * tests/test-fmaf1.c: New file.
11745         * tests/test-fmaf2.c: New file.
11746
11747         New module 'fmaf'.
11748         * lib/math.in.h (fmaf): New declaration.
11749         * lib/fmaf.c: New file.
11750         * m4/fmaf.m4: New file.
11751         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11753         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11754         REPLACE_FMAF.
11755         * modules/fmaf: New file.
11756         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11757         bugs.
11758
11759         Tests for module 'fma'.
11760         * modules/fma-tests: New file.
11761         * tests/test-fma1.c: New file.
11762         * tests/test-fma1.h: New file.
11763         * tests/test-fma2.c: New file.
11764         * tests/test-fma2.h: New file.
11765
11766         New module 'fma'.
11767         * lib/math.in.h (fma): New declaration.
11768         * lib/fma.c: New file.
11769         * m4/fma.m4: New file.
11770         * m4/fegetround.m4: New file.
11771         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11773         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11774         REPLACE_FMA.
11775         * modules/fma: New file.
11776         * doc/posix-functions/fma.texi: Mention the new module and the various
11777         bugs.
11778
11779         Extend gl_MATHFUNC.
11780         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11781         Support 'void' as argument type.
11782         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11783
11784 2011-11-05  Jim Meyering  <meyering@redhat.com>
11785
11786         maint.mk: also prohibit inclusion of dirent.h without use
11787         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11788
11789 2011-11-05  Bruno Haible  <bruno@clisp.org>
11790
11791         ldexpl tests: Avoid test failure on MSVC 9.
11792         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11793         value. Needed in order to enforce the conversion from a value greater
11794         than LDBL_MAX to Infinity.
11795
11796 2011-11-05  Bruno Haible  <bruno@clisp.org>
11797
11798         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11799         * modules/at-internal: New file, extracted from modules/openat.
11800         * modules/openat-h: New file.
11801         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11802         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11803         * modules/openat (Description): Add reference to POSIX function.
11804         (Files): Remove lib/openat.h, lib/openat-proc.c.
11805         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11806         intprops, unistd.
11807         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11808         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11809         gl_FCNTL_MODULE_INDICATOR.
11810         (Include): Remove unistd.h, openat.h.
11811         * modules/areadlinkat (Files): Add lib/at-func.c.
11812         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11813         openat-die, openat-h, save-cwd.
11814         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11815         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11816         openat-die, openat-h, save-cwd, unistd.
11817         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11818         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11819         openat-h, save-cwd. Remove fcntl-h, openat.
11820         * modules/fchmodat (Files): Remove lib/openat.h.
11821         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11822         openat, stdbool, unistd.
11823         * modules/fchownat (Files): Remove lib/openat.h.
11824         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11825         openat, stdbool, sys_stat.
11826         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11827         lib/openat-proc.c.
11828         (Depends-on): Add at-internal.
11829         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11830         * modules/fstatat (Files): Remove lib/openat.h.
11831         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11832         stdbool, unistd.
11833         * modules/fts (Depends-on): Add openat-h.
11834         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11835         openat.
11836         * modules/mkdirat (Files): Remove lib/openat.h.
11837         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11838         openat, stdbool, sys_stat.
11839         * modules/mkfifoat (Files): Add lib/at-func.c.
11840         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11841         openat-h, save-cwd. Remove fcntl-h, openat.
11842         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11843         * modules/readlinkat (Files): Add lib/at-func.c.
11844         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11845         openat-h, save-cwd. Remove fcntl-h, openat.
11846         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11847         openat.
11848         * modules/selinux-at (Files): Add lib/at-func.c.
11849         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11850         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11851         * modules/symlinkat (Files): Add lib/at-func.c.
11852         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11853         openat-h, save-cwd. Remove fcntl-h, openat.
11854         * modules/unlinkat (Files): Remove lib/openat.h.
11855         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11856         stdbool.
11857         * modules/utimensat (Files): Add lib/at-func.c.
11858         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11859         openat-die, openat-h, save-cwd.
11860         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11861         * modules/fdutimensat-tests (Depends-on): Add openat.
11862         * modules/fstatat-tests (Depends-on): Add openat-h.
11863         * modules/readlinkat-tests (Depends-on): Add openat.
11864         * modules/symlinkat-tests (Depends-on): Add openat.
11865
11866 2011-11-05  Bruno Haible  <bruno@clisp.org>
11867
11868         openat: Include <stdbool.h>.
11869         * lib/openat.c: Include <stdbool.h>.
11870
11871 2011-11-04  Bruno Haible  <bruno@clisp.org>
11872
11873         fchownat, renameat, unlinkat: Fix dependencies.
11874         * modules/fchownat (Depends-on): Add fstatat.
11875         * modules/renameat (Depends-on): Likewise.
11876         * modules/unlinkat (Depends-on): Likewise.
11877
11878 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11879
11880         openat: remove direct dependency on dirent
11881         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11882         and hasn't been needed ever since fdopendir was split into its own
11883         module on 2009-08-31.
11884         * modules/openat (Depends-on): Remove dirent.
11885
11886 2011-11-04  Bruno Haible  <bruno@clisp.org>
11887
11888         renameat: Optimize code size.
11889         * modules/renameat (configure.ac): Don't compile at-func2.c if
11890         REPLACE_RENAMEAT is 1.
11891
11892 2011-11-04  Bruno Haible  <bruno@clisp.org>
11893
11894         openat tests: Fix file list.
11895         * modules/openat-tests (Files): Add tests/test-open.h.
11896
11897 2011-11-04  Bruno Haible  <bruno@clisp.org>
11898
11899         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11900         * modules/fchmodat (Depends-on): Add openat-die.
11901         * modules/fchownat (Depends-on): Likewise.
11902         * modules/linkat (Depends-on): Likewise.
11903         * modules/renameat (Depends-on): Likewise.
11904         * modules/openat (Depends-on): Add dirent.
11905
11906 2011-11-04  Jim Meyering  <meyering@redhat.com>
11907
11908         at-func*.c: fix comments
11909         * lib/at-func2.c: Correct/improve first-line comment.
11910         * lib/at-func.c: Correct grammar in first-line comment.
11911
11912 2011-11-04  Bruno Haible  <bruno@clisp.org>
11913
11914         New module 'mkdirat', split off from module 'openat'.
11915         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11916         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11917         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11918         * modules/mkdirat: New file, extracted from modules/openat.
11919         * modules/openat (Files): Remove lib/mkdirat.c.
11920         (Depends-on): Remove mkdir.
11921         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11922         (Include): Remove <sys/stat.h>.
11923         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11924         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11925         tests/test-mkdir.h.
11926         (Depends-on): Remove ignore-value.
11927         (Makefile.am): Remove rules for test-mkdirat.
11928         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11929         of module 'openat'.
11930         * NEWS: Mention the change.
11931
11932 2011-11-04  Bruno Haible  <bruno@clisp.org>
11933
11934         closedir: Avoid warning on mingw.
11935         * lib/closedir.c: Include <unistd.h>.
11936
11937 2011-11-04  Bruno Haible  <bruno@clisp.org>
11938
11939         New module 'fstatat', split off from module 'openat'.
11940         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11941         defined.
11942         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11943         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11944         gl_FUNC_FSTATAT.
11945         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11946         * modules/fstatat: New file, extracted from modules/openat.
11947         * modules/openat (Files): Remove lib/fstatat.c.
11948         (Depends-on): Remove lstat.
11949         (configure.ac): Remove AC_LIBOBJ of fstatat.
11950         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11951         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11952         tests/test-lstat.h, tests/test-stat.h.
11953         (Depends-on): Remove getcwd-lgpl.
11954         (Makefile.am): Remove rules for test-fstatat.
11955         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11956         of module 'openat'.
11957         * NEWS: Mention the change.
11958         * modules/getcwd (Depends-on): Add fstatat.
11959         * modules/linkat (Depends-on): Likewise.
11960         * modules/mkfifoat-tests (Depends-on): Likewise.
11961         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11962
11963 2011-11-03  Bruno Haible  <bruno@clisp.org>
11964
11965         New module 'unlinkat', split off from module 'openat'.
11966         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11967         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11968         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11969         * modules/unlinkat: New file, extracted from modules/openat. Correct
11970         the dependency conditions.
11971         * modules/openat (Files): Remove lib/unlinkat.c.
11972         (Depends-on): Remove rmdir, unlink.
11973         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11974         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11975         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11976         tests/test-rmdir.h, tests/test-unlink.h.
11977         (Depends-on): Remove unlinkdir.
11978         (Makefile.am): Remove rules for test-unlinkat.
11979         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11980         of module 'openat'.
11981         * NEWS: Mention the change.
11982         * modules/linkat-tests (Depends-on): Add unlinkat.
11983         * modules/mkfifoat-tests (Depends-on): Likewise.
11984         * modules/readlinkat-tests (Depends-on): Likewise.
11985
11986 2011-11-02  Bruno Haible  <bruno@clisp.org>
11987
11988         New module 'fchmodat', split off from module 'openat'.
11989         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11990         defined.
11991         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11992         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11993         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11994         * modules/fchmodat: New file, extracted from modules/openat.
11995         * modules/openat (Files): Remove lib/fchmodat.c.
11996         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11997         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11998         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11999         (Makefile.am): Remove rules for test-fchmodat.
12000         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
12001         of module 'openat'.
12002         * NEWS: Mention the change.
12003
12004 2011-11-02  Jim Meyering  <meyering@redhat.com>
12005
12006         putenv: indent #definition of "environ" to placate cppi
12007         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
12008
12009         gitlog-to-changelog: provide a ChangeLog-repair mechanism
12010         Git logs are often treated as immutable, because editing them
12011         changes the SHA1 checksums of all descendants.  Thus, errors in
12012         git logs tend to stay there forever.  However, when we generate
12013         a ChangeLog file -- typically for distribution -- from that git log,
12014         we can actually make corrections in the generated file.  The key
12015         lies in recording in machine-readable/applicable form the desired
12016         corrections.  See --help for description and an example.
12017         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
12018         (usage): Describe it; alphabetize option descriptions.
12019         (main): Honor the new option, carefully.
12020
12021 2011-11-01  Jim Meyering  <meyering@redhat.com>
12022
12023         gitlog-to-changelog: avoid an infloop
12024         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
12025         that ends up being empty.
12026
12027 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12028
12029         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
12030         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
12031         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
12032         contains (possibly-quoted) backslashes.  This should avoid
12033         all-too-common shell bugs if COMPLICATED contains backslashes in
12034         the "wrong" places.  Reported by David Evans in
12035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
12036         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
12037         because we want ASCII ranges.  Is there some reason we don't use
12038         the C locale everywhere in this script?
12039         (func_module, top level): Avoid unwanted pathname expansion when
12040         $repo_url_prefix or $repo_url_suffix_repl contain shell
12041         metacharacters like '?' and '*'.
12042
12043 2011-11-01  Bruno Haible  <bruno@clisp.org>
12044
12045         fchownat: Improve description.
12046         * modules/fchownat (Description): Add link to function.
12047
12048 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12049
12050         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
12051         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
12052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
12053         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12054
12055 2011-11-01  Bruno Haible  <bruno@clisp.org>
12056
12057         alignof: Avoid collision with stdalign module.
12058         * lib/alignof.h (alignof): Remove macro.
12059         * NEWS: Mention the change.
12060         Reported by Paul Eggert.
12061
12062 2011-11-01  Bruno Haible  <bruno@clisp.org>
12063
12064         New module 'fchownat', split off from module 'openat'.
12065         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
12066         defined.
12067         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
12068         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
12069         invoke gl_FUNC_FCHOWNAT.
12070         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
12071         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
12072         * modules/fchownat: New file, extracted from modules/openat.
12073         * modules/openat (Files): Remove lib/fchownat.c.
12074         (Depends-on): Remove lchown.
12075         (configure.ac): Remove AC_LIBOBJ of fchownat.
12076         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
12077         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
12078         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
12079         (Depends-on): Remove mgetgroups, usleep, stat-time.
12080         (configure.ac): Remove test for getegid.
12081         (Makefile.am): Remove rules for test-fchownat.
12082         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
12083         of module 'openat'.
12084         * NEWS: Mention the change.
12085
12086 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12087
12088         stdalign: port better to MSVC and to Sun C 5.11
12089         This fixes some of the problems reported by Bruno Haible in
12090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
12091         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
12092         shortcomings of MSVC and of Sun C 5.11.
12093         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
12094         around __declspec arg.
12095         * modules/stdalign-tests (Files): Add tests/macros.h.
12096         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
12097         Include macros.h, for ASSERT.
12098         (DECLARE_ALIGNED): Remove.
12099         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
12100         to catch bug), and to 1 if not (simplifies the rest of the code).
12101         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
12102         (CHECK_AUTO): Remove.
12103         (CHECK_ALIGNED): Check only the alignment of the static vars,
12104         since auto var alignment isn't supported by Sun C 5.11.
12105         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
12106         ASSERT failures are easier to diagnose.
12107
12108 2011-10-31  Bruno Haible  <bruno@clisp.org>
12109
12110         doc about some IRIX 5.3 problems.
12111         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
12112         on IRIX 5.3.
12113         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
12114         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
12115         5.3.
12116         * doc/posix-functions/grantpt.texi: Likewise.
12117         * doc/posix-functions/unlockpt.texi: Likewise.
12118         * doc/posix-functions/lgamma.texi: Likewise.
12119         * doc/posix-functions/nextafter.texi: Likewise.
12120         * doc/posix-functions/remainder.texi: Likewise.
12121         * doc/posix-functions/select.texi: Mention misplaced declaration on
12122         IRIX 5.3.
12123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12124
12125 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
12126
12127         gitlog-to-changelog: fix git-log invocation.
12128         git-log mishandles date strings before 1970-01-01 UTC, and there is
12129         no use to specify --since=1970-01-01 by default anyway.
12130         * build-aux/gitlog-to-changelog: By default, when no --since option
12131         was given, do not specify explicit --since option to git-log.
12132
12133 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
12134
12135         gitlog-to-changelog: new option --append-dot.
12136         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
12137         first non-blank line of each commit message terminated with a dot.
12138
12139 2011-10-30  Bruno Haible  <bruno@clisp.org>
12140
12141         ffsl, ffsll: Avoid compilation error due to 'restrict'.
12142         * lib/ffsl.h: Include <config.h>.
12143         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
12144
12145 2011-10-30  Jim Meyering  <meyering@redhat.com>
12146
12147         GNUmakefile: reenable "make syntax-check" for most projects
12148         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
12149         build-aux variable", "syntax-check" would do nothing but succeed with
12150         the "No version control files detected..." diagnostic (unless you
12151         happened to override _build-aux via cfg.mk).
12152         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
12153         to precede inclusion of maint.mk.  Otherwise, these variables would
12154         be used undefined in any project that does not override the default.
12155
12156 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
12157
12158         gitlog-to-changelog: treat a message with only blank lines as empty.
12159         * build-aux/gitlog-to-changelog: Move the code that removes leading and
12160         trailing blank lines before the code that issues a warning about an
12161         empty commit message.
12162
12163 2011-10-30  Jim Meyering  <meyering@redhat.com>
12164
12165         test-parse-datetime.c: avoid new DST-related false positive test failure
12166         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
12167         based on the time/date we'll convert, not the current time.
12168         Otherwise, the moment we cross a DST boundary like today's in
12169         Europe, (CEST to CET), that offset ends up being one hour off.
12170
12171 2011-10-27  Bruno Haible  <bruno@clisp.org>
12172
12173         fstat: Tweak documentation.
12174         * modules/fstat (Description): More precise description.
12175
12176 2011-10-27  Bruno Haible  <bruno@clisp.org>
12177
12178         Update documentation regarding 'largefile' module.
12179         * doc/posix-functions/fstat.texi: Tweak wording.
12180         * doc/posix-functions/opendir.texi: Mention that the module fixes the
12181         problems with huge directories and/or small ino_t types.
12182         * doc/posix-functions/readdir.texi: Likewise.
12183         * doc/posix-functions/rewinddir.texi: Likewise.
12184
12185 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
12186
12187         maint.mk: don't maintain a second build-aux variable.
12188         * maint.mk (build_aux): Removed.  The maintainer-makefile module
12189         depends on GNUmakefile, which already maintains a cfg.mk
12190         overridable $(_build-aux) for projects with a non-standard
12191         build-aux directory location, although without the $(srcdir)
12192         prefix.  Use that variable consistently instead of introducing a
12193         second one.  Adjust all call sites.
12194
12195 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12196
12197         Add stdalign module and use it in other modules.
12198         This is based on a previous proposal by Bruno Haible
12199         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
12200
12201         stdalign: new module
12202         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
12203         * modules/stdalign: New files.
12204         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12205         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12206
12207         stdalign-tests: new module
12208         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12209
12210         argp: use stdalign
12211         * lib/argp-parse.c: Include <stdalign.h>.
12212         (alignof): Remove.
12213         * modules/argp (Depends-on): Add stdalign.
12214
12215         crypto libraries: use stdalign
12216         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12217         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12218         Do not include <stdlib.h> twice, in md4.c.
12219         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12220         because we are accessing a pointer's bit-pattern, not a size.
12221         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12222         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12223         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12224         * modules/crypto/sha512: Likewise.
12225
12226         sys_socket: use stdalign, not alignof
12227         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12228         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12229
12230 2011-10-27  Bruno Haible  <bruno@clisp.org>
12231
12232         raise test: Avoid a test failure on Linux/MIPS.
12233         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12234         because 99 is a valid signal on Linux/MIPS.
12235
12236 2011-10-27  Bruno Haible  <bruno@clisp.org>
12237
12238         nonblocking tests: Fix test failure on Linux/MIPS.
12239         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12240         Set to 270000.
12241
12242 2011-10-27  Bruno Haible  <bruno@clisp.org>
12243
12244         utimensat: Work around problem on Linux/hppa.
12245         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12246         values.
12247         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12248
12249 2011-10-25  Jim Meyering  <meyering@redhat.com>
12250
12251         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12252         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12253         after symbols like NULL, size_t, etc.
12254         Reported by Alfred M. Szmidt.
12255
12256         maint.mk: exempt ENODATA from a syntax-check rule
12257         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12258         from the sc_prohibit_always-defined_macros syntax-check rule.
12259         Add a comment.  See this for more details:
12260         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12261
12262 2011-10-23  Jim Meyering  <meyering@redhat.com>
12263
12264         fts: close parent dir FD before returning from post-traversal fts_read
12265         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12266         unlink A, even though an FD open on A remained.  This is suboptimal
12267         (holding a file descriptor open longer than needed), but otherwise not
12268         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12269         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12270         that represents a real problem: it causes the removal of A to fail
12271         with e.g., "rm: cannot remove `A': Device or resource busy"
12272
12273         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12274         directory file descriptors.  After completing the final, FTS_DP,
12275         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12276         cache, but then proceeded to add a new FD to it via the subsequent
12277         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12278         final file descriptor would be closed only via fts_close's call to
12279         fd_ring_clear.  Now, it is usually closed earlier, via the final
12280         FTS_DP-returning fts_read call.
12281         * lib/fts.c (restore_initial_cwd): New function, converted from
12282         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12283         Update callers.
12284         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12285         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12286
12287 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12288             Bruno Haible  <bruno@clisp.org>
12289             Jim Meyering  <jim@meyering.net>
12290
12291         readme-release: improve safety of release prep instructions.
12292         * README-release: Don't git pull all branches when only master
12293         is needed for the release process.
12294         Run make maintainer-clean before changing trees and merging.
12295         Don't try to run ./configure right after git pull in case files
12296         that influence the bootstrap process have changed, move the
12297         ./configure step to after running ./bootstrap.
12298         Don't bootstrap "one last time"... it's the first time!
12299
12300 2011-10-22  Bruno Haible  <bruno@clisp.org>
12301
12302         errno, strerror-override: Support for MSVC 10.
12303         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12304         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12305         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12306         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12307         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12308         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12309         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12310         Assign values compatible with MSVC 10.
12311         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12312         New macros.
12313         (GNULIB_defined_EWINSOCK): New macro.
12314         * lib/strerror-override.c (strerror_override): Update accordingly.
12315         * lib/strerror-override.h: Likewise.
12316         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12317         longer equal to the corresponding errno value.
12318         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12319
12320 2011-10-22  Bruno Haible  <bruno@clisp.org>
12321
12322         perror: Recognize when test program crashes.
12323         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12324         strerror, set gl_cv_func_perror_works to no.
12325         Reported by Daniel Richard G. <skunk@iskunk.org>.
12326
12327         perror: Fix indentation.
12328         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12329
12330 2011-10-22  Bruno Haible  <bruno@clisp.org>
12331
12332         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12333         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12334         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12335         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12336         functions, not as a macro.
12337         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12338         macros.
12339         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12340         absence of macro.
12341         Suggested by Eric Blake.
12342         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12343
12344 2011-10-21  Bruno Haible  <bruno@clisp.org>
12345
12346         relocatable-prog-wrapper: Don't leave object files behind.
12347         * build-aux/install-reloc: Re-synchronize list of .o files to be
12348         removed with list of compilation units.
12349
12350 2011-10-20  Bruno Haible  <bruno@clisp.org>
12351
12352         openpty, posix_openpt: Remove code duplication.
12353         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12354         * lib/openpty.c: Include <stdlib.h>.
12355         (openpty): Use posix_openpt on all platforms except IRIX.
12356         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12357
12358 2011-10-20  Bruno Haible  <bruno@clisp.org>
12359
12360         unlockpt: Detect invalid argument.
12361         * lib/unlockpt.c: Include <fcntl.h>.
12362         (unlockpt): Check whether fd is valid, using fcntl().
12363         * modules/unlockpt (Depends-on): Add fcntl-h.
12364
12365 2011-10-20  Bruno Haible  <bruno@clisp.org>
12366
12367         openpty: Avoid compilation error on AIX 6.1.
12368         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12369
12370 2011-10-20  Bruno Haible  <bruno@clisp.org>
12371
12372         posix_openpt: Support for OpenBSD.
12373         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12374         (posix_openpt) [OpenBSD]: New code.
12375         * lib/grantpt.c: Include <fcntl.h>.
12376         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12377         * modules/grantpt (Depends-on): Add fcntl-h.
12378
12379 2011-10-20  Bruno Haible  <bruno@clisp.org>
12380
12381         posix_openpt test: Coding style.
12382         * tests/test-posix_openpt.c: Use GNU coding style.
12383
12384 2011-10-20  Bruno Haible  <bruno@clisp.org>
12385
12386         grantpt: Support --avoid=pt_chown.
12387         * modules/grantpt (Files): Add lib/pty-private.h.
12388
12389 2011-10-20  Bruno Haible  <bruno@clisp.org>
12390
12391         posix_openpt: Fix autoconf macro.
12392         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12393         unneeded check for _getpty.
12394
12395 2011-10-20  Bruno Haible  <bruno@clisp.org>
12396
12397         openpty: Update comments.
12398         * lib/openpty.c: Add comments about Minix.
12399
12400 2011-10-19  Eric Blake  <eblake@redhat.com>
12401
12402         openpty: relax license
12403         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12404
12405         pt_chown: use configmake to simplify build
12406         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12407
12408         ptsname and others: relax license
12409         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12410         * modules/unlockpt (License): Likewise.
12411         * modules/pt_chown (License): Likewise.
12412         * modules/ptsname (License): Likewise.
12413         * modules/ttyname_r (License): Likewise.
12414
12415 2011-10-19  Jim Meyering  <meyering@redhat.com>
12416
12417         posix_openpt: remove spurious #endif
12418         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12419
12420 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12421
12422         maint.mk: Respect $(build_aux) in web-manual rule.
12423         * top/maint.mk (web-manual): Find gen-announce script in user's
12424         $(build_aux) directory instead of hard-coding 'build-aux'.
12425
12426 2011-10-19  Bruno Haible  <bruno@clisp.org>
12427
12428         posix_openpt: Fix compilation error.
12429         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12430         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12431         Mention the openpty module as an alternative.
12432
12433 2011-10-19  Bruno Haible  <bruno@clisp.org>
12434
12435         Support for old NeXTstep 3.3 frexp().
12436         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12437         execution time of the test to 5 seconds.
12438         Reported by Daniel Richard G. <skunk@iskunk.org>.
12439
12440 2011-10-19  Bruno Haible  <bruno@clisp.org>
12441
12442         Support for old NeXTstep 3.3 sed.
12443         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12444         part, use /.../, not \|...|. Escape periods in the header file name.
12445         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12446         Reported by Daniel Richard G. <skunk@iskunk.org>.
12447
12448 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12449
12450         Support for old NeXTstep 3.3 gcc.
12451         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12452         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12453         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12454         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12455         * lib/regex.h (_Restrict_arr_): Likewise.
12456         * lib/regex_internal.h (re_token_t): Likewise.
12457         * lib/regexec.c (check_node_accept_bytes): Likewise.
12458         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12459
12460 2011-10-18  Eric Blake  <eblake@redhat.com>
12461
12462         posix_openpt: new module
12463         * modules/posix_openpt: New module.
12464         * m4/posix_openpt.m4: New file.
12465         * lib/posix_openpt.c: Likewise.
12466         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12467         (gl_STDLIB_H_DEFAULTS): Set defaults.
12468         * modules/stdlib (Makefile.am): Substitute macros.
12469         * lib/stdlib.in.h (posix_openpt): Declare.
12470         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12471         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12472         * modules/posix_openpt-tests: New test module.
12473         * tests/test-posix_openpt.c: New test.
12474
12475 2011-10-15  Bruno Haible  <bruno@clisp.org>
12476
12477         xstrtoll: Fix compilation failure.
12478         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12479         from lib/strtol.c.
12480         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12481         some platforms.
12482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12483
12484 2011-10-15  Bruno Haible  <bruno@clisp.org>
12485
12486         vasnprintf: Optimize bit search operation.
12487         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12489         gl_DOUBLE_EXPONENT_LOCATION.
12490         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12491         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12492         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12493         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12494         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12495         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12496         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12497         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12498         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12499
12500 2011-10-15  Bruno Haible  <bruno@clisp.org>
12501
12502         vasnprintf: Fix comments.
12503         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12504
12505 2011-10-14  Bruno Haible  <bruno@clisp.org>
12506
12507         Tests for module 'integer_length_ll'.
12508         * modules/integer_length_ll-tests: New file.
12509         * tests/test-integer_length_ll.c: New file.
12510
12511         New module 'integer_length_ll'.
12512         * lib/integer_length_ll.c: New file.
12513         * modules/integer_length_ll: New file.
12514
12515 2011-10-14  Bruno Haible  <bruno@clisp.org>
12516
12517         Tests for module 'integer_length_l'.
12518         * modules/integer_length_l-tests: New file.
12519         * tests/test-integer_length_l.c: New file.
12520
12521         New module 'integer_length_l'.
12522         * lib/integer_length_l.c: New file.
12523         * modules/integer_length_l: New file.
12524
12525 2011-10-14  Bruno Haible  <bruno@clisp.org>
12526
12527         Tests for module 'integer_length'.
12528         * modules/integer_length-tests: New file.
12529         * tests/test-integer_length.c: New file.
12530
12531         New module 'integer_length'.
12532         * lib/integer_length.h: New file.
12533         * lib/integer_length.c: New file.
12534         * modules/integer_length: New file.
12535
12536 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12537
12538         popen: Fix dependency conditions.
12539         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12540
12541 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12542
12543         perror: Fix autoconf test.
12544         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12545         <stdlib.h> and <string.h>.
12546
12547 2011-10-14  Bruno Haible  <bruno@clisp.org>
12548
12549         ffsl: Optimize on 64-bit platforms.
12550         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12551         unrolling.
12552
12553 2011-10-13  Bruno Haible  <bruno@clisp.org>
12554
12555         ffsl: Optimize on 32-bit platforms.
12556         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12557         use ffs() without a loop.
12558
12559         ffsl, ffsll: Optimize for GCC.
12560         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12561         * lib/ffsl.c (GCC_BUILTIN): New macro.
12562         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12563
12564 2011-10-13  Bruno Haible  <bruno@clisp.org>
12565
12566         ffs, bcopy, memset: Support symbol renaming via config.h.
12567         * lib/ffs.c: Include <config.h>.
12568         * lib/bcopy.c: Likewise.
12569         * lib/memset.c: Likewise.
12570
12571 2011-10-10  Bruno Haible  <bruno@clisp.org>
12572
12573         atanl: Simplify for platforms where 'long double' == 'double'.
12574         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12575         alternative implementation.
12576         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12577         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12578         * modules/atanl (Depends-on): Add atan. Update conditions.
12579
12580 2011-10-10  Bruno Haible  <bruno@clisp.org>
12581
12582         acosl: Simplify for platforms where 'long double' == 'double'.
12583         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12584         alternative implementation.
12585         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12586         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12587         * modules/acosl (Depends-on): Add acos. Update conditions.
12588
12589 2011-10-10  Bruno Haible  <bruno@clisp.org>
12590
12591         asinl: Simplify for platforms where 'long double' == 'double'.
12592         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12593         alternative implementation.
12594         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12595         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12596         * modules/asinl (Depends-on): Add asin. Update conditions.
12597
12598 2011-10-10  Bruno Haible  <bruno@clisp.org>
12599
12600         tanl: Simplify for platforms where 'long double' == 'double'.
12601         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12602         implementation.
12603         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12604         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12605         * modules/tanl (Depends-on): Add tan. Update conditions.
12606         (configure.ac): Don't compile trigl.c if
12607         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12608
12609 2011-10-10  Bruno Haible  <bruno@clisp.org>
12610
12611         cosl: Simplify for platforms where 'long double' == 'double'.
12612         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12613         implementation.
12614         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12615         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12616         * modules/cosl (Depends-on): Add cos. Update conditions.
12617         (configure.ac): Don't compile sincosl.c and trigl.c if
12618         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12619
12620 2011-10-10  Bruno Haible  <bruno@clisp.org>
12621
12622         sinl: Simplify for platforms where 'long double' == 'double'.
12623         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12624         implementation.
12625         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12626         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12627         * modules/sinl (Depends-on): Add sin. Update conditions.
12628         (configure.ac): Don't compile sincosl.c and trigl.c if
12629         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12630
12631 2011-10-10  Bruno Haible  <bruno@clisp.org>
12632
12633         logl: Simplify for platforms where 'long double' == 'double'.
12634         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12635         implementation.
12636         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12637         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12638         * modules/logl (Depends-on): Add log. Update conditions.
12639
12640 2011-10-10  Bruno Haible  <bruno@clisp.org>
12641
12642         expl: Simplify for platforms where 'long double' == 'double'.
12643         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12644         implementation.
12645         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12646         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12647         * modules/expl (Depends-on): Add exp. Update conditions.
12648
12649 2011-10-10  Bruno Haible  <bruno@clisp.org>
12650
12651         sqrtl: Simplify for platforms where 'long double' == 'double'.
12652         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12653         alternative implementation.
12654         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12655         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12656         * modules/sqrtl (Depends-on): Update conditions.
12657
12658 2011-10-10  Bruno Haible  <bruno@clisp.org>
12659
12660         ldexpl: Simplify for platforms where 'long double' == 'double'.
12661         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12662         alternative implementation.
12663         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12664         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12665         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12666
12667 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12668
12669         ffsll: set correct witness
12670         * modules/ffsll (configure.ac): Fix typo.
12671
12672 2011-10-10  Bruno Haible  <bruno@clisp.org>
12673
12674         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12675         * lib/printf-frexpl.c: Include <config.h>.
12676         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12677         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12678         second time.
12679         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12680         gl_LONG_DOUBLE_VS_DOUBLE.
12681         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12682         conditions.
12683
12684 2011-10-10  Bruno Haible  <bruno@clisp.org>
12685
12686         frexpl: Simplify for platforms where 'long double' == 'double'.
12687         * lib/frexpl.c: Include <config.h>.
12688         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12689         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12690         time.
12691         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12692         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12693         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12694         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12695         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12696         conditions.
12697
12698 2011-10-10  Jim Meyering  <meyering@redhat.com>
12699
12700         test-renameat: don't leave behind a temporary file
12701         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12702           ERROR: files left in build directory after distclean:
12703           ./gltests/test-renameat.too
12704           make[1]: *** [distcleancheck] Error 1
12705         Reported by Tom G. Christensen.
12706
12707 2011-10-09  Bruno Haible  <bruno@clisp.org>
12708
12709         rint: Determine RINT_LIBM correctly on AIX 7.
12710         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12711         directly, not only through a function pointer. Also accept an optional
12712         4th argument with extra code.
12713         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12714         rintf() call by gcc when optimizing.
12715
12716         mathfunc.m4: Refactor.
12717         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12718         m4 variable.
12719
12720 2011-10-09  Bruno Haible  <bruno@clisp.org>
12721
12722         rintl: Simplify for platforms where 'long double' == 'double'.
12723         * lib/rintl.c: Include <config.h>.
12724         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12725         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12726         time.
12727         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12728         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12729         * modules/rintl (Depends-on): Add rint. Update conditions.
12730
12731 2011-10-09  Bruno Haible  <bruno@clisp.org>
12732
12733         roundl: Simplify for platforms where 'long double' == 'double'.
12734         * lib/roundl.c: Include <config.h>.
12735         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12736         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12737         time.
12738         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12739         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12740         * modules/roundl (Depends-on): Add round. Update conditions.
12741
12742 2011-10-09  Bruno Haible  <bruno@clisp.org>
12743
12744         truncl: Simplify for platforms where 'long double' == 'double'.
12745         * lib/truncl.c: Include <config.h>.
12746         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12747         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12748         time.
12749         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12750         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12751         * modules/truncl (Depends-on): Add trunc. Update conditions.
12752
12753 2011-10-09  Bruno Haible  <bruno@clisp.org>
12754
12755         ceill: Simplify for platforms where 'long double' == 'double'.
12756         * lib/ceill.c: Include <config.h>.
12757         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12758         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12759         time.
12760         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12761         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12762         * modules/ceill (Depends-on): Add ceil. Update conditions.
12763
12764 2011-10-09  Bruno Haible  <bruno@clisp.org>
12765
12766         floorl: Simplify for platforms where 'long double' == 'double'.
12767         * lib/floorl.c: Include <config.h>.
12768         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12769         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12770         time.
12771         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12772         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12773         * modules/floorl (Depends-on): Add floor. Update conditions.
12774
12775 2011-10-09  Bruno Haible  <bruno@clisp.org>
12776
12777         rint: Fix ordering constraints.
12778         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12779         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12780         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12781
12782 2011-10-09  Bruno Haible  <bruno@clisp.org>
12783
12784         copysignl: Simplify for platforms where 'long double' == 'double'.
12785         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12786         alternative.
12787         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12788         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12789         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12790
12791 2011-10-09  Bruno Haible  <bruno@clisp.org>
12792
12793         Tests for module 'rintl'.
12794         * modules/rintl-tests: New file.
12795         * tests/test-rintl.c: New file.
12796
12797         New module 'rintl'.
12798         * lib/math.in.h (rintl): New declaration.
12799         * lib/rintl.c: New file.
12800         * m4/rintl.m4: New file.
12801         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12803         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12804         * modules/rintl: New file.
12805         * tests/test-math-c++.cc: Check the declaration of rintl.
12806         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12807         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12808         * doc/posix-functions/rintl.texi: Mention the new module.
12809
12810 2011-10-09  Bruno Haible  <bruno@clisp.org>
12811
12812         Tests for module 'rintf'.
12813         * modules/rintf-tests: New file.
12814         * tests/test-rintf.c: New file.
12815
12816         New module 'rintf'.
12817         * lib/math.in.h (rintf): New declaration.
12818         * lib/rintf.c: New file.
12819         * m4/rintf.m4: New file.
12820         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12822         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12823         * modules/rintf: New file.
12824         * tests/test-math-c++.cc: Check the declaration of rintf.
12825         * doc/posix-functions/rintf.texi: Mention the new module.
12826
12827 2011-10-09  Bruno Haible  <bruno@clisp.org>
12828
12829         rint: Support for MSVC.
12830         * lib/math.in.h (rint): New declaration.
12831         * lib/rint.c: New file.
12832         * m4/rint.m4: New file.
12833         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12835         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12836         * modules/rint (Description): Fix.
12837         (Files): Add lib/rint.c, m4/rint.m4.
12838         (Depends-on): Add math.
12839         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12840         gl_MATH_MODULE_INDICATOR.
12841         * tests/test-math-c++.cc: Check the declaration of rint.
12842         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12843         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12844         * doc/posix-functions/rint.texi: Mention the replacement provided by
12845         the module.
12846
12847         rint tests: More tests.
12848         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12849         minus-zero.h, infinity.h, nan.h.
12850         (main): Skip the test if the current rounding mode is not standard. Add
12851         tests for negative numbers, minus zero, infinity, NaN.
12852         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12853         tests/nan.h.
12854         (Depends-on): Add isnand-nolibm.
12855
12856 2011-10-09  Bruno Haible  <bruno@clisp.org>
12857
12858         Tests for module 'copysignl'.
12859         * modules/copysignl-tests: New file.
12860         * tests/test-copysignl.c: New file.
12861
12862         New module 'copysignl'.
12863         * lib/math.in.h (copysignl): New declaration.
12864         * lib/copysignl.c: New file.
12865         * m4/copysignl.m4: New file.
12866         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12868         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12869         HAVE_COPYSIGNL.
12870         * modules/copysignl: New file.
12871         * tests/test-math-c++.cc: Check the declaration of copysignl.
12872         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12873         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12874         * doc/posix-functions/copysignl.texi: Mention the new module.
12875
12876 2011-10-09  Bruno Haible  <bruno@clisp.org>
12877
12878         Tests for module 'copysignf'.
12879         * modules/copysignf-tests: New file.
12880         * tests/test-copysignf.c: New file.
12881
12882         New module 'copysignf'.
12883         * lib/math.in.h (copysignf): New declaration.
12884         * lib/copysignf.c: New file.
12885         * m4/copysignf.m4: New file.
12886         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12888         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12889         HAVE_COPYSIGNF.
12890         * modules/copysignf: New file.
12891         * tests/test-math-c++.cc: Check the declaration of copysignf.
12892         * doc/posix-functions/copysignf.texi: Mention the new module.
12893
12894 2011-10-09  Bruno Haible  <bruno@clisp.org>
12895
12896         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12897         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12898         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12899         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12900         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12901         gl_SIGNAL_H_DEFAULTS.
12902
12903 2011-10-09  Bruno Haible  <bruno@clisp.org>
12904
12905         poll: Make macro safer.
12906         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12907         ac_cv_header_poll_h is not set.
12908
12909 2011-10-09  Bruno Haible  <bruno@clisp.org>
12910
12911         copysign: Provide replacement.
12912         * lib/math.in.h (copysign): New declaration.
12913         * lib/copysign.c: New file.
12914         * m4/copysign.m4: New file.
12915         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12917         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12918         HAVE_COPYSIGN.
12919         * modules/copysign (Description): Clarify.
12920         (Files): Add lib/copysign.c, m4/copysign.m4.
12921         (Depends-on): Add math, signbit.
12922         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12923         gl_MATH_MODULE_INDICATOR.
12924         * tests/test-math-c++.cc: Check the declaration of copysign.
12925         * doc/posix-functions/copysign.texi: Mention the effects of the module
12926         on Minix and MSVC.
12927
12928 2011-10-09  Bruno Haible  <bruno@clisp.org>
12929
12930         isinf: Ensure macro on AIX 5.1.
12931         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12932         macro.
12933         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12934
12935 2011-10-09  Bruno Haible  <bruno@clisp.org>
12936
12937         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12938         * modules/snprintf-posix-tests (configure.ac): Require
12939         gl_LONG_DOUBLE_VS_DOUBLE.
12940         * modules/sprintf-posix-tests (configure.ac): Likewise.
12941         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12942         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12943         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12944         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12945         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12946         tests on platforms where 'long double' is the same as 'double'.
12947         * tests/test-sprintf-posix.h (test_function): Likewise.
12948         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12949         * tests/test-vasprintf-posix.c (test_function): Likewise.
12950
12951         *printf: Fix for platforms where 'long double' == 'double'.
12952         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12953         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12954         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12955         * modules/fprintf-posix (Files): Likewise.
12956         * modules/obstack-printf-posix (Files): Likewise.
12957         * modules/snprintf-posix (Files): Likewise.
12958         * modules/sprintf-posix (Files): Likewise.
12959         * modules/vasnprintf (Files): Likewise.
12960         * modules/vasnprintf-posix (Files): Likewise.
12961         * modules/vasprintf-posix (Files): Likewise.
12962         * modules/vdprintf-posix (Files): Likewise.
12963         * modules/vfprintf-posix (Files): Likewise.
12964         * modules/vsnprintf-posix (Files): Likewise.
12965         * modules/vsprintf-posix (Files): Likewise.
12966         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12967         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12968         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12969         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12970         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12971         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12972         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12973
12974         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12975         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12976         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12977         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12978         'long double'.
12979         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12980
12981         isinf: Fix for platforms where 'long double' == 'double'.
12982         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12983         Don't blindly assume 80-bit 'long double'.
12984
12985         isfinite: Fix for platforms where 'long double' == 'double'.
12986         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12987         Don't blindly assume 80-bit 'long double'.
12988
12989         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12990         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12991         * modules/isfinite-tests (configure.ac): Require
12992         gl_LONG_DOUBLE_VS_DOUBLE.
12993         * modules/isinf-tests (configure.ac): Likewise.
12994         * modules/isnan-tests (configure.ac): Likewise.
12995         * modules/isnanl-tests (configure.ac): Likewise.
12996         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12997         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12998         tests on platforms where 'long double' is the same as 'double'.
12999         * tests/test-isinf.c (test_isinfl): Likewise.
13000         * tests/test-isnan.c (test_long_double): Likewise.
13001         * tests/test-isnanl.h (main): Likewise.
13002
13003 2011-10-08  Bruno Haible  <bruno@clisp.org>
13004
13005         Tests for module 'tanhf'.
13006         * modules/tanhf-tests: New file.
13007         * tests/test-tanhf.c: New file.
13008
13009         New module 'tanhf'.
13010         * lib/math.in.h (tanhf): New declaration.
13011         * lib/tanhf.c: New file.
13012         * m4/tanhf.m4: New file.
13013         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
13014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
13015         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
13016         * modules/tanhf: New file.
13017         * tests/test-math-c++.cc: Check the declaration of tanhf.
13018         * doc/posix-functions/tanhf.texi: Mention the new module.
13019
13020         tanh: Use a .m4 file.
13021         * m4/tanh.m4: New file.
13022         * modules/tanh (Files): Add it.
13023         (configure.ac): Just invoke gl_FUNC_TANH.
13024
13025 2011-10-08  Bruno Haible  <bruno@clisp.org>
13026
13027         Tests for module 'coshf'.
13028         * modules/coshf-tests: New file.
13029         * tests/test-coshf.c: New file.
13030
13031         New module 'coshf'.
13032         * lib/math.in.h (coshf): New declaration.
13033         * lib/coshf.c: New file.
13034         * m4/coshf.m4: New file.
13035         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
13036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
13037         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
13038         * modules/coshf: New file.
13039         * tests/test-math-c++.cc: Check the declaration of coshf.
13040         * doc/posix-functions/coshf.texi: Mention the new module.
13041
13042         cosh: Use a .m4 file.
13043         * m4/cosh.m4: New file.
13044         * modules/cosh (Files): Add it.
13045         (configure.ac): Just invoke gl_FUNC_COSH.
13046
13047 2011-10-08  Bruno Haible  <bruno@clisp.org>
13048
13049         Tests for module 'sinhf'.
13050         * modules/sinhf-tests: New file.
13051         * tests/test-sinhf.c: New file.
13052
13053         New module 'sinhf'.
13054         * lib/math.in.h (sinhf): New declaration.
13055         * lib/sinhf.c: New file.
13056         * m4/sinhf.m4: New file.
13057         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
13058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
13059         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
13060         * modules/sinhf: New file.
13061         * tests/test-math-c++.cc: Check the declaration of sinhf.
13062         * doc/posix-functions/sinhf.texi: Mention the new module.
13063
13064         sinh: Use a .m4 file.
13065         * m4/sinh.m4: New file.
13066         * modules/sinh (Files): Add it.
13067         (configure.ac): Just invoke gl_FUNC_SINH.
13068
13069 2011-10-08  Bruno Haible  <bruno@clisp.org>
13070
13071         Tests for module 'atan2f'.
13072         * modules/atan2f-tests: New file.
13073         * tests/test-atan2f.c: New file.
13074
13075         New module 'atan2f'.
13076         * lib/math.in.h (atan2f): New declaration.
13077         * lib/atan2f.c: New file.
13078         * m4/atan2f.m4: New file.
13079         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
13080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
13081         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
13082         * modules/atan2f: New file.
13083         * tests/test-math-c++.cc: Check the declaration of atan2f.
13084         * doc/posix-functions/atan2f.texi: Mention the new module.
13085
13086         atan2: Use a .m4 file.
13087         * m4/atan2.m4: New file.
13088         * modules/atan2 (Files): Add it.
13089         (configure.ac): Just invoke gl_FUNC_ATAN2.
13090
13091 2011-10-08  Bruno Haible  <bruno@clisp.org>
13092
13093         Tests for module 'atanf'.
13094         * modules/atanf-tests: New file.
13095         * tests/test-atanf.c: New file.
13096
13097         New module 'atanf'.
13098         * lib/math.in.h (atanf): New declaration.
13099         * lib/atanf.c: New file.
13100         * m4/atanf.m4: New file.
13101         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
13102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
13103         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
13104         * modules/atanf: New file.
13105         * tests/test-math-c++.cc: Check the declaration of atanf.
13106         * doc/posix-functions/atanf.texi: Mention the new module.
13107
13108         atan: Use a .m4 file.
13109         * m4/atan.m4: New file.
13110         * modules/atan (Files): Add it.
13111         (configure.ac): Just invoke gl_FUNC_ATAN.
13112
13113 2011-10-08  Bruno Haible  <bruno@clisp.org>
13114
13115         Tests for module 'acosf'.
13116         * modules/acosf-tests: New file.
13117         * tests/test-acosf.c: New file.
13118
13119         New module 'acosf'.
13120         * lib/math.in.h (acosf): New declaration.
13121         * lib/acosf.c: New file.
13122         * m4/acosf.m4: New file.
13123         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
13124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
13125         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
13126         * modules/acosf: New file.
13127         * tests/test-math-c++.cc: Check the declaration of acosf.
13128         * doc/posix-functions/acosf.texi: Mention the new module.
13129
13130         acos: Use a .m4 file.
13131         * m4/acos.m4: New file.
13132         * modules/acos (Files): Add it.
13133         (configure.ac): Just invoke gl_FUNC_ACOS.
13134
13135 2011-10-08  Bruno Haible  <bruno@clisp.org>
13136
13137         Tests for module 'asinf'.
13138         * modules/asinf-tests: New file.
13139         * tests/test-asinf.c: New file.
13140
13141         New module 'asinf'.
13142         * lib/math.in.h (asinf): New declaration.
13143         * lib/asinf.c: New file.
13144         * m4/asinf.m4: New file.
13145         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
13146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
13147         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
13148         * modules/asinf: New file.
13149         * tests/test-math-c++.cc: Check the declaration of asinf.
13150         * doc/posix-functions/asinf.texi: Mention the new module.
13151
13152         asin: Use a .m4 file.
13153         * m4/asin.m4: New file.
13154         * modules/asin (Files): Add it.
13155         (configure.ac): Just invoke gl_FUNC_ASIN.
13156
13157 2011-10-08  Bruno Haible  <bruno@clisp.org>
13158
13159         Tests for module 'tanf'.
13160         * modules/tanf-tests: New file.
13161         * tests/test-tanf.c: New file.
13162
13163         New module 'tanf'.
13164         * lib/math.in.h (tanf): New declaration.
13165         * lib/tanf.c: New file.
13166         * m4/tanf.m4: New file.
13167         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
13168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13169         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
13170         * modules/tanf: New file.
13171         * tests/test-math-c++.cc: Check the declaration of tanf.
13172         * doc/posix-functions/tanf.texi: Mention the new module.
13173
13174         tan: Use a .m4 file.
13175         * m4/tan.m4: New file.
13176         * modules/tan (Files): Add it.
13177         (configure.ac): Just invoke gl_FUNC_TAN.
13178
13179 2011-10-08  Bruno Haible  <bruno@clisp.org>
13180
13181         Tests for module 'cosf'.
13182         * modules/cosf-tests: New file.
13183         * tests/test-cosf.c: New file.
13184
13185         New module 'cosf'.
13186         * lib/math.in.h (cosf): New declaration.
13187         * lib/cosf.c: New file.
13188         * m4/cosf.m4: New file.
13189         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
13190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
13191         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
13192         * modules/cosf: New file.
13193         * tests/test-math-c++.cc: Check the declaration of cosf.
13194         * doc/posix-functions/cosf.texi: Mention the new module.
13195
13196         cos: Use a .m4 file.
13197         * m4/cos.m4: New file.
13198         * modules/cos (Files): Add it.
13199         (configure.ac): Just invoke gl_FUNC_COS.
13200
13201 2011-10-08  Bruno Haible  <bruno@clisp.org>
13202
13203         Tests for module 'sinf'.
13204         * modules/sinf-tests: New file.
13205         * tests/test-sinf.c: New file.
13206
13207         New module 'sinf'.
13208         * lib/math.in.h (sinf): New declaration.
13209         * lib/sinf.c: New file.
13210         * m4/sinf.m4: New file.
13211         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13213         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13214         * modules/sinf: New file.
13215         * tests/test-math-c++.cc: Check the declaration of sinf.
13216         * doc/posix-functions/sinf.texi: Mention the new module.
13217
13218         sin: Use a .m4 file.
13219         * m4/sin.m4: New file.
13220         * modules/sin (Files): Add it.
13221         (configure.ac): Just invoke gl_FUNC_SIN.
13222
13223 2011-10-08  Bruno Haible  <bruno@clisp.org>
13224
13225         Tests for module 'powf'.
13226         * modules/powf-tests: New file.
13227         * tests/test-powf.c: New file.
13228
13229         New module 'powf'.
13230         * lib/math.in.h (powf): New declaration.
13231         * lib/powf.c: New file.
13232         * m4/powf.m4: New file.
13233         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13235         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13236         * modules/powf: New file.
13237         * tests/test-math-c++.cc: Check the declaration of powf.
13238         * doc/posix-functions/powf.texi: Mention the new module.
13239
13240         pow: Use a .m4 file.
13241         * m4/pow.m4: New file.
13242         * modules/pow (Files): Add it.
13243         (configure.ac): Just invoke gl_FUNC_POW.
13244
13245 2011-10-08  Bruno Haible  <bruno@clisp.org>
13246
13247         Tests for module 'log10f'.
13248         * modules/log10f-tests: New file.
13249         * tests/test-log10f.c: New file.
13250
13251         New module 'log10f'.
13252         * lib/math.in.h (log10f): New declaration.
13253         * lib/log10f.c: New file.
13254         * m4/log10f.m4: New file.
13255         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13257         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13258         * modules/log10f: New file.
13259         * tests/test-math-c++.cc: Check the declaration of log10f.
13260         * doc/posix-functions/log10f.texi: Mention the new module.
13261
13262         log10: Use a .m4 file.
13263         * m4/log10.m4: New file.
13264         * modules/log10 (Files): Add it.
13265         (configure.ac): Just invoke gl_FUNC_LOG10.
13266
13267 2011-10-08  Bruno Haible  <bruno@clisp.org>
13268
13269         Tests for module 'logf'.
13270         * modules/logf-tests: New file.
13271         * tests/test-logf.c: New file.
13272
13273         New module 'logf'.
13274         * lib/math.in.h (logf): New declaration.
13275         * lib/logf.c: New file.
13276         * m4/logf.m4: New file.
13277         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13279         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13280         * modules/logf: New file.
13281         * tests/test-math-c++.cc: Check the declaration of logf.
13282         * doc/posix-functions/logf.texi: Mention the new module.
13283
13284         log: Use a .m4 file.
13285         * m4/log.m4: New file.
13286         * modules/log (Files): Add it.
13287         (configure.ac): Just invoke gl_FUNC_LOG.
13288
13289 2011-10-08  Bruno Haible  <bruno@clisp.org>
13290
13291         Tests for module 'expf'.
13292         * modules/expf-tests: New file.
13293         * tests/test-expf.c: New file.
13294
13295         New module 'expf'.
13296         * lib/math.in.h (expf): New declaration.
13297         * lib/expf.c: New file.
13298         * m4/expf.m4: New file.
13299         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13301         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13302         * modules/expf: New file.
13303         * tests/test-math-c++.cc: Check the declaration of expf.
13304         * doc/posix-functions/expf.texi: Mention the new module.
13305
13306         exp: Use a .m4 file.
13307         * m4/exp.m4: New file.
13308         * modules/exp (Files): Add it.
13309         (configure.ac): Just invoke gl_FUNC_EXP.
13310
13311 2011-10-08  Bruno Haible  <bruno@clisp.org>
13312
13313         Tests for module 'sqrtf'.
13314         * modules/sqrtf-tests: New file.
13315         * tests/test-sqrtf.c: New file.
13316
13317         New module 'sqrtf'.
13318         * lib/math.in.h (sqrtf): New declaration.
13319         * lib/sqrtf.c: New file.
13320         * m4/sqrtf.m4: New file.
13321         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13323         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13324         * modules/sqrtf: New file.
13325         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13326         * doc/posix-functions/sqrtf.texi: Mention the new module.
13327
13328 2011-10-08  Bruno Haible  <bruno@clisp.org>
13329
13330         Tests: Avoid link failures w.r.t. libintl.
13331         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13332         $(LIBINTL).
13333         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13334         $(LIBINTL).
13335         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13336         against $(LIBINTL).
13337         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13338         $(LIBINTL).
13339         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13340         $(LIBINTL).
13341         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13342
13343 2011-10-08  Bruno Haible  <bruno@clisp.org>
13344
13345         pow tests: Defeat compiler optimizations.
13346         * tests/test-pow.c (main): Assign arguments to x and y before use.
13347
13348 2011-10-08  Bruno Haible  <bruno@clisp.org>
13349
13350         gnulib-tool: Improve last commit.
13351         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13352         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13353         ignore dependencies that are not among the modules list.
13354
13355 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13356
13357         gnulib-tool: don't follow dependencies to avoided modules
13358         This fixes a bug that is related to the previous one.
13359         * gnulib-tool (func_modules_transitive_closure)
13360         (func_emit_autoconf_snippets):
13361         Check whether a dependency is acceptable before using it.
13362         (--extract-dependencies): Report an error if --avoid is also used,
13363         since this combination of options is not yet supported.
13364
13365         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13366         Problem reported by Peter Dyballa in
13367         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13368         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13369         when echoing "$condition".
13370
13371 2011-10-07  Bruno Haible  <bruno@clisp.org>
13372
13373         Fix documentation about math functions on MacOS X.
13374         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13375         MacOS X 10.5.
13376         * doc/posix-functions/fdim.texi: Likewise.
13377         * doc/posix-functions/feclearexcept.texi: Likewise.
13378         * doc/posix-functions/fegetenv.texi: Likewise.
13379         * doc/posix-functions/fegetround.texi: Likewise.
13380         * doc/posix-functions/feholdexcept.texi: Likewise.
13381         * doc/posix-functions/feraiseexcept.texi: Likewise.
13382         * doc/posix-functions/fesetenv.texi: Likewise.
13383         * doc/posix-functions/fesetround.texi: Likewise.
13384         * doc/posix-functions/fetestexcept.texi: Likewise.
13385         * doc/posix-functions/feupdateenv.texi: Likewise.
13386         * doc/posix-functions/fmax.texi: Likewise.
13387         * doc/posix-functions/fmin.texi: Likewise.
13388         * doc/posix-functions/log2.texi: Likewise.
13389         * doc/posix-functions/modff.texi: Likewise.
13390         * doc/posix-functions/nan.texi: Likewise.
13391         * doc/posix-functions/nanf.texi: Likewise.
13392         * doc/posix-functions/nextafterf.texi: Likewise.
13393         * doc/posix-functions/remquo.texi: Likewise.
13394
13395 2011-10-07  Bruno Haible  <bruno@clisp.org>
13396
13397         modff: Drop assumption about library that defines modff.
13398         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13399         AC_CHECK_FUNCS.
13400         * modules/modff (Files): Add m4/mathfunc.m4.
13401
13402 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13403
13404         raise tests: Avoid a GCC warning.
13405         * tests/test-raise.c (handler): Use _Noreturn.
13406
13407 2011-10-07  Bruno Haible  <bruno@clisp.org>
13408
13409         Tests for module 'ldexpf'.
13410         * modules/ldexpf-tests: New file.
13411         * tests/test-ldexpf.c: New file.
13412
13413         New module 'ldexpf'.
13414         * lib/math.in.h (ldexpf): New declaration.
13415         * lib/ldexpf.c: New file.
13416         * m4/ldexpf.m4: New file.
13417         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13419         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13420         * modules/ldexpf: New file.
13421         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13422         * doc/posix-functions/ldexpf.texi: Mention the new module.
13423
13424 2011-10-06  Bruno Haible  <bruno@clisp.org>
13425
13426         frexpf: Work around problems on IRIX and mingw.
13427         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13429         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13430         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13431         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13432         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13433         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13434
13435 2011-10-06  Bruno Haible  <bruno@clisp.org>
13436
13437         fabsf: Drop assumption about library that defines fabsf.
13438         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13439         AC_CHECK_FUNCS.
13440         * modules/fabsf (Files): Add m4/mathfunc.m4.
13441
13442 2011-10-06  Bruno Haible  <bruno@clisp.org>
13443
13444         frexpf: Drop assumption about library that defines frexpf.
13445         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13446         'int *', 'float *', 'long double *', 'float', 'long double'.
13447         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13448         AC_CHECK_FUNCS.
13449         * modules/frexpf (Files): Add m4/mathfunc.m4.
13450
13451         Tests for module 'frexpf'.
13452         * modules/frexpf-tests: New file.
13453         * tests/test-frexpf.c: New file.
13454
13455         New module 'frexpf'.
13456         * lib/math.in.h (frexpf): New declaration.
13457         * lib/frexpf.c: New file.
13458         * m4/frexpf.m4: New file.
13459         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13461         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13462         * modules/frexpf: New file.
13463         * tests/test-math-c++.cc: Check the declaration of frexpf.
13464         * doc/posix-functions/frexpf.texi: Mention the new module.
13465
13466 2011-10-06  Bruno Haible  <bruno@clisp.org>
13467
13468         math: Sort function declarations of math.in.h.
13469         * lib/math.in.h (frexp, logb): Move declarations.
13470
13471 2011-10-05  Bruno Haible  <bruno@clisp.org>
13472
13473         Tests for module 'modff'.
13474         * modules/modff-tests: New file.
13475         * tests/test-modff.c: New file.
13476
13477         New module 'modff'.
13478         * lib/math.in.h (modff): New declaration.
13479         * lib/modff.c: New file.
13480         * m4/modff.m4: New file.
13481         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13483         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13484         * modules/modff: New file.
13485         * tests/test-math-c++.cc: Check the declaration of modff.
13486         * doc/posix-functions/modff.texi: Mention the new module.
13487
13488         modf tests: Make test sharper.
13489         * tests/test-modf.c (main): Strengthen upper bound.
13490
13491         modf: Use a .m4 file.
13492         * m4/modf.m4: New file.
13493         * modules/modf (Files): Add it.
13494         (configure.ac): Just invoke gl_FUNC_MODF.
13495
13496 2011-10-05  Bruno Haible  <bruno@clisp.org>
13497
13498         Tests for module 'fmodf'.
13499         * modules/fmodf-tests: New file.
13500         * tests/test-fmodf.c: New file.
13501
13502         New module 'fmodf'.
13503         * lib/math.in.h (fmodf): New declaration.
13504         * lib/fmodf.c: New file.
13505         * m4/fmodf.m4: New file.
13506         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13508         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13509         * modules/fmodf: New file.
13510         * tests/test-math-c++.cc: Check the declaration of fmodf.
13511         * doc/posix-functions/fmodf.texi: Mention the new module.
13512
13513         fmod: Use a .m4 file.
13514         * m4/fmod.m4: New file.
13515         * modules/fmod (Files): Add it.
13516         (configure.ac): Just invoke gl_FUNC_FMOD.
13517
13518 2011-10-05  Bruno Haible  <bruno@clisp.org>
13519
13520         Tests for module 'fabsf'.
13521         * modules/fabsf-tests: New file.
13522         * tests/test-fabsf.c: New file.
13523
13524         New module 'fabsf'.
13525         * lib/math.in.h (fabsf): New declaration.
13526         * lib/fabsf.c: New file.
13527         * m4/fabsf.m4: New file.
13528         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13530         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13531         * modules/fabsf: New file.
13532         * tests/test-math-c++.cc: Check the declaration of fabsf.
13533         * doc/posix-functions/fabsf.texi: Mention the new module.
13534
13535         fabs: Use a .m4 file.
13536         * m4/fabs.m4: New file.
13537         * modules/fabs (Files): Add it.
13538         (configure.ac): Just invoke gl_FUNC_FABS.
13539
13540 2011-10-05  Jim Meyering  <meyering@redhat.com>
13541
13542         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13543         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13544         ls -lL regression introduced in coreutils-8.12, it does so at the
13545         cost of an additional stat call in the common case.  Besides, now
13546         that the kernel change that prompted commit 95f7c57f has been reverted
13547         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13548         we have no use for commit 95f7c57f, "file-has-acl: use
13549         acl_extended_file_nofollow if available".
13550
13551 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13552
13553         file-has-acl: revert unintended change in behavior of ls -L
13554         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13555         derived from...
13556         (file_has_acl): ...code here.  Call it.
13557         This problem was introduced with 2011-07-22 commit 95f7c57f,
13558         "file-has-acl: use acl_extended_file_nofollow if available".
13559         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13560
13561 2011-10-03  Bruno Haible  <bruno@clisp.org>
13562
13563         poll: Avoid link errors on MSVC.
13564         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13565         * modules/poll (Depends-on): Add sockets.
13566         (Link): New section.
13567         * NEWS: Mention the change.
13568         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13569         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13570         $(LIB_POLL) instead of $(LIBSOCKET).
13571
13572 2011-10-03  Bruno Haible  <bruno@clisp.org>
13573
13574         sys_select tests: Fix link error on MSVC 9.
13575         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13576         with $(LIB_SELECT) instead of $(LIBSOCKET).
13577
13578 2011-10-03  Bruno Haible  <bruno@clisp.org>
13579
13580         sys_select: Fix compilation error on mingw.
13581         * lib/sys_select.in.h: On native Windows, include <io.h>.
13582
13583 2011-10-03  Bruno Haible  <bruno@clisp.org>
13584
13585         wmemset: Support for MSVC.
13586         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13587         whether wmemset() exists.
13588
13589 2011-10-03  Bruno Haible  <bruno@clisp.org>
13590
13591         wmemmove: Support for MSVC.
13592         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13593         whether wmemmove() exists.
13594
13595 2011-10-03  Bruno Haible  <bruno@clisp.org>
13596
13597         wmemcpy: Support for MSVC.
13598         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13599         whether wmemcpy() exists.
13600
13601 2011-10-03  Bruno Haible  <bruno@clisp.org>
13602
13603         wmemcmp: Support for MSVC.
13604         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13605         whether wmemcmp() exists.
13606
13607 2011-10-03  Bruno Haible  <bruno@clisp.org>
13608
13609         wmemchr: Support for MSVC.
13610         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13611         whether wmemchr() exists.
13612
13613 2011-10-03  Bruno Haible  <bruno@clisp.org>
13614
13615         glthread/*, strsignal: Support for MSVC.
13616         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13617         including <winsock.h> on MSVC 9.
13618         * lib/glthread/lock.h: Likewise.
13619         * lib/glthread/thread.h: Likewise.
13620         * lib/glthread/tls.h: Likewise.
13621         * lib/glthread/yield.h: Likewise.
13622         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13623         if HAVE_UNISTD_H is false.
13624         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13625
13626 2011-10-03  Bruno Haible  <bruno@clisp.org>
13627
13628         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13629         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13630         Set to 100000.
13631
13632 2011-10-03  Bruno Haible  <bruno@clisp.org>
13633
13634         acl: Fix specification.
13635         * lib/file-has-acl.c (file_has_acl): Fix specification.
13636
13637 2011-10-03  Bruno Haible  <bruno@clisp.org>
13638
13639         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13640         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13641         (compute_curr_prefix, shared_library_fullname,
13642         find_shared_library_fullname, get_shared_library_fullname, relocate):
13643         Use it together with PIC && INSTALLDIR.
13644         Reported by <jojelino@gmail.com>
13645         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13646
13647 2011-10-01  Jim Meyering  <meyering@redhat.com>
13648
13649         maint.mk: adjust a release-related rule not to require use of gzip
13650         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13651         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13652         projects that build only .tar.xz files.  Also fix an erroneous test.
13653
13654         test-linkat: don't leave behind a temporary file
13655         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13656         Otherwise, coreutils' "make distcheck" would fail with this:
13657           Only in /c/cu/tests/torture/coreutils/test/\
13658             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13659           make[2]: *** [my-distcheck] Error 1
13660
13661         float, math: add omitted file
13662         * lib/itold.c: Add file, required for yesterday's float change.
13663
13664 2011-10-01  Bruno Haible  <bruno@clisp.org>
13665
13666         isinf: Fix for OpenBSD/x86.
13667         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13668         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13669         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13670
13671 2011-10-01  Bruno Haible  <bruno@clisp.org>
13672
13673         isfinite: Fix syntax error in configure test.
13674         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13675
13676         isfinite: Fix typo.
13677         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13678         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13679
13680 2011-10-01  Bruno Haible  <bruno@clisp.org>
13681
13682         nonblocking tests: Fix test failure on Linux/IA-64.
13683         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13684         Set to 270000.
13685
13686 2011-10-01  Bruno Haible  <bruno@clisp.org>
13687
13688         mkfifoat tests: Fix a test failure on mingw.
13689         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13690         with error ENOSYS.
13691
13692 2011-09-30  Bruno Haible  <bruno@clisp.org>
13693
13694         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13695         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13696         'long double'. Set REPLACE_ITOLD.
13697         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13698         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13699         * lib/itold.c: New file.
13700         * modules/float (Files): Add lib/itold.c.
13701         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13702         (Makefile.am): Substitute REPLACE_ITOLD.
13703         * modules/math (Depends-on): Add float.
13704         (Makefile.am): Substitute REPLACE_ITOLD.
13705         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13706         * doc/posix-headers/math.texi: Likewise.
13707         * doc/posix-functions/logl.texi: Likewise.
13708
13709 2011-09-30  Bruno Haible  <bruno@clisp.org>
13710
13711         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13712         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13713         Set to 140000.
13714
13715 2011-09-30  Bruno Haible  <bruno@clisp.org>
13716
13717         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13718         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13719         invocation, say "right after AC_PROG_CC_STDC", not "right after
13720         AC_PROG_CC".
13721         Reported by Gary V. Vaughan <gary@gnu.org>.
13722
13723 2011-09-30  Bruno Haible  <bruno@clisp.org>
13724
13725         Centralize C99 requirement.
13726         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13727         * modules/stdarg (configure.ac-early): Invoke it instead of
13728         AC_PROG_CC_STDC.
13729         Reported by Gary V. Vaughan and Paul Eggert.
13730
13731 2011-09-29  Bruno Haible  <bruno@clisp.org>
13732
13733         float: Fix LDBL_MAX value on Linux/PowerPC.
13734         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13735         on Linux/PowerPC.
13736         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13737         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13738         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13739         platform.
13740         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13741
13742 2011-09-29  Bruno Haible  <bruno@clisp.org>
13743
13744         doc: Improve doc about gl_EARLY.
13745         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13746         AC_PROG_CC_STDC invocation.
13747         Reported by Gary V. Vaughan <gary@gnu.org>.
13748
13749 2011-09-28  Bruno Haible  <bruno@clisp.org>
13750
13751         fgetc, fputc, fread, fwrite tests: Fix link error.
13752         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13753         on non-MSVC platforms.
13754         * tests/test-fputc.c (main): Likewise.
13755         * tests/test-fread.c (main): Likewise.
13756         * tests/test-fwrite.c (main): Likewise.
13757         Reported by Jim Meyering.
13758
13759 2011-09-27  Bruno Haible  <bruno@clisp.org>
13760
13761         fputc, fwrite tests: Avoid test failure on MSVC.
13762         * tests/test-fgetc.c: Include msvc-inval.h.
13763         (main): Invoke gl_msvc_inval_ensure_handler.
13764         * tests/test-fputc.c: Include msvc-inval.h.
13765         (main): Invoke gl_msvc_inval_ensure_handler.
13766         * tests/test-fread.c: Include msvc-inval.h.
13767         (main): Invoke gl_msvc_inval_ensure_handler.
13768         * tests/test-fwrite.c: Include msvc-inval.h.
13769         (main): Invoke gl_msvc_inval_ensure_handler.
13770         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13771         * modules/fputc-tests (Depends-on): Likewise.
13772         * modules/fread-tests (Depends-on): Likewise.
13773         * modules/fwrite-tests (Depends-on): Likewise.
13774
13775 2011-09-27  Bruno Haible  <bruno@clisp.org>
13776
13777         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13778         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13779         (raise): Remove older, duplicated declaration.
13780         (_gl_raise_SIGPIPE): New declaration.
13781         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13782         (rpl_raise): Remove function.
13783         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13784         a gnulib-defined SIGPIPE here.
13785         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13786         'sigprocmask' has detected missing signal-blocking and the module
13787         'sigpipe' is enabled.
13788         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13789
13790 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13791
13792         base64-tests: avoid memory leak
13793         * tests/test-base64.c (main): Plug memory leak.
13794
13795         base32: new module
13796         * modules/base32: New module.
13797         * lib/base32.c: New file.
13798         * lib/base32.h: Likewise.
13799         * m4/base32.m4: Likewise.
13800         * modules/base32-tests: New test.
13801         * tests/test-base32.c: Likewise.
13802         * MODULES.html.sh (Misc): Mention it.
13803
13804 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13805
13806         gnulib: use more-standard license notice wording
13807         * gnulib-tool (func_emit_copyright_notice): When emitting a
13808         license notice into a file, use the standard wording as suggested
13809         by the current information for GNU maintainers, except say "file"
13810         rather than "program".  The new wording gives a license version
13811         number, which addresses an issue raised by Glenn Morris in
13812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13813         * m4/onceonly.m4: Use that same wording here, too.
13814
13815         dup2: minor simplification
13816         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13817         as lib/dup2.c no longer uses 'inline'.
13818
13819 2011-09-25  Bruno Haible  <bruno@clisp.org>
13820
13821         strings: Fix compilation error on MSVC.
13822         * lib/strings.in.h: Include <stddef.h> for size_t.
13823
13824 2011-09-25  Bruno Haible  <bruno@clisp.org>
13825
13826         fflush et al.: Document limitation on MSVC.
13827         * doc/posix-functions/fflush.texi: Document possible crash in handling
13828         mode other than DEFAULT_HANDLING.
13829         * doc/posix-functions/fgetc.texi: Likewise.
13830         * doc/posix-functions/fputc.texi: Likewise.
13831         * doc/posix-functions/fread.texi: Likewise.
13832         * doc/posix-functions/fwrite.texi: Likewise.
13833
13834 2011-09-25  Bruno Haible  <bruno@clisp.org>
13835
13836         msvc-inval: Allow three invalid parameter handling modes.
13837         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13838         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13839         macros.
13840         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13841         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13842         SANE_LIBRARY_HANDLING as a no-op.
13843         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13844         <stdlib.h>.
13845         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13846
13847 2011-09-25  Bruno Haible  <bruno@clisp.org>
13848
13849         msvc-inval: Make handler multithread-safe.
13850         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13851         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13852         declarations.
13853         (gl_msvc_inval_current): New declaration.
13854         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13855         Operate on the structure returned by gl_msvc_inval_current().
13856         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13857         Remove varaiables.
13858         (tls_index, tls_initialized): New variables.
13859         (not_per_thread): New variable.
13860         (gl_msvc_inval_current): New function.
13861         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13862         returned by gl_msvc_inval_current().
13863
13864 2011-09-25  Bruno Haible  <bruno@clisp.org>
13865
13866         msvc-inval: Install handler globally.
13867         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13868         !_MSC_VER.
13869         (gl_msvc_invalid_parameter_handler): Remove declaration.
13870         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13871         declarations.
13872         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13873         Install the handler globally, don't uninstall it.
13874         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13875         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13876         currently valid, call RaiseException instead.
13877         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13878         for !_MSC_VER.
13879
13880 2011-09-25  Bruno Haible  <bruno@clisp.org>
13881
13882         strerror_r-posix: Fix for MSVC 9.
13883         * lib/strerror_r.c (local_snprintf): New function.
13884         (snprintf): Define to local_snprintf, not to _snprintf.
13885
13886 2011-09-25  Bruno Haible  <bruno@clisp.org>
13887
13888         ftruncate: Support for MSVC 9.
13889         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13890         (chsize_nothrow): New function.
13891         (chsize): Redefine as a macro.
13892         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13893         * modules/ftruncate (Depends-on): Add msvc-inval.
13894
13895 2011-09-25  Bruno Haible  <bruno@clisp.org>
13896
13897         New module 'fstat'.
13898         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13899         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13900         * lib/fchdir.c (rpl_fstat): Remove function.
13901         * m4/fstat.m4: New file.
13902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13903         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13904         declared.
13905         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13906         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13907         * modules/fstat: New file.
13908         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13909         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13910         is set.
13911         * doc/posix-functions/fstat.texi: Mention the new module and the
13912         problem on MSVC.
13913         * NEWS: Mention the change.
13914         * modules/acl (Depends-on): Add fstat.
13915         * modules/chdir-safer (Depends-on): Likewise.
13916         * modules/chown (Depends-on): Likewise.
13917         * modules/copy-file (Depends-on): Likewise.
13918         * modules/fchdir (Depends-on): Likewise.
13919         * modules/fdopendir (Depends-on): Likewise.
13920         * modules/fopen (Depends-on): Likewise.
13921         * modules/fts (Depends-on): Likewise.
13922         * modules/getcwd (Depends-on): Likewise.
13923         * modules/isapipe (Depends-on): Likewise.
13924         * modules/linkat (Depends-on): Likewise.
13925         * modules/lseek (Depends-on): Likewise.
13926         * modules/mkdir-p (Depends-on): Likewise.
13927         * modules/open (Depends-on): Likewise.
13928         * modules/openat (Depends-on): Likewise.
13929         * modules/read-file (Depends-on): Likewise.
13930         * modules/renameat (Depends-on): Likewise.
13931         * modules/utimens (Depends-on): Likewise.
13932
13933 2011-09-25  Bruno Haible  <bruno@clisp.org>
13934
13935         linkat: Fix compilation on MSVC 9.
13936         * lib/linkat.c: Don't include <stdint.h>.
13937
13938 2011-09-25  Bruno Haible  <bruno@clisp.org>
13939
13940         fclose: Support for MSVC 9.
13941         * lib/fclose.c: Include msvc-inval.h.
13942         (fclose_nothrow): New function.
13943         (rpl_fclose): Use it.
13944         * modules/fclose (Depends-on): Add msvc-inval.
13945         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13946
13947 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13948
13949         dup2: minor simplifications
13950         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13951         that it's a performance win.
13952         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13953         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13954
13955 2011-09-24  Jim Meyering  <meyering@redhat.com>
13956
13957         test-futimens: avoid a warning from gcc -Wshadow
13958         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13959         to avoid a shadowing warning.
13960
13961 2011-09-24  Bruno Haible  <bruno@clisp.org>
13962
13963         fdopen: Support for MSVC 9.
13964         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13965         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13966         * lib/fdopen.c: Include msvc-inval.h.
13967         (fdopen_nothrow): New function.
13968         (rpl_fdopen): Use it.
13969         * modules/fdopen (Depends-on): Add msvc-inval.
13970         * modules/fclose-tests (Depends-on): Add fdopen.
13971         * modules/fflush-tests (Depends-on): Likewise.
13972         * modules/fgetc-tests (Depends-on): Likewise.
13973         * modules/fputc-tests (Depends-on): Likewise.
13974         * modules/fread-tests (Depends-on): Likewise.
13975         * modules/freopen-tests (Depends-on): Likewise.
13976         * modules/fseeko-tests (Depends-on): Likewise.
13977         * modules/ftello-tests (Depends-on): Likewise.
13978         * modules/fwrite-tests  (Depends-on): Likewise.
13979         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13980
13981 2011-09-24  Bruno Haible  <bruno@clisp.org>
13982
13983         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13984         * modules/fgetc-tests (Depends-on): Add unistd.
13985         * modules/fputc-tests (Depends-on): Likewise.
13986         * modules/fread-tests (Depends-on): Likewise.
13987         * modules/fwrite-tests (Depends-on): Likewise.
13988
13989 2011-09-24  Bruno Haible  <bruno@clisp.org>
13990
13991         dup: Simplify autoconf test.
13992         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13993         on gl_MSVC_INVAL's result.
13994
13995 2011-09-24  Bruno Haible  <bruno@clisp.org>
13996
13997         Tests for function fwrite().
13998         * modules/fwrite-tests: New file.
13999         * tests/test-fwrite.c: New file.
14000         * modules/stdio-tests (Depends-on): Add fwrite-tests.
14001
14002         Tests for function fread().
14003         * modules/fread-tests: New file.
14004         * tests/test-fread.c: New file.
14005         * modules/stdio-tests (Depends-on): Add fread-tests.
14006
14007         Activate fputc tests.
14008         * modules/stdio-tests (Depends-on): Add fputc-tests.
14009
14010         Enhance fgetc, fputc tests.
14011         * tests/test-fgetc.c (main): Also test the stream's error indicator.
14012         * tests/test-fputc.c (main): Likewise.
14013
14014 2011-09-24  Bruno Haible  <bruno@clisp.org>
14015
14016         write: Support for MSVC 9.
14017         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14018         is not 1.
14019         * lib/write.c (write_nothrow): New function.
14020         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
14021         not 1. Use write_nothrow.
14022         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
14023         invalid parameter handler.
14024         (gl_PREREQ_WRITE): New macro.
14025         * modules/write (Depends-on): Add msvc-inval.
14026         (configure.ac): Invoke gl_PREREQ_WRITE.
14027         * doc/posix-functions/write.texi: Mention the problem on MSVC.
14028
14029 2011-09-24  Bruno Haible  <bruno@clisp.org>
14030
14031         read: Fix last commit.
14032         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
14033
14034 2011-09-24  Bruno Haible  <bruno@clisp.org>
14035
14036         dup2: Fix last commit.
14037         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
14038         (rpl_dup2): Disable fcntl workaround on native Windows.
14039
14040         sigprocmask: Make code safer.
14041         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
14042         section that changes macro definitions for this compilation unit.
14043
14044 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14045
14046         dup2: clarify by coalescing Windows-specific material
14047         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
14048         "msvc-nothrow.h"' to the Windows-specific section, so that the
14049         Emacs source need not contain these include files.
14050         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
14051         Windows-specific fixes into this function rather than just the
14052         nothrow fix, as this shortens and clarifies the code.  Always
14053         define as a function, as that's a bit cleaner than having it be
14054         sometimes a function and sometimes a macro.
14055         (rpl_dup2): Move the Windows-specific stuff out of here and into
14056         ms_windows_dup2.  Don't protect the Haiku-related fix with
14057         "#if !defined __linux__", as the same code also works around
14058         a Linux kernel bug, and it doesn't add any system calls on any
14059         platform.  Add comment about FreeBSD 6.1.
14060
14061         sigprocmask: move #include directive
14062         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
14063         Windows-specific section, so that the Emacs source need not
14064         contain msvc-inval.h.
14065
14066 2011-09-23  Bruno Haible  <bruno@clisp.org>
14067
14068         read: Support for MSVC 9.
14069         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14070         is not 1.
14071         * lib/read.c (read_nothrow): New function.
14072         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
14073         read_nothrow.
14074         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
14075         invalid parameter handler.
14076         (gl_PREREQ_READ): New macro.
14077         * modules/read (Depends-on): Add msvc-inval.
14078         (configure.ac): Invoke gl_PREREQ_READ.
14079         * doc/posix-functions/read.texi: Mention the problem on MSVC.
14080
14081 2011-09-23  Bruno Haible  <bruno@clisp.org>
14082
14083         close: Support for MSVC 9.
14084         * lib/close.c: Include <errno.h>, msvc-inval.h.
14085         (close_nothrow): New function.
14086         (rpl_close): Use it.
14087         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
14088         invalid parameter handler.
14089         * modules/close (Depends-on): Add msvc-inval.
14090         * modules/dup2-tests (Depends-on): Add close.
14091         * modules/dup3-tests (Depends-on): Likewise.
14092         * modules/fcntl-tests (Depends-on): Likewise.
14093         * modules/spawn-pipe-tests (Depends-on): Likewise.
14094         * modules/unistd-safer-tests (Depends-on): Likewise.
14095         * doc/posix-functions/close.texi: Mention the problem on MSVC.
14096
14097 2011-09-23  Bruno Haible  <bruno@clisp.org>
14098
14099         New module 'dup'.
14100         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
14101         Allow replacement.
14102         * lib/dup.c: New file.
14103         * lib/fchdir.c (rpl_dup): Remove function.
14104         * m4/dup.m4: New file.
14105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
14106         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
14107         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
14108         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
14109         * modules/dup: New file.
14110         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
14111         'dup' module is in use.
14112         * modules/fdopendir (Depends-on): Add dup.
14113         * modules/fdutimensat-tests (Depends-on): Likewise.
14114         * modules/fts (Depends-on): Likewise.
14115         * modules/futimens-tests (Depends-on): Likewise.
14116         * modules/posix_spawnp-tests (Depends-on): Likewise.
14117         * modules/unistd-safer-tests (Depends-on): Likewise.
14118         * modules/utimens-tests (Depends-on): Likewise.
14119         * doc/posix-functions/dup.texi: Mention the new module and the problem
14120         on MSVC.
14121
14122 2011-09-23  Bruno Haible  <bruno@clisp.org>
14123
14124         getdtablesize: Support for MSVC 9.
14125         * lib/getdtablesize.c: Include msvc-inval.h.
14126         (_setmaxstdio_nothrow): New function.
14127         (_setmaxstdio): Redefine it.
14128         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
14129         * modules/getdtablesize (Depends-on): Add msvc-inval.
14130         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
14131
14132 2011-09-23  Bruno Haible  <bruno@clisp.org>
14133
14134         signal-h: Rename from signal.
14135         * modules/signal-h: Renamed from modules/signal.
14136         * modules/pthread_sigmask (Depends-on): Update.
14137         * modules/raise (Depends-on): Likewise.
14138         * modules/sigaction (Depends-on): Likewise.
14139         * modules/sigpipe (Depends-on): Likewise.
14140         * modules/sigprocmask (Depends-on): Likewise.
14141         * modules/sys_select (Depends-on): Likewise.
14142         * modules/signal-h-tests: Renamed from modules/signal-tests.
14143         (Files, Depends-on, Makefile.am): Update.
14144         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
14145         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
14146         (Files, Makefile.am): Update.
14147         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
14148         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
14149         * modules/signal: New placeholder file.
14150         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
14151         * doc/posix-headers/signal.texi: Update.
14152         * NEWS: Mention the change.
14153
14154 2011-09-23  Bruno Haible  <bruno@clisp.org>
14155
14156         sigprocmask: Avoid crashes through signal() on MSVC 9.
14157         * lib/sigprocmask.c: Include msvc-inval.h.
14158         (signal_nothrow): New function.
14159         (signal): Redefine it.
14160         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
14161         * modules/sigprocmask (Depends-on): Add msvc-inval.
14162         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
14163
14164 2011-09-23  Bruno Haible  <bruno@clisp.org>
14165
14166         Tests for module 'raise'.
14167         * modules/raise-tests: New file.
14168         * tests/test-raise.c: New file.
14169
14170         raise: Support for MSVC.
14171         * lib/signal.in.h (raise): New declaration.
14172         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
14173         for native Windows platforms.
14174         * m4/raise.m4: New file.
14175         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
14176         HAVE_RAISE, REPLACE_RAISE.
14177         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
14178         REPLACE_RAISE.
14179         * modules/raise (Status, Notice): Remove fields.
14180         (Files): Add m4/raise.m4.
14181         (Depends-on): Add signal, msvc-inval.
14182         (configure.ac): Use the common idioms.
14183         (Maintainer): Add me.
14184         * tests/test-signal-c++.cc: Check the signature of raise.
14185         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
14186
14187 2011-09-23  Bruno Haible  <bruno@clisp.org>
14188
14189         pipe2: Fix compilation on pre-C99 compilers.
14190         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
14191
14192 2011-09-23  Bruno Haible  <bruno@clisp.org>
14193
14194         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
14195         * lib/msvc-nothrow.h: New file.
14196         * lib/msvc-nothrow.c: New file.
14197         * m4/msvc-nothrow.m4: New file.
14198         * modules/msvc-nothrow: New file.
14199         * lib/dup2.c: Include msvc-nothrow.h.
14200         (rpl_dup2): No need to protect _get_osfhandle call here.
14201         * lib/accept4.c: Include msvc-nothrow.h.
14202         * lib/error.c: Likewise.
14203         * lib/fcntl.c: Likewise.
14204         * lib/lseek.c: Likewise.
14205         * lib/nonblocking.c: Likewise.
14206         * lib/poll.c: Likewise.
14207         * lib/read.c: Likewise.
14208         * lib/select.c: Likewise.
14209         * lib/sockets.h: Likewise.
14210         * lib/sockets.c: Likewise.
14211         * lib/stdio-read.c: Likewise.
14212         * lib/stdio-write.c: Likewise.
14213         * lib/write.c: Likewise.
14214         * lib/w32sock.h: Likewise.
14215         * lib/w32spawn.h: Likewise.
14216         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14217         * lib/fsync.c: Likewise.
14218         * lib/isapipe.c: Likewise.
14219         * modules/dup2 (Depends-on): Add msvc-nothrow.
14220         * modules/accept4 (Depends-on): Likewise.
14221         * modules/error (Depends-on): Likewise.
14222         * modules/fcntl (Depends-on): Likewise.
14223         * modules/lseek (Depends-on): Likewise.
14224         * modules/nonblocking (Depends-on): Likewise.
14225         * modules/poll (Depends-on): Likewise.
14226         * modules/read (Depends-on): Likewise.
14227         * modules/select (Depends-on): Likewise.
14228         * modules/sockets (Depends-on): Likewise.
14229         * modules/sigpipe (Depends-on): Likewise.
14230         * modules/write (Depends-on): Likewise.
14231         * modules/accept (Depends-on): Likewise.
14232         * modules/bind (Depends-on): Likewise.
14233         * modules/connect (Depends-on): Likewise.
14234         * modules/gethostname (Depends-on): Likewise.
14235         * modules/getpeername (Depends-on): Likewise.
14236         * modules/getsockname (Depends-on): Likewise.
14237         * modules/getsockopt (Depends-on): Likewise.
14238         * modules/ioctl (Depends-on): Likewise.
14239         * modules/listen (Depends-on): Likewise.
14240         * modules/recv (Depends-on): Likewise.
14241         * modules/recvfrom (Depends-on): Likewise.
14242         * modules/send (Depends-on): Likewise.
14243         * modules/sendto (Depends-on): Likewise.
14244         * modules/setsockopt (Depends-on): Likewise.
14245         * modules/shutdown (Depends-on): Likewise.
14246         * modules/socket (Depends-on): Likewise.
14247         * modules/execute (Depends-on): Likewise.
14248         * modules/spawn-pipe (Depends-on): Likewise.
14249         * modules/flock (Depends-on): Likewise.
14250         * modules/fsync (Depends-on): Likewise.
14251         * modules/isapipe (Depends-on): Likewise.
14252         * tests/test-cloexec.c: Include msvc-nothrow.h.
14253         * tests/test-dup-safer.c: Likewise.
14254         * tests/test-dup2.c: Likewise.
14255         * tests/test-dup3.c: Likewise.
14256         * tests/test-fcntl.c: Likewise.
14257         * tests/test-pipe.c: Likewise.
14258         * tests/test-pipe2.c: Likewise.
14259         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14260         * modules/unistd-safer-tests (Depends-on): Likewise.
14261         * modules/dup2-tests (Depends-on): Likewise.
14262         * modules/dup3-tests (Depends-on): Likewise.
14263         * modules/fcntl-tests (Depends-on): Likewise.
14264         * modules/pipe-posix-tests (Depends-on): Likewise.
14265         * modules/pipe2-tests (Depends-on): Likewise.
14266
14267 2011-09-23  Bruno Haible  <bruno@clisp.org>
14268
14269         dup2: Make code more maintainable.
14270         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14271         (rpl_dup2): Use it.
14272         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14273         * modules/dup2 (configure.ac): Invoke it.
14274         Reported by Paul Eggert.
14275
14276 2011-09-23  Bruno Haible  <bruno@clisp.org>
14277
14278         msvc-inval: Fix compilation error.
14279         * lib/msvc-inval.h: Include <excpt.h>.
14280
14281 2011-09-23  Bruno Haible  <bruno@clisp.org>
14282
14283         mkdir: Tweak for MSVC 9.
14284         * lib/sys_stat.in.h: Update comments.
14285         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14286
14287         Tests for module 'chdir'.
14288         * modules/chdir-tests: New file.
14289         * tests/test-chdir.c: New file.
14290
14291         New module 'chdir'.
14292         * modules/chdir: New file.
14293         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14294         (chdir): New declaration.
14295         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14296         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14297         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14298         * tests/test-unistd-c++.cc: Check signature of chdir.
14299         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14300         * modules/chdir-long (Depends-on): Add chdir.
14301         * modules/fchdir (Depends-on): Likewise.
14302         * modules/rename (Depends-on): Likewise.
14303         * modules/savewd (Depends-on): Likewise.
14304
14305         rmdir: Support for mingw, MSVC 9.
14306         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14307         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14308
14309         getcwd: Tweak for MSVC 9.
14310         * lib/unistd.in.h: Update comments.
14311         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14312
14313 2011-09-22  Bruno Haible  <bruno@clisp.org>
14314
14315         strerror_r-posix: Avoid a link error on MSVC.
14316         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14317         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14318
14319 2011-09-22  Bruno Haible  <bruno@clisp.org>
14320
14321         select: Avoid link errors on MSVC.
14322         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14323         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14324         * modules/pselect (Link): Likewise.
14325         * NEWS: Mention the change.
14326         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14327         test-select-stdin against $(LIB_SELECT).
14328         * modules/pselect-tests (Makefile.am): Link test-pselect against
14329         $(LIB_SELECT).
14330
14331 2011-09-22  Bruno Haible  <bruno@clisp.org>
14332
14333         select: Avoid compilation error on MSVC.
14334         * lib/select.c: Don't include <stdbool.h>.
14335
14336 2011-09-21  Bruno Haible  <bruno@clisp.org>
14337
14338         Consolidate all uses of PATH_MAX in *.m4 files.
14339         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14340         macros.
14341         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14342         and gl_PATHMAX_SNIPPET.
14343         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14344         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14345         * modules/chdir-long (Files): Add m4/pathmax.m4.
14346         * modules/getcwd (Files): Likewise.
14347
14348 2011-09-21  Bruno Haible  <bruno@clisp.org>
14349
14350         ftruncate: Un-deprecate, concentrate on Win32 support.
14351         * modules/ftruncate (Status, Notice): Remove sections.
14352         (Depends-on): Add largefile.
14353         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14354         non-mingw platforms.
14355         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14356         include <io.h>.
14357         * modules/perror-tests (Depends-on): Add ftruncate.
14358         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14359         'ftruncate' module.
14360
14361 2011-09-21  Bruno Haible  <bruno@clisp.org>
14362
14363         Add dependencies to new dirent related modules.
14364         * modules/opendir (Depends-on): Add closedir.
14365         * modules/getcwd (Depends-on): Add opendir, closedir.
14366         * modules/dirent-safer-tests (Depends-on): Likewise.
14367         * modules/fdopendir-tests (Depends-on): Likewise.
14368         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14369         * modules/renameat-tests (Depends-on): Likewise.
14370
14371 2011-09-21  Bruno Haible  <bruno@clisp.org>
14372
14373         opendir: Avoid compilation error on mingw.
14374         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14375         * modules/opendir (Depends-on): Add unistd.
14376
14377 2011-09-21  Bruno Haible  <bruno@clisp.org>
14378
14379         ftruncate tests: Avoid a test failure on mingw.
14380         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14381
14382 2011-09-21  Bruno Haible  <bruno@clisp.org>
14383
14384         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14385         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14386         native Windows.
14387
14388 2011-09-21  Bruno Haible  <bruno@clisp.org>
14389
14390         New module 'fdopen'.
14391         * lib/stdio.in.h (fdopen): New declaration.
14392         * lib/fdopen.c: New file.
14393         * m4/fdopen.m4: New file.
14394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14395         REPLACE_FDOPEN.
14396         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14397         REPLACE_FDOPEN.
14398         * modules/fdopen: New file.
14399         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14400         * tests/test-stdio-c++.cc: Check signature of fdopen.
14401         * doc/posix-functions/fdopen.texi: Mention the new module.
14402
14403 2011-09-21  Bruno Haible  <bruno@clisp.org>
14404
14405         unlockpt tests: Avoid test failure on NetBSD 5.1.
14406         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14407         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14408
14409 2011-09-21  Bruno Haible  <bruno@clisp.org>
14410
14411         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14412         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14413         * tests/test-getlogin_r.c (main): Likewise.
14414
14415 2011-09-20  Bruno Haible  <bruno@clisp.org>
14416
14417         time tests: Don't require pid_t.
14418         * doc/posix-headers/time.texi: Revert last change.
14419         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14420         * tests/test-time.c: Comment out the check for pid_t.
14421
14422 2011-09-20  Bruno Haible  <bruno@clisp.org>
14423
14424         fsync tests: Avoid a test failure on mingw.
14425         * tests/test-fsync.c (main): Allow a failure with EIO.
14426
14427 2011-09-20  Bruno Haible  <bruno@clisp.org>
14428
14429         euidaccess: Update comments.
14430         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14431
14432 2011-09-20  Bruno Haible  <bruno@clisp.org>
14433
14434         Ensure EBADF returns for socket functions on mingw.
14435         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14436         descriptor is invalid.
14437         * lib/bind.c (rpl_bind): Likewise.
14438         * lib/connect.c (rpl_connect): Likewise.
14439         * lib/getpeername.c (rpl_getpeername): Likewise.
14440         * lib/getsockname.c (rpl_getsockname): Likewise.
14441         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14442         * lib/listen.c (rpl_listen): Likewise.
14443         * lib/recv.c (rpl_recv): Likewise.
14444         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14445         * lib/send.c (rpl_send): Likewise.
14446         * lib/sendto.c (rpl_sendto): Likewise.
14447         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14448         * lib/shutdown.c (rpl_shutdown): Likewise.
14449
14450 2011-09-20  Bruno Haible  <bruno@clisp.org>
14451
14452         select tests: EBADF tests.
14453         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14454         test_bad_fd): New functions.
14455         (test_function): Invoke also test_bad_fd.
14456
14457 2011-09-20  Bruno Haible  <bruno@clisp.org>
14458
14459         Tests for module 'posix_spawn_file_actions_addopen.
14460         * modules/posix_spawn_file_actions_addopen-tests: New file.
14461         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14462
14463         Tests for module 'posix_spawn_file_actions_adddup2'.
14464         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14465         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14466
14467         Tests for module 'posix_spawn_file_actions_addclose'.
14468         * modules/posix_spawn_file_actions_addclose-tests: New file.
14469         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14470
14471 2011-09-20  Bruno Haible  <bruno@clisp.org>
14472
14473         Tests for module 'unlockpt'.
14474         * modules/unlockpt-tests: New file.
14475         * tests/test-unlockpt.c: New file.
14476         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14477
14478         Tests for module 'grantpt'.
14479         * modules/grantpt-tests: New file.
14480         * tests/test-grantpt.c: New file.
14481         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14482
14483 2011-09-20  Bruno Haible  <bruno@clisp.org>
14484
14485         freopen tests: EBADF tests.
14486         * tests/test-freopen.c: Include errno.h, unistd.h.
14487         (main): Add tests for EBADF, commented out for the moment.
14488
14489         fclose tests: EBADF tests.
14490         * tests/test-fclose.c (main): Add tests for EBADF.
14491
14492         fflush tests: EBADF tests.
14493         * tests/test-fflush.c: Include errno.h, macros.h.
14494         (main): Add tests for EBADF.
14495
14496         ftello tests: EBADF tests.
14497         * tests/test-ftello4.sh: New file.
14498         * tests/test-ftello4.c: New file.
14499         * modules/ftello-tests (Files): Add them.
14500         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14501
14502         fseeko tests: EBADF tests.
14503         * tests/test-fseeko4.sh: New file.
14504         * tests/test-fseeko4.c: New file.
14505         * modules/fseeko-tests (Files): Add them.
14506         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14507
14508         Tests for function fputc().
14509         * modules/fputc-tests: New file.
14510         * tests/test-fputc.c: New file.
14511         * modules/stdio-tests (Depends-on): Add fputc-tests.
14512
14513         Tests for function fgetc().
14514         * modules/fgetc-tests: New file.
14515         * tests/test-fgetc.c: New file.
14516         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14517
14518         Tests for function fdopen().
14519         * modules/fdopen-tests: New file.
14520         * tests/test-fdopen.c: New file.
14521         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14522
14523         Tests for module 'vdprintf'.
14524         * modules/vdprintf-tests: New file.
14525         * tests/test-vdprintf.c: New file.
14526
14527         Tests for module 'dprintf'.
14528         * modules/dprintf-tests: New file.
14529         * tests/test-dprintf.c: New file.
14530
14531 2011-09-20  Bruno Haible  <bruno@clisp.org>
14532
14533         Tests for module 'ioctl'.
14534         * modules/ioctl-tests: New file.
14535         * tests/test-ioctl.c: New file.
14536
14537 2011-09-20  Bruno Haible  <bruno@clisp.org>
14538
14539         fcntl tests: EBADF tests.
14540         * tests/test-fcntl.c (main): Add more tests for EBADF.
14541
14542 2011-09-20  Bruno Haible  <bruno@clisp.org>
14543
14544         utimensat tests: EBADF tests.
14545         * tests/test-utimensat.c (main): Add tests for EBADF.
14546
14547         renameat tests: EBADF tests.
14548         * tests/test-renameat.c (main): Add tests for EBADF.
14549
14550         mkfifoat tests: EBADF tests.
14551         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14552
14553         readlinkat tests: EBADF tests.
14554         * tests/test-readlinkat.c (main): Add tests for EBADF.
14555
14556         symlinkat tests: EBADF tests.
14557         * tests/test-symlinkat.c (main): Add tests for EBADF.
14558
14559         linkat tests: EBADF tests.
14560         * tests/test-linkat.c (main): Add tests for EBADF.
14561
14562         Tests for module 'faccessat'.
14563         * modules/faccessat-tests: New file.
14564         * tests/test-faccessat.c: New file.
14565
14566         fdopendir tests: EBADF tests.
14567         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14568
14569         openat tests: EBADF tests.
14570         * tests/test-fchownat.c (main): Add tests for EBADF.
14571         * tests/test-fstatat.c (main): Likewise.
14572         * tests/test-mkdirat.c (main): Likewise.
14573         * tests/test-openat.c (main): Likewise.
14574         * tests/test-unlinkat.c (main): Likewise.
14575         * tests/test-fchmodat.c: New file.
14576         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14577         (Makefile.am): Also run 'test-fchmodat'.
14578
14579 2011-09-20  Bruno Haible  <bruno@clisp.org>
14580
14581         utimens, futimens, fdutimensat tests: EBADF tests.
14582         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14583
14584         Tests for function fstat().
14585         * modules/fstat-tests: New file.
14586         * tests/test-fstat.c: New file.
14587         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14588
14589 2011-09-20  Bruno Haible  <bruno@clisp.org>
14590
14591         test-ttyname_r tests: EBADF tests.
14592         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14593
14594         Tests for module 'isatty'.
14595         * modules/isatty-tests: New file.
14596         * tests/test-isatty.c: New file.
14597
14598         Tests for module 'write'.
14599         * modules/write-tests: New file.
14600         * tests/test-write.c: New file.
14601
14602         Tests for module 'read'.
14603         * modules/read-tests: New file.
14604         * tests/test-read.c: New file.
14605
14606         pwrite tests: EBADF tests.
14607         * tests/test-pwrite.c (main): Add tests for EBADF.
14608
14609         pread tests: EBADF tests.
14610         * tests/test-pread.c (main): Add tests for EBADF.
14611
14612         lseek tests: EBADF tests.
14613         * tests/test-lseek.c (main): Add more tests for EBADF.
14614
14615         Tests for module 'ftruncate'.
14616         * modules/ftruncate-tests: New file.
14617         * tests/test-ftruncate.sh: New file.
14618         * tests/test-ftruncate.c: New file.
14619
14620         fsync tests: EBADF tests.
14621         * tests/test-fsync.c (main): Add more tests for EBADF.
14622
14623         fdatasync tests: EBADF tests.
14624         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14625
14626         Tests for module 'fchown'.
14627         * modules/fchown-tests: New file.
14628         * tests/test-fchown.c: New file.
14629
14630         Tests for module 'fchmod'.
14631         * modules/fchmod-tests: New file.
14632         * tests/test-fchmod.c: New file.
14633
14634         fchdir tests: EBADF tests.
14635         * tests/test-fchdir.c (main): Add more tests for EBADF.
14636
14637         dup2 tests: EBADF tests.
14638         * tests/test-dup2.c (main): Add more tests for EBADF.
14639
14640         Tests for module 'dup'.
14641         * modules/dup-tests: New file.
14642         * tests/test-dup.c: New file.
14643
14644         Tests for module 'close'.
14645         * modules/close-tests: New file.
14646         * tests/test-close.c: New file.
14647
14648 2011-09-20  Bruno Haible  <bruno@clisp.org>
14649
14650         Tests for module 'shutdown'.
14651         * modules/shutdown-tests: New file.
14652         * tests/test-shutdown.c: New file.
14653
14654         Tests for module 'setsockopt'.
14655         * modules/setsockopt-tests: New file.
14656         * tests/test-setsockopt.c: New file.
14657
14658         Tests for module 'sendto'.
14659         * modules/sendto-tests: New file.
14660         * tests/test-sendto.c: New file.
14661
14662         Tests for module 'send'.
14663         * modules/send-tests: New file.
14664         * tests/test-send.c: New file.
14665
14666         Tests for module 'recvfrom'.
14667         * modules/recvfrom-tests: New file.
14668         * tests/test-recvfrom.c: New file.
14669
14670         Tests for module 'recv'.
14671         * modules/recv-tests: New file.
14672         * tests/test-recv.c: New file.
14673
14674         Tests for module 'listen'.
14675         * modules/listen-tests: New file.
14676         * tests/test-listen.c: New file.
14677
14678         Tests for module 'getsockopt'.
14679         * modules/getsockopt-tests: New file.
14680         * tests/test-getsockopt.c: New file.
14681
14682         Tests for module 'getsockname'.
14683         * modules/getsockname-tests: New file.
14684         * tests/test-getsockname.c: New file.
14685
14686         Tests for module 'getpeername'.
14687         * modules/getpeername-tests: New file.
14688         * tests/test-getpeername.c: New file.
14689
14690         Tests for module 'connect'.
14691         * modules/connect-tests: New file.
14692         * tests/test-connect.c: New file.
14693
14694         Tests for module 'bind'.
14695         * modules/bind-tests: New file.
14696         * tests/test-bind.c: New file.
14697
14698         accept4 tests: Fix for native Windows.
14699         * tests/test-accept4.c: Include sockets.h.
14700         (main): Invoke gl_sockets_startup.
14701         * modules/accept4-tests (Depends-on): Add sockets.
14702
14703         accept tests: Fix for native Windows.
14704         * tests/test-accept.c: Include sockets.h.
14705         (main): Invoke gl_sockets_startup.
14706         * modules/accept-tests (Depends-on): Add sockets.
14707
14708 2011-09-19  Bruno Haible  <bruno@clisp.org>
14709
14710         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14711         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14712         do...while(0).
14713         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14714         Suggested by Paul Eggert.
14715
14716 2011-09-19  Bruno Haible  <bruno@clisp.org>
14717
14718         sched: Ensure pid_t is defined.
14719         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14720         not define pid_t.
14721         * lib/sched.in.h: Include <sys/types.h>.
14722         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14724
14725 2011-09-19  Bruno Haible  <bruno@clisp.org>
14726
14727         msvc-inval: Ensure the entire expansion is a single statement.
14728         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14729         of braces.
14730
14731 2011-09-19  Jim Meyering  <meyering@redhat.com>
14732
14733         tests: use printf, not echo in init.sh's warn_ function
14734         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14735         misbehave when given strings containing a backslash or starting
14736         with e.g., -n.  James Youngman suggested setting IFS.
14737
14738 2011-09-19  Eric Blake  <eblake@redhat.com>
14739
14740         futimens: enhance test
14741         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14742         closed non-negative fd.
14743
14744         date: accept 'hence' as opposite of 'ago'
14745         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14746         * tests/test-parse-datetime.c (main): Enhance test.
14747         Suggested by Jesse Wilson.
14748
14749 2011-09-19  Jim Meyering  <meyering@redhat.com>
14750
14751         getcwd: don't fail in a deep directory on a system without openat
14752         Before this change, getcwd would fail when called from a directory
14753         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14754         the non-openat implementation used "..", "../..", "../../..", etc.
14755         to access ancestor directories.  With too many, that string would
14756         be longer than PATH_MAX.
14757         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14758         using gnulib's openat replacement.
14759         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14760         we're using the replacement function.
14761
14762 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14763
14764         maint.mk: avoid warnings from perl about missing files
14765         * top/maint.mk (def_sym_regex): Ignore files listed in
14766         $(gl_other_headers_) that do not exist, say because a project
14767         does not use a corresponding module.
14768
14769 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14770
14771         stat: use pathmax.h only if needed
14772         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14773         This is better for Emacs, which does not have a mingw port and
14774         therefore can avoid the pathmax module.
14775
14776         utimens: remove dependency on dup2
14777         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14778         to work around the Linux kernel bug.
14779         * modules/utimens (Depends-on): Remove dup2.
14780
14781 2011-09-18  Bruno Haible  <bruno@clisp.org>
14782
14783         inet_ntop, inet_pton: Look for it also in libresolv.
14784         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14785         libnsl, search for it in libresolv.
14786         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14787         Needed on Solaris 7.
14788
14789 2011-09-18  Bruno Haible  <bruno@clisp.org>
14790
14791         accept, accept4 tests: Avoid link error on Solaris.
14792         * modules/accept-tests (Makefile.am): Link test-accept against
14793         $(LIBSOCKET).
14794         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14795         $(LIBSOCKET).
14796
14797         accept4: Avoid link error on Solaris.
14798         * modules/accept4 (Link): New section.
14799
14800         socket functions: Avoid link errors on Solaris.
14801         * modules/accept (Depends-on): Add socketlib.
14802         (Link): New section.
14803         * modules/bind (Depends-on): Add socketlib.
14804         (Link): New section.
14805         * modules/connect (Depends-on): Add socketlib.
14806         (Link): New section.
14807         * modules/getpeername (Depends-on): Add socketlib.
14808         (Link): New section.
14809         * modules/getsockname (Depends-on): Add socketlib.
14810         (Link): New section.
14811         * modules/getsockopt (Depends-on): Add socketlib.
14812         (Link): New section.
14813         * modules/listen (Depends-on): Add socketlib.
14814         (Link): New section.
14815         * modules/recv (Depends-on): Add socketlib.
14816         (Link): New section.
14817         * modules/recvfrom (Depends-on): Add socketlib.
14818         (Link): New section.
14819         * modules/send (Depends-on): Add socketlib.
14820         (Link): New section.
14821         * modules/sendto (Depends-on): Add socketlib.
14822         (Link): New section.
14823         * modules/setsockopt (Depends-on): Add socketlib.
14824         (Link): New section.
14825         * modules/shutdown (Depends-on): Add socketlib.
14826         (Link): New section.
14827         * modules/socket (Depends-on): Add socketlib.
14828         (Link): New section.
14829
14830 2011-09-18  Bruno Haible  <bruno@clisp.org>
14831
14832         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14833         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14834         than 5 seconds.
14835         * modules/ptsname-tests (configure.ac): Test for alarm.
14836
14837 2011-09-18  Bruno Haible  <bruno@clisp.org>
14838
14839         posix_spawn_file_actions_add*: Fix module dependencies.
14840         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14841         posix_spawn_file_actions_init.
14842         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14843         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14844
14845 2011-09-18  Bruno Haible  <bruno@clisp.org>
14846
14847         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14848         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14849         * tests/test-renameat.c (main): Likewise.
14850
14851 2011-09-18  Bruno Haible  <bruno@clisp.org>
14852
14853         Tests for module 'accept4'.
14854         * modules/accept4-tests: New file.
14855         * tests/test-accept4.c: New file.
14856
14857 2011-09-18  Bruno Haible  <bruno@clisp.org>
14858
14859         Tests for module 'accept'.
14860         * modules/accept-tests: New file.
14861         * tests/test-accept.c: New file.
14862
14863 2011-09-18  Bruno Haible  <bruno@clisp.org>
14864
14865         dup2: Support for MSVC.
14866         * lib/dup2.c: Include msvc-inval.h.
14867         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14868         _get_osfhandle calls.
14869         * modules/dup2 (Depends-on): Add msvc-inval.
14870         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14871
14872         New module 'msvc-inval'.
14873         * lib/msvc-inval.h: New file.
14874         * lib/msvc-inval.c: New file.
14875         * m4/msvc-inval.m4: New file.
14876         * modules/msvc-inval: New file.
14877
14878 2011-09-17  Bruno Haible  <bruno@clisp.org>
14879
14880         Tests for module 'pclose'.
14881         * modules/pclose-tests: New file.
14882
14883         New module 'pclose'.
14884         * lib/stdio.in.h (pclose): New declaration.
14885         * lib/pclose.c: New file.
14886         * m4/pclose.m4: New file.
14887         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14888         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14889         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14890         * modules/pclose: New file.
14891         * modules/popen-tests (Depends-on): Add pclose.
14892         * modules/popen-safer-tests (Depends-on): Likewise.
14893         * doc/posix-functions/pclose.texi: Mention the new module.
14894
14895 2011-09-17  Bruno Haible  <bruno@clisp.org>
14896
14897         popen: Support for MSVC.
14898         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14899         * lib/popen.c (popen): Provide alternate definition for native Windows.
14900         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14902         * modules/popen (Depends-on, configure.ac): Update condition.
14903         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14904         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14905         fixed.
14906
14907 2011-09-17  Bruno Haible  <bruno@clisp.org>
14908
14909         isnanl, isnand, isnanf: Work around MSVC bug.
14910         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14911
14912 2011-09-17  Bruno Haible  <bruno@clisp.org>
14913
14914         sys_socket tests: Fix recent mistake.
14915         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14916
14917 2011-09-17  Bruno Haible  <bruno@clisp.org>
14918
14919         putenv: Support for MSVC.
14920         * modules/putenv (Depends-on): Add environ.
14921         * lib/putenv.c (environ): Disable declaration.
14922         * lib/unistd.in.h: Update comment.
14923
14924 2011-09-17  Bruno Haible  <bruno@clisp.org>
14925
14926         math: Avoid macro redefinition warnings on MSVC.
14927         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14928         Undefine before redefining.
14929
14930 2011-09-17  Bruno Haible  <bruno@clisp.org>
14931
14932         doc: Mention functions which are declared as macros.
14933         * doc/posix-functions/*[fl].texi: Mention that some functions are
14934         defined as macros with arguments only.
14935
14936 2011-09-17  Bruno Haible  <bruno@clisp.org>
14937
14938         Add dependencies to new dirent related modules.
14939         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14940         * modules/fts (Depends-on): Likewise.
14941         * modules/glob (Depends-on): Likewise.
14942         * modules/savedir (Depends-on): Likewise.
14943         * modules/scandir (Depends-on): Likewise.
14944         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14945         * modules/fdopendir (Depends-on): Add opendir.
14946
14947 2011-09-17  Bruno Haible  <bruno@clisp.org>
14948
14949         inet_pton: Support for MSVC on Windows Vista or newer.
14950         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14951         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14952         HAVE_DECL_INET_PTON is defined.
14953         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14954         On platforms with <winsock2.h>, test whether inet_pton is declared in
14955         <ws2tcpip.h>. If so, arrange to replace it.
14956         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14957         REPLACE_INET_PTON.
14958         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14959         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14960         (Depends-on, configure.ac): Update condition.
14961         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14962
14963 2011-09-17  Bruno Haible  <bruno@clisp.org>
14964
14965         inet_ntop: Support for MSVC on Windows Vista or newer.
14966         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14967         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14968         HAVE_DECL_INET_NTOP is defined.
14969         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14970         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14971         <ws2tcpip.h>. If so, arrange to replace it.
14972         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14973         REPLACE_INET_NTOP.
14974         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14975         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14976         (Depends-on, configure.ac): Update condition.
14977         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14978
14979 2011-09-16  Eric Blake  <eblake@redhat.com>
14980
14981         test-fsync: yet another enhancement
14982         * tests/test-fsync.c (main): Also test behavior on read-only text
14983         file.
14984
14985 2011-09-16  Bruno Haible  <bruno@clisp.org>
14986
14987         Enhance fsync, fdatasync tests.
14988         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14989         * tests/test-fdatasync.c (main): Likewise.
14990
14991 2011-09-16  Bruno Haible  <bruno@clisp.org>
14992
14993         Support for MSVC compiler: Ensure mode_t gets defined.
14994         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14995         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14996         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14997         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14998         * tests/test-fcntl-h.c: Check that mode_t is defined.
14999         * tests/test-sys_stat.c: Likewise.
15000         * tests/test-sys_types.c: Likewise.
15001         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
15002         * doc/posix-headers/sys_stat.texi: Likewise.
15003         * doc/posix-headers/sys_types.texi: Likewise.
15004
15005 2011-09-16  Bruno Haible  <bruno@clisp.org>
15006
15007         sys_stat: Support for MSVC.
15008         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
15009         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
15010         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
15011         MSVC.
15012
15013 2011-09-16  Bruno Haible  <bruno@clisp.org>
15014
15015         Support for MSVC compiler: Ensure off_t gets defined.
15016         * lib/unistd.in.h: Include <sys/types.h>.
15017         * tests/test-fcntl-h.c: Check that off_t is defined.
15018         * tests/test-sys_stat.c: Likewise.
15019         * tests/test-sys_types.c: Likewise.
15020
15021 2011-09-16  Eric Blake  <eblake@redhat.com>
15022
15023         fdatasync: port to Solaris
15024         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
15025         * modules/fdatasync (Link): Document it.
15026         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
15027
15028         fdatasync: port to MacOS X 10.7
15029         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
15030         declared.
15031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
15032         * modules/unistd (Makefile.am): Substitute it.
15033         * lib/unistd.in.h (fdatasync): Declare on MacOS.
15034         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
15035
15036         fdatasync: minor improvements
15037         * modules/fdatasync (Depends-on): Add condition for fsync.
15038         * lib/fdatasync.c (fdatasync): Add comment.
15039         * tests/test-unistd-c++.cc: Test fdatasync.
15040
15041         unistd: update refs to newer POSIX
15042         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
15043         Suggested by Bruno Haible.
15044
15045         fdatasync: new module
15046         * modules/fsync (Description): Document difference to fdatasync.
15047         * modules/fdatasync: New module.
15048         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
15049         * lib/fdatasync.c (fdatasync): Likewise.
15050         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
15051         defaults.
15052         * modules/unistd (Makefile.am): Set witnesses.
15053         * lib/unistd.in.h (fdatasync): Declare.
15054         * MODULES.html.sh: Document it.
15055         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
15056         * modules/fdatasync-tests: New test.
15057         * tests/test-fdatasync.c: Likewise.
15058
15059 2011-09-16  Eric Blake  <eblake@redhat.com>
15060
15061         test-fsync: enhance tests
15062         * modules/fsync-tests (Depends-on): Add errno, for mingw.
15063         * tests/test-fsync.c (main): Enhance test.
15064
15065 2011-09-15  Bruno Haible  <bruno@clisp.org>
15066
15067         Support for MSVC compiler: Ensure ssize_t gets defined.
15068         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
15069         * doc/posix-headers/stdio.texi: Likewise.
15070         * modules/stdio (Depends-on): Add ssize_t.
15071         * modules/sys_socket (Depends-on): Likewise.
15072         * modules/sys_types (Depends-on): Likewise.
15073         * modules/sys_uio (Depends-on): Likewise.
15074         * modules/unistd (Depends-on): Likewise.
15075         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
15076         * tests/test-sys_types.c: Check that ssize_t is defined.
15077
15078 2011-09-14  Bruno Haible  <bruno@clisp.org>
15079
15080         Avoid using #, the m4 comment starter character, near brackets.
15081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
15082         delimiter character in sed expressions.
15083         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
15084         Suggested by Eric Blake.
15085
15086         Properly quote AC_CHECK_DECLS' 4th argument.
15087         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
15088         argument.
15089         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15090         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15091         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15092         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15093         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15094         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
15095         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
15096         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
15097         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
15098         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15099         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
15100         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15101         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15102         * m4/isinf.m4 (gl_ISINF): Likewise.
15103         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15104         * m4/readutmp.m4 (gl_READUTMP): Likewise.
15105         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15106         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15107         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15108         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15109         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15110         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15111         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
15112         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15113         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15114         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
15116         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15118         Reported by Eric Blake.
15119
15120         Properly quote AC_CHECK_DECL's 4th argument.
15121         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
15122         argument.
15123         * m4/argp.m4 (gl_ARGP): Likewise.
15124         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15125         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15126         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15127         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15128         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
15129         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15130         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
15131         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15132         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15133         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15134         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15135         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15136         Reported by Eric Blake.
15137
15138 2011-09-14  Eric Blake  <eblake@redhat.com>
15139
15140         opendir: avoid compile warning
15141         * lib/opendir.c (includes): Always include errno.h.
15142         Reported by Tatsuro MATSUOKA.
15143
15144 2011-09-14  Jim Meyering  <meyering@redhat.com>
15145
15146         maint.mk: sc_tight_scope: propagate failure from sub-make
15147         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
15148         Reported by Martin von Gagern.
15149
15150 2011-09-13  Bruno Haible  <bruno@clisp.org>
15151
15152         tempname: Support for MSVC.
15153         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
15154         MSVC.
15155         * modules/tempname (Depends-on): Add fcntl-h.
15156
15157 2011-09-13  Bruno Haible  <bruno@clisp.org>
15158
15159         sys_time: Support for MSVC.
15160         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
15161         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
15162         include <winsock2.h>.
15163         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
15164         function declarations that collide with POSIX.
15165         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
15166         (Makefile.am): Substitute HAVE_WINSOCK2_H.
15167
15168 2011-09-13  Bruno Haible  <bruno@clisp.org>
15169
15170         stat: Support for MSVC.
15171         * lib/stat.c: Include pathmax.h.
15172         * modules/stat (Depends-on): Add pathmax.
15173
15174         pathmax: Support for native Windows.
15175         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
15176
15177 2011-09-12  Bruno Haible  <bruno@clisp.org>
15178
15179         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
15180         * lib/dirent.in.h (struct dirent): New type.
15181         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
15182         DT_WHT): New macros.
15183         (DIR): New type.
15184         (opendir, closedir): Declare only if the module 'opendir' is enabled.
15185         (readdir, rewinddir): New declarations.
15186         * lib/dirent-private.h: New file.
15187         * lib/opendir.c: New file.
15188         * lib/readdir.c: New file.
15189         * lib/rewinddir.c: New file.
15190         * lib/closedir.c: New file.
15191         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
15192         * m4/opendir.m4: New file.
15193         * m4/readdir.m4: New file.
15194         * m4/rewinddir.m4: New file.
15195         * m4/closedir.m4: New file.
15196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
15197         REPLACE_CLOSEDIR here.
15198         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
15199         readdir, rewinddir are declared.
15200         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
15201         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
15202         HAVE_REWINDDIR, HAVE_CLOSEDIR.
15203         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15204         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15205         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15206         * modules/opendir: New file.
15207         * modules/readdir: New file.
15208         * modules/rewinddir: New file.
15209         * modules/closedir: New file.
15210         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15211         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15212         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15213         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15214         * NEWS: Mention the 'fchdir' change.
15215
15216 2011-09-11  Bruno Haible  <bruno@clisp.org>
15217
15218         asm-underscore.m4: Support for MSVC.
15219         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15220         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15221
15222 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15223
15224         Doc about crypt functions.
15225         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15226         needing for _GNU_SOURCE to get crypt.
15227         * doc/posix-functions/encrypt.texi: Likewise.
15228         * doc/posix-functions/setkey.texi: Likewise.
15229
15230 2011-09-11  Bruno Haible  <bruno@clisp.org>
15231
15232         doc: Update regarding MSVC 9.
15233         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15234         tested".
15235         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15236         * doc/posix-headers/*.texi: Likewise.
15237         * doc/pastposix-functions/*.texi: Likewise.
15238         * doc/glibc-functions/*.texi: Likewise.
15239         * doc/glibc-headers/*.texi: Likewise.
15240
15241 2011-09-11  Bruno Haible  <bruno@clisp.org>
15242
15243         unistd et al.: Don't assume <unistd.h> exists.
15244         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15245         does not exist.
15246         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15247         exist. But include <stdlib.h>.
15248         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15249         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15250         symlink() does not exist.
15251         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15252         include <io.h> instead.
15253         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15254         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15255         include <direct.h> instead.
15256         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15257         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15258         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15259         <io.h> instead.
15260         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15261         correctly if the system does not have hard links.
15262         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15263         <direct.h> instead.
15264         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15265         it when looking for function declarations.
15266         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15267         <direct.h> and <io.h> instead.
15268         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15269
15270 2011-09-11  Bruno Haible  <bruno@clisp.org>
15271
15272         strcase: Support for MSVC.
15273         * modules/strcase (Status, Notice): Remove obsoletion mark.
15274         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15275         * doc/posix-functions/strncasecmp.texi: Likewise.
15276
15277         strings: Don't assume <strings.h> exists.
15278         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15279         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15280         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15281         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15282
15283 2011-09-11  Bruno Haible  <bruno@clisp.org>
15284
15285         dirent: Don't assume <dirent.h> exists.
15286         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15287         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15288         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15289         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15290
15291 2011-09-11  Bruno Haible  <bruno@clisp.org>
15292
15293         Fix wint_t on MSVC.
15294         * lib/wchar.in.h (wint_t): On MSVC, override it.
15295         * lib/wctype.in.h (wint_t): Likewise.
15296         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15297         MSVC.
15298         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15299         * doc/posix-headers/wctype.texi: Likewise.
15300
15301 2011-09-11  Bruno Haible  <bruno@clisp.org>
15302
15303         sys_types: Fix typo.
15304         * lib/sys_types.in.h: Fix typo in comment.
15305         Reported by Paul Eggert.
15306
15307         Support for MSVC compiler: Ensure size_t gets defined.
15308         * modules/strings (Depends-on): Add 'sys_types'.
15309         * modules/sys_uio (Depends-on): Likewise.
15310         * lib/sys_uio.in.h: Update comment.
15311
15312         C++ tests for module 'sys_types'.
15313         * modules/sys_types-c++-tests: New file.
15314         * tests/test-sys_types-c++.cc: New file.
15315
15316         Tests for module 'sys_types'.
15317         * modules/sys_types-tests: New file.
15318         * tests/test-sys_types.c: New file.
15319
15320         New module 'sys_types'.
15321         * lib/sys_types.in.h: New file.
15322         * m4/sys_types_h.m4: New file.
15323         * modules/sys_types: New file.
15324         * doc/posix-headers/sys_types.texi: Mention the new module and the
15325         size_t problem on MSVC 9.
15326
15327 2011-09-11  Bruno Haible  <bruno@clisp.org>
15328
15329         Support for MSVC compiler: Avoid division by a literal 0.
15330         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15331         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15332         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15333         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15334         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15335         * tests/infinity.h: New file.
15336         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15337         on MSVC.
15338         * tests/test-ceilf1.c: Include infinity.h.
15339         (main): Use Infinityf.
15340         * tests/test-ceil1.c: Include infinity.h.
15341         (main): Use Infinityd.
15342         * tests/test-ceill.c: Include infinity.h.
15343         (main): Use Infinityl.
15344         * tests/test-dprintf-posix.c: Include infinity.h.
15345         (test_function): Use Infinityd.
15346         * tests/test-floorf1.c: Include infinity.h.
15347         (main): Use Infinityf.
15348         * tests/test-floor1.c: Include infinity.h.
15349         (main): Use Infinityd.
15350         * tests/test-floorl.c: Include infinity.h.
15351         (main): Use Infinityl.
15352         * tests/test-fprintf-posix.c: Include infinity.h.
15353         (test_function): Use Infinityd.
15354         * tests/test-frexp.c: Include infinity.h.
15355         (main): Use Infinityd.
15356         * tests/test-frexpl.c: Include infinity.h.
15357         (main): Use Infinityl.
15358         * tests/test-isfinite.c: Include infinity.h.
15359         (test_isfinitef): Use Infinityf.
15360         (test_isfinited): Use Infinityd.
15361         (test_isfinitel): Use Infinityl.
15362         * tests/test-isinf.c: Include infinity.h.
15363         (test_isinff): Use Infinityf.
15364         (test_isinfd): Use Infinityd.
15365         (test_isinfl): Use Infinityl.
15366         * tests/test-isnan.c: Include infinity.h.
15367         (test_float): Use Infinityf.
15368         (test_double): Use Infinityd.
15369         (test_long_double): Use Infinityl.
15370         * tests/test-isnanf.h: Include infinity.h.
15371         (main): Use Infinityf.
15372         * tests/test-isnand.h: Include infinity.h.
15373         (main): Use Infinityd.
15374         * tests/test-isnanl.h: Include infinity.h.
15375         (main): Use Infinityl.
15376         * tests/test-ldexpl.c: Include infinity.h.
15377         (main): Use Infinityl.
15378         * tests/test-printf-posix.h: Include infinity.h.
15379         (test_function): Use Infinityd.
15380         * tests/test-roundf1.c: Include infinity.h.
15381         (main): Use Infinityf.
15382         * tests/test-round1.c: Include infinity.h.
15383         (main): Use Infinityd.
15384         * tests/test-roundl.c: Include infinity.h.
15385         (main): Use Infinityl.
15386         * tests/test-signbit.c: Include infinity.h.
15387         (test_signbitf): Use Infinityf.
15388         (test_signbitd): Use Infinityd.
15389         (test_signbitl): Use Infinityl.
15390         * tests/test-snprintf-posix.h: Include infinity.h.
15391         (test_function): Use Infinityd, Infinityl.
15392         * tests/test-sprintf-posix.h: Include infinity.h.
15393         (test_function): Use Infinityd, Infinityl.
15394         * tests/test-truncf1.c: Include infinity.h.
15395         (main): Use Infinityf.
15396         * tests/test-trunc1.c: Include infinity.h.
15397         (main): Use Infinityd.
15398         * tests/test-truncl.c: Include infinity.h.
15399         (main): Use Infinityl.
15400         * tests/test-vasnprintf-posix.c: Include infinity.h.
15401         (test_function): Use Infinityd, Infinityl.
15402         * tests/test-vasprintf-posix.c: Include infinity.h.
15403         (test_function): Use Infinityd, Infinityl.
15404         * modules/ceilf-tests (Files): Add tests/infinity.h.
15405         * modules/ceil-tests (Files): Likewise.
15406         * modules/ceill-tests (Files): Likewise.
15407         * modules/dprintf-posix-tests (Files): Likewise.
15408         * modules/floorf-tests (Files): Likewise.
15409         * modules/floor-tests (Files): Likewise.
15410         * modules/floorl-tests (Files): Likewise.
15411         * modules/fprintf-posix-tests (Files): Likewise.
15412         * modules/frexp-tests (Files): Likewise.
15413         * modules/frexp-nolibm-tests (Files): Likewise.
15414         * modules/frexpl-tests (Files): Likewise.
15415         * modules/frexpl-nolibm-tests (Files): Likewise.
15416         * modules/isfinite-tests (Files): Likewise.
15417         * modules/isinf-tests (Files): Likewise.
15418         * modules/isnan-tests (Files): Likewise.
15419         * modules/isnanf-tests (Files): Likewise.
15420         * modules/isnanf-nolibm-tests (Files): Likewise.
15421         * modules/isnand-tests (Files): Likewise.
15422         * modules/isnand-nolibm-tests (Files): Likewise.
15423         * modules/isnanl-tests (Files): Likewise.
15424         * modules/isnanl-nolibm-tests (Files): Likewise.
15425         * modules/ldexpl-tests (Files): Likewise.
15426         * modules/printf-posix-tests (Files): Likewise.
15427         * modules/roundf-tests (Files): Likewise.
15428         * modules/round-tests (Files): Likewise.
15429         * modules/roundl-tests (Files): Likewise.
15430         * modules/signbit-tests (Files): Likewise.
15431         * modules/snprintf-posix-tests (Files): Likewise.
15432         * modules/sprintf-posix-tests (Files): Likewise.
15433         * modules/truncf-tests (Files): Likewise.
15434         * modules/trunc-tests (Files): Likewise.
15435         * modules/truncl-tests (Files): Likewise.
15436         * modules/vasnprintf-posix-tests (Files): Likewise.
15437         * modules/vasprintf-posix-tests (Files): Likewise.
15438         * modules/vdprintf-posix-tests (Files): Likewise.
15439         * modules/vfprintf-posix-tests (Files): Likewise.
15440         * modules/vprintf-posix-tests (Files): Likewise.
15441         * modules/vsnprintf-posix-tests (Files): Likewise.
15442         * modules/vsprintf-posix-tests (Files): Likewise.
15443         * modules/xprintf-posix-tests (Files): Likewise.
15444
15445 2011-09-11  Bruno Haible  <bruno@clisp.org>
15446
15447         Ensure pid_t gets defined.
15448         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15449         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15450         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15451         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15452         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15453         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15454         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15455         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15456         * tests/test-fcntl-h.c: Check that pid_t is defined.
15457         * tests/test-sched.c: Likewise.
15458         * tests/test-termios.c: Likewise.
15459         * tests/test-time.c: Likewise.
15460         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15461         * doc/posix-headers/signal.texi: Likewise.
15462         * doc/posix-headers/sys_types.texi: Likewise.
15463         * doc/posix-headers/time.texi: Likewise.
15464
15465 2011-09-11  Bruno Haible  <bruno@clisp.org>
15466
15467         acl: Fix compilation on Solaris 10 (older version).
15468         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15469         of ACE_EVERYONE.
15470         * lib/set-mode-acl.c (qset_acl): Likewise.
15471         Reported by Christian Jullien <eligis@orange.fr>.
15472
15473 2011-09-10  Bruno Haible  <bruno@clisp.org>
15474
15475         iconv, unsetenv: Add support for MSVC compiler.
15476         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15477         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15478
15479 2011-09-10  Bruno Haible  <bruno@clisp.org>
15480
15481         *printf: Add support for MSVC compiler.
15482         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15483         handles the exception caused by the %n directive. When cross-compiling,
15484         guess no on native Windows.
15485         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15486         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15487         emulate it through vsnprintf.
15488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15489         * doc/posix-functions/dprintf.texi: Update documentation regarding
15490         MSVC 9.
15491         * doc/posix-functions/fprintf.texi: Likewise.
15492         * doc/posix-functions/printf.texi: Likewise.
15493         * doc/posix-functions/snprintf.texi: Likewise.
15494         * doc/posix-functions/sprintf.texi: Likewise.
15495         * doc/posix-functions/swprintf.texi: Likewise.
15496         * doc/posix-functions/vdprintf.texi: Likewise.
15497         * doc/posix-functions/vfprintf.texi: Likewise.
15498         * doc/posix-functions/vprintf.texi: Likewise.
15499         * doc/posix-functions/vsnprintf.texi: Likewise.
15500         * doc/posix-functions/vsprintf.texi: Likewise.
15501         * doc/glibc-functions/asprintf.texi: Likewise.
15502         * doc/glibc-functions/obstack_printf.texi: Likewise.
15503         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15504         * doc/glibc-functions/vasprintf.texi: Likewise.
15505
15506 2011-09-10  Bruno Haible  <bruno@clisp.org>
15507
15508         nocrash: Add support for native Windows.
15509         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15510
15511 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15512             Bruno Haible  <bruno@clisp.org>
15513
15514         absolute-header, include-next: Add support for MSVC compiler.
15515         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15516         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15517         directory separator in #line directives.
15518         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15519         recognize also backslash as directory separator in #line directives.
15520
15521 2011-09-08  Jim Meyering  <meyering@redhat.com>
15522
15523         maint.mk: mark the post-release commit log with "maint: " prefix
15524         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15525         one-line commit-log summary.
15526
15527 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15528             Bruno Haible  <bruno@clisp.org>
15529
15530         Doc about crypt functions.
15531         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15532         systems.
15533         * doc/posix-functions/encrypt.texi: Likewise.
15534         * doc/posix-functions/setkey.texi: Likewise.
15535
15536 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15537
15538         * lib/gc.h: Fix copyright header.
15539
15540 2011-09-07  Bruno Haible  <bruno@clisp.org>
15541
15542         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15543         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15544         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15545
15546 2011-09-07  Bruno Haible  <bruno@clisp.org>
15547
15548         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15549         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15550         * lib/freopen.c: Likewise.
15551         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15552         * lib/lstat.c: Likewise.
15553         * lib/stat.c: Likewise.
15554         * lib/open.c: Use different syntax for include of <fcntl.h>.
15555         * lib/openat.c: Include fcntl.h again, explicitly.
15556
15557 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15558
15559         parse-datetime: document the newly accepted format
15560         * doc/parse-datetime.texi (Combined date and time of day items):
15561         New section.
15562
15563 2011-09-06  Bruno Haible  <bruno@clisp.org>
15564
15565         acl: Fix a test failure on newer Solaris 10 with ZFS.
15566         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15567         ENOSYS as no ACL.
15568         Reported by Jim Meyering.
15569
15570 2011-09-06  Bruno Haible  <bruno@clisp.org>
15571
15572         acl: Update for AIX >= 5.3 with NFS.
15573         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15574         ENOSYS as no ACL.
15575
15576         acl: Fix a test failure on AIX >= 5.3 with NFS.
15577         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15578         as no ACL.
15579
15580 2011-09-06  Bruno Haible  <bruno@clisp.org>
15581
15582         acl: Fix a test failure on IRIX 6.5 with NFS.
15583         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15584         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15585         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15586         * lib/copy-acl.c (qcopy_acl): Likewise.
15587
15588 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15589
15590         openat: port to AIX 7.1 with large files
15591         AIX 7.1 does a "#define openat open64at" if large files are in use,
15592         so we can't simply #undef openat.  Use the orig_openat trick (similar
15593         to orig_open in lib/open.c) to work around the problem.  Problem
15594         reported by Kevin Brott for GNU tar, in the thread containing
15595         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15596         * lib/openat.c (__need_system_fcntl_h): Define first.
15597         Include <fcntl.h> and <sys/types.h> before undefining.
15598         (orig_openat) [HAVE_OPENAT]: New inline function.
15599         (openat) [HAVE_OPENAT]: Do not undef.
15600         (rpl_openat): Use orig_openat, not openat.
15601
15602 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15603             Bruno Haible  <bruno@clisp.org>
15604
15605         acl: Avoid errors on NonStop Kernel.
15606         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15607         ENOTSUP errors.
15608
15609 2011-09-05  Bruno Haible  <bruno@clisp.org>
15610
15611         acl: Clean up Solaris code.
15612         * lib/acl-internal.h: Remove no-op #if.
15613         * lib/file-has-acl.c: Likewise.
15614         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15615         * lib/copy-acl.c (qcopy_acl): Likewise.
15616
15617 2011-09-05  Bruno Haible  <bruno@clisp.org>
15618
15619         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15620         binaries built on the original Solaris 10.
15621         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15622         trivial.
15623
15624 2011-09-05  Bruno Haible  <bruno@clisp.org>
15625
15626         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15627         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15628         10.
15629         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15630         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15631         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15632         instead of acl_get, facl_get, acl_set, facl_set.
15633
15634 2011-09-05  Bruno Haible  <bruno@clisp.org>
15635
15636         copy-file: Try unit tests on more file systems.
15637         * tests/test-copy-file-1.sh: New file.
15638         * tests/test-copy-file-2.sh: New file.
15639         * modules/copy-file-tests (Files): Add them.
15640         (Makefile.am): Add them to TESTS.
15641
15642         acl: Try unit tests on more file systems.
15643         * tests/test-file-has-acl-1.sh: New file.
15644         * tests/test-file-has-acl-2.sh: New file.
15645         * tests/test-set-mode-acl-1.sh: New file.
15646         * tests/test-set-mode-acl-2.sh: New file.
15647         * tests/test-copy-acl-1.sh: New file.
15648         * tests/test-copy-acl-2.sh: New file.
15649         * modules/acl-tests (Files): Add them.
15650         (Makefile.am): Add them to TESTS.
15651
15652 2011-09-04  Bruno Haible  <bruno@clisp.org>
15653
15654         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15655         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15656         10.
15657         (OLD_ALLOW, OLD_DENY): New macros.
15658         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15659         ACE_ACCESS_ALLOWED_ACE_TYPE.
15660         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15661         ACE_ACCESS_DENIED_ACE_TYPE.
15662         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15663         (NEW_ACE_EXECUTE): Fix value.
15664         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15665         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15666         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15667         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15668         NEW_ACE_SYNCHRONIZE): New macros.
15669         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15670         instead of acl_fromtext, acl_set, facl_set.
15671         Fixes a coreutils/tests/cp/perm failure.
15672
15673 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15674
15675         openat: test for fstatat (..., 0) bug
15676         Further testing with tar suggests that fstatat (..., 0)
15677         does not work in general, on AIX 7.1; see
15678         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15679         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15680         replacement fstatat (which is what older AIX releases were using
15681         anyway).
15682         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15683         use is now changed to orig_fstatat.  This was probably the right
15684         thing to do anyway.
15685         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15686         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15687         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15688         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15689         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15690         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15691         if the bug is found.
15692
15693         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15694         This tests for another fstatat bug on AIX 7.1:
15695         fstatat (AT_FDCWD, ..., 0) does not work.  See
15696         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15697         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15698         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15699         (rpl_fstatat): Adjust so that it works around either (or both)
15700         bugs if present.
15701         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15702
15703 2011-09-03  Karl Berry  <karl@gnu.org>
15704
15705         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15706         in index entries.
15707
15708 2011-09-02  Bruno Haible  <bruno@clisp.org>
15709
15710         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15711         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15712         values of AR, ARFLAGS, RANLIB.
15713         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15714
15715 2011-09-02  Bruno Haible  <bruno@clisp.org>
15716
15717         Find 'ar' program that fits with --host argument.
15718         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15719
15720 2011-09-02  Bruno Haible  <bruno@clisp.org>
15721
15722         tests: init.sh: Support any non-GNU diff.
15723         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15724         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15725         Solaris 8.
15726
15727 2011-09-02  Bruno Haible  <bruno@clisp.org>
15728
15729         tests: init.sh: work also with any non-GNU diff that supports -u
15730         * tests/init.sh: Relax check for diff -u support.
15731         Rather than checking for GNU diff via --version, simply check
15732         for support for -u itself.  Useful at least on OpenBSD 4.9,
15733         AIX 7.1, IRIX 6.5, and Solaris 10.
15734
15735 2011-09-01  Bruno Haible  <bruno@clisp.org>
15736
15737         strtoimax, strtoumax: Document problem on HP-UX 11.
15738         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15739         * doc/posix-functions/strtoumax.texi: Likewise.
15740
15741 2011-09-01  Bruno Haible  <bruno@clisp.org>
15742
15743         strtoumax: Avoid link error on OSF/1 with DTK cc.
15744         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15745         defined as a function.
15746         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15747         strtoumax is defined, not whether it is declared.
15748
15749 2011-09-01  Bruno Haible  <bruno@clisp.org>
15750
15751         strtoimax: Avoid link error on OSF/1 with DTK cc.
15752         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15753         defined as a function.
15754         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15755         strtoimax is defined, not whether it is declared.
15756
15757 2011-09-01  Bruno Haible  <bruno@clisp.org>
15758
15759         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15760         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15761         as a function.
15762         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15763         whether it is declared.
15764
15765 2011-09-01  Bruno Haible  <bruno@clisp.org>
15766
15767         imaxabs: Avoid link error on OSF/1 with DTK cc.
15768         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15769         as a function.
15770         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15771         whether it is declared.
15772
15773 2011-09-01  Bruno Haible  <bruno@clisp.org>
15774
15775         Tests for module 'strtoumax'.
15776         * modules/strtoumax-tests: New file.
15777         * tests/test-strtoumax.c: New file.
15778
15779         Tests for module 'strtoimax'.
15780         * modules/strtoimax-tests: New file.
15781         * tests/test-strtoimax.c: New file.
15782
15783         Tests for module 'imaxdiv'.
15784         * modules/imaxdiv-tests: New file.
15785         * tests/test-imaxdiv.c: New file.
15786
15787         Tests for module 'imaxabs'.
15788         * modules/imaxabs-tests: New file.
15789         * tests/test-imaxabs.c: New file.
15790
15791 2011-09-01  Bruno Haible  <bruno@clisp.org>
15792
15793         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15794         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15795         pthread_create.
15796
15797 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15798
15799         openat: work around AIX 7.1 fstatat issue
15800         This should fix the problem that was not properly fixed
15801         in the previous change, dated 2011-08-30.
15802         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15803         __need_system_stat_h defined.
15804         (orig_fstatat) [HAVE_FSTATAT]: New function.
15805         (rpl_fstatat): Go back to the old way of doing things,
15806         except call orig_fstatat instead of fstatat.
15807         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15808         Remove unnecessary check whether fstatat fills in st_size etc.
15809
15810 2011-09-01  Bruno Haible  <bruno@clisp.org>
15811
15812         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15813         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15814         just include the system's header.
15815
15816 2011-08-31  Jim Meyering  <meyering@redhat.com>
15817
15818         tests: avoid spurious assertion failure in test-float.c on ppc64
15819         * tests/test-float.c (test_long_double): Comment out an assertion,
15820         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15821         with gcc-4.4.4.
15822
15823         maint: indent with spaces, not TABs
15824         I need to get in the habit of running gnulib's "make check".
15825         Both of these would have been caught.
15826         * m4/largefile.m4: Indent with spaces, not TABs.
15827         * lib/parse-datetime.y (iso_8601_time): Likewise.
15828         Spotted by Pádraig Brady.
15829
15830         test-parse-datetime.c: accommodate a relatively strict gcc warning
15831         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15832         to avoid a warning from gcc's -Werror=missing-declarations.
15833         Insert a few spaces-before-funcall-parenthesis.
15834
15835 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15836
15837         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15838         The parser now accepts ISO 8601 date-time strings with "T" as the
15839         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15840         with a space between the date and time strings.  Now it also parses
15841         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15842         variants like "2004-02-29T16:21:42.333-07:00"
15843         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15844         of day representation using the 'T' separator character.
15845         * doc/parse-datetime.texi (General date syntax): replace use of
15846         deprecated --iso-8601 option with --rfc-3339 in example of date
15847         command output formats that can be parsed.
15848         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15849         lib/parse-datetime.y.
15850         (gmt_offset): New function.
15851         (main): Add additional test cases to validate ISO8601 extended
15852         date and time of day parsing.
15853
15854 2011-08-31  Bruno Haible  <bruno@clisp.org>
15855
15856         freopen: Documentation.
15857         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15858         name.
15859         Reported by Claudio Bley <claudio.bley@gmail.com>.
15860
15861 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15862
15863         freopen: Don't crash if the filename argument is NULL.
15864         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15865         NULL.
15866
15867 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15868
15869         openat: work around AIX 7.1 fstatat bug
15870         Problem reported by Kevin Brott for GNU tar, in the thread containing
15871         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15872         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15873         FSTATAT_ST_SIZE_ETC_BROKEN.
15874         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15875         rpl_fstatat.
15876         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15877         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15878         AC_CHECK_FUNCS_ONCE for fstatat.
15879         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15880         fchmodat, mkdirat, openat and unlinkat.
15881
15882 2011-08-30  Bruno Haible  <bruno@clisp.org>
15883
15884         Avoid endless recursions if config.h includes some header files.
15885         * lib/fopen.c (__need_FILE): Define already before including config.h.
15886         * lib/freopen.c (__need_FILE): Likewise.
15887         * lib/open.c (__need_system_fcntl_h): Likewise.
15888         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15889         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15890         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15891
15892 2011-08-25  Karl Berry  <karl@gnu.org>
15893
15894         * config/srclist.txt (ylwrap): new try.
15895         * build-aux/ylwrap: new file.
15896
15897 2011-08-23  Bruno Haible  <bruno@clisp.org>
15898
15899         tmpdir: Use a good default directory on native Windows.
15900         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15901         (P_tmpdir): Default to _P_tmpdir on native Windows.
15902         (path_search): On native Windows, try the value returned by GetTempPath
15903         before trying P_tmpdir.
15904         * modules/tmpdir (Depends-on): Add pathmax.
15905         Suggested by John Darrington <john@darrington.wattle.id.au>.
15906
15907 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15908
15909         doc: fix typo in README-release
15910         * top/README-release: Capitalize first word of a sentence.
15911
15912 2011-08-19  Jim Meyering  <meyering@redhat.com>
15913
15914         fts: do not exhaust memory when processing million-entry directories
15915         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15916         directory would require about 256*N bytes of memory.  Thus, it was
15917         easy to construct a directory too large to be processed by any of
15918         those tools.  With this change, fts' maximum memory utilization is
15919         now limited to around 30MB.
15920         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15921         (fts_read): When we've processed the final entry (i.e., when
15922         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15923         using the parent entry to read any remaining entries.  Dispatch
15924         depending on what fts_build returns:
15925         - NULL+stop, aka failure: stop
15926         - NULL otherwise: move up in the dir hierarchy
15927         - non-NULL: handle this new entry
15928         (fts_build): Declare and use new local, continue_readdir.
15929         Prepare to be called from fts_read, when the entries
15930         from a partially-read directory have just been exhausted.
15931         In that case, we'll skip the opendir and instead use the parent's
15932         fts_dirp and derive dir_fd from that.
15933         Finally, in the readdir loop, if we read max_entries entries,
15934         exit the loop ensuring *not* to call closedir.  This is required
15935         so that fts_dirp can be reused on a subsequent call.
15936         Prompted by Ben England's report of memory exhaustion in find
15937         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15938
15939         maint: fts: move decl of `dp' down into while loop; split a long line
15940         * lib/fts.c (fts_build): No semantic change.
15941
15942         fts: add/use new struct member, fts_dirp
15943         We are about to use this to manage any directory with
15944         too many entries to read all of them into memory at once.
15945         To do that, we'll need to save the DIR* pointer in each
15946         affected FTSENT struct.
15947         * lib/fts_.h: Include <dirent.h>.
15948         (struct FTSENT) [fts_dirp]: New member.
15949         * lib/fts.c (closedir_and_clear): Define.
15950         Use it in place of closedir so that we are sure to
15951         clear the new fts_dirp member when done with it.
15952         (fts_alloc): Initialize the new member.
15953         (fts_lfree): Free, if needed.
15954
15955         maint: fts: give __opendir2 a new parameter and rename
15956         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15957         than surreptitiously using sole caller's "dir_fd".
15958         (fts_opendir): Rename from __opendir2.
15959
15960         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15961         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15962
15963         maint: fts.c: correct off-by-one indentation
15964         * lib/fts.c (fts_build): Correct indentation, change style
15965         of a couple of block comments, and bracing style.
15966
15967         maint: fts.c: move __opendir2 #define "up" out of function body
15968         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15969
15970         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15971         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15972         out for a long time and besides was useful only on BSD systems.
15973
15974 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15975
15976         regex: port to Stratus OpenVOS
15977         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15978         define to empty, rather than attempting nonportable optimizations.
15979         Problem reported by Paul Green in:
15980         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15981         and fix suggested by Eric Blake in:
15982         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15983
15984 2011-08-17  Eric Blake  <eblake@redhat.com>
15985
15986         getcwd: fix test failures on mingw
15987         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15988         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15989         test if long directory cannot be created, and allow mingw errno.
15990
15991         getcwd-lgpl: fix m4 to match relaxed test for BSD
15992         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15993         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15994         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15995         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15996         signature problem.
15997
15998         getcwd: fix compilation on mingw64
15999         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
16000         getcwd.
16001         Reported by Marc-André Lureau.
16002
16003         pipe2: silence compiler warning
16004         * lib/pipe2.c (pipe2): Hide label if it is not used.
16005
16006 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
16007
16008         relocatable-prog: fix link error
16009         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
16010         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
16011         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
16012         into modules/relocatable-lib without noticing that
16013         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
16014         also needs to build relocatable.c.
16015
16016 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16017
16018         getaddrinfo: fix sh typo in gai_strerrorA decl checking
16019         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
16020         shell code: it contained a 'break' that was not in a loop.
16021         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
16022         via a shell-language loop; this may have been true in old Autoconf
16023         versions, but it's not true in Autoconf 2.68.  I found this bug
16024         when testing coreutils git on Solaris 8, whose shell complains
16025         about the syntax error.
16026
16027 2011-08-12  Simon Josefsson  <simon@josefsson.org>
16028
16029         * lib/base64.c: Fix comment to reference RFC 4648.
16030         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
16031         <gvtulder@gmail.com>.
16032
16033 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16034
16035         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
16036
16037         po/Makefile.in.in: fix make -q problem
16038         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
16039         rule, since there's no file named 'check-macro-version' and its
16040         use as a file breaks make -q.
16041         (all): Don't depend on check-macro-version.
16042         (CHECK_MACRO_VERSION): New macro.
16043         (stamp-po): Use it.
16044
16045         configmake: fix make -q problem
16046         * modules/configmake (configmake.h): Update configmake.h's time stamp
16047         even if the file does not change.  Otherwise, 'make -q' fails.
16048         Problem reported by Simon Josefsson in
16049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
16050
16051 2011-08-11  Jim Meyering  <meyering@redhat.com>
16052
16053         git-version-gen: correct the advice in a comment
16054         * build-aux/git-version-gen: Correct comment.
16055         Don't recommend to list .tarball-version in .gitignore.
16056
16057 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16058
16059         base64: fix off-by-one buffer size bug
16060         Problem and (trivial) fix reported by Gijs van Tulder in
16061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
16062         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
16063         * tests/test-base64.c (main): Catch the bug.
16064
16065 2011-08-10  Eric Blake  <eblake@redhat.com>
16066
16067         closein: correct comments
16068         * lib/closein.c (close_stdin): Improve comments.
16069
16070 2011-08-09  Bruno Haible  <bruno@clisp.org>
16071
16072         More tests for 'fseeko'.
16073         * tests/test-fseeko3.c: New file, from Eric Blake.
16074         * tests/test-fseeko3.sh: New file.
16075         * modules/fseeko-tests (Files): Add them.
16076         (TESTS): Add test-fseeko3.sh.
16077         (check_PROGRAMS): Add test-fseeko3.
16078
16079 2011-08-09  Eric Blake  <eblake@redhat.com>
16080
16081         fseeko: remove unneeded hack
16082         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
16083
16084         fseeko: fix bug on glibc
16085         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
16086         Reported by John W. Eaton.
16087
16088 2011-08-08  Bruno Haible  <bruno@clisp.org>
16089
16090         unictype/base: Fix interoperability with preinstalled libunistring.
16091         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
16092         Reported by Simon Josefsson.
16093
16094 2011-08-08  Bruno Haible  <bruno@clisp.org>
16095
16096         iswblank: Detect declaration correctly.
16097         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
16098         AC_CHECK_DECLS invocation.
16099
16100 2011-08-08  Bruno Haible  <bruno@clisp.org>
16101
16102         tcgetsid: Detect declaration correctly.
16103         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
16104         AC_CHECK_DECLS invocation.
16105         Reported by Simon Josefsson.
16106
16107 2011-08-08  Eric Blake  <eblake@redhat.com>
16108
16109         largefile: fix typo that regressed large file support
16110         * modules/largefile (configure.ac-early): Fix section name.
16111
16112 2011-08-06  Karl Berry  <karl@gnu.org>
16113
16114         * MODULES.html.sh (func_all_files): _Noreturn is no longer
16115         a separate module.
16116
16117 2011-08-05  Simon Josefsson  <simon@josefsson.org>
16118
16119         openat: Fix warnings and commens when building unlinkat.c on Hurd.
16120         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
16121         get prototype for free.
16122
16123 2011-08-04  Bruno Haible  <bruno@clisp.org>
16124
16125         Tests for module 'pathmax'.
16126         * modules/pathmax-tests: New file.
16127         * tests/test-pathmax.c: New file.
16128
16129         canonicalize-lgpl: Support larger filenames on the Hurd.
16130         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
16131         Reported by Paul Eggert.
16132
16133         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
16134         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
16135         * lib/chdir-long.h: Include pathmax.h.
16136         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
16137         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
16138         (PATH_MAX): Remove code that is done by pathmax.h.
16139         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
16140         * lib/tmpfile.c: Add a comment.
16141         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
16142         * modules/chdir-long (Depends-on): Add pathmax.
16143         * modules/getcwd (Depends-on): Add pathmax.
16144         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
16145         is not defined.
16146         * doc/posix-headers/limits.texi: Mention the pathmax module.
16147         * NEWS: Mention the change.
16148
16149 2011-08-02  Bruno Haible  <bruno@clisp.org>
16150
16151         pthread_sigmask: Actually use results of gl_THREADLIB.
16152         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
16153         gl_THREADLIB, not gl_[]THREADLIB.
16154         Reported by Eric Blake.
16155
16156 2011-08-02  Jim Meyering  <meyering@redhat.com>
16157
16158         maint.mk: relax the default _gl_TS_function_match regexp
16159         * top/maint.mk (_gl_TS_function_match): Don't require at least one
16160         space between function name and "(" in an "extern" declaration.
16161         That would fail to match a decl with no space there: extern void foo();
16162
16163 2011-07-31  Iain Nicol  <iain@thenicols.net>
16164
16165         git-version-gen: document that EXTRA_DIST must include .version
16166         * build-aux/git-version-gen: In the how-to-use comment, document
16167         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
16168         will fail when run from an unpacked distribution tarball.
16169
16170 2011-08-01  Bruno Haible  <bruno@clisp.org>
16171
16172         wctype-h: Fix last change.
16173         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
16174         REPLACE_TOWLOWER to 0.
16175         Reported by Sam Steingold <sds@gnu.org>.
16176
16177 2011-07-31  Bruno Haible  <bruno@clisp.org>
16178
16179         frexpl: Update autoconf test.
16180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
16181         according to changes of 2011-06-20.
16182
16183 2011-07-31  Bruno Haible  <bruno@clisp.org>
16184
16185         sys_utsname: Add support for Minix.
16186         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
16187         <sys/utsname.h>.
16188         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16189         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
16190
16191 2011-07-31  Bruno Haible  <bruno@clisp.org>
16192
16193         strings: Add support for Minix.
16194         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
16195         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16196         * doc/posix-headers/strings.texi: Document the Minix problem.
16197
16198 2011-07-31  Bruno Haible  <bruno@clisp.org>
16199
16200         wctype-h: Add support for Minix.
16201         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
16202         REPLACE_TOWLOWER.
16203         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16204         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16205         REPLACE_ISWCNTRL.
16206
16207 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16208
16209         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16210         This is a performance improvement for 64-bit hosts: it causes the
16211         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16212
16213 2011-07-31  Bruno Haible  <bruno@clisp.org>
16214
16215         stdioext: Add support for Minix.
16216         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16217         * lib/fpurge.c (fpurge): Likewise.
16218         * lib/freadahead.c (freadahead): Likewise.
16219         * lib/freadable.c (freadable): Likewise.
16220         * lib/freading.c (freading): Likewise.
16221         * lib/freadptr.c (freadptr): Likewise.
16222         * lib/freadseek.c (freadptrinc): Likewise.
16223         * lib/fseeko.c (rpl_fseeko): Likewise.
16224         * lib/fseterr.c (fseterr): Likewise.
16225         * lib/fwritable.c (fwritable): Likewise.
16226         * lib/fwriting.c (fwriting): Likewise.
16227         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16228         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16229
16230 2011-07-31  Bruno Haible  <bruno@clisp.org>
16231
16232         errno: Port to Minix.
16233         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16234         ECONNABORTED are defined.
16235         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16236         GNULIB_defined_ECONNABORTED): New macros.
16237         * lib/strerror-override.h (strerror_override): Test also
16238         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16239         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16240         ECONNABORTED.
16241         * doc/posix-headers/errno.texi: Mention the Minix problem.
16242
16243 2011-07-31  Bruno Haible  <bruno@clisp.org>
16244
16245         Work around declaration collisions on Minix.
16246         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16247         defined, set REPLACE_MBSINIT.
16248         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16249         defined, set REPLACE_MBRTOWC.
16250         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16251         set REPLACE_MBRLEN.
16252         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16253         defined, set REPLACE_MBSRTOWCS.
16254         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16255         defined, set REPLACE_WCRTOMB.
16256         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16257         defined, set REPLACE_WCSRTOMBS.
16258
16259 2011-07-31  Bruno Haible  <bruno@clisp.org>
16260
16261         Add support for Minix with ACK compiler.
16262         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16263         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16264         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16265
16266 2011-07-31  Bruno Haible  <bruno@clisp.org>
16267
16268         Documentation about Minix.
16269         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16270         * doc/glibc-headers/*.texi: Likewise.
16271         * doc/posix-functions/*.texi: Likewise.
16272         * doc/glibc-functions/*.texi: Likewise.
16273
16274 2011-07-31  Bruno Haible  <bruno@clisp.org>
16275
16276         snippet/warn-on-use: Fix indentation.
16277         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16278
16279 2011-07-25  Jim Meyering  <meyering@redhat.com>
16280
16281         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16282         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16283         commands.
16284
16285 2011-07-27  Jim Meyering  <meyering@redhat.com>
16286
16287         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16288         * top/maint.mk (gl_extract_significant_defines_): Now that
16289         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16290         gnulib/lib/signal.in.h, and now that we recommend to
16291         define-if-undefined those two symbols in application code,
16292         we must filter them out of the "significant" list.
16293         This avoids a "make syntax-check" failure in coreutils.
16294
16295 2011-07-26  Eric Blake  <eblake@redhat.com>
16296
16297         warnings: add comments about previous patch
16298         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16299         * m4/include_next.m4: Likewise.
16300         * m4/warn-on-use.m4: Likewise.
16301         * m4/warnings.m4: Likewise, and simplify use.
16302         Suggested by Stefano Lattarini.
16303
16304         include-next, warnings: support older autoconf
16305         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16306         AS_VAR_PUSHDEF in a way that works with older autoconf.
16307         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16308         Reported by Daniel P. Berrange.
16309
16310 2011-07-25  Bruno Haible  <bruno@clisp.org>
16311
16312         fseek, ftell: Fix doc.
16313         * doc/posix-functions/fseek.texi: Reword statement about
16314         AC_SYS_LARGEFILE.
16315         * doc/posix-functions/ftell.texi: Likewise.
16316
16317 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16318             Bruno Haible  <bruno@clisp.org>
16319
16320         Add dependencies to the 'largefile' module.
16321         * modules/fopen (Depends-on): Add 'largefile'.
16322         * modules/freopen (Depends-on): Likewise.
16323         * modules/fseeko (Depends-on): Likewise.
16324         * modules/ftello (Depends-on): Likewise.
16325         * modules/glob (Depends-on): Likewise.
16326         * modules/lseek (Depends-on): Likewise.
16327         * modules/lstat (Depends-on): Likewise.
16328         * modules/mkostemp (Depends-on): Likewise.
16329         * modules/mkostemps (Depends-on): Likewise.
16330         * modules/mkstemp (Depends-on): Likewise.
16331         * modules/mkstemps (Depends-on): Likewise.
16332         * modules/open (Depends-on): Likewise.
16333         * modules/openat (Depends-on): Likewise.
16334         * modules/pread (Depends-on): Likewise.
16335         * modules/pwrite (Depends-on): Likewise.
16336         * modules/scandir (Depends-on): Likewise.
16337         * modules/stat (Depends-on): Likewise.
16338         * modules/tmpfile (Depends-on): Likewise.
16339         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16340         since the containing module now depends on the largefile module.
16341         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16342         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16343         off_t is fixed by gnulib.
16344         * doc/posix-functions/freopen.texi: Likewise.
16345         * doc/posix-functions/fseeko.texi: Likewise.
16346         * doc/posix-functions/fstatat.texi: Likewise.
16347         * doc/posix-functions/ftello.texi: Likewise.
16348         * doc/posix-functions/glob.texi: Likewise.
16349         * doc/posix-functions/lseek.texi: Likewise.
16350         * doc/posix-functions/lstat.texi: Likewise.
16351         * doc/posix-functions/mkstemp.texi: Likewise.
16352         * doc/posix-functions/open.texi: Likewise.
16353         * doc/posix-functions/openat.texi: Likewise.
16354         * doc/posix-functions/pread.texi: Likewise.
16355         * doc/posix-functions/pwrite.texi: Likewise.
16356         * doc/posix-functions/scandir.texi: Likewise.
16357         * doc/posix-functions/stat.texi: Likewise.
16358         * doc/posix-functions/tmpfile.texi: Likewise.
16359         * doc/glibc-functions/mkostemp.texi: Likewise.
16360         * doc/glibc-functions/mkostemps.texi: Likewise.
16361         * doc/glibc-functions/mkstemps.texi: Likewise.
16362
16363 2011-07-25  Bruno Haible  <bruno@clisp.org>
16364
16365         fcntl: Move AC_LIBOBJ invocation to module description.
16366         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16367         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16368
16369         fcntl: Remove call-in from fchdir.m4.
16370         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16371         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16372
16373         dup3: Remove potential call-in from fchdir.m4.
16374         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16376
16377         dup2: Move AC_LIBOBJ invocation to module description.
16378         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16379         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16380         Don't invoke AC_LIBOBJ.
16381         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16382
16383         dup2: Remove call-in from fchdir.m4.
16384         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16386
16387         fclose: Move AC_LIBOBJ invocation to module description.
16388         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16389         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16390         to 1.
16391         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16392
16393         fclose: Remove call-in from close.m4.
16394         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16395         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16396
16397         close: Move AC_LIBOBJ invocation to module description.
16398         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16399         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16400         1.
16401         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16402
16403         close: Remove call-in from fchdir.m4.
16404         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16406
16407         open: Move AC_LIBOBJ invocation to module description.
16408         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16409         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16410         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16411
16412         open: Remove call-in from fchdir.m4.
16413         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16415
16416         fchdir: Start to remove gl_REPLACE_* idiom.
16417         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16418         (gl_FUNC_FCHDIR): Invoke it.
16419
16420 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16421
16422         * lib/ftell.c (ftell): Comment out cast.
16423
16424         close: use gl_REPLACE_FCLOSE only if defined
16425         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16426         is defined.  The close module doesn't depend on the fclose module
16427         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16429         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16430
16431 2011-07-24  Jim Meyering  <meyering@redhat.com>
16432
16433         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16434         * tests/test-select.h (test_function): Declare as "static".
16435
16436 2011-07-24  Bruno Haible  <bruno@clisp.org>
16437
16438         doc: Mention the effects of AC_SYS_LARGEFILE.
16439         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16440         on this function.
16441         * doc/posix-functions/aio_error.texi: Likewise.
16442         * doc/posix-functions/aio_fsync.texi: Likewise.
16443         * doc/posix-functions/aio_read.texi: Likewise.
16444         * doc/posix-functions/aio_return.texi: Likewise.
16445         * doc/posix-functions/aio_suspend.texi: Likewise.
16446         * doc/posix-functions/aio_write.texi: Likewise.
16447         * doc/posix-functions/fgetpos.texi: Likewise.
16448         * doc/posix-functions/fopen.texi: Likewise.
16449         * doc/posix-functions/freopen.texi: Likewise.
16450         * doc/posix-functions/fsetpos.texi: Likewise.
16451         * doc/posix-functions/fstatvfs.texi: Likewise.
16452         * doc/posix-functions/ftruncate.texi: Likewise.
16453         * doc/posix-functions/ftw.texi: Likewise.
16454         * doc/posix-functions/getrlimit.texi: Likewise.
16455         * doc/posix-functions/glob.texi: Likewise.
16456         * doc/posix-functions/lio_listio.texi: Likewise.
16457         * doc/posix-functions/lockf.texi: Likewise.
16458         * doc/posix-functions/mkstemp.texi: Likewise.
16459         * doc/posix-functions/mmap.texi: Likewise.
16460         * doc/posix-functions/nftw.texi: Likewise.
16461         * doc/posix-functions/openat.texi: Likewise.
16462         * doc/posix-functions/opendir.texi: Likewise.
16463         * doc/posix-functions/posix_fadvise.texi: Likewise.
16464         * doc/posix-functions/posix_fallocate.texi: Likewise.
16465         * doc/posix-functions/pread.texi: Likewise.
16466         * doc/posix-functions/pwrite.texi: Likewise.
16467         * doc/posix-functions/readdir.texi: Likewise.
16468         * doc/posix-functions/readdir_r.texi: Likewise.
16469         * doc/posix-functions/rewinddir.texi: Likewise.
16470         * doc/posix-functions/scandir.texi: Likewise.
16471         * doc/posix-functions/seekdir.texi: Likewise.
16472         * doc/posix-functions/setrlimit.texi: Likewise.
16473         * doc/posix-functions/statvfs.texi: Likewise.
16474         * doc/posix-functions/telldir.texi: Likewise.
16475         * doc/posix-functions/tmpfile.texi: Likewise.
16476         * doc/posix-functions/truncate.texi: Likewise.
16477         * doc/glibc-functions/fallocate.texi: Likewise.
16478         * doc/glibc-functions/fstatfs.texi: Likewise.
16479         * doc/glibc-functions/fts_children.texi: Likewise.
16480         * doc/glibc-functions/fts_read.texi: Likewise.
16481         * doc/glibc-functions/getdirentries.texi: Likewise.
16482         * doc/glibc-functions/mkostemp.texi: Likewise.
16483         * doc/glibc-functions/mkostemps.texi: Likewise.
16484         * doc/glibc-functions/mkstemps.texi: Likewise.
16485         * doc/glibc-functions/preadv.texi: Likewise.
16486         * doc/glibc-functions/pwritev.texi: Likewise.
16487         * doc/glibc-functions/sendfile.texi: Likewise.
16488         * doc/glibc-functions/statfs.texi: Likewise.
16489
16490 2011-07-24  Bruno Haible  <bruno@clisp.org>
16491
16492         doc: Fix typo.
16493         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16494
16495 2011-07-24  Bruno Haible  <bruno@clisp.org>
16496
16497         doc: Mention fsusage.
16498         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16499
16500 2011-07-24  Bruno Haible  <bruno@clisp.org>
16501
16502         doc: Mention new glibc headers and functions.
16503         * doc/glibc-headers/gshadow.texi: New file.
16504         * doc/glibc-functions/endsgent.texi: New file.
16505         * doc/glibc-functions/fgetsgent.texi: New file.
16506         * doc/glibc-functions/fgetsgent_r.texi: New file.
16507         * doc/glibc-functions/getsgent.texi: New file.
16508         * doc/glibc-functions/getsgent_r.texi: New file.
16509         * doc/glibc-functions/getsgnam.texi: New file.
16510         * doc/glibc-functions/getsgnam_r.texi: New file.
16511         * doc/glibc-functions/putsgent.texi: New file.
16512         * doc/glibc-functions/setsgent.texi: New file.
16513         * doc/glibc-functions/sgetsgent.texi: New file.
16514         * doc/glibc-functions/sgetsgent_r.texi: New file.
16515         * doc/glibc-functions/malloc_info.texi: New file.
16516         * doc/glibc-functions/preadv.texi: New file.
16517         * doc/glibc-functions/pwritev.texi: New file.
16518         * doc/glibc-functions/register_printf_modifier.texi: New file.
16519         * doc/glibc-functions/register_printf_specifier.texi: New file.
16520         * doc/glibc-functions/register_printf_type.texi: New file.
16521         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16522         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16523         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16524         * doc/glibc-functions/pthread_getname_np.texi: New file.
16525         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16526         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16527         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16528         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16529         * doc/glibc-functions/pthread_setname_np.texi: New file.
16530         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16531         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16532         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16533         * doc/glibc-functions/qsort_r.texi: New file.
16534         * doc/glibc-functions/quick_exit.texi: New file.
16535         * doc/glibc-functions/syncfs.texi: New file.
16536         * doc/gnulib.texi: Include them.
16537         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16538         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16539         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16540         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16541         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16542         * doc/glibc-functions/execvpe.texi: Likewise.
16543
16544 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16545
16546         ftell: don't include <unistd.h>
16547         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16548         guaranteed to define off_t, and the ftell module depends on the
16549         stdio module.
16550
16551         ftell: do not assume wraparound signed arithmetic
16552         * lib/ftell.c: Include <limits.h>.
16553         (ftell): Don't assume wraparound signed arithmetic.
16554
16555 2011-07-24  Bruno Haible  <bruno@clisp.org>
16556
16557         close: No longer depend on module 'fclose'.
16558         * modules/close (Depends-on): Remove fclose.
16559         * NEWS: Mention the change.
16560         Suggested by Sam Steingold <sds@gnu.org>.
16561
16562 2011-07-24  Bruno Haible  <bruno@clisp.org>
16563
16564         fsusage: Enable large volume support on AIX >= 5.2.
16565         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16566         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16567         instead of STAT_STATVFS.
16568         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16569
16570         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16571         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16572         f_blocks field only on MacOS X.
16573
16574         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16575         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16576         * modules/fsusage (Depends-on): Add largefile.
16577
16578 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16579
16580         * README: Modernize discussion of signed integers.
16581         Assuming overflow wraparound is no longer safe.
16582         Mention ones' complement and signed magnitude.
16583
16584 2011-07-22  Bruno Haible  <bruno@clisp.org>
16585
16586         select tests, pselect tests: Refactor.
16587         * tests/test-select.h: New file, extracted from tests/test-select.c.
16588         (select_fn): New type.
16589         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16590         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16591         test_pipe): Add my_select argument.
16592         (test_function): Renamed from main. Add my_select argument.
16593         * tests/test-select.c: Move most code to tests/test-select.h. Include
16594         test-select.h.
16595         * modules/select-tests (Files): Add tests/test-select.h.
16596         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16597         (my_select, main): New functions.
16598         * modules/pselect-tests (Files): Add tests/test-select.h,
16599         tests/macros.h, tests/signature.h.
16600         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16601         (configure.ac): Check for <sys/wait.h>.
16602
16603 2011-07-22  Bruno Haible  <bruno@clisp.org>
16604
16605         sys_select tests: Check the signature of FD_*.
16606         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16607         signature tests from here...
16608         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16609         here.
16610         * modules/sys_select-tests (Files): Add tests/signature.h.
16611
16612 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16613
16614         largefile: new module, replacing large-inode
16615         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16616         * MODULES.html.sh: Add largefile, remove large-inode.
16617         * modules/largefile, m4/largefile.m4: New files.
16618         * modules/large-inode, m4/large-inode.m4: Remove.
16619
16620         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16621         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16622         implementations that use only 32 bits to count blocks.
16623         On typical hosts with 1024-byte blocks, this fails with file
16624         systems as small as 4 TiB.  Problem reported by Herb Wartens
16625         <http://debbugs.gnu.org/9140> and this should also fix a similar
16626         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16627
16628         large-inode: New module
16629         * MODULES.html.sh: Add it.
16630         * modules/large-inode, m4/large-inode.m4: New files.
16631
16632         extensions: Enable extensions on MacOS X 10.5 and later.
16633         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16634
16635 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16636
16637         file-has-acl: use acl_extended_file_nofollow if available
16638         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16639         (acl_extended_file): New macro.
16640         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16641         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16642
16643 2011-07-21  Bruno Haible  <bruno@clisp.org>
16644
16645         Declare system functions in a way that works with C++.
16646         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16647         declare fdopendir as extern "C".
16648         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16649         declare frexpl as extern "C".
16650         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16651         declare gai_strerror as extern "C".
16652         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16653         programs, declare gai_strerror as extern "C".
16654         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16655         declare getlogin_r as extern "C".
16656         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16657         as extern "C".
16658         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16659         declare ldexpl as extern "C".
16660         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16661         as extern "C".
16662         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16663         program, declare getmntinfo as extern "C".
16664         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16665         stpncpy as extern "C".
16666         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16667         program, declare __xpg_strerror_r as extern "C".
16668         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16669         strndup as extern "C".
16670         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16671         declare memset and bzero as extern "C".
16672         Reported by Sam Steingold <sds@gnu.org>.
16673
16674 2011-07-12  Jim Meyering  <meyering@redhat.com>
16675
16676         maint.mk: prohibit inclusion of "verify.h" without use
16677         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16678
16679 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16680
16681         timer-time: A new module to check for timer_settime()
16682         * m4/timer_time.m4: Check for the posix function.
16683         * modules/timer-time: Add the new module.
16684         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16685         Mention it.
16686
16687 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16688             Bruno Haible  <bruno@clisp.org>
16689
16690         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16691         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16692         not defined, assume POSIX threads and look for pthread_sigmask in
16693         $LIBS, without changing $CPPFLAGS.
16694
16695 2011-07-19  Bruno Haible  <bruno@clisp.org>
16696
16697         strstr: Update cross-compilation guess.
16698         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16699         CPUs, guess no, in view of glibc
16700         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16701         Suggested by Eric Blake. Reported by Reuben Thomas.
16702
16703 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16704
16705         getopt-gnu: suppress core dumps from detection code
16706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16707         to suppress core dumps that may well occur on glibc systems.
16708         * modules/getopt-gnu: Depend on nocrash.
16709
16710 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16711
16712         pthread_sigmask: ensure usleep is declared
16713         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16714         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16715
16716 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16717
16718         doc: Document NonStop portability issues.
16719         * doc/posix-functions/sigaction.texi (sigaction):
16720         * doc/posix-headers/signal.texi (signal.h):
16721         Document NonStop.  See Joachim Schmitz in
16722         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16723
16724 2011-07-15  Bruno Haible  <bruno@clisp.org>
16725
16726         ffsl, ffsll: Avoid unportable behaviour.
16727         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16728
16729 2011-07-15  Bruno Haible  <bruno@clisp.org>
16730
16731         ffs: More tests.
16732         * tests/test-ffs.c (NBITS): New macro.
16733         (main): Add more tests.
16734         * tests/test-ffsl.c (NBITS): New macro.
16735         (main): Add more tests.
16736         * tests/test-ffsll.c (NBITS): New macro.
16737         (main): Add more tests.
16738
16739 2011-07-15  Eric Blake  <eblake@redhat.com>
16740
16741         ffsl, ffsll: new modules
16742         * modules/ffsl: New file.
16743         * modules/ffsll: Likewise.
16744         * m4/ffsl.m4: Likewise.
16745         * m4/ffsll.m4: Likewise.
16746         * lib/ffsl.c: Likewise.
16747         * lib/ffsl.h: Likewise.
16748         * lib/ffsll.c: Likewise.
16749         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16750         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16751         * modules/string (Makefile.am): Substitute witnesses.
16752         * lib/strings.in.h (ffsl, ffsll): Declare.
16753         * modules/ffsl-tests: New test file.
16754         * modules/ffsll-tests: Likewise.
16755         * tests/test-ffsl.c: Likewise.
16756         * tests/test-ffsll.c: Likewise.
16757         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16758         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16759         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16760
16761         ffs: fix m4 prerequisite
16762         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16763
16764         ffs: avoid undefined behavior
16765         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16766         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16767         Reported by Bruno Haible.
16768
16769 2011-07-12  Bruno Haible  <bruno@clisp.org>
16770
16771         pthread_sigmask: Rely on module 'threadlib'.
16772         * modules/pthread_sigmask (Depends-on): Add threadlib.
16773         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16774         is defined.
16775
16776 2011-07-12  Bruno Haible  <bruno@clisp.org>
16777
16778         regex: Depend on module 'strcase'.
16779         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16780
16781 2011-07-12  Jim Meyering  <meyering@redhat.com>
16782
16783         warn-on-use: fix typo in file name
16784         * modules/snippet/warn-on-use (Files): Correct file name:
16785         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16786
16787 2011-07-12  Bruno Haible  <bruno@clisp.org>
16788
16789         strings: Document module.
16790         * doc/posix-headers/strings.texi: Mention module 'strings'.
16791
16792 2011-07-12  Bruno Haible  <bruno@clisp.org>
16793
16794         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16795         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16796         (Files, Makefile.am): Update.
16797         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16798         * modules/stdlib (Depends-on): Update.
16799
16800 2011-07-12  Bruno Haible  <bruno@clisp.org>
16801
16802         * NEWS: Mention the changes.
16803
16804         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16805         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16806         (Files, Makefile.am): Update.
16807         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16808         * modules/arpa_inet (Depends-on): Update.
16809         * modules/ctype (Depends-on): Update.
16810         * modules/dirent (Depends-on): Update.
16811         * modules/fcntl-h (Depends-on): Update.
16812         * modules/glob (Depends-on): Update.
16813         * modules/iconv-h (Depends-on): Update.
16814         * modules/inttypes-incomplete (Depends-on): Update.
16815         * modules/langinfo (Depends-on): Update.
16816         * modules/locale (Depends-on): Update.
16817         * modules/math (Depends-on): Update.
16818         * modules/netdb (Depends-on): Update.
16819         * modules/poll-h (Depends-on): Update.
16820         * modules/pty (Depends-on): Update.
16821         * modules/search (Depends-on): Update.
16822         * modules/signal (Depends-on): Update.
16823         * modules/spawn (Depends-on): Update.
16824         * modules/stdio (Depends-on): Update.
16825         * modules/stdlib (Depends-on): Update.
16826         * modules/string (Depends-on): Update.
16827         * modules/strings (Depends-on): Update.
16828         * modules/sys_file (Depends-on): Update.
16829         * modules/sys_ioctl (Depends-on): Update.
16830         * modules/sys_select (Depends-on): Update.
16831         * modules/sys_socket (Depends-on): Update.
16832         * modules/sys_stat (Depends-on): Update.
16833         * modules/sys_time (Depends-on): Update.
16834         * modules/sys_times (Depends-on): Update.
16835         * modules/sys_utsname (Depends-on): Update.
16836         * modules/sys_wait (Depends-on): Update.
16837         * modules/termios (Depends-on): Update.
16838         * modules/time (Depends-on): Update.
16839         * modules/unistd (Depends-on): Update.
16840         * modules/wchar (Depends-on): Update.
16841         * modules/wctype-h (Depends-on): Update.
16842         * MODULES.html.sh (Support for building libraries and executables):
16843         Update.
16844
16845         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16846         * modules/snippet/unused-parameter: Renamed from
16847         modules/unused-parameter.
16848         (Files, Makefile.am): Update.
16849         * build-aux/snippet/unused-parameter.h: Renamed from
16850         build-aux/unused-parameter.h.
16851         * modules/selinux-h (Depends-on): Update.
16852         * modules/unistr/base (Depends-on): Update.
16853         * MODULES.html.sh (Core language properties): Update.
16854
16855         Rename module 'link-warning' to 'snippet/link-warning'.
16856         * modules/snippet/link-warning: Renamed from modules/link-warning.
16857         (Files, Makefile.am): Update.
16858         * build-aux/snippet/link-warning.h: Renamed from
16859         build-aux/link-warning.h.
16860         * MODULES.html.sh (Support for building libraries and executables):
16861         Update.
16862
16863         Rename module 'c++defs' to 'snippet/c++defs'.
16864         * modules/snippet/c++defs: Renamed from modules/c++defs.
16865         (Files, Makefile.am): Update.
16866         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16867         * modules/arpa_inet (Depends-on): Update.
16868         * modules/ctype (Depends-on): Update.
16869         * modules/dirent (Depends-on): Update.
16870         * modules/fcntl-h (Depends-on): Update.
16871         * modules/glob (Depends-on): Update.
16872         * modules/iconv-h (Depends-on): Update.
16873         * modules/langinfo (Depends-on): Update.
16874         * modules/locale (Depends-on): Update.
16875         * modules/math (Depends-on): Update.
16876         * modules/netdb (Depends-on): Update.
16877         * modules/poll-h (Depends-on): Update.
16878         * modules/pty (Depends-on): Update.
16879         * modules/search (Depends-on): Update.
16880         * modules/signal (Depends-on): Update.
16881         * modules/spawn (Depends-on): Update.
16882         * modules/stdio (Depends-on): Update.
16883         * modules/stdlib (Depends-on): Update.
16884         * modules/string (Depends-on): Update.
16885         * modules/strings (Depends-on): Update.
16886         * modules/sys_ioctl (Depends-on): Update.
16887         * modules/sys_select (Depends-on): Update.
16888         * modules/sys_socket (Depends-on): Update.
16889         * modules/sys_stat (Depends-on): Update.
16890         * modules/sys_time (Depends-on): Update.
16891         * modules/sys_wait (Depends-on): Update.
16892         * modules/termios (Depends-on): Update.
16893         * modules/time (Depends-on): Update.
16894         * modules/unistd (Depends-on): Update.
16895         * modules/wchar (Depends-on): Update.
16896         * modules/wctype-h (Depends-on): Update.
16897
16898         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16899         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16900         (Files, Makefile.am): Update.
16901         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16902         * modules/argv-iter (Depends-on): Update.
16903         * modules/arpa_inet (Depends-on): Update.
16904         * modules/dirent (Depends-on): Update.
16905         * modules/fcntl-h (Depends-on): Update.
16906         * modules/fnmatch (Depends-on): Update.
16907         * modules/getopt-posix (Depends-on): Update.
16908         * modules/glob (Depends-on): Update.
16909         * modules/iconv-h (Depends-on): Update.
16910         * modules/inttypes-incomplete (Depends-on): Update.
16911         * modules/locale (Depends-on): Update.
16912         * modules/math (Depends-on): Update.
16913         * modules/netdb (Depends-on): Update.
16914         * modules/search (Depends-on): Update.
16915         * modules/signal (Depends-on): Update.
16916         * modules/spawn (Depends-on): Update.
16917         * modules/stdio (Depends-on): Update.
16918         * modules/stdlib (Depends-on): Update.
16919         * modules/string (Depends-on): Update.
16920         * modules/strings (Depends-on): Update.
16921         * modules/sys_socket (Depends-on): Update.
16922         * modules/sys_stat (Depends-on): Update.
16923         * modules/sys_time (Depends-on): Update.
16924         * modules/sys_times (Depends-on): Update.
16925         * modules/sys_utsname (Depends-on): Update.
16926         * modules/time (Depends-on): Update.
16927         * modules/unistd (Depends-on): Update.
16928         * modules/wchar (Depends-on): Update.
16929         * MODULES.html.sh (Support for building libraries and executables):
16930         Update.
16931
16932 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16933
16934         Improvements on _Noreturn and related modules.
16935
16936         modules/_Exit-tests: test _Noreturn too
16937         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16938         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16939         (main): Use them.
16940
16941         stdnoreturn, stdnoreturn-tests: remove modules
16942         They're not needed here and a bit premature for use elsewhere.  See
16943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16944         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16945         * tests/test-stdnoreturn.c: Remove files.
16946         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16947         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16948         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16949         and using noreturn.
16950         * modules/openat, modules/sigpipe-die, modules/xalloc:
16951         * modules/xmemdup0, modules/xstrtol:
16952         Remove dependency on stdnoreturn.
16953
16954         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16955         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16956         Reparenthesize to avoid GCC warning.
16957         Support Microsoft's syntax.
16958         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16959
16960         _Noreturn-tests: remove module
16961         * modules/_Noreturn-tests: Remove.
16962         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16963         * tests/test-_Noreturn.c: Remove.
16964         * tests/test-stdnoreturn.c: Merge from the old
16965         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16966
16967 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16968
16969         _Noreturn, stdnoreturn, and related modules.
16970
16971         * top/maint.mk: Adjust to new noreturn support.
16972         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16973         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16974
16975         xalloc: use stdnoreturn.h
16976         * lib/xalloc.h: Include <stdnoreturn.h>.
16977         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16978         * modules/xalloc (Depends-on): Add stdnoreturn.
16979
16980         xstrtol: use stdnoreturn.h
16981         * lib/xstrtol.h: Include <stdnoreturn.h>.
16982         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16983         * modules/xstrtol (Depends-on): Add stdnoreturn.
16984
16985         xmemdup0: use stdnoreturn.h
16986         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16987         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16988         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16989
16990         sigpipe-die: use stdnoreturn.h
16991         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16992         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16993         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16994
16995         openat: use stdnoreturn.h
16996         * lib/openat.h: Include <stdnoreturn.h>.
16997         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16998         * modules/openat (Depends-on): Add stdnoreturn.
16999
17000         * lib/openat-die.c (openat_save_fail): Modernize comment.
17001
17002         * lib/xalloc-die.c (xalloc_die): Modernize comment.
17003
17004         * lib/glthread/thread.h: Modernize comment.
17005
17006         obstack: use _Noreturn
17007         * lib/obstack.c (__attribute__): Remove macro.
17008         (print_and_abort): Use _Noreturn.
17009
17010         c-stack: use _Noreturn
17011         * lib/c-stack.c (die, overflow_handler, segv_handler):
17012         Use _Noreturn rather than __attribute__((noreturn)).
17013
17014         argmatch-tests, exclude_tests: use _Noreturn
17015         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
17016         Remove.
17017         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
17018
17019         stdlib: use _Noreturn
17020         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
17021         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
17022         * modules/stdlib (Depends-on): Add _Noreturn.
17023         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
17024
17025         stdnoreturn-tests: new module
17026         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
17027
17028         stdnoreturn: new module
17029         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
17030         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
17031
17032         _Noreturn-tests: new module
17033         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
17034
17035         _Noreturn: new module
17036         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
17037         New section, mentioning it.
17038         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
17039
17040         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
17041
17042 2011-07-11  Eric Blake  <eblake@redhat.com>
17043
17044         ffs: new module
17045         * modules/ffs: New file.
17046         * m4/ffs.m4: Likewise.
17047         * lib/ffs.c: Likewise.
17048         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
17049         * modules/strings (Makefile.am): Substitute witness.
17050         (Depends-on): Add c++defs.
17051         * lib/strings.in.h (ffs): Declare.
17052         * modules/ffs-tests: New test file.
17053         * tests/test-ffs.c: Test new module.
17054         * MODULES.html.sh (Integer arithmetic functions): Mention it.
17055         * doc/posix-functions/ffs.texi (ffs): Likewise.
17056
17057         regex: avoid compiler warning
17058         * lib/regex.c (includes): Include <strings.h>, for use of
17059         strcasecmp in regcomp.c.
17060         Reported by Joachim Schmitz.
17061
17062 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17063
17064         stdint: respect system's intmax_t if INTMAX_MAX
17065         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
17066         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
17067         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
17068         long but int64_t is long long, and where we will clash with the
17069         system intmax_t if we override it.  See
17070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
17071         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
17072         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
17073         similarly for UINTMAX_C.
17074
17075 2011-07-08  Bruno Haible  <bruno@clisp.org>
17076
17077         pthread_sigmask tests: Avoid a compiler warning.
17078         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
17079         non-zero.
17080
17081         sigprocmask tests: A better way to avoid a compiler warning.
17082         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
17083         (main): Complain if system() returns non-zero.
17084         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
17085
17086 2011-07-08  Bruno Haible  <bruno@clisp.org>
17087
17088         pthread_sigmask: Work around IRIX bug.
17089         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
17090         bug.
17091         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
17092         there may be unblocked pending signals.
17093         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
17094
17095 2011-07-08  Bruno Haible  <bruno@clisp.org>
17096
17097         pthread_sigmask: Work around Cygwin bug.
17098         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
17099         bug.
17100         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
17101         the system's pthread_sigmask function.
17102         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
17103
17104 2011-07-08  Bruno Haible  <bruno@clisp.org>
17105
17106         pthread_sigmask: Work around bug in single-threaded implementation.
17107         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
17108         FreeBSD, HP-UX, Solaris bug.
17109         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
17110         * lib/pthread_sigmask.c: Include <stddef.h>.
17111         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
17112         the system's pthread_sigmask function.
17113         * modules/pthread_sigmask (configure.ac): Invoke
17114         gl_PREREQ_PTHREAD_SIGMASK.
17115         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
17116         HP-UX, Solaris.
17117
17118 2011-07-08  Eric Blake  <eblake@redhat.com>
17119
17120         test-sigprocmask: avoid compiler warning
17121         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
17122         * tests/test-sigprocmask.c (main): Use it to silence warning.
17123         Reported by Jim Meyering.
17124
17125         test-snprintf: avoid compiler warning
17126         * tests/test-snprintf.c (main): Avoid shadowed declaration.
17127         * tests/test-vsnprintf.c (main): Likewise.
17128         Reported by Jim Meyering.
17129
17130 2011-07-08  Bruno Haible  <bruno@clisp.org>
17131
17132         Tests for module 'pthread_sigmask'.
17133         * modules/pthread_sigmask-tests: New file.
17134         * tests/test-pthread_sigmask1.c: New file, based on
17135         tests/test-sigprocmask.c.
17136         * tests/test-pthread_sigmask2.c: New file.
17137
17138 2011-07-08  Jim Meyering  <meyering@redhat.com>
17139
17140         test-getopt.h: avoid warning about an unused variable
17141         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
17142
17143 2011-07-07  Jim Meyering  <meyering@redhat.com>
17144
17145         maint: reduce list of files exempt from sc_prohibit_leading_TABs
17146         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
17147         now that it no longer contains leading TABs.
17148         Remove unused "url=FIXME" statement.
17149
17150 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17151
17152         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
17153         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17154         When gl_THREADLIB is not in use, assume that the POSIX sematics
17155         are desired.  This is better for Emacs, which uses POSIX semantics
17156         on GNUish and/or POSIXish platforms, and does not use threads at
17157         all otherwise.
17158
17159         pthread_sigmask: fix typo when testing for libraries
17160         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17161         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
17162
17163 2011-07-08  Eric Blake  <eblake@redhat.com>
17164
17165         fts: introduce FTS_NOATIME
17166         * lib/fts_.h (FTS_NOATIME): New bit flag.
17167         (FTS_OPTIONMASK): Adjust.
17168         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
17169         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
17170
17171 2011-07-08  Bruno Haible  <bruno@clisp.org>
17172
17173         Tests for module 'thread'.
17174         * modules/thread-tests: New file.
17175         * tests/test-thread_self.c: New file.
17176         * tests/test-thread_create.cc: New file.
17177
17178 2011-07-08  Bruno Haible  <bruno@clisp.org>
17179
17180         thread: Avoid gcc warnings when using gl_thread_self().
17181         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
17182         'void *'.
17183         (gl_thread_self_pointer): Update.
17184
17185 2011-07-07  Bruno Haible  <bruno@clisp.org>
17186
17187         signal-c++-tests: Check declaration of pthread_sigmask.
17188         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
17189         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
17190         $(LIB_PTHREAD_SIGMASK).
17191
17192 2011-07-07  Bruno Haible  <bruno@clisp.org>
17193
17194         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
17195         * lib/signal.in.h (pthread_sigmask): Override if
17196         REPLACE_PTHREAD_SIGMASK is 1.
17197         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17198         REPLACE_PTHREAD_SIGMASK.
17199         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
17200         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
17201         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
17202         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17203         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17204
17205 2011-07-07  Bruno Haible  <bruno@clisp.org>
17206
17207         pthread_sigmask: Ensure declaration in <signal.h>.
17208         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17209         include <pthread.h>.
17210         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17211         problem.
17212
17213 2011-07-07  Bruno Haible  <bruno@clisp.org>
17214
17215         pthread_sigmask: Document the module.
17216         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17217
17218 2011-07-07  Bruno Haible  <bruno@clisp.org>
17219
17220         pthread_sigmask: Follow gnulib conventions.
17221         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17222         gl_PTHREAD_SIGMASK.
17223         * modules/pthread_sigmask (configure.ac): Update.
17224
17225 2011-07-07  Bruno Haible  <bruno@clisp.org>
17226
17227         pthread_sigmask: Make declaration C++ safe.
17228         * lib/signal.in.h: In two special conditions, just do an #include_next.
17229         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17230         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17231         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17232         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17233         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17234         not REPLACE_PTHREAD_MASK.
17235         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17236         not REPLACE_PTHREAD_MASK.
17237         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17238
17239 2011-07-07  Bruno Haible  <bruno@clisp.org>
17240
17241         pthread_sigmask: Fix return value.
17242         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17243         * lib/pthread_sigmask.c: New file.
17244         * modules/pthread_sigmask (Files): Add it.
17245         (configure.ac): Invoke AC_LIBOBJ.
17246
17247 2011-07-07  Eric Blake  <eblake@redhat.com>
17248
17249         getopt: more portable argv creation
17250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17251         const, use char arrays rather than strings.
17252         Suggested by Paul Eggert.
17253
17254 2011-07-07  Bruno Haible  <bruno@clisp.org>
17255
17256         Tests for module 'sigprocmask'.
17257         * modules/sigprocmask-tests: New file.
17258         * tests/test-sigprocmask.c: New file.
17259
17260 2011-07-07  Bruno Haible  <bruno@clisp.org>
17261
17262         float tests: Tweak.
17263         * tests/test-float.c (main): Tweak skip message.
17264
17265 2011-07-07  Eric Blake  <eblake@redhat.com>
17266
17267         getopt: avoid compiler warning during configure
17268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17269         assigning string literals to non-const pointer.
17270
17271         getopt-gnu: avoid crash in glibc getopt
17272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17273         * tests/test-getopt.h (test_getopt): Enhance test.
17274         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17275         * doc/posix-functions/getopt.texi (getopt): Document it.
17276         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17277         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17278         Likewise.
17279
17280 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17281
17282         getopt: handle W; without long options in getopt [BZ #12922]
17283         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17284         but no long options are defined, just return 'W'.
17285
17286 2011-07-07  Bruno Haible  <bruno@clisp.org>
17287
17288         Avoid literal tabs.
17289         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17290         variable containing a tab instead of a literal tab.
17291         Reported by Jim Meyering.
17292
17293 2011-07-07  Bruno Haible  <bruno@clisp.org>
17294
17295         Comments.
17296         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17297
17298 2011-07-06  Bruno Haible  <bruno@clisp.org>
17299
17300         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17301         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17302         <winsock2.h>.
17303         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17304         lib/sys_socket.in.h.
17305         (close, gethostname): Hide declarations from <winsock2.h>.
17306         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17307         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17308         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17309         (select): Don't override if gnulib's <sys/select.h> was already
17310         included.
17311         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17312         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17313         setsockopt, shutdown, select): Tweak indentation.
17314
17315 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17316
17317         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17318         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17319         in an application that does not use the sys_select module.
17320
17321 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17322
17323         poll: do not return 0 on timeout=-1
17324         * lib/poll.c: Loop with yield if no events occurred.
17325
17326 2011-07-06  Eric Blake  <eblake@redhat.com>
17327
17328         pthread_sigmask: always replace when not using pthread
17329         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17330         replacement when using some threading other than pthread.  Fix
17331         logic bug.
17332
17333 2011-07-06  Bruno Haible  <bruno@clisp.org>
17334
17335         Comments.
17336         * m4/printf.m4: Update comments about mingw.
17337
17338 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17339
17340         sys_select: define sigset_t more portably
17341         * lib/sys_select.in.h: Always include <sys/types.h>, since
17342         we now need sigset_t and mingw defines it there.
17343         Include <signal.h> before split inclusion guard, to avoid
17344         mishaps on Solaris, whose <signal.h> eventually includes us.
17345         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17346         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17347         which come from ...
17348         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17349         gl_CHECK_TYPE_SIGSET_T.
17350         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17351         does the real work.
17352         * modules/sys_select (Depends-on): Add 'signal'.
17353
17354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17355         Suggested by Bruno Haible.
17356
17357         pselect: Use pthread_sigmask, not sigprocmask.
17358         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17359         multithreaded apps better than sigprocmask does.
17360         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17361         sigprocmask directly.
17362
17363 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17364
17365         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17366         Don't #undef,  since we don't need any underlying pselect.
17367         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17368         (Depends-on): Add select.
17369         (Link): Add $(LIBSOCKET).
17370         These changes suggested by Bruno Haible.
17371
17372         pselect: document better
17373         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17374         * doc/posix-functions/pselect.texi (pselect): Document new module.
17375
17376         pthread_sigmask: new module
17377         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17378         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17379         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17380         This is done only as a macro; I don't know how well that'll
17381         work for C++.  Move <sys/types.h> include before the include_next,
17382         to avoid mishap on Solaris.
17383         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17384         * modules/signal (Makefile.am): Substitute the check's results.
17385         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17386
17387         test-pselect: new module
17388         * modules/pselect-tests, tests/test-pselect.c: New files.
17389         * tests/test-select.c, tests/test-sys_select-c++.cc:
17390         If TEST_PSELECT is defined, test pselect instead of testing select.
17391
17392         * tests/test-sys_select.c (sigset_t): Test for it, too.
17393         Suggested by Bruno Haible.
17394
17395 2011-07-05  Eric Blake  <eblake@redhat.com>
17396
17397         snprintf: guarantee %1$d, for libintl
17398         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17399         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17400         * doc/posix-functions/snprintf.texi (snprintf): Update.
17401         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17402         * tests/test-snprintf.c (main): Enhance test.
17403         * tests/test-vsnprintf.c (main): Likewise.
17404
17405 2011-07-05  Jim Meyering  <meyering@redhat.com>
17406
17407         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17408         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17409         per Bruno's request, to accommodate this idiom (no space after "#")
17410         even when the function is inside an #if block:
17411         char *
17412         gets (char *s)
17413         #undef gets
17414         {
17415           ...
17416         }
17417
17418 2011-07-04  Jim Meyering  <meyering@redhat.com>
17419
17420         maint: indent with spaces, not TABs, and add a rule to check this
17421         * tests/test-userspec.c: Indent with spaces, not TABs.
17422         * tests/test-argp.c: Likewise.
17423         * tests/test-c-stack2.sh: Likewise.
17424         * tests/test-parse-duration.sh: Likewise
17425         * m4/strtod.m4: Likewise.
17426         * m4/alloca.m4: Likewise.
17427         * m4/pselect.m4: Likewise.
17428         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17429
17430 2011-07-03  Jim Meyering  <meyering@redhat.com>
17431
17432         maint.mk: correct omissions in prohibit_argmatch_without_use check
17433         This rule would mistakenly report that argmatch.h is included without
17434         use even when both the argmatch and invalid_arg macro were used.
17435         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17436         of argmatch and invalid_arg.
17437
17438 2011-07-03  Bruno Haible  <bruno@clisp.org>
17439
17440         Comments about EINTR.
17441         * lib/safe-read.h: Explain the purpose of this module.
17442         * lib/safe-write.h: Likewise.
17443         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17444         module.
17445         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17446         module.
17447         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17448
17449 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17450
17451         xnanosleep: Rewrite to use new dtotimespec module.
17452         It has the conversion code that used to be in xnanosleep.
17453         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17454         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17455         (TIME_T_MAX): Remove.
17456         (xnanosleep): Rewrite in terms of dtotimespec.
17457         * modules/xnanosleep (Depends-on): Add dtotimespec.
17458         Remove intprops, stdbool.
17459
17460         timespec-add, timespec-sub: new modules
17461         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17462         * lib/timespec-add.c, lib/timespec-sub.c:
17463         * modules/timespec-add, modules/timespec-sub: New files.
17464
17465         dtotimespec: new module
17466         * lib/timespec.h (dtotimespec): New decl.
17467         * lib/dtotimespec.c, modules/dtotimespec: New files.
17468
17469         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17470
17471         pselect: new module
17472         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17473         (pselect): New decls.
17474         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17475         since the standard pselect decl uses 'restrict'.
17476         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17477         HAVE_PSELECT, REPLACE_PSELECT.
17478         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17479         HAVE_PSELECT, REPLACE_PSELECT.
17480         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17481
17482         sys_select: don't depend on sys_socket
17483         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17485         This fix works on GNU and GNU-like platforms, but has not been tested
17486         on native Windows.
17487         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17488         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17489         gl_HEADER_SYS_SOCKET.
17490         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17491         gl_PREREQ_SYS_H_WINSOCK2.
17492
17493 2011-06-29  Eric Blake  <eblake@redhat.com>
17494
17495         pipe2: fix C89 compile problem
17496         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17497         Reported by Bruno Haible.
17498
17499         pipe, pipe2: don't corrupt fd on error
17500         * lib/pipe.c (pipe): Leave fd unchanged on error.
17501         * lib/pipe2.c (pipe2): Likewise.
17502         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17503         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17504
17505 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17506
17507         mmap-anon: do not use regular expressions inadvertently
17508         * m4/mmap-anon.m4: Remove trailing period from strings sought
17509         in the output.
17510
17511 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17512
17513         nanosleep: fix integer overflow problem
17514         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17515         arithmetic wraps around on overflow.
17516
17517         nanosleep: simplify carrying
17518         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17519         first call to the underyling nanosleep, not for the last one.
17520         This doesn't fix any bugs, but it simplifies the computation of
17521         the remaining delay.  Found while auditing integer overflow issues.
17522
17523         dup2: remove test for existence of fcntl
17524         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17525         "#if HAVE_FCNTL", in the configure-time test program.
17526         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17527         and therefore speeds up "configure" a bit.  Found while
17528         adding the dup2 module to Emacs.
17529
17530 2011-06-24  Eric Blake  <eblake@redhat.com>
17531
17532         maint.mk: enhance useless header checks
17533         * top/maint.mk (_sc_header_without_use): Check both include
17534         styles.
17535         (sc_prohibit_assert_without_use)
17536         (sc_prohibit_close_stream_without_use)
17537         (sc_prohibit_getopt_without_use)
17538         (sc_prohibit_quotearg_without_use)
17539         (sc_prohibit_quote_without_use)
17540         (sc_prohibit_long_options_without_use)
17541         (sc_prohibit_inttostr_without_use)
17542         (sc_prohibit_ignore_value_without_use)
17543         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17544         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17545         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17546         (sc_prohibit_hash_pjw_without_use)
17547         (sc_prohibit_safe_read_without_use)
17548         (sc_prohibit_argmatch_without_use)
17549         (sc_prohibit_canonicalize_without_use)
17550         (sc_prohibit_root_dev_ino_without_use)
17551         (sc_prohibit_openat_without_use)
17552         (sc_prohibit_c_ctype_without_use)
17553         (sc_prohibit_signal_without_use)
17554         (sc_prohibit_stdio--_without_use)
17555         (sc_prohibit_stdio-safer_without_use)
17556         (sc_prohibit_strings_without_use)
17557         (sc_prohibit_intprops_without_use)
17558         (sc_prohibit_stddef_without_use)
17559         (sc_prohibit_xfreopen_without_use): Update clients.
17560
17561 2011-06-24  Jim Meyering  <meyering@redhat.com>
17562
17563         syntax-check: keep one maint.mk rule in sync with its header
17564         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17565         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17566         I prefer to avoid temporary files here, so use <(...), but that
17567         is not supported by /bin/sh, so...
17568         (SHELL): Define to /bin/bash.
17569
17570 2011-06-24  Eric Blake  <eblake@redhat.com>
17571
17572         maint.mk: update sc_prohibit_intprops_without_use
17573         * top/maint.mk (_intprops_names): Match recent changes.
17574
17575 2011-06-24  Bruno Haible  <bruno@clisp.org>
17576
17577         strerror-override: No-op tweak.
17578         * lib/strerror-override.h (strerror_override): Reorder conditions,
17579         for consistency with lib/strerror-override.c.
17580
17581 2011-06-23  Eric Blake  <eblake@redhat.com>
17582
17583         maint.mk: test further PATH_MAX issues
17584         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17585         (sc_prohibit_path_max_allocation): ...and also test alloca.
17586         Suggested by Jim Meyering.
17587
17588 2011-06-22  Eric Blake  <eblake@redhat.com>
17589
17590         maint.mk: add syntax-check to avoid char[PATH_MAX]
17591         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17592
17593         stat: be robust to PATH_MAX definition
17594         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17595         * modules/stat (Depends-on): Add verify.
17596
17597         link: work around IRIX bug
17598         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17599         * lib/link.c (rpl_link): Work around it.
17600         * tests/test-link.h (test_link): Enhance test.
17601         * doc/posix-functions/link.texi (link): Document the bug.
17602
17603         getopt: silence clang warning
17604         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17605         dereference.
17606         Reported by Gustavo Martin Domato.
17607
17608 2011-06-22  Jim Meyering  <meyering@redhat.com>
17609
17610         bootstrap: do not insert a blank line into each .gitignore file
17611         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17612
17613 2011-06-21  Eric Blake  <eblake@redhat.com>
17614
17615         perror: test for output mismatch
17616         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17617         perror on IRIX.
17618
17619         strerror_r: fix OpenBSD behavior on out-of-range
17620         * lib/strerror_r.c (strerror_r): Always use maximal string.
17621         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17622
17623         strerror_r: fix OpenBSD behavior on 0
17624         * lib/strerror-override.c (strerror_override): Also override 0
17625         when needed.
17626         * lib/strerror-override.h (strerror_override): Likewise.
17627         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17628         earlier.
17629         * lib/strerror_r.c (strerror_r): Likewise.
17630         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17631         behavior...
17632         (gl_FUNC_STRERROR_0): ...into new macro.
17633         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17634         is overridden.
17635         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17636         * modules/strerror-override (Files): Add strerror.m4.
17637         (configure.ac): Also provide override for 0 when needed.
17638         * doc/posix-functions/strerror.texi (strerror): Document this.
17639         * doc/posix-functions/perror.texi (perror): Likewise.
17640
17641         perror: adjust array size
17642         * modules/perror (Depends-on): Add strerror-override.
17643         * lib/perror.c (perror): Use it to avoid magic number.
17644
17645         strerror-override: reduce size
17646         * lib/strerror-override.c (strerror_override): Use fewer lines.
17647
17648 2011-06-20  Bruno Haible  <bruno@clisp.org>
17649
17650         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17651         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17652
17653 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17654
17655         alloca: port to compilers that can optimize like GCC 4.6.0
17656         * lib/alloca.c (find_stack_direction): New signature, taken from
17657         Autoconf git.  This works with GCC 4.6.0.  This code should never
17658         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17659         be used with other compilers that optimize as well as GCC 4.6.0 does.
17660         (alloca): Adjust to new signature.
17661         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17662         New macro, which patches Autoconf in a similar way.
17663
17664         c-stack: stop worrying about stack direction
17665         * lib/c-stack.c (find_stack_direction): Remove.
17666         (segv_handler): Don't worry about stack direction growth, as it's
17667         too much of a pain to configure this correctly, given how compilers
17668         are optimizing-away our stack-growth detection code.  Instead, assume
17669         that any access to just before or just after the stack is OK.
17670         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17671         Don't require AC_FUNC_ALLOCA; no longer needed.
17672
17673 2011-06-20  Eric Blake  <eblake@redhat.com>
17674
17675         test-stat: don't allocate PATH_MAX bytes
17676         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17677         PATH_MAX-sized buffer.
17678         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17679         * modules/stat-tests (Depends-on): Likewise.
17680         * tests/test-fstatat.c (includes): Drop pathmax.h.
17681         * tests/test-stat.c (includes): Likewise.
17682         Reported by Bruno Haible.
17683
17684 2011-06-20  Bruno Haible  <bruno@clisp.org>
17685
17686         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17687         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17688         * lib/float.c: New file.
17689         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17690         REPLACE_FLOAT_LDBL.
17691         * modules/float (Files): Add lib/float.c.
17692         (configure.ac): Invoke AC_LIBOBJ.
17693         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17694
17695 2011-06-20  Bruno Haible  <bruno@clisp.org>
17696
17697         Tests for module 'float'.
17698         * modules/float-tests: New file.
17699         * tests/test-float.c: New file.
17700
17701 2011-06-19  Bruno Haible  <bruno@clisp.org>
17702
17703         isinf: Coding style.
17704         * lib/isinf.c: Use GNU coding style.
17705
17706 2011-06-19  Bruno Haible  <bruno@clisp.org>
17707
17708         linkat test: Avoid test failure on AIX 7.1.
17709         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17710         * tests/test-link.h (test_link): Likewise.
17711
17712 2011-06-19  Bruno Haible  <bruno@clisp.org>
17713
17714         pread test: Avoid test failure on OpenBSD 4.9.
17715         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17716
17717 2011-06-19  Bruno Haible  <bruno@clisp.org>
17718
17719         sprintf-posix: Fix test failure on AIX 7.1.
17720         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17721         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17722         on AIX.
17723         * doc/posix-functions/fprintf.texi: Likewise.
17724         * doc/posix-functions/printf.texi: Likewise.
17725         * doc/posix-functions/snprintf.texi: Likewise.
17726         * doc/posix-functions/sprintf.texi: Likewise.
17727         * doc/posix-functions/vdprintf.texi: Likewise.
17728         * doc/posix-functions/vfprintf.texi: Likewise.
17729         * doc/posix-functions/vprintf.texi: Likewise.
17730         * doc/posix-functions/vsnprintf.texi: Likewise.
17731         * doc/posix-functions/vsprintf.texi: Likewise.
17732
17733 2011-06-19  Bruno Haible  <bruno@clisp.org>
17734
17735         roundl-ieee: Fix test failure on AIX 7.1.
17736         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17737         * doc/posix-functions/roundl.texi: Mention problem with negative
17738         arguments.
17739
17740 2011-06-19  Bruno Haible  <bruno@clisp.org>
17741
17742         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17743         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17744         * doc/posix-functions/round.texi: Mention problem with negative
17745         arguments.
17746         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17747
17748 2011-06-19  Bruno Haible  <bruno@clisp.org>
17749
17750         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17751         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17752         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17753         * doc/posix-functions/roundf.texi: Mention problem with negative
17754         arguments.
17755         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17756
17757 2011-06-19  Bruno Haible  <bruno@clisp.org>
17758
17759         ceilf-ieee: Work around bug on MacOS X 10.5.
17760         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17761
17762         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17763         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17764         IEEE compliant, avoid compiler optimizations.
17765         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17766         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17767         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17768         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17769         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17770         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17771         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17772         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17773         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17774         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17775
17776 2011-06-19  Bruno Haible  <bruno@clisp.org>
17777
17778         ceilf-ieee: Work around bug on AIX 7.1.
17779         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17780         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17781
17782 2011-06-19  Bruno Haible  <bruno@clisp.org>
17783
17784         ceil-ieee: Work around bug on AIX 7.1.
17785         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17786         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17787
17788 2011-06-18  Bruno Haible  <bruno@clisp.org>
17789
17790         fsync test: Avoid test failure on MacOS X and AIX.
17791         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17792         EINVAL.
17793
17794 2011-06-18  Bruno Haible  <bruno@clisp.org>
17795
17796         openat, fdopendir tests: Fix link errors.
17797         * modules/openat-tests (Depends-on): Add progname.
17798         * modules/fdopendir-tests (Depends-on): Likewise.
17799         * tests/test-fchownat.c: Include progname.h.
17800         (main): Call set_program_name.
17801         * tests/test-fstatat.c: Include progname.h.
17802         (main): Call set_program_name.
17803         * tests/test-mkdirat.c: Include progname.h.
17804         (main): Call set_program_name.
17805         * tests/test-openat.c: Include progname.h.
17806         (main): Call set_program_name.
17807         * tests/test-unlinkat.c: Include progname.h.
17808         (main): Call set_program_name.
17809         * tests/test-fdopendir.c: Include progname.h.
17810         (main): Call set_program_name.
17811
17812 2011-06-18  Bruno Haible  <bruno@clisp.org>
17813
17814         Doc update.
17815         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17816         HP-UX.
17817         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17818
17819 2011-06-18  Bruno Haible  <bruno@clisp.org>
17820
17821         getcwd tests: Avoid compilation error on HP-UX 11.31.
17822         * modules/getcwd-tests (Depends-on): Add pathmax.
17823         * tests/test-getcwd.c: Include pathmax.h.
17824
17825 2011-06-18  Bruno Haible  <bruno@clisp.org>
17826
17827         isfinite, isinf: Fix link error on AIX 6 and 7.
17828         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17829         needed, also test the macro with a 'float' argument.
17830         * m4/isinf.m4 (gl_ISINF): Likewise.
17831
17832 2011-06-18  Bruno Haible  <bruno@clisp.org>
17833
17834         getloadavg: Don't clobber LIBS. Regression from previous commit.
17835         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17836         AC_CHECK_LIB from here...
17837         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17838         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17839         gl_func_getloadavg_done.
17840         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17841
17842 2011-06-18  Bruno Haible  <bruno@clisp.org>
17843
17844         clean-temp: Improve documentation.
17845         * lib/clean-temp.h: Explain better how to use this module.
17846         Reported by John Darrington <john@darrington.wattle.id.au>.
17847
17848 2011-06-17  Bruno Haible  <bruno@clisp.org>
17849
17850         pread, pwrite: Avoid cc warning on AIX.
17851         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17852         (pwrite): Likewise.
17853
17854 2011-06-17  Bruno Haible  <bruno@clisp.org>
17855
17856         spawn-pipe tests: Fix link error.
17857         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17859
17860 2011-06-17  Bruno Haible  <bruno@clisp.org>
17861
17862         Tests: Remove unnecessary dependency.
17863         * modules/canonicalize-tests (Depends-on): Remove progname.
17864         * modules/chown-tests (Depends-on): Likewise.
17865         * modules/dirname-tests (Depends-on): Likewise.
17866         * modules/fdopendir-tests (Depends-on): Likewise.
17867         * modules/fdutimensat-tests (Depends-on): Likewise.
17868         * modules/hash-tests (Depends-on): Likewise.
17869         * modules/lchown-tests (Depends-on): Likewise.
17870         * modules/linkat-tests (Depends-on): Likewise.
17871         * modules/renameat-tests (Depends-on): Likewise.
17872         * modules/spawn-pipe-tests (Depends-on): Likewise.
17873         * modules/utimensat-tests (Depends-on): Likewise.
17874
17875 2011-06-17  Bruno Haible  <bruno@clisp.org>
17876
17877         spawn-pipe tests: Fix link error.
17878         * tests/test-spawn-pipe-child.c: Undefine fflush.
17879
17880 2011-06-17  Bruno Haible  <bruno@clisp.org>
17881
17882         Fix tests link errors.
17883         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17884         * modules/chown-tests (Makefile.am): Don't link test-chown with
17885         LIBINTL.
17886         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17887         LIBINTL.
17888         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17889         LIBINTL.
17890         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17891         LIBINTL.
17892
17893 2011-06-16  Bruno Haible  <bruno@clisp.org>
17894
17895         crypto/gc-sha1: Fix recent regression.
17896         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17897         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17898
17899         crypto/gc-md5: Fix recent regression.
17900         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17901
17902         crypto/gc-md4: Fix recent regression.
17903         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17904         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17905
17906         crypto/gc-arctwo: Fix recent regression.
17907         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17908         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17909
17910         crypto/gc-rijndael: Fix recent regression.
17911         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17912         (configure.ac): Invoke AC_LIBOBJ here.
17913         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17915
17916         crypto/gc-hmac-sha1: Fix recent regression.
17917         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17918         (configure.ac): Invoke AC_LIBOBJ here.
17919         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17921
17922         crypto/gc-hmac-md5: Fix recent regression.
17923         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17924         (configure.ac): Invoke AC_LIBOBJ here.
17925         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17927
17928         crypto/gc-des: Fix recent regression.
17929         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17930         (configure.ac): Invoke AC_LIBOBJ here.
17931         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17933
17934         crypto/gc-arcfour: Fix recent regression.
17935         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17936         (configure.ac): Invoke AC_LIBOBJ here.
17937         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17939
17940 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17941
17942         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17943         After the 2011-05-21 change, this macro requires
17944         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17945         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17946
17947 2011-06-16  Bruno Haible  <bruno@clisp.org>
17948
17949         fprintftime: Move AC_LIBOBJ invocations to module description.
17950         * m4/fprintftime.m4: Remove file.
17951         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17952         (configure.ac): Remove gl_FPRINTFTIME call.
17953         (Makefile.am): Augment lib_SOURCES.
17954         Reported by Jim Meyering.
17955
17956 2011-06-16  Bruno Haible  <bruno@clisp.org>
17957
17958         tmpfile-safer: Finish 2011-05-23 commit.
17959         * m4/stdio-safer.m4: Really remove file.
17960         Reported by Jim Meyering.
17961
17962 2011-06-16  Bruno Haible  <bruno@clisp.org>
17963
17964         syntax-check: Fix typo.
17965         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17966         printf-posix.m4.
17967         Reported by Jim Meyering.
17968
17969 2011-06-13  Jim Meyering  <meyering@redhat.com>
17970
17971         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17972         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17973
17974 2011-05-23  Bruno Haible  <bruno@clisp.org>
17975
17976         yesno: Move AC_LIBOBJ invocations to module description.
17977         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17978         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17979
17980 2011-05-23  Bruno Haible  <bruno@clisp.org>
17981
17982         xstrtol: Move AC_LIBOBJ invocations to module description.
17983         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17984         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17985
17986 2011-05-23  Bruno Haible  <bruno@clisp.org>
17987
17988         xstrtold: Move AC_LIBOBJ invocations to module description.
17989         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17990         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17991
17992 2011-05-23  Bruno Haible  <bruno@clisp.org>
17993
17994         xstrtod: Move AC_LIBOBJ invocations to module description.
17995         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17996         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17997
17998 2011-05-23  Bruno Haible  <bruno@clisp.org>
17999
18000         xnanosleep: Move AC_LIBOBJ invocations to module description.
18001         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
18002         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
18003
18004 2011-05-23  Bruno Haible  <bruno@clisp.org>
18005
18006         xgetcwd: Move AC_LIBOBJ invocations to module description.
18007         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
18008         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
18009
18010 2011-05-23  Bruno Haible  <bruno@clisp.org>
18011
18012         xalloc: Move AC_LIBOBJ invocations to module description.
18013         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
18014         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
18015
18016 2011-05-23  Bruno Haible  <bruno@clisp.org>
18017
18018         write-any-file: Move AC_LIBOBJ invocations to module description.
18019         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
18020         invocation.
18021         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
18022
18023 2011-05-23  Bruno Haible  <bruno@clisp.org>
18024
18025         utimens: Move AC_LIBOBJ invocations to module description.
18026         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
18027         * modules/utimens (Makefile.am): Augment lib_SOURCES.
18028
18029 2011-05-23  Bruno Haible  <bruno@clisp.org>
18030
18031         utimecmp: Move AC_LIBOBJ invocations to module description.
18032         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
18033         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
18034
18035 2011-05-23  Bruno Haible  <bruno@clisp.org>
18036
18037         userspec: Move AC_LIBOBJ invocations to module description.
18038         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
18039         * modules/userspec (Makefile.am): Augment lib_SOURCES.
18040
18041 2011-05-23  Bruno Haible  <bruno@clisp.org>
18042
18043         unlinkdir: Move AC_LIBOBJ invocations to module description.
18044         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
18045         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
18046
18047 2011-05-23  Bruno Haible  <bruno@clisp.org>
18048
18049         unistd-safer: Move AC_LIBOBJ invocations to module description.
18050         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
18051         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
18052
18053 2011-05-23  Bruno Haible  <bruno@clisp.org>
18054
18055         tempname: Move AC_LIBOBJ invocations to module description.
18056         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
18057         * modules/tempname (Makefile.am): Augment lib_SOURCES.
18058
18059 2011-05-23  Bruno Haible  <bruno@clisp.org>
18060
18061         strftime: Move AC_LIBOBJ invocations to module description.
18062         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
18063         * modules/strftime (Makefile.am): Augment lib_SOURCES.
18064
18065 2011-05-23  Bruno Haible  <bruno@clisp.org>
18066
18067         stdlib-safer: Move AC_LIBOBJ invocations to module description.
18068         * m4/stdlib-safer.m4: Remove file.
18069         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
18070         (configure.ac): Remove gl_STDLIB_SAFER call.
18071         (Makefile.am): Augment lib_SOURCES.
18072
18073 2011-05-23  Bruno Haible  <bruno@clisp.org>
18074
18075         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
18076         * m4/stdio-safer.m4: Remove file.
18077         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
18078         (configure.ac): Remove gl_TMPFILE_SAFER call.
18079         (Makefile.am): Augment lib_SOURCES.
18080
18081 2011-05-23  Bruno Haible  <bruno@clisp.org>
18082
18083         popen-safer: Move AC_LIBOBJ invocations to module description.
18084         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
18085         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
18086         (configure.ac): Remove gl_POPEN_SAFER call.
18087         (Makefile.am): Augment lib_SOURCES.
18088
18089 2011-05-23  Bruno Haible  <bruno@clisp.org>
18090
18091         freopen-safer: Move AC_LIBOBJ invocations to module description.
18092         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
18093         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
18094         (configure.ac): Remove gl_FREOPEN_SAFER call.
18095         (Makefile.am): Augment lib_SOURCES.
18096
18097 2011-05-23  Bruno Haible  <bruno@clisp.org>
18098
18099         fopen-safer: Move AC_LIBOBJ invocations to module description.
18100         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
18101         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
18102         (configure.ac): Remove gl_FOPEN_SAFER call.
18103         (Makefile.am): Augment lib_SOURCES.
18104
18105 2011-05-23  Bruno Haible  <bruno@clisp.org>
18106
18107         crypto/sha512: Move AC_LIBOBJ invocations to module description.
18108         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
18109         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
18110
18111 2011-05-23  Bruno Haible  <bruno@clisp.org>
18112
18113         crypto/sha256: Move AC_LIBOBJ invocations to module description.
18114         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
18115         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
18116
18117 2011-05-23  Bruno Haible  <bruno@clisp.org>
18118
18119         crypto/sha1: Move AC_LIBOBJ invocations to module description.
18120         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
18121         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
18122
18123 2011-05-23  Bruno Haible  <bruno@clisp.org>
18124
18125         settime: Move AC_LIBOBJ invocations to module description.
18126         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
18127         * modules/settime (Makefile.am): Augment lib_SOURCES.
18128
18129 2011-05-23  Bruno Haible  <bruno@clisp.org>
18130
18131         savedir: Move AC_LIBOBJ invocations to module description.
18132         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
18133         * modules/savedir (Makefile.am): Augment lib_SOURCES.
18134
18135 2011-05-23  Bruno Haible  <bruno@clisp.org>
18136
18137         save-cwd: Move AC_LIBOBJ invocations to module description.
18138         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
18139         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
18140
18141 2011-05-23  Bruno Haible  <bruno@clisp.org>
18142
18143         same: Move AC_LIBOBJ invocations to module description.
18144         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
18145         * modules/same (Makefile.am): Augment lib_SOURCES.
18146
18147 2011-05-23  Bruno Haible  <bruno@clisp.org>
18148
18149         safe-write: Move AC_LIBOBJ invocations to module description.
18150         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
18151         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18152         instead of gl_SAFE_WRITE.
18153         (Makefile.am): Augment lib_SOURCES.
18154
18155 2011-05-23  Bruno Haible  <bruno@clisp.org>
18156
18157         safe-read: Move AC_LIBOBJ invocations to module description.
18158         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
18159         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
18160         of gl_SAFE_READ.
18161         (Makefile.am): Augment lib_SOURCES.
18162
18163 2011-05-23  Bruno Haible  <bruno@clisp.org>
18164
18165         safe-alloc: Move AC_LIBOBJ invocations to module description.
18166         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
18167         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
18168
18169 2011-05-23  Bruno Haible  <bruno@clisp.org>
18170
18171         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18172         * m4/rijndael.m4: Remove file.
18173         * modules/crypto/rijndael (Files): Remove it.
18174         (configure.ac): Remove gl_RIJNDAEL call.
18175         (Makefile.am): Augment lib_SOURCES.
18176
18177 2011-05-23  Bruno Haible  <bruno@clisp.org>
18178
18179         readtokens: Move AC_LIBOBJ invocations to module description.
18180         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
18181         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
18182
18183 2011-05-23  Bruno Haible  <bruno@clisp.org>
18184
18185         read-file: Move AC_LIBOBJ invocations to module description.
18186         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
18187         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
18188         of gl_FUNC_READ_FILE.
18189         (Makefile.am): Augment lib_SOURCES.
18190
18191 2011-05-23  Bruno Haible  <bruno@clisp.org>
18192
18193         quotearg: Move AC_LIBOBJ invocations to module description.
18194         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
18195         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
18196
18197 2011-05-23  Bruno Haible  <bruno@clisp.org>
18198
18199         quote: Move AC_LIBOBJ invocations to module description.
18200         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
18201         * modules/quote (Makefile.am): Augment lib_SOURCES.
18202
18203 2011-05-23  Bruno Haible  <bruno@clisp.org>
18204
18205         posixver: Move AC_LIBOBJ invocations to module description.
18206         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18207         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18208
18209 2011-05-23  Bruno Haible  <bruno@clisp.org>
18210
18211         posixtm: Move AC_LIBOBJ invocations to module description.
18212         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18213         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18214
18215 2011-05-23  Bruno Haible  <bruno@clisp.org>
18216
18217         physmem: Move AC_LIBOBJ invocations to module description.
18218         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18219         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18220
18221 2011-05-23  Bruno Haible  <bruno@clisp.org>
18222
18223         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18224         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18225         invocation.
18226         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18227
18228 2011-05-23  Bruno Haible  <bruno@clisp.org>
18229
18230         mpsort: Move AC_LIBOBJ invocations to module description.
18231         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18232         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18233
18234 2011-05-23  Bruno Haible  <bruno@clisp.org>
18235
18236         modechange: Move AC_LIBOBJ invocations to module description.
18237         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18238         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18239
18240 2011-05-23  Bruno Haible  <bruno@clisp.org>
18241
18242         mkdir-p: Move AC_LIBOBJ invocations to module description.
18243         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18244         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18245
18246 2011-05-23  Bruno Haible  <bruno@clisp.org>
18247
18248         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18249         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18250         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18251
18252 2011-05-23  Bruno Haible  <bruno@clisp.org>
18253
18254         mgetgroups: Move AC_LIBOBJ invocations to module description.
18255         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18256         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18257
18258 2011-05-23  Bruno Haible  <bruno@clisp.org>
18259
18260         memxor: Move AC_LIBOBJ invocations to module description.
18261         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18262         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18263
18264 2011-05-23  Bruno Haible  <bruno@clisp.org>
18265
18266         memcoll: Move AC_LIBOBJ invocations to module description.
18267         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18268         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18269
18270 2011-05-23  Bruno Haible  <bruno@clisp.org>
18271
18272         memcasecmp: Move AC_LIBOBJ invocations to module description.
18273         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18274         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18275
18276 2011-05-23  Bruno Haible  <bruno@clisp.org>
18277
18278         crypto/md5: Move AC_LIBOBJ invocations to module description.
18279         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18280         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18281
18282 2011-05-23  Bruno Haible  <bruno@clisp.org>
18283
18284         crypto/md4: Move AC_LIBOBJ invocations to module description.
18285         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18286         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18287
18288 2011-05-23  Bruno Haible  <bruno@clisp.org>
18289
18290         crypto/md2: Move AC_LIBOBJ invocations to module description.
18291         * m4/md2.m4: Remove file.
18292         * modules/crypto/md2 (Files): Remove it.
18293         (configure.ac): Remove gl_MD2 call.
18294         (Makefile.am): Augment lib_SOURCES.
18295
18296 2011-05-23  Bruno Haible  <bruno@clisp.org>
18297
18298         long-options: Move AC_LIBOBJ invocations to module description.
18299         * m4/long-options.m4: Remove file.
18300         * modules/long-options (Files): Remove it.
18301         (configure.ac): Remove gl_LONG_OPTIONS call.
18302         (Makefile.am): Augment lib_SOURCES.
18303
18304 2011-05-23  Bruno Haible  <bruno@clisp.org>
18305
18306         i-ring: Move AC_LIBOBJ invocations to module description.
18307         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18308         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18309
18310 2011-05-23  Bruno Haible  <bruno@clisp.org>
18311
18312         idcache: Move AC_LIBOBJ invocations to module description.
18313         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18314         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18315
18316 2011-05-23  Bruno Haible  <bruno@clisp.org>
18317
18318         human: Move AC_LIBOBJ invocations to module description.
18319         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18320         * modules/human (Makefile.am): Augment lib_SOURCES.
18321
18322 2011-05-23  Bruno Haible  <bruno@clisp.org>
18323
18324         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18325         * m4/hmac-sha1.m4: Remove file.
18326         * modules/crypto/hmac-sha1 (Files): Remove it.
18327         (configure.ac): Remove gl_HMAC_SHA1 call.
18328         (Makefile.am): Augment lib_SOURCES.
18329
18330 2011-05-23  Bruno Haible  <bruno@clisp.org>
18331
18332         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18333         * m4/hmac-md5.m4: Remove file.
18334         * modules/crypto/hmac-md5 (Files): Remove it.
18335         (configure.ac): Remove gl_HMAC_MD5 call.
18336         (Makefile.am): Augment lib_SOURCES.
18337
18338 2011-05-23  Bruno Haible  <bruno@clisp.org>
18339
18340         hash: Move AC_LIBOBJ invocations to module description.
18341         * m4/hash.m4: Remove file.
18342         * modules/hash (Files): Remove it.
18343         (configure.ac): Remove gl_HASH call.
18344         (Makefile.am): Augment lib_SOURCES.
18345
18346 2011-05-23  Bruno Haible  <bruno@clisp.org>
18347
18348         hard-locale: Move AC_LIBOBJ invocations to module description.
18349         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18350         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18351
18352 2011-05-23  Bruno Haible  <bruno@clisp.org>
18353
18354         getugroups: Move AC_LIBOBJ invocations to module description.
18355         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18356         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18357
18358 2011-05-23  Bruno Haible  <bruno@clisp.org>
18359
18360         gettime: Move AC_LIBOBJ invocations to module description.
18361         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18362         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18363
18364 2011-05-23  Bruno Haible  <bruno@clisp.org>
18365
18366         getndelim2: Move AC_LIBOBJ invocations to module description.
18367         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18368         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18369
18370 2011-05-23  Bruno Haible  <bruno@clisp.org>
18371
18372         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18373         * m4/gc-pbkdf2-sha1.m4: Remove file.
18374         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18375         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18376         (Makefile.am): Augment lib_SOURCES.
18377
18378 2011-05-23  Bruno Haible  <bruno@clisp.org>
18379
18380         fts: Move AC_LIBOBJ invocations to module description.
18381         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18382         * modules/fts (configure.ac): ... to here.
18383
18384 2011-05-23  Bruno Haible  <bruno@clisp.org>
18385
18386         file-type: Move AC_LIBOBJ invocations to module description.
18387         * m4/file-type.m4: Remove file.
18388         * modules/file-type (Files): Remove it.
18389         (configure.ac): Remove gl_FILE_TYPE call.
18390         (Makefile.am): Augment lib_SOURCES.
18391
18392 2011-05-23  Bruno Haible  <bruno@clisp.org>
18393
18394         filenamecat*: Respect rules for use of AC_LIBOBJ.
18395         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18396         Remove AC_LIBOBJ invocation.
18397         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18398         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18399
18400 2011-05-23  Bruno Haible  <bruno@clisp.org>
18401
18402         filemode: Move AC_LIBOBJ invocations to module description.
18403         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18404         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18405
18406 2011-05-23  Bruno Haible  <bruno@clisp.org>
18407
18408         openat-safer: Move AC_LIBOBJ invocations to module description.
18409         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18410         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18411
18412 2011-05-23  Bruno Haible  <bruno@clisp.org>
18413
18414         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18415         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18416         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18417
18418 2011-05-23  Bruno Haible  <bruno@clisp.org>
18419
18420         exclude: Move AC_LIBOBJ invocations to module description.
18421         * m4/exclude.m4: Remove file.
18422         * modules/exclude (Files): Remove it.
18423         (configure.ac): Remove gl_EXCLUDE call.
18424         (Makefile.am): Augment lib_SOURCES.
18425
18426 2011-05-23  Bruno Haible  <bruno@clisp.org>
18427
18428         dirname*: Respect rules for use of AC_LIBOBJ.
18429         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18430         invocations.
18431         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18432         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18433
18434 2011-05-23  Bruno Haible  <bruno@clisp.org>
18435
18436         dirent-safer: Move AC_LIBOBJ invocations to module description.
18437         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18438         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18439
18440 2011-05-23  Bruno Haible  <bruno@clisp.org>
18441
18442         crypto/des: Move AC_LIBOBJ invocations to module description.
18443         * m4/des.m4: Remove file.
18444         * modules/crypto/des (Files): Remove it.
18445         (configure.ac): Remove gl_DES call.
18446         (Makefile.am): Augment lib_SOURCES.
18447
18448 2011-05-23  Bruno Haible  <bruno@clisp.org>
18449
18450         cycle-check: Move AC_LIBOBJ invocations to module description.
18451         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18452         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18453
18454 2011-05-23  Bruno Haible  <bruno@clisp.org>
18455
18456         c-strtold: Move AC_LIBOBJ invocations to module description.
18457         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18458         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18459
18460 2011-05-23  Bruno Haible  <bruno@clisp.org>
18461
18462         c-strtod: Move AC_LIBOBJ invocations to module description.
18463         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18464         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18465
18466 2011-05-23  Bruno Haible  <bruno@clisp.org>
18467
18468         crc: Move AC_LIBOBJ invocations to module description.
18469         * m4/crc.m4: Remove file.
18470         * modules/crc (Files): Remove it.
18471         (configure.ac): Remove gl_CRC call.
18472         (Makefile.am): Augment lib_SOURCES.
18473
18474 2011-05-23  Bruno Haible  <bruno@clisp.org>
18475
18476         close-stream: Move AC_LIBOBJ invocations to module description.
18477         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18478         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18479
18480 2011-05-23  Bruno Haible  <bruno@clisp.org>
18481
18482         closeout: Move AC_LIBOBJ invocations to module description.
18483         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18484         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18485
18486 2011-05-23  Bruno Haible  <bruno@clisp.org>
18487
18488         closein: Move AC_LIBOBJ invocations to module description.
18489         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18490         * modules/closein (Makefile.am): Augment lib_SOURCES.
18491
18492 2011-05-23  Bruno Haible  <bruno@clisp.org>
18493
18494         cloexec: Move AC_LIBOBJ invocations to module description.
18495         * m4/cloexec.m4: Remove file.
18496         * modules/cloexec (Files): Remove it.
18497         (configure.ac): Remove gl_CLOEXEC call.
18498         (Makefile.am): Augment lib_SOURCES.
18499
18500 2011-05-23  Bruno Haible  <bruno@clisp.org>
18501
18502         check-version: Move AC_LIBOBJ invocations to module description.
18503         * m4/check-version.m4: Remove file.
18504         * modules/check-version (Files): Remove it.
18505         (configure.ac): Remove gl_CHECK_VERSION call.
18506         (Makefile.am): Augment lib_SOURCES.
18507
18508 2011-05-23  Bruno Haible  <bruno@clisp.org>
18509
18510         chdir-safer: Move AC_LIBOBJ invocations to module description.
18511         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18512         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18513
18514 2011-05-23  Bruno Haible  <bruno@clisp.org>
18515
18516         canonicalize: Move AC_LIBOBJ invocations to module description.
18517         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18518         AC_LIBOBJ invocation.
18519         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18520
18521 2011-05-23  Bruno Haible  <bruno@clisp.org>
18522
18523         canon-host: Move AC_LIBOBJ invocations to module description.
18524         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18525         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18526         instead of gl_CANON_HOST.
18527         (Makefile.am): Augment lib_SOURCES.
18528
18529 2011-05-23  Bruno Haible  <bruno@clisp.org>
18530
18531         backupfile: Move AC_LIBOBJ invocations to module description.
18532         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18533         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18534
18535 2011-05-23  Bruno Haible  <bruno@clisp.org>
18536
18537         argmatch: Move AC_LIBOBJ invocations to module description.
18538         * m4/argmatch.m4: Remove file.
18539         * modules/argmatch (Files): Remove it.
18540         (configure.ac): Remove gl_ARGMATCH call.
18541         (Makefile.am): Augment lib_SOURCES.
18542
18543 2011-05-23  Bruno Haible  <bruno@clisp.org>
18544
18545         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18546         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18547         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18548
18549 2011-05-23  Bruno Haible  <bruno@clisp.org>
18550
18551         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18552         * m4/arcfour.m4: Remove file.
18553         * modules/crypto/arcfour (Files): Remove it.
18554         (configure.ac): Remove gl_ARCFOUR call.
18555         (Makefile.am): Augment lib_SOURCES.
18556
18557 2011-05-22  Bruno Haible  <bruno@clisp.org>
18558
18559         write: Move AC_LIBOBJ invocations to module description.
18560         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18561         * modules/write (configure.ac): ... to here.
18562
18563 2011-05-22  Bruno Haible  <bruno@clisp.org>
18564
18565         wmemset: Move AC_LIBOBJ invocations to module description.
18566         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18567         here...
18568         * modules/wmemset (configure.ac): ... to here.
18569
18570 2011-05-22  Bruno Haible  <bruno@clisp.org>
18571
18572         wmemmove: Move AC_LIBOBJ invocations to module description.
18573         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18574         here...
18575         * modules/wmemmove (configure.ac): ... to here.
18576
18577 2011-05-22  Bruno Haible  <bruno@clisp.org>
18578
18579         wmemcpy: Move AC_LIBOBJ invocations to module description.
18580         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18581         here...
18582         * modules/wmemcpy (configure.ac): ... to here.
18583
18584 2011-05-22  Bruno Haible  <bruno@clisp.org>
18585
18586         wmemcmp: Move AC_LIBOBJ invocations to module description.
18587         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18588         here...
18589         * modules/wmemcmp (configure.ac): ... to here.
18590
18591 2011-05-22  Bruno Haible  <bruno@clisp.org>
18592
18593         wmemchr: Move AC_LIBOBJ invocations to module description.
18594         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18595         here...
18596         * modules/wmemchr (configure.ac): ... to here.
18597
18598 2011-05-22  Bruno Haible  <bruno@clisp.org>
18599
18600         wcswidth: Move AC_LIBOBJ invocations to module description.
18601         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18602         here...
18603         * modules/wcswidth (configure.ac): ... to here.
18604
18605 2011-05-22  Bruno Haible  <bruno@clisp.org>
18606
18607         wcwidth: Respect rules for use of AC_LIBOBJ.
18608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18609         invocation from here...
18610         * modules/wcwidth (configure.ac): ... to here.
18611         (Depends-on): Update conditions.
18612
18613 2011-05-22  Bruno Haible  <bruno@clisp.org>
18614
18615         wctype: Move AC_LIBOBJ invocations to module description.
18616         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18617         invocation from here...
18618         * modules/wctype (configure.ac): ... to here.
18619         (Depends-on): Update conditions.
18620
18621 2011-05-22  Bruno Haible  <bruno@clisp.org>
18622
18623         wctrans: Move AC_LIBOBJ invocations to module description.
18624         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18625         invocation from here...
18626         * modules/wctrans (configure.ac): ... to here.
18627
18628 2011-05-22  Bruno Haible  <bruno@clisp.org>
18629
18630         wctomb: Move AC_LIBOBJ invocations to module description.
18631         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18632         invocations from here...
18633         * modules/wctomb (configure.ac): ... to here.
18634
18635 2011-05-22  Bruno Haible  <bruno@clisp.org>
18636
18637         wctob: Move AC_LIBOBJ invocations to module description.
18638         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18639         gl_PREREQ_WCTOB invocations from here...
18640         * modules/wctob (configure.ac): ... to here.
18641         (Depends-on): Update conditions.
18642
18643 2011-05-22  Bruno Haible  <bruno@clisp.org>
18644
18645         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18646         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18647         here...
18648         * modules/wcsxfrm (configure.ac): ... to here.
18649
18650 2011-05-22  Bruno Haible  <bruno@clisp.org>
18651
18652         wcstok: Move AC_LIBOBJ invocations to module description.
18653         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18654         * modules/wcstok (configure.ac): ... to here.
18655
18656 2011-05-22  Bruno Haible  <bruno@clisp.org>
18657
18658         wcsstr: Move AC_LIBOBJ invocations to module description.
18659         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18660         * modules/wcsstr (configure.ac): ... to here.
18661
18662 2011-05-22  Bruno Haible  <bruno@clisp.org>
18663
18664         wcsspn: Move AC_LIBOBJ invocations to module description.
18665         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18666         * modules/wcsspn (configure.ac): ... to here.
18667
18668 2011-05-22  Bruno Haible  <bruno@clisp.org>
18669
18670         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18671         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18672         gl_PREREQ_WCSRTOMBS invocations from here...
18673         * modules/wcsrtombs (configure.ac): ... to here.
18674
18675 2011-05-22  Bruno Haible  <bruno@clisp.org>
18676
18677         wcsrchr: Move AC_LIBOBJ invocations to module description.
18678         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18679         here...
18680         * modules/wcsrchr (configure.ac): ... to here.
18681
18682 2011-05-22  Bruno Haible  <bruno@clisp.org>
18683
18684         wcspbrk: Move AC_LIBOBJ invocations to module description.
18685         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18686         here...
18687         * modules/wcspbrk (configure.ac): ... to here.
18688
18689 2011-05-22  Bruno Haible  <bruno@clisp.org>
18690
18691         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18692         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18693         gl_PREREQ_WCSNRTOMBS invocations from here...
18694         * modules/wcsnrtombs (configure.ac): ... to here.
18695
18696 2011-05-22  Bruno Haible  <bruno@clisp.org>
18697
18698         wcsnlen: Move AC_LIBOBJ invocations to module description.
18699         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18700         here...
18701         * modules/wcsnlen (configure.ac): ... to here.
18702
18703 2011-05-22  Bruno Haible  <bruno@clisp.org>
18704
18705         wcsncpy: Move AC_LIBOBJ invocations to module description.
18706         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18707         here...
18708         * modules/wcsncpy (configure.ac): ... to here.
18709
18710 2011-05-22  Bruno Haible  <bruno@clisp.org>
18711
18712         wcsncmp: Move AC_LIBOBJ invocations to module description.
18713         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18714         here...
18715         * modules/wcsncmp (configure.ac): ... to here.
18716
18717 2011-05-22  Bruno Haible  <bruno@clisp.org>
18718
18719         wcsncat: Move AC_LIBOBJ invocations to module description.
18720         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18721         here...
18722         * modules/wcsncat (configure.ac): ... to here.
18723
18724 2011-05-22  Bruno Haible  <bruno@clisp.org>
18725
18726         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18727         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18728         from here...
18729         * modules/wcsncasecmp (configure.ac): ... to here.
18730
18731 2011-05-22  Bruno Haible  <bruno@clisp.org>
18732
18733         wcslen: Move AC_LIBOBJ invocations to module description.
18734         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18735         * modules/wcslen (configure.ac): ... to here.
18736
18737 2011-05-22  Bruno Haible  <bruno@clisp.org>
18738
18739         wcsdup: Move AC_LIBOBJ invocations to module description.
18740         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18741         * modules/wcsdup (configure.ac): ... to here.
18742
18743 2011-05-22  Bruno Haible  <bruno@clisp.org>
18744
18745         wcscspn: Move AC_LIBOBJ invocations to module description.
18746         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18747         here...
18748         * modules/wcscspn (configure.ac): ... to here.
18749
18750 2011-05-22  Bruno Haible  <bruno@clisp.org>
18751
18752         wcscpy: Move AC_LIBOBJ invocations to module description.
18753         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18754         * modules/wcscpy (configure.ac): ... to here.
18755
18756 2011-05-22  Bruno Haible  <bruno@clisp.org>
18757
18758         wcscoll: Move AC_LIBOBJ invocations to module description.
18759         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18760         here...
18761         * modules/wcscoll (configure.ac): ... to here.
18762
18763 2011-05-22  Bruno Haible  <bruno@clisp.org>
18764
18765         wcscmp: Move AC_LIBOBJ invocations to module description.
18766         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18767         * modules/wcscmp (configure.ac): ... to here.
18768
18769 2011-05-22  Bruno Haible  <bruno@clisp.org>
18770
18771         wcschr: Move AC_LIBOBJ invocations to module description.
18772         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18773         * modules/wcschr (configure.ac): ... to here.
18774
18775 2011-05-22  Bruno Haible  <bruno@clisp.org>
18776
18777         wcscat: Move AC_LIBOBJ invocations to module description.
18778         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18779         * modules/wcscat (configure.ac): ... to here.
18780
18781 2011-05-22  Bruno Haible  <bruno@clisp.org>
18782
18783         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18784         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18785         here...
18786         * modules/wcscasecmp (configure.ac): ... to here.
18787
18788 2011-05-22  Bruno Haible  <bruno@clisp.org>
18789
18790         wcrtomb: Move AC_LIBOBJ invocations to module description.
18791         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18792         invocations from here...
18793         * modules/wcrtomb (configure.ac): ... to here.
18794
18795 2011-05-22  Bruno Haible  <bruno@clisp.org>
18796
18797         wcpncpy: Move AC_LIBOBJ invocations to module description.
18798         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18799         here...
18800         * modules/wcpncpy (configure.ac): ... to here.
18801
18802 2011-05-22  Bruno Haible  <bruno@clisp.org>
18803
18804         wcpcpy: Move AC_LIBOBJ invocations to module description.
18805         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18806         * modules/wcpcpy (configure.ac): ... to here.
18807
18808 2011-05-22  Bruno Haible  <bruno@clisp.org>
18809
18810         waitpid: Move AC_LIBOBJ invocations to module description.
18811         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18812         invocation from here...
18813         * modules/waitpid (configure.ac): ... to here.
18814
18815 2011-05-22  Bruno Haible  <bruno@clisp.org>
18816
18817         utimensat: Move AC_LIBOBJ invocations to module description.
18818         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18819         here...
18820         * modules/utimensat (configure.ac): ... to here.
18821
18822 2011-05-22  Bruno Haible  <bruno@clisp.org>
18823
18824         usleep: Move AC_LIBOBJ invocations to module description.
18825         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18826         here...
18827         * modules/usleep (configure.ac): ... to here.
18828
18829 2011-05-22  Bruno Haible  <bruno@clisp.org>
18830
18831         unlockpt: Move AC_LIBOBJ invocations to module description.
18832         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18833         gl_PREREQ_UNLOCKPT invocations from here...
18834         * modules/unlockpt (configure.ac): ... to here.
18835
18836 2011-05-22  Bruno Haible  <bruno@clisp.org>
18837
18838         unlink: Respect rules for use of AC_LIBOBJ.
18839         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18840         * modules/unlink (configure.ac): ... to here.
18841
18842 2011-05-22  Bruno Haible  <bruno@clisp.org>
18843
18844         uname: Move AC_LIBOBJ invocations to module description.
18845         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18846         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18847         here...
18848         * modules/uname (configure.ac): ... to here.
18849
18850 2011-05-22  Bruno Haible  <bruno@clisp.org>
18851
18852         ttyname_r: Move AC_LIBOBJ invocations to module description.
18853         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18854         gl_PREREQ_TTYNAME_R invocations from here...
18855         * modules/ttyname_r (configure.ac): ... to here.
18856
18857 2011-05-22  Bruno Haible  <bruno@clisp.org>
18858
18859         tsearch: Move AC_LIBOBJ invocations to module description.
18860         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18861         invocations from here...
18862         * modules/tsearch (configure.ac): ... to here.
18863
18864 2011-05-22  Bruno Haible  <bruno@clisp.org>
18865
18866         towctrans: Move AC_LIBOBJ invocations to module description.
18867         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18868         AC_LIBOBJ invocation from here...
18869         * modules/towctrans (configure.ac): ... to here.
18870
18871 2011-05-22  Bruno Haible  <bruno@clisp.org>
18872
18873         tmpfile: Move AC_LIBOBJ invocations to module description.
18874         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18875         invocations from here...
18876         * modules/tmpfile (configure.ac): ... to here.
18877
18878 2011-05-22  Bruno Haible  <bruno@clisp.org>
18879
18880         times: Move AC_LIBOBJ invocations to module description.
18881         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18882         * modules/times (configure.ac): ... to here.
18883
18884 2011-05-22  Bruno Haible  <bruno@clisp.org>
18885
18886         time_r: Move AC_LIBOBJ invocations to module description.
18887         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18888         invocations from here...
18889         * modules/time_r (configure.ac): ... to here.
18890
18891 2011-05-22  Bruno Haible  <bruno@clisp.org>
18892
18893         timegm: Move AC_LIBOBJ invocations to module description.
18894         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18895         invocations from here...
18896         * modules/timegm (configure.ac): ... to here.
18897
18898 2011-05-22  Bruno Haible  <bruno@clisp.org>
18899
18900         tcgetsid: Move AC_LIBOBJ invocations to module description.
18901         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18902         and gl_PREREQ_TCGETSID invocations from here...
18903         * modules/tcgetsid (configure.ac): ... to here.
18904         (Depends-on): Update conditions.
18905
18906 2011-05-22  Bruno Haible  <bruno@clisp.org>
18907
18908         symlinkat: Move AC_LIBOBJ invocations to module description.
18909         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18910         here...
18911         * modules/symlinkat (configure.ac): ... to here.
18912
18913 2011-05-22  Bruno Haible  <bruno@clisp.org>
18914
18915         symlink: Move AC_LIBOBJ invocations to module description.
18916         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18917         here...
18918         * modules/symlink (configure.ac): ... to here.
18919
18920 2011-05-22  Bruno Haible  <bruno@clisp.org>
18921
18922         strverscmp: Move AC_LIBOBJ invocations to module description.
18923         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18924         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18925         from here...
18926         * modules/strverscmp (configure.ac): ... to here.
18927
18928 2011-05-22  Bruno Haible  <bruno@clisp.org>
18929
18930         strtok_r: Move AC_LIBOBJ invocations to module description.
18931         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18932         and gl_PREREQ_STRTOK_R invocations from here...
18933         * modules/strtok_r (configure.ac): ... to here.
18934         (Depends-on): Update conditions.
18935
18936 2011-05-22  Bruno Haible  <bruno@clisp.org>
18937
18938         strtoumax: Move AC_LIBOBJ invocations to module description.
18939         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18940         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18941         from here...
18942         * modules/strtoumax (configure.ac): ... to here.
18943
18944 2011-05-22  Bruno Haible  <bruno@clisp.org>
18945
18946         strtoimax: Move AC_LIBOBJ invocations to module description.
18947         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18949         from here...
18950         * modules/strtoimax (configure.ac): ... to here.
18951
18952 2011-05-22  Bruno Haible  <bruno@clisp.org>
18953
18954         strtoull: Move AC_LIBOBJ invocations to module description.
18955         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18956         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18957         from here...
18958         * modules/strtoull (configure.ac): ... to here.
18959
18960 2011-05-22  Bruno Haible  <bruno@clisp.org>
18961
18962         strtoll: Move AC_LIBOBJ invocations to module description.
18963         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18964         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18965         here...
18966         * modules/strtoll (configure.ac): ... to here.
18967
18968 2011-05-22  Bruno Haible  <bruno@clisp.org>
18969
18970         strtoul: Move AC_LIBOBJ invocations to module description.
18971         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18972         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18973         * modules/strtoul (configure.ac): ... to here.
18974
18975 2011-05-22  Bruno Haible  <bruno@clisp.org>
18976
18977         strtol: Move AC_LIBOBJ invocations to module description.
18978         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18979         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18980         * modules/strtol (configure.ac): ... to here.
18981
18982 2011-05-22  Bruno Haible  <bruno@clisp.org>
18983
18984         strtod: Move AC_LIBOBJ invocations to module description.
18985         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18986         invocations from here...
18987         * modules/strtod (configure.ac): ... to here.
18988
18989 2011-05-22  Bruno Haible  <bruno@clisp.org>
18990
18991         strstr*: Move AC_LIBOBJ invocations to module description.
18992         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18993         invocations from here...
18994         * modules/strstr-simple (configure.ac): ... to here.
18995         * modules/strstr (configure.ac): ... and here.
18996
18997 2011-05-22  Bruno Haible  <bruno@clisp.org>
18998
18999         strsignal: Move AC_LIBOBJ invocations to module description.
19000         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
19001         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
19002         * modules/strsignal (configure.ac): ... to here.
19003         (Depends-on): Update conditions.
19004
19005 2011-05-22  Bruno Haible  <bruno@clisp.org>
19006
19007         strsep: Move AC_LIBOBJ invocations to module description.
19008         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
19009         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
19010         here...
19011         * modules/strsep (configure.ac): ... to here.
19012
19013 2011-05-22  Bruno Haible  <bruno@clisp.org>
19014
19015         strptime: Move AC_LIBOBJ invocations to module description.
19016         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
19017         gl_PREREQ_STRPTIME invocations from here...
19018         * modules/strptime (configure.ac): ... to here.
19019
19020 2011-05-22  Bruno Haible  <bruno@clisp.org>
19021
19022         strpbrk: Move AC_LIBOBJ invocations to module description.
19023         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
19024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
19025         here...
19026         * modules/strpbrk (configure.ac): ... to here.
19027
19028 2011-05-22  Bruno Haible  <bruno@clisp.org>
19029
19030         strnlen: Move AC_LIBOBJ invocations to module description.
19031         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
19032         invocations from here...
19033         * modules/strnlen (configure.ac): ... to here.
19034
19035 2011-05-22  Bruno Haible  <bruno@clisp.org>
19036
19037         strndup: Move AC_LIBOBJ invocations to module description.
19038         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
19039         invocations from here...
19040         * modules/strndup (configure.ac): ... to here.
19041         (Depends-on): Update conditions.
19042
19043 2011-05-22  Bruno Haible  <bruno@clisp.org>
19044
19045         strncat: Move AC_LIBOBJ invocations to module description.
19046         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
19047         invocations from here...
19048         * modules/strncat (configure.ac): ... to here.
19049
19050 2011-05-22  Bruno Haible  <bruno@clisp.org>
19051
19052         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
19053         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
19054         invocations from here...
19055         * modules/strdup (configure.ac): ... to here.
19056         * modules/strdup-posix (configure.ac): ... and here.
19057
19058 2011-05-22  Bruno Haible  <bruno@clisp.org>
19059
19060         strcspn: Move AC_LIBOBJ invocations to module description.
19061         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
19062         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
19063         here...
19064         * modules/strcspn (configure.ac): ... to here.
19065
19066 2011-05-22  Bruno Haible  <bruno@clisp.org>
19067
19068         strchrnul: Move AC_LIBOBJ invocations to module description.
19069         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
19070         gl_PREREQ_STRCHRNUL invocations from here...
19071         * modules/strchrnul (configure.ac): ... to here.
19072
19073 2011-05-22  Bruno Haible  <bruno@clisp.org>
19074
19075         strcasestr*: Move AC_LIBOBJ invocations to module description.
19076         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19077         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
19078         * modules/strcasestr-simple (configure.ac): ... to here.
19079         * modules/strcasestr (configure.ac): ... and here.
19080
19081 2011-05-22  Bruno Haible  <bruno@clisp.org>
19082
19083         strcase: Move AC_LIBOBJ invocations to module description.
19084         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
19085         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
19086         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
19087         gl_PREREQ_STRNCASECMP invocations from here...
19088         * modules/strcase (configure.ac): ... to here.
19089
19090 2011-05-22  Bruno Haible  <bruno@clisp.org>
19091
19092         stpncpy: Move AC_LIBOBJ invocations to module description.
19093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
19094         here...
19095         * modules/stpncpy (configure.ac): ... to here.
19096
19097 2011-05-22  Bruno Haible  <bruno@clisp.org>
19098
19099         stpcpy: Move AC_LIBOBJ invocations to module description.
19100         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
19101         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
19102         here...
19103         * modules/stpcpy (configure.ac): ... to here.
19104
19105 2011-05-21  Bruno Haible  <bruno@clisp.org>
19106
19107         stat: Move AC_LIBOBJ invocations to module description.
19108         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
19109         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
19110         here...
19111         * modules/stat (configure.ac): ... to here.
19112
19113 2011-05-21  Bruno Haible  <bruno@clisp.org>
19114
19115         sleep: Move AC_LIBOBJ invocations to module description.
19116         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
19117         * modules/sleep (configure.ac): ... to here.
19118
19119 2011-05-21  Bruno Haible  <bruno@clisp.org>
19120
19121         signbit: Move AC_LIBOBJ invocations to module description.
19122         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
19123         * modules/signbit (configure.ac): ... to here.
19124
19125 2011-05-21  Bruno Haible  <bruno@clisp.org>
19126
19127         sigprocmask: Move AC_LIBOBJ invocations to module description.
19128         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
19129         gl_PREREQ_SIGPROMASK invocations from here...
19130         * modules/sigprocmask (configure.ac): ... to here.
19131
19132 2011-05-21  Bruno Haible  <bruno@clisp.org>
19133
19134         sigaction: Move AC_LIBOBJ invocations to module description.
19135         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
19136         gl_PREREQ_SIGACTION invocations from here...
19137         * modules/sigaction (configure.ac): ... to here.
19138
19139 2011-05-21  Bruno Haible  <bruno@clisp.org>
19140
19141         sig2str: Move AC_LIBOBJ invocations to module description.
19142         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
19143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
19144         here...
19145         * modules/sig2str (configure.ac): ... to here.
19146
19147 2011-05-21  Bruno Haible  <bruno@clisp.org>
19148
19149         setlocale: Move AC_LIBOBJ invocations to module description.
19150         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
19151         gl_PREREQ_SETLOCALE invocations from here...
19152         * modules/setlocale (configure.ac): ... to here.
19153
19154 2011-05-21  Bruno Haible  <bruno@clisp.org>
19155
19156         unsetenv: Move AC_LIBOBJ invocations to module description.
19157         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
19158         and gl_PREREQ_UNSETENV invocations from here...
19159         * modules/unsetenv (configure.ac): ... to here.
19160         (Depends-on): Update.
19161
19162 2011-05-21  Bruno Haible  <bruno@clisp.org>
19163
19164         setenv: Move AC_LIBOBJ invocations to module description.
19165         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
19166         here...
19167         * modules/setenv (configure.ac): ... to here.
19168
19169 2011-05-21  Bruno Haible  <bruno@clisp.org>
19170
19171         selinux-h: Move AC_LIBOBJ invocations to module description.
19172         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
19173         AC_LIBOBJ invocation from here...
19174         * modules/selinux-h (configure.ac): ... to here.
19175
19176 2011-05-21  Bruno Haible  <bruno@clisp.org>
19177
19178         select: Respect rules for use of AC_LIBOBJ.
19179         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19180         here...
19181         * modules/select (configure.ac): ... to here.
19182
19183 2011-05-21  Bruno Haible  <bruno@clisp.org>
19184
19185         scandir: Move AC_LIBOBJ invocations to module description.
19186         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
19187         invocations from here...
19188         * modules/scandir (configure.ac): ... to here.
19189
19190 2011-05-21  Bruno Haible  <bruno@clisp.org>
19191
19192         rpmatch: Move AC_LIBOBJ invocations to module description.
19193         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
19194         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
19195         here...
19196         * modules/rpmatch (configure.ac): ... to here.
19197
19198 2011-05-21  Bruno Haible  <bruno@clisp.org>
19199
19200         rmdir: Respect rules for use of AC_LIBOBJ.
19201         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
19202         * modules/rmdir (configure.ac): ... to here.
19203
19204 2011-05-21  Bruno Haible  <bruno@clisp.org>
19205
19206         renameat: Move AC_LIBOBJ invocations to module description.
19207         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19208         here...
19209         * modules/renameat (configure.ac): ... to here.
19210
19211 2011-05-21  Bruno Haible  <bruno@clisp.org>
19212
19213         rename: Respect rules for use of AC_LIBOBJ.
19214         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19215         here...
19216         * modules/rename (configure.ac): ... to here.
19217
19218 2011-05-21  Bruno Haible  <bruno@clisp.org>
19219
19220         remove: Move AC_LIBOBJ invocations to module description.
19221         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19222         here...
19223         * modules/remove (configure.ac): ... to here.
19224
19225 2011-05-21  Bruno Haible  <bruno@clisp.org>
19226
19227         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19228         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19229         macro.
19230         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19231         * modules/relocatable-lib (configure.ac): ... to here.
19232         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19233         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19234
19235 2011-05-21  Bruno Haible  <bruno@clisp.org>
19236
19237         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19238         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19239         here...
19240         * modules/relocatable-prog (configure.ac): ... to here.
19241
19242 2011-05-21  Bruno Haible  <bruno@clisp.org>
19243
19244         regex: Move AC_LIBOBJ invocations to module description.
19245         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19246         invocations from here...
19247         * modules/regex (configure.ac): ... to here.
19248
19249 2011-05-21  Bruno Haible  <bruno@clisp.org>
19250
19251         realloc-*: Move AC_LIBOBJ invocations to module description.
19252         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19253         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19254         AC_LIBOBJ invocations from here...
19255         * modules/realloc-gnu (configure.ac): ... to here.
19256         * modules/realloc-posix (configure.ac): ... and here.
19257
19258 2011-05-21  Bruno Haible  <bruno@clisp.org>
19259
19260         readutmp: Move AC_LIBOBJ invocations to module description.
19261         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19262         * modules/readutmp (configure.ac): ... to here.
19263
19264 2011-05-21  Bruno Haible  <bruno@clisp.org>
19265
19266         readlinkat: Move AC_LIBOBJ invocations to module description.
19267         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19268         here...
19269         * modules/readlinkat (configure.ac): ... to here.
19270
19271 2011-05-21  Bruno Haible  <bruno@clisp.org>
19272
19273         readlink: Move AC_LIBOBJ invocations to module description.
19274         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19275         gl_PREREQ_READLINK invocations from here...
19276         * modules/readlink (configure.ac): ... to here.
19277
19278 2011-05-21  Bruno Haible  <bruno@clisp.org>
19279
19280         readline: Move AC_LIBOBJ invocations to module description.
19281         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19282         gl_PREREQ_READLINE invocations from here...
19283         * modules/readline (configure.ac): ... to here.
19284
19285 2011-05-21  Bruno Haible  <bruno@clisp.org>
19286
19287         read: Move AC_LIBOBJ invocations to module description.
19288         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19289         * modules/read (configure.ac): ... to here.
19290
19291 2011-05-21  Bruno Haible  <bruno@clisp.org>
19292
19293         rawmemchr: Move AC_LIBOBJ invocations to module description.
19294         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19295         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19296         from here...
19297         * modules/rawmemchr (configure.ac): ... to here.
19298
19299 2011-05-21  Bruno Haible  <bruno@clisp.org>
19300
19301         random_r: Move AC_LIBOBJ invocations to module description.
19302         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19303         gl_PREREQ_RANDOM_R invocations from here...
19304         * modules/random_r (configure.ac): ... to here.
19305
19306 2011-05-21  Bruno Haible  <bruno@clisp.org>
19307
19308         pwrite: Move AC_LIBOBJ invocations to module description.
19309         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19310         * modules/pwrite (configure.ac): ... to here.
19311
19312 2011-05-21  Bruno Haible  <bruno@clisp.org>
19313
19314         putenv: Move AC_LIBOBJ invocations to module description.
19315         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19316         * modules/putenv (configure.ac): ... to here.
19317
19318 2011-05-21  Bruno Haible  <bruno@clisp.org>
19319
19320         login_tty: Move AC_LIBOBJ invocations to module description.
19321         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19322         * modules/login_tty (configure.ac): ... to here.
19323
19324 2011-05-21  Bruno Haible  <bruno@clisp.org>
19325
19326         openpty: Move AC_LIBOBJ invocations to module description.
19327         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19328         * modules/openpty (configure.ac): ... to here.
19329
19330 2011-05-21  Bruno Haible  <bruno@clisp.org>
19331
19332         forkpty: Move AC_LIBOBJ invocations to module description.
19333         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19334         * modules/forkpty (configure.ac): ... to here.
19335
19336 2011-05-21  Bruno Haible  <bruno@clisp.org>
19337
19338         ptsname: Move AC_LIBOBJ invocations to module description.
19339         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19340         invocations from here...
19341         * modules/ptsname (configure.ac): ... to here.
19342
19343 2011-05-21  Bruno Haible  <bruno@clisp.org>
19344
19345         pread: Move AC_LIBOBJ invocations to module description.
19346         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19347         * modules/pread (configure.ac): ... to here.
19348
19349 2011-05-21  Bruno Haible  <bruno@clisp.org>
19350
19351         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19352         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19353         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19354         * modules/posix_spawn (configure.ac): ... to here.
19355         * modules/posix_spawnp (configure.ac): ... and here.
19356
19357 2011-05-21  Bruno Haible  <bruno@clisp.org>
19358
19359         popen: Move AC_LIBOBJ invocations to module description.
19360         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19361         invocations from here...
19362         * modules/popen (configure.ac): ... to here.
19363
19364 2011-05-21  Bruno Haible  <bruno@clisp.org>
19365
19366         poll: Move AC_LIBOBJ invocations to module description.
19367         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19368         invocations from here...
19369         * modules/poll (configure.ac): ... to here.
19370
19371 2011-05-21  Bruno Haible  <bruno@clisp.org>
19372
19373         pipe-posix: Move AC_LIBOBJ invocations to module description.
19374         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19375         * modules/pipe-posix (configure.ac): ... to here.
19376
19377 2011-05-21  Bruno Haible  <bruno@clisp.org>
19378
19379         openat: Respect rules for use of AC_LIBOBJ.
19380         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19381         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19382         * modules/openat (configure.ac): ... to here.
19383
19384 2011-05-21  Bruno Haible  <bruno@clisp.org>
19385
19386         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19387         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19388         invocation from here...
19389         * modules/obstack-printf (configure.ac): ... to here.
19390         * modules/obstack-printf-posix (configure.ac): ... and here.
19391
19392 2011-05-21  Bruno Haible  <bruno@clisp.org>
19393
19394         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19395         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19396         from here...
19397         * modules/nl_langinfo (configure.ac): ... to here.
19398
19399 2011-05-21  Bruno Haible  <bruno@clisp.org>
19400
19401         nanosleep: Move AC_LIBOBJ invocations to module description.
19402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19403         gl_PREREQ_NANOSLEEP invocations from here...
19404         * modules/nanosleep (configure.ac): ... to here.
19405
19406 2011-05-21  Bruno Haible  <bruno@clisp.org>
19407
19408         mountlist: Move AC_LIBOBJ invocations to module description.
19409         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19410         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19411         * modules/mountlist (configure.ac): ... to here.
19412
19413 2011-05-21  Bruno Haible  <bruno@clisp.org>
19414
19415         mktime: Respect rules for use of AC_LIBOBJ.
19416         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19417         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19418         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19419         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19420         * modules/mktime (configure.ac): ... to here.
19421         * modules/mktime-internal (configure.ac): ... and here.
19422         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19423
19424 2011-05-21  Bruno Haible  <bruno@clisp.org>
19425
19426         mkstemps: Move AC_LIBOBJ invocations to module description.
19427         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19428         here...
19429         * modules/mkstemps (configure.ac): ... to here.
19430
19431 2011-05-21  Bruno Haible  <bruno@clisp.org>
19432
19433         mkstemp: Move AC_LIBOBJ invocations to module description.
19434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19435         gl_PREREQ_MKSTEMP invocations from here...
19436         * modules/mkstemp (configure.ac): ... to here.
19437
19438 2011-05-21  Bruno Haible  <bruno@clisp.org>
19439
19440         mkostemps: Move AC_LIBOBJ invocations to module description.
19441         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19442         here...
19443         * modules/mkostemps (configure.ac): ... to here.
19444
19445 2011-05-21  Bruno Haible  <bruno@clisp.org>
19446
19447         mkostemp: Move AC_LIBOBJ invocations to module description.
19448         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19449         gl_PREREQ_MKOSTEMP invocations from here...
19450         * modules/mkostemp (configure.ac): ... to here.
19451
19452 2011-05-21  Bruno Haible  <bruno@clisp.org>
19453
19454         mknod: Move AC_LIBOBJ invocations to module description.
19455         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19456         * modules/mknod (configure.ac): ... to here.
19457
19458 2011-05-21  Bruno Haible  <bruno@clisp.org>
19459
19460         mkfifoat: Move AC_LIBOBJ invocations to module description.
19461         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19462         here...
19463         * modules/mkfifoat (configure.ac): ... to here.
19464
19465 2011-05-21  Bruno Haible  <bruno@clisp.org>
19466
19467         mkfifo: Respect rules for use of AC_LIBOBJ.
19468         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19469         here...
19470         * modules/mkfifo (configure.ac): ... to here.
19471
19472 2011-05-21  Bruno Haible  <bruno@clisp.org>
19473
19474         mkdtemp: Move AC_LIBOBJ invocations to module description.
19475         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19476         invocations from here...
19477         * modules/mkdtemp (configure.ac): ... to here.
19478
19479 2011-05-21  Bruno Haible  <bruno@clisp.org>
19480
19481         mkdir: Move AC_LIBOBJ invocations to module description.
19482         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19483         * modules/mkdir (configure.ac): ... to here.
19484
19485 2011-05-21  Bruno Haible  <bruno@clisp.org>
19486
19487         memset: Move AC_LIBOBJ invocations to module description.
19488         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19489         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19490         here...
19491         * modules/memset (configure.ac): ... to here.
19492
19493 2011-05-21  Bruno Haible  <bruno@clisp.org>
19494
19495         memrchr: Move AC_LIBOBJ invocations to module description.
19496         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19497         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19498         here...
19499         * modules/memrchr (configure.ac): ... to here.
19500
19501 2011-05-21  Bruno Haible  <bruno@clisp.org>
19502
19503         mempcpy: Move AC_LIBOBJ invocations to module description.
19504         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19505         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19506         here...
19507         * modules/mempcpy (configure.ac): ... to here.
19508
19509 2011-05-21  Bruno Haible  <bruno@clisp.org>
19510
19511         memmove: Move AC_LIBOBJ invocations to module description.
19512         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19513         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19514         here...
19515         * modules/memmove (configure.ac): ... to here.
19516
19517 2011-05-21  Bruno Haible  <bruno@clisp.org>
19518
19519         memmem*: Move AC_LIBOBJ invocations to module description.
19520         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19521         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19522         here...
19523         (gl_FUNC_MEMMEM): ... and here...
19524         * modules/memmem-simple (configure.ac): ... to here.
19525         * modules/memmem (configure.ac): ... and here.
19526
19527 2011-05-21  Bruno Haible  <bruno@clisp.org>
19528
19529         memcpy: Move AC_LIBOBJ invocations to module description.
19530         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19531         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19532         here...
19533         * modules/memcpy (configure.ac): ... to here.
19534
19535 2011-05-21  Bruno Haible  <bruno@clisp.org>
19536
19537         memcmp: Simplify autoconf macro.
19538         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19539         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19540         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19541
19542 2011-05-21  Bruno Haible  <bruno@clisp.org>
19543
19544         memcmp: Move AC_LIBOBJ invocations to module description.
19545         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19546         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19547         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19548         * modules/memcmp (configure.ac): ... to here.
19549         (Depends-on): Update conditions.
19550
19551 2011-05-21  Bruno Haible  <bruno@clisp.org>
19552
19553         memchr: Respect rules for use of AC_LIBOBJ.
19554         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19555         invocations from here...
19556         * modules/memchr (configure.ac): ... to here.
19557
19558 2011-05-21  Bruno Haible  <bruno@clisp.org>
19559
19560         mbtowc: Move AC_LIBOBJ invocations to module description.
19561         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19562         invocations from here...
19563         * modules/mbtowc (configure.ac): ... to here.
19564
19565 2011-05-21  Bruno Haible  <bruno@clisp.org>
19566
19567         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19568         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19569         gl_PREREQ_MBSRTOWCS invocations from here...
19570         * modules/mbsrtowcs (configure.ac): ... to here.
19571
19572 2011-05-21  Bruno Haible  <bruno@clisp.org>
19573
19574         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19575         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19576         gl_PREREQ_MBSNRTOWCS invocations from here...
19577         * modules/mbsnrtowcs (configure.ac): ... to here.
19578
19579 2011-05-21  Bruno Haible  <bruno@clisp.org>
19580
19581         mbsinit: Move AC_LIBOBJ invocations to module description.
19582         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19583         invocations from here...
19584         * modules/mbsinit (configure.ac): ... to here.
19585
19586 2011-05-21  Bruno Haible  <bruno@clisp.org>
19587
19588         mbrlen: Move AC_LIBOBJ invocations to module description.
19589         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19590         invocations from here...
19591         * modules/mbrlen (configure.ac): ... to here.
19592
19593 2011-05-21  Bruno Haible  <bruno@clisp.org>
19594
19595         mbrtowc: Respect rules for use of AC_LIBOBJ.
19596         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19597         invocations from here...
19598         * modules/mbrtowc (configure.ac): ... to here.
19599
19600 2011-05-21  Bruno Haible  <bruno@clisp.org>
19601
19602         malloc-*: Move AC_LIBOBJ invocations to module description.
19603         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19604         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19605         AC_LIBOBJ invocations from here...
19606         * modules/malloc-gnu (configure.ac): ... to here.
19607         * modules/malloc-posix (configure.ac): ... and here.
19608
19609 2011-05-21  Bruno Haible  <bruno@clisp.org>
19610
19611         lstat, openat: Respect rules for use of AC_LIBOBJ.
19612         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19613         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19614         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19615         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19616         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19617         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19618         here.
19619         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19620
19621 2011-05-21  Bruno Haible  <bruno@clisp.org>
19622
19623         lseek: Move AC_LIBOBJ invocations to module description.
19624         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19625         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19626         * modules/lseek (configure.ac): ... to here.
19627
19628 2011-05-21  Bruno Haible  <bruno@clisp.org>
19629
19630         linkat: Move AC_LIBOBJ invocations to module description.
19631         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19632         here...
19633         * modules/linkat (configure.ac): ... to here.
19634
19635 2011-05-21  Bruno Haible  <bruno@clisp.org>
19636
19637         link: Respect rules for use of AC_LIBOBJ.
19638         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19639         * modules/link (configure.ac): ... to here.
19640
19641 2011-05-21  Bruno Haible  <bruno@clisp.org>
19642
19643         lchown: Move AC_LIBOBJ invocations to module description.
19644         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19645         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19646         * modules/lchown (configure.ac): ... to here.
19647
19648 2011-05-21  Bruno Haible  <bruno@clisp.org>
19649
19650         iswctype: Move AC_LIBOBJ invocations to module description.
19651         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19652         here...
19653         * modules/iswctype (configure.ac): ... to here.
19654
19655 2011-05-21  Bruno Haible  <bruno@clisp.org>
19656
19657         iswblank: Move AC_LIBOBJ invocations to module description.
19658         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19659         here...
19660         * modules/iswblank (configure.ac): ... to here.
19661
19662 2011-05-21  Bruno Haible  <bruno@clisp.org>
19663
19664         atanl: Move AC_LIBOBJ invocations to module description.
19665         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19666         * modules/atanl (configure.ac): ... to here.
19667
19668 2011-05-21  Bruno Haible  <bruno@clisp.org>
19669
19670         acosl: Move AC_LIBOBJ invocations to module description.
19671         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19672         * modules/acosl (configure.ac): ... to here.
19673
19674 2011-05-21  Bruno Haible  <bruno@clisp.org>
19675
19676         asinl: Respect rules for use of AC_LIBOBJ.
19677         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19678         * modules/asinl (configure.ac): ... to here.
19679
19680 2011-05-21  Bruno Haible  <bruno@clisp.org>
19681
19682         tanl: Move AC_LIBOBJ invocations to module description.
19683         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19684         * modules/tanl (configure.ac): ... to here.
19685
19686 2011-05-21  Bruno Haible  <bruno@clisp.org>
19687
19688         cosl: Move AC_LIBOBJ invocations to module description.
19689         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19690         * modules/cosl (configure.ac): ... to here.
19691
19692 2011-05-21  Bruno Haible  <bruno@clisp.org>
19693
19694         sinl: Move AC_LIBOBJ invocations to module description.
19695         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19696         * modules/sinl (configure.ac): ... to here.
19697
19698 2011-05-21  Bruno Haible  <bruno@clisp.org>
19699
19700         logl: Move AC_LIBOBJ invocations to module description.
19701         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19702         * modules/logl (configure.ac): ... to here.
19703
19704 2011-05-21  Bruno Haible  <bruno@clisp.org>
19705
19706         expl: Move AC_LIBOBJ invocations to module description.
19707         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19708         * modules/expl (configure.ac): ... to here.
19709
19710 2011-05-21  Bruno Haible  <bruno@clisp.org>
19711
19712         roundl: Move AC_LIBOBJ invocations to module description.
19713         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19714         * modules/roundl (configure.ac): ... to here.
19715
19716 2011-05-21  Bruno Haible  <bruno@clisp.org>
19717
19718         round: Move AC_LIBOBJ invocations to module description.
19719         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19720         * modules/round (configure.ac): ... to here.
19721
19722 2011-05-21  Bruno Haible  <bruno@clisp.org>
19723
19724         roundf: Move AC_LIBOBJ invocations to module description.
19725         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19726         * modules/roundf (configure.ac): ... to here.
19727
19728 2011-05-21  Bruno Haible  <bruno@clisp.org>
19729
19730         truncl: Move AC_LIBOBJ invocations to module description.
19731         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19732         * modules/truncl (configure.ac): ... to here.
19733
19734 2011-05-21  Bruno Haible  <bruno@clisp.org>
19735
19736         trunc: Move AC_LIBOBJ invocations to module description.
19737         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19738         * modules/trunc (configure.ac): ... to here.
19739
19740 2011-05-21  Bruno Haible  <bruno@clisp.org>
19741
19742         truncf: Move AC_LIBOBJ invocations to module description.
19743         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19744         * modules/truncf (configure.ac): ... to here.
19745
19746 2011-05-21  Bruno Haible  <bruno@clisp.org>
19747
19748         ceill: Move AC_LIBOBJ invocations to module description.
19749         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19750         * modules/ceill (configure.ac): ... to here.
19751
19752 2011-05-21  Bruno Haible  <bruno@clisp.org>
19753
19754         ceil: Move AC_LIBOBJ invocations to module description.
19755         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19756         * modules/ceil (configure.ac): ... to here.
19757
19758 2011-05-21  Bruno Haible  <bruno@clisp.org>
19759
19760         ceilf: Move AC_LIBOBJ invocations to module description.
19761         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19762         * modules/ceilf (configure.ac): ... to here.
19763
19764 2011-05-21  Bruno Haible  <bruno@clisp.org>
19765
19766         floorl: Respect rules for use of AC_LIBOBJ.
19767         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19768         * modules/floorl (configure.ac): ... to here.
19769
19770 2011-05-21  Bruno Haible  <bruno@clisp.org>
19771
19772         floor: Respect rules for use of AC_LIBOBJ.
19773         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19774         * modules/floor (configure.ac): ... to here.
19775
19776 2011-05-21  Bruno Haible  <bruno@clisp.org>
19777
19778         floorf: Move AC_LIBOBJ invocations to module description.
19779         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19780         * modules/floorf (configure.ac): ... to here.
19781
19782 2011-05-20  Bruno Haible  <bruno@clisp.org>
19783
19784         sqrtl: Respect rules for use of AC_LIBOBJ.
19785         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19786         * modules/sqrtl (configure.ac): ... to here.
19787
19788 2011-05-20  Bruno Haible  <bruno@clisp.org>
19789
19790         ldexpl: Respect rules for use of AC_LIBOBJ.
19791         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19792         * modules/ldexpl (configure.ac): ... to here.
19793
19794 2011-05-20  Bruno Haible  <bruno@clisp.org>
19795
19796         frexpl*: Respect rules for use of AC_LIBOBJ.
19797         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19798         invocation from here...
19799         * modules/frexpl (configure.ac): ... to here.
19800         * modules/frexpl-nolibm (configure.ac): ... and here.
19801
19802 2011-05-20  Bruno Haible  <bruno@clisp.org>
19803
19804         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19805         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19806         invocation from here...
19807         * modules/frexp (configure.ac): ... to here.
19808         * modules/frexp-nolibm (configure.ac): ... and here.
19809
19810 2011-05-20  Bruno Haible  <bruno@clisp.org>
19811
19812         isnan: Respect rules for use of AC_LIBOBJ.
19813         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19814         invocations here.
19815         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19816         REPLACE_ISNAN.
19817         * modules/isnand (configure.ac): Likewise.
19818         * modules/isnanl (configure.ac): Likewise.
19819
19820 2011-05-20  Bruno Haible  <bruno@clisp.org>
19821
19822         isnanl*: Respect rules for use of AC_LIBOBJ.
19823         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19824         invocation from here...
19825         * modules/isnanl (configure.ac): ... to here.
19826         * modules/isnanl-nolibm (configure.ac): ... and here.
19827
19828 2011-05-20  Bruno Haible  <bruno@clisp.org>
19829
19830         isnand*: Move AC_LIBOBJ invocations to module description.
19831         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19832         invocation from here...
19833         * modules/isnand (configure.ac): ... to here.
19834         * modules/isnand-nolibm (configure.ac): ... and here.
19835
19836 2011-05-20  Bruno Haible  <bruno@clisp.org>
19837
19838         isnanf*: Move AC_LIBOBJ invocations to module description.
19839         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19840         invocation from here...
19841         * modules/isnanf (configure.ac): ... to here.
19842         * modules/isnanf-nolibm (configure.ac): ... and here.
19843
19844 2011-05-20  Bruno Haible  <bruno@clisp.org>
19845
19846         isnan*: Separate the AC_LIBOBJ invocations.
19847         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19848         AC_LIBOBJ invocation.
19849         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19850         here.
19851         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19852         AC_LIBOBJ invocation.
19853         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19854         here.
19855         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19856         AC_LIBOBJ invocation.
19857         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19858         here.
19859         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19860
19861 2011-05-08  Bruno Haible  <bruno@clisp.org>
19862
19863         isinf: Move AC_LIBOBJ invocations to module description.
19864         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19865         * modules/isinf (configure.ac): ... to here.
19866
19867 2011-05-08  Bruno Haible  <bruno@clisp.org>
19868
19869         isfinite: Move AC_LIBOBJ invocations to module description.
19870         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19871         * modules/isfinite (configure.ac): ... to here.
19872
19873 2011-05-08  Bruno Haible  <bruno@clisp.org>
19874
19875         isblank: Move AC_LIBOBJ invocations to module description.
19876         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19877         here...
19878         * modules/isblank (configure.ac): ... to here.
19879
19880 2011-05-08  Bruno Haible  <bruno@clisp.org>
19881
19882         isapipe: Move AC_LIBOBJ invocations to module description.
19883         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19884         gl_PREREQ_ISAPIPE invocations from here...
19885         * modules/isapipe (configure.ac): ... to here.
19886         (Depends-on): Update condition.
19887
19888 2011-05-08  Bruno Haible  <bruno@clisp.org>
19889
19890         ioctl: Move AC_LIBOBJ invocations to module description.
19891         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19892         invocations from here...
19893         * modules/ioctl (configure.ac): ... to here.
19894         (Depends-on): Update condition.
19895
19896 2011-05-08  Bruno Haible  <bruno@clisp.org>
19897
19898         imaxdiv: Move AC_LIBOBJ invocations to module description.
19899         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19900         invocations from here...
19901         * modules/imaxdiv (configure.ac): ... to here.
19902
19903 2011-05-08  Bruno Haible  <bruno@clisp.org>
19904
19905         imaxabs: Move AC_LIBOBJ invocations to module description.
19906         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19907         invocations from here...
19908         * modules/imaxabs (configure.ac): ... to here.
19909
19910 2011-05-08  Bruno Haible  <bruno@clisp.org>
19911
19912         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19913         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19914         AC_LIBOBJ invocations from here...
19915         * modules/getaddrinfo (configure.ac): ... to here.
19916         (Depends-on): Add conditions.
19917
19918 2011-05-08  Bruno Haible  <bruno@clisp.org>
19919
19920         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19921         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19922         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19923         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19924         (gl_PREREQ_INET_PTON): ... from here.
19925         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19926         gl_PREREQ_INET_PTON here.
19927         (Depends-on): Update condition.
19928
19929 2011-05-08  Bruno Haible  <bruno@clisp.org>
19930
19931         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19932         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19933         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19934         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19935         (gl_PREREQ_INET_NTOP): ... from here.
19936         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19937         gl_PREREQ_INET_NTOP here.
19938         (Depends-on): Update condition.
19939
19940 2011-05-08  Bruno Haible  <bruno@clisp.org>
19941
19942         iconv_open: Move AC_LIBOBJ invocations to module description.
19943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19944         AC_LIBOBJ invocations from here...
19945         * modules/iconv_open (configure.ac): ... to here.
19946
19947 2011-05-08  Bruno Haible  <bruno@clisp.org>
19948
19949         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19950         If module 'iconv_open' is among the main modules and module
19951         'iconv_open-utf' is among the tests dependencies, then
19952         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19953         return the special iconv_t values. Therefore iconv() and iconv_close()
19954         must support these special iconv_t values, already in lib, not only in
19955         tests.
19956         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19957         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19958         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19959         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19960         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19961         (Depends-on): Add the dependencies of iconv_open-utf.
19962         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19963         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19964         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19965
19966 2011-05-08  Bruno Haible  <bruno@clisp.org>
19967
19968         group-member: Move AC_LIBOBJ invocations to module description.
19969         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19970         gl_PREREQ_GROUP_MEMBER invocations from here...
19971         * modules/group-member (configure.ac): ... to here.
19972
19973 2011-05-08  Bruno Haible  <bruno@clisp.org>
19974
19975         grantpt: Move AC_LIBOBJ invocations to module description.
19976         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19977         invocations from here...
19978         * modules/grantpt (configure.ac): ... to here.
19979
19980 2011-05-08  Bruno Haible  <bruno@clisp.org>
19981
19982         glob: Move AC_LIBOBJ invocations to module description.
19983         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19984         from here...
19985         * modules/glob (configure.ac): ... to here.
19986
19987 2011-05-08  Bruno Haible  <bruno@clisp.org>
19988
19989         getusershell: Move AC_LIBOBJ invocations to module description.
19990         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19991         Move AC_LIBOBJ invocation from here...
19992         * modules/getusershell (configure.ac): ... to here.
19993         (Depends-on): Update condition.
19994
19995 2011-05-08  Bruno Haible  <bruno@clisp.org>
19996
19997         gettimeofday: Move AC_LIBOBJ invocations to module description.
19998         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19999         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
20000         gl_PREREQ_GETTIMEOFDAY invocations from here...
20001         * modules/gettimeofday (configure.ac): ... to here.
20002
20003 2011-05-08  Bruno Haible  <bruno@clisp.org>
20004
20005         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
20006         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
20007         just gl_FUNC_TZSET.
20008         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
20009         (gl_FUNC_TZSET_CLOBBER): Remove actions.
20010         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
20011         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
20012
20013 2011-05-08  Bruno Haible  <bruno@clisp.org>
20014
20015         getsubopt: Move AC_LIBOBJ invocations to module description.
20016         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
20017         gl_PREREQ_GETSUBOPT invocations from here...
20018         * modules/getsubopt (configure.ac): ... to here.
20019
20020 2011-05-08  Bruno Haible  <bruno@clisp.org>
20021
20022         getpass-gnu: Move AC_LIBOBJ invocations to module description.
20023         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
20024         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
20025         * modules/getpass-gnu (configure.ac): ... to here.
20026
20027 2011-05-08  Bruno Haible  <bruno@clisp.org>
20028
20029         getpass: Move AC_LIBOBJ invocations to module description.
20030         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
20031         gl_PREREQ_GETPASS invocations from here...
20032         * modules/getpass (configure.ac): ... to here.
20033
20034 2011-05-08  Bruno Haible  <bruno@clisp.org>
20035
20036         getpagesize: Move AC_LIBOBJ invocations to module description.
20037         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
20038         from here...
20039         * modules/getpagesize (configure.ac): ... to here.
20040
20041 2011-05-08  Bruno Haible  <bruno@clisp.org>
20042
20043         getopt: Move AC_LIBOBJ invocations to module description.
20044         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
20045         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
20046         invocations from here...
20047         * modules/getopt-gnu (configure.ac): ... to here.
20048         * modules/getopt-posix (configure.ac): ... and here.
20049         (Depends-on): Update condition.
20050
20051 2011-05-08  Bruno Haible  <bruno@clisp.org>
20052
20053         getopt, argp: Respect rules for use of AC_LIBOBJ.
20054         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
20055         (gl_REPLACE_GETOPT_ALWAYS): New macro.
20056         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
20057         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
20058
20059 2011-05-08  Bruno Haible  <bruno@clisp.org>
20060
20061         getlogin_r: Move AC_LIBOBJ invocations to module description.
20062         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
20063         gl_PREREQ_GETLOGIN_R invocations from here...
20064         * modules/getlogin_r (configure.ac): ... to here.
20065
20066 2011-05-08  Bruno Haible  <bruno@clisp.org>
20067
20068         getlogin: Move AC_LIBOBJ invocations to module description.
20069         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
20070         here...
20071         * modules/getlogin (configure.ac): ... to here.
20072
20073 2011-05-08  Bruno Haible  <bruno@clisp.org>
20074
20075         getloadavg: Move AC_LIBOBJ invocations to module description.
20076         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
20077         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
20078         * modules/getloadavg (configure.ac): ... to here.
20079
20080 2011-05-08  Bruno Haible  <bruno@clisp.org>
20081
20082         gethrxtime: Move AC_LIBOBJ invocations to module description.
20083         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
20084         LIB_GETHRXTIME from here...
20085         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
20086         invocations from here...
20087         * modules/gethrxtime (configure.ac): ... to here.
20088
20089 2011-05-08  Bruno Haible  <bruno@clisp.org>
20090
20091         gethostname: Move AC_LIBOBJ invocations to module description.
20092         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
20093         gl_PREREQ_GETHOSTNAME invocations from here...
20094         * modules/gethostname (configure.ac): ... to here.
20095
20096 2011-05-08  Bruno Haible  <bruno@clisp.org>
20097
20098         getgroups: Move AC_LIBOBJ invocations to module description.
20099         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
20100         here...
20101         * modules/getgroups (configure.ac): ... to here.
20102
20103 2011-05-08  Bruno Haible  <bruno@clisp.org>
20104
20105         getdtablesize: Move AC_LIBOBJ invocations to module description.
20106         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
20107         invocation from here...
20108         * modules/getdtablesize (configure.ac): ... to here.
20109
20110 2011-05-08  Bruno Haible  <bruno@clisp.org>
20111
20112         getdomainname: Move AC_LIBOBJ invocations to module description.
20113         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
20114         gl_PREREQ_GETDOMAINNAME invocations from here...
20115         * modules/getdomainname (configure.ac): ... to here.
20116
20117 2011-05-08  Bruno Haible  <bruno@clisp.org>
20118
20119         getline: Move AC_LIBOBJ invocations to module description.
20120         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
20121         invocations from here...
20122         * modules/getline (configure.ac): ... to here.
20123
20124 2011-05-08  Bruno Haible  <bruno@clisp.org>
20125
20126         getline: Simplify.
20127         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
20128         It's already handled through the module dependency.
20129
20130 2011-05-08  Bruno Haible  <bruno@clisp.org>
20131
20132         getdelim: Move AC_LIBOBJ invocations to module description.
20133         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
20134         and gl_PREREQ_GETDELIM invocations from here...
20135         * modules/getdelim (configure.ac): ... to here.
20136         (Depends-on): Fix condition.
20137
20138 2011-05-08  Bruno Haible  <bruno@clisp.org>
20139
20140         getcwd: Move AC_LIBOBJ invocations to module description.
20141         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
20142         invocations from here...
20143         * modules/getcwd (configure.ac): ... to here.
20144
20145 2011-05-08  Bruno Haible  <bruno@clisp.org>
20146
20147         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
20148         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
20149         here...
20150         * modules/getcwd-lgpl (configure.ac): ... to here.
20151
20152 2011-05-07  Bruno Haible  <bruno@clisp.org>
20153
20154         crypto/gc: Move AC_LIBOBJ invocations to module description.
20155         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
20156         * modules/crypto/gc (configure.ac): ... to here.
20157
20158 2011-05-07  Bruno Haible  <bruno@clisp.org>
20159
20160         fwriting: Move AC_LIBOBJ invocations to module description.
20161         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
20162         here...
20163         * modules/fwriting (configure.ac): ... to here.
20164
20165 2011-05-07  Bruno Haible  <bruno@clisp.org>
20166
20167         fwritable: Move AC_LIBOBJ invocations to module description.
20168         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
20169         here...
20170         * modules/fwritable (configure.ac): ... to here.
20171
20172 2011-05-07  Bruno Haible  <bruno@clisp.org>
20173
20174         futimens: Move AC_LIBOBJ invocations to module description.
20175         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
20176         here...
20177         * modules/futimens (configure.ac): ... to here.
20178
20179 2011-05-07  Bruno Haible  <bruno@clisp.org>
20180
20181         ftruncate: Move AC_LIBOBJ invocations to module description.
20182         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
20183         gl_PREREQ_FTRUNCATE invocations from here...
20184         * modules/ftruncate (configure.ac): ... to here.
20185
20186 2011-05-07  Bruno Haible  <bruno@clisp.org>
20187
20188         fsync: Move AC_LIBOBJ invocations to module description.
20189         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
20190         invocations from here...
20191         * modules/fsync (configure.ac): ... to here.
20192
20193 2011-05-07  Bruno Haible  <bruno@clisp.org>
20194
20195         fsusage: Move AC_LIBOBJ invocations to module description.
20196         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
20197         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
20198         * modules/fsusage (configure.ac): ... to here.
20199
20200 2011-05-07  Bruno Haible  <bruno@clisp.org>
20201
20202         freopen: Move AC_LIBOBJ invocations to module description.
20203         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20204         invocations from here...
20205         * modules/freopen (configure.ac): ... to here.
20206
20207 2011-05-07  Bruno Haible  <bruno@clisp.org>
20208
20209         free: Move AC_LIBOBJ invocations to module description.
20210         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20211         invocations from here...
20212         * modules/free (configure.ac): ... to here.
20213
20214 2011-05-07  Bruno Haible  <bruno@clisp.org>
20215
20216         freadable: Move AC_LIBOBJ invocations to module description.
20217         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20218         here...
20219         * modules/freadable (configure.ac): ... to here.
20220
20221 2011-05-07  Bruno Haible  <bruno@clisp.org>
20222
20223         fpurge: Move AC_LIBOBJ invocations to module description.
20224         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20225         invocations from here...
20226         * modules/fpurge (configure.ac): ... to here.
20227
20228 2011-05-07  Bruno Haible  <bruno@clisp.org>
20229
20230         fpending: Move AC_LIBOBJ invocations to module description.
20231         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20232         gl_FUNC_FPENDING.
20233         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20234         invocations from here...
20235         * modules/fpending (configure.ac): ... to here.
20236
20237 2011-05-07  Bruno Haible  <bruno@clisp.org>
20238
20239         fopen: Move AC_LIBOBJ invocations to module description.
20240         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20241         invocations from here...
20242         * modules/fopen (configure.ac): ... to here.
20243
20244 2011-05-07  Bruno Haible  <bruno@clisp.org>
20245
20246         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20247         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20248         gl_FUNC_FNMATCH_POSIX.
20249         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20250         invocations from here...
20251         * modules/fnmatch (configure.ac): ... to here.
20252         * modules/fnmatch-gnu (configure.ac): ... and here.
20253
20254 2011-05-07  Bruno Haible  <bruno@clisp.org>
20255
20256         flock: Move AC_LIBOBJ invocations to module description.
20257         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20258         invocations from here...
20259         * modules/flock (configure.ac): ... to here.
20260
20261 2011-05-07  Bruno Haible  <bruno@clisp.org>
20262
20263         fileblocks: Move AC_LIBOBJ invocations to module description.
20264         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20265         gl_PREREQ_FILEBLOCKS invocations from here...
20266         * modules/fileblocks (configure.ac): ... to here.
20267
20268 2011-05-06  Bruno Haible  <bruno@clisp.org>
20269
20270         fflush: Move AC_LIBOBJ invocations to module description.
20271         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20272         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20273         invocations from here...
20274         * modules/fflush (configure.ac): ... to here.
20275
20276 2011-05-06  Bruno Haible  <bruno@clisp.org>
20277
20278         fdopendir: Move AC_LIBOBJ invocations to module description.
20279         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20280         here...
20281         * modules/fdopendir (configure.ac): ... to here.
20282         (Depends-on): Improve conditions.
20283
20284 2011-05-06  Bruno Haible  <bruno@clisp.org>
20285
20286         _Exit: Move AC_LIBOBJ invocations to module description.
20287         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20288         invocations from here...
20289         * modules/_Exit (configure.ac): ... to here.
20290
20291 2011-05-21  Bruno Haible  <bruno@clisp.org>
20292
20293         euidaccess: Respect rules for use of AC_LIBOBJ.
20294         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20295         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20296         from here...
20297         * modules/euidaccess (configure.ac): ... to here.
20298
20299 2011-05-06  Bruno Haible  <bruno@clisp.org>
20300
20301         error: Move AC_LIBOBJ invocations to module description.
20302         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20303         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20304         invocations from here...
20305         * modules/error (configure.ac): ... to here.
20306
20307 2011-05-06  Bruno Haible  <bruno@clisp.org>
20308
20309         duplocale: Move AC_LIBOBJ invocations to module description.
20310         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20311         gl_PREREQ_DUPLOCALE invocations from here...
20312         * modules/duplocale (configure.ac): ... to here.
20313
20314 2011-05-05  Bruno Haible  <bruno@clisp.org>
20315
20316         dirfd: Move AC_LIBOBJ invocations to module description.
20317         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20318         gl_FUNC_DIRFD.
20319         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20320         here...
20321         * modules/dirfd (configure.ac): ... to here.
20322         (Depends-on): Fix condition.
20323
20324 2011-05-05  Bruno Haible  <bruno@clisp.org>
20325
20326         chown: Respect rules for use of AC_LIBOBJ.
20327         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20328         * modules/chown (configure.ac): ... to here.
20329
20330 2011-05-05  Bruno Haible  <bruno@clisp.org>
20331
20332         chdir-long: Move AC_LIBOBJ invocations to module description.
20333         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20334         gl_PREREQ_CHDIR_LONG invocations from here...
20335         * modules/chdir-long (configure.ac): ... to here.
20336
20337 2011-05-05  Bruno Haible  <bruno@clisp.org>
20338
20339         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20340         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20341         from here...
20342         * modules/canonicalize-lgpl (configure.ac): ... to here.
20343
20344 2011-05-05  Bruno Haible  <bruno@clisp.org>
20345
20346         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20347         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20348         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20349         REPLACE_CALLOC.
20350         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20351         * modules/calloc-gnu (configure.ac): Likewise.
20352
20353 2011-05-05  Bruno Haible  <bruno@clisp.org>
20354
20355         btowc: Move AC_LIBOBJ invocations to module description.
20356         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20357         invocations from here...
20358         * modules/btowc (configure.ac): ... to here.
20359
20360 2011-05-21  Bruno Haible  <bruno@clisp.org>
20361
20362         atexit: Move AC_LIBOBJ invocations to module description.
20363         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20364         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20365         here...
20366         * modules/atexit (configure.ac): ... to here.
20367
20368 2011-05-05  Bruno Haible  <bruno@clisp.org>
20369
20370         atoll: Move AC_LIBOBJ invocations to module description.
20371         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20372         invocations from here...
20373         * modules/atoll (configure.ac): ... to here.
20374
20375 2011-05-05  Bruno Haible  <bruno@clisp.org>
20376
20377         argz: Move AC_LIBOBJ invocations to module description.
20378         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20379         * modules/argz (configure.ac): ... to here.
20380
20381 2011-05-05  Bruno Haible  <bruno@clisp.org>
20382
20383         alphasort: Move AC_LIBOBJ invocations to module description.
20384         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20385         gl_PREREQ_ALPHASORT invocations from here...
20386         * modules/alphasort (configure.ac): ... to here.
20387
20388 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20389
20390         verify: new macro verify_expr; verify_true deprecated
20391         * NEWS: Mention this.
20392         * doc/verify.texi (Compile-time Assertions): Document this.
20393         * lib/verify.h (verify_true): Deprecate.
20394         (verify_expr): New macro.
20395         * tests/test-verify.c (function): Test verify_expr.
20396
20397 2011-06-14  Jim Meyering  <meyering@redhat.com>
20398
20399         init.sh: give more portable redirection-related advice in a comment
20400         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20401         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20402         for lots of discussion.  Stefano Lattarini suggested the solution
20403         of putting "9>&2" after the command.  Reported by Bruno Haible.
20404
20405 2011-06-13  Bruno Haible  <bruno@clisp.org>
20406
20407         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20408         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20409         'none'.
20410
20411 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20412
20413         ftoastr: use strtof only if HAVE_STRTOF
20414         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20416         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20417         * modules/ftoastr (configure.ac): Check for strtof.
20418
20419 2011-06-13  Bruno Haible  <bruno@clisp.org>
20420
20421         gnulib-tool: Addendum to 2011-06-08 commit.
20422         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20423         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20424
20425 2011-06-13  Bruno Haible  <bruno@clisp.org>
20426
20427         fseeko: Provide a non-inline replacement of fseek().
20428         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20429         * modules/fseeko (Depends-on): Add fseek.
20430         * modules/fseek (License): Change to LGPLv2+.
20431
20432 2011-06-13  Bruno Haible  <bruno@clisp.org>
20433
20434         ftello: Provide a non-inline replacement of ftell().
20435         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20436         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20437         not have ftello() (such as on mingw).
20438         * modules/ftello (Depends-on): Add ftell.
20439         * modules/ftell (License): Change to LGPLv2+.
20440
20441 2011-05-07  Bruno Haible  <bruno@clisp.org>
20442
20443         ftell: Move AC_LIBOBJ invocations to module description.
20444         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20445         * modules/ftell (configure.ac): ... to here.
20446
20447 2011-05-07  Bruno Haible  <bruno@clisp.org>
20448
20449         ftello: Respect rules for use of AC_LIBOBJ.
20450         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20451         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20452         here...
20453         * modules/ftello (configure.ac): ... to here.
20454
20455 2011-05-07  Bruno Haible  <bruno@clisp.org>
20456
20457         fseeko: Simplify.
20458         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20459         (gl_FUNC_FSEEKO): Inline it here.
20460
20461 2011-05-07  Bruno Haible  <bruno@clisp.org>
20462
20463         fseek: Move AC_LIBOBJ invocations to module description.
20464         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20465         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20466         * modules/fseek (configure.ac): ... to here.
20467
20468 2011-05-07  Bruno Haible  <bruno@clisp.org>
20469
20470         fseek: Respect rules for use of AC_LIBOBJ.
20471         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20472         here...
20473         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20474
20475 2011-05-07  Bruno Haible  <bruno@clisp.org>
20476
20477         fseeko: Respect rules for use of AC_LIBOBJ.
20478         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20479         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20480         here...
20481         * modules/fseeko (configure.ac): ... to here.
20482
20483 2011-06-13  Bruno Haible  <bruno@clisp.org>
20484
20485         gnulib-tool: Allow comments in the 'Depends-on' section.
20486         * doc/gnulib.texi (Module description): Mention comment syntax in the
20487         Depends-on section.
20488         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20489
20490 2011-06-13  Bruno Haible  <bruno@clisp.org>
20491
20492         file-set.h: guard __attibute__ use, now that it's not always defined
20493         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20494         versions that support it.  This fixes a coreutils build failure with
20495         the vendor cc on HP-UX 11.31.
20496
20497 2011-06-12  Bruno Haible  <bruno@clisp.org>
20498
20499         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20500         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20501         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20502         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20503         (acl, aclsort): New declarations.
20504         (aclv_nontrivial): New declaration.
20505         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20506         (file_has_acl): Read also the second kind of HP-UX ACLs.
20507         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20508         kind of HP-UX ACLs if the first kind fails.
20509         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20510         second kind of HP-UX ACLs.
20511         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20512         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20513         agree.
20514         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20515         hpuxjfs.
20516         Handle hpuxjfs.
20517         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20518         hpuxjfs.
20519         Handle hpuxjfs.
20520         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20521         (func_test_same_acls): Use both lsacl and getacl.
20522         Handle hpuxjfs.
20523         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20524         (func_test_same_acls): Use both lsacl and getacl.
20525         Handle hpuxjfs.
20526
20527 2011-06-12  Bruno Haible  <bruno@clisp.org>
20528
20529         acl: Complete the 2010-08-10 fix.
20530         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20531         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20532         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20533         explicitly.
20534         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20535         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20536
20537 2011-06-12  Bruno Haible  <bruno@clisp.org>
20538
20539         spawn-pipe tests: Comments.
20540         * tests/test-spawn-pipe-child.c (main): Update comment.
20541         Reported by James Youngman <jay@gnu.org>.
20542
20543 2011-06-11  James Youngman  <jay@gnu.org>
20544
20545         New module 'stat-size'.
20546         * modules/stat-size: New module.  Provides macros for accessing
20547         file size information in instances of struct stat.  Depends on the
20548         fileblocks module because it calls st_blocks.
20549         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20550         * doc/gnulib.texi: Include stat-size.texi.
20551         * doc/stat-size.texi: Documentation for this module.
20552         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20553         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20554         AC_STRUCT_ST_BLOCKS.
20555
20556 2011-06-09  Bruno Haible  <bruno@clisp.org>
20557
20558         thread: Support pthreads-win32.
20559         * lib/glthread/thread.h (gl_thread_self): Define differently on
20560         pthreads-win32.
20561         (gl_null_thread): New declaration.
20562         (gl_thread_self_pointer): New macro.
20563         * lib/glthread/thread.c (gl_null_thread): New constant.
20564         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20565         gl_thread_self.
20566         * tests/test-tls.c: Likewise.
20567         Suggested by Paul Eggert. Reported by Eric Blake.
20568
20569 2011-06-09  Bruno Haible  <bruno@clisp.org>
20570
20571         thread: Fix confusion between NULL and 0.
20572         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20573         Reported by Paul Eggert.
20574
20575 2011-06-09  Bruno Haible  <bruno@clisp.org>
20576
20577         spawn-pipe tests: Avoid test failure on HP-UX 11.
20578         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20579         is closed.
20580
20581 2011-06-09  Bruno Haible  <bruno@clisp.org>
20582
20583         acl tests: Fix compilation error on HP-UX 11.
20584         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20585
20586 2011-06-09  Bruno Haible  <bruno@clisp.org>
20587
20588         rmdir: Avoid test failure on HP-UX 10.20.
20589         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20590         EEXIST.
20591
20592 2011-06-08  Eric Blake  <eblake@redhat.com>
20593
20594         perror: fix test on mingw
20595         * modules/perror-tests (Depends-on): Add dup2.
20596
20597         strerror_r-posix: fix on MacOS
20598         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20599         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20600         logic bug.
20601         * lib/strerror_r.c (strerror_r): Fix the bug.
20602         * lib/strerror.c (strerror): Likewise.
20603         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20604         problem.
20605         * doc/posix-functions/strerror.texi (strerror): Likewise.
20606         * doc/posix-functions/perror.texi (perror): Likewise.
20607         * tests/test-strerror.c (main): Enhance test.
20608         * tests/test-strerror_r.c (main): Likewise.
20609
20610 2011-06-08  Bruno Haible  <bruno@clisp.org>
20611
20612         gnulib-tool: Better isolation between different gnulib-tool invocations.
20613         * gnulib-tool: New option --witness-c-macro.
20614         (witness_c_macro): New variable.
20615         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20616         AM_CPPFLAGS define it as a C macro.
20617         (func_emit_tests_Makefile_am): Likewise.
20618         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20619         read it from there.
20620         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20621         m4_define, not AC_DEFUN.
20622         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20623         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20624         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20625         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20626         s|...|...|, to substitute the values of the GNULIB_* module indicator
20627         variables.
20628         * modules/dirent (Makefile.am): Likewise.
20629         * modules/fcntl-h (Makefile.am): Likewise.
20630         * modules/iconv-h (Makefile.am): Likewise.
20631         * modules/langinfo (Makefile.am): Likewise.
20632         * modules/locale (Makefile.am): Likewise.
20633         * modules/math (Makefile.am): Likewise.
20634         * modules/netdb (Makefile.am): Likewise.
20635         * modules/poll-h (Makefile.am): Likewise.
20636         * modules/pty (Makefile.am): Likewise.
20637         * modules/search (Makefile.am): Likewise.
20638         * modules/signal (Makefile.am): Likewise.
20639         * modules/spawn (Makefile.am): Likewise.
20640         * modules/stdio (Makefile.am): Likewise.
20641         * modules/stdlib (Makefile.am): Likewise.
20642         * modules/string (Makefile.am): Likewise.
20643         * modules/sys_ioctl (Makefile.am): Likewise.
20644         * modules/sys_select (Makefile.am): Likewise.
20645         * modules/sys_socket (Makefile.am): Likewise.
20646         * modules/sys_stat (Makefile.am): Likewise.
20647         * modules/sys_times (Makefile.am): Likewise.
20648         * modules/sys_utsname (Makefile.am): Likewise.
20649         * modules/sys_wait (Makefile.am): Likewise.
20650         * modules/termios (Makefile.am): Likewise.
20651         * modules/time (Makefile.am): Likewise.
20652         * modules/unistd (Makefile.am): Likewise.
20653         * modules/wchar (Makefile.am): Likewise.
20654
20655 2011-06-08  Eric Blake  <eblake@redhat.com>
20656
20657         strerror: simplify replacement
20658         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20659         * modules/strerror (configure.ac): No prereqs needed here...
20660         * modules/strerror-override (configure.ac): ...but this needs it.
20661         (Files): Add file for needed prereq macro.
20662
20663 2011-06-08  Bruno Haible  <bruno@clisp.org>
20664
20665         strerror_r-posix: Tweaks.
20666         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20667         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20668         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20669         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20670         (gl_FUNC_STRERROR_R): ... to here.
20671         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20672
20673 2011-06-07  Eric Blake  <eblake@redhat.com>
20674
20675         perror: document fixed bugs
20676         * doc/posix-functions/perror.texi (perror): Document recent
20677         patches.
20678
20679 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20680
20681         stat-time: get_stat_birthtime failure is better-defined
20682         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20683         return a timestamp whose tv_sec and tv_nsec values are both -1.
20684         Previously, the spec said only that the tv_nsec value was negative.
20685         This upward-compatible change simplifies GNU tar a bit.
20686
20687 2011-06-07  Eric Blake  <eblake@redhat.com>
20688
20689         strerror_r-posix: work around cygwin 1.7.9
20690         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20691         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20692         bug without replacing strerror_r.
20693         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20694         strerror_r is buggy, but without requiring strerror_r compilation.
20695         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20696
20697         test-perror: relax test to ignore cygwin bug
20698         * tests/test-perror2.c (main): Relax test on requiring detection
20699         of stream errors, and use unbuffered stream.
20700         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20701         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20702         * doc/posix-functions/fputc.texi (fputc): Likewise.
20703         * doc/posix-functions/fputs.texi (fputs): Likewise.
20704         * doc/posix-functions/fputws.texi (fputws): Likewise.
20705         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20706         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20707         * doc/posix-functions/getopt.texi (getopt): Likewise.
20708         * doc/posix-functions/perror.texi (perror): Likewise.
20709         * doc/posix-functions/printf.texi (printf): Likewise.
20710         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20711         * doc/posix-functions/psignal.texi (psignal): Likewise.
20712         * doc/posix-functions/putc.texi (putc): Likewise.
20713         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20714         Likewise.
20715         * doc/posix-functions/putchar.texi (putchar): Likewise.
20716         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20717         Likewise.
20718         * doc/posix-functions/puts.texi (puts): Likewise.
20719         * doc/posix-functions/putwc.texi (putwc): Likewise.
20720         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20721         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20722         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20723         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20724         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20725         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20726         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20727         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20728
20729 2011-05-22  Bruno Haible  <bruno@clisp.org>
20730
20731         strerror: Move AC_LIBOBJ invocations to module description.
20732         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20733         gl_PREREQ_STRERROR invocations from here...
20734         * modules/strerror (configure.ac): ... to here.
20735
20736 2011-05-21  Bruno Haible  <bruno@clisp.org>
20737
20738         perror: Use common idiom.
20739         * modules/perror (configure.ac): Reorder statements.
20740
20741 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20742
20743         tests: fix usage message in 'mktempd_'
20744         * tests/init.sh (mktempd_): In the usage message, use literal
20745         'mktempd_', not '$ME' (which is even undefined), as the name of
20746         the subroutine.
20747
20748 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20749
20750         tests init: new function 'fatal_', for hard errors
20751         Before this patch, the only way offered by tests/init.sh to
20752         properly signal a hard error was the `framework_failure_'
20753         function.  But the error message issued by that function,
20754         as its name would suggest, refers to a set-up failure in the
20755         testsuite, while hard errors can obviously also be due to
20756         other reasons.  The best way to fix this inconsistency is to
20757         introduce a new function with a more general error message.
20758         * tests/init.sh (fatal_): New function.
20759
20760 2011-06-06  Eric Blake  <eblake@redhat.com>
20761
20762         canonicalize-lgpl: use common idiom
20763         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20764         over newer POSIX -Rf.
20765         Reported by Bruno Haible.
20766
20767         canonicalize-lgpl: work around AIX realpath bug
20768         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20769         * doc/posix-functions/realpath.texi (realpath): Document it.
20770         Reported by Bruno Haible.
20771
20772         strerror: work around FreeBSD bug
20773         * lib/strerror.c (strerror): Special case 0.
20774         Reported by Bruno Haible.
20775
20776         strerror-override: avoid bloating errno module
20777         * modules/errno (Files, configure.ac): Move replacement strings...
20778         * modules/strerror-override: ...to new module.
20779         * modules/strerror (Depends-on): Add strerror-override.
20780         * modules/strerror_r-posix (Depends-on): Likewise.
20781         * MODULES.html.sh: Document new module.
20782         Reported by Bruno Haible.
20783
20784 2011-06-06  Bruno Haible  <bruno@clisp.org>
20785
20786         spawn-pipe tests: Rename program.
20787         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20788         * tests/test-spawn-pipe-child.c: Update comment.
20789         * tests/test-spawn-pipe.sh: Update.
20790         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20791
20792         spawn-pipe tests: Link the child program only against libc.
20793         * tests/test-spawn-pipe-child.c: New file, extracted from
20794         tests/test-spawn-pipe.c.
20795         (main): Expect only one argument.
20796         (is_open): New function, copied from tests/test-pipe.c.
20797         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20798         (child_main): Remove function.
20799         (test_pipe): Pass only one argument to the child program.
20800         (main): Remove child process code. Expect the child program's name as
20801         first argument.
20802         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20803         argument.
20804         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20805         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20806         test-spawn-pipe-child against no libraries.
20807
20808 2011-06-06  Bruno Haible  <bruno@clisp.org>
20809
20810         careadlinkat: Avoid mismatch between ssize_t and int.
20811         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20812         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20813
20814 2011-06-06  Jim Meyering  <meyering@redhat.com>
20815
20816         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20817         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20818         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20819
20820 2011-06-05  Bruno Haible  <bruno@clisp.org>
20821
20822         ansi-c++-opt: Interoperability with libtool.
20823         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20824         set the variable to "no", not to ":".
20825         * NEWS: Mention the change.
20826
20827 2011-06-05  Bruno Haible  <bruno@clisp.org>
20828
20829         acl: Fix test failure on AIX 7.
20830         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20831         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20832
20833 2011-06-05  Bruno Haible  <bruno@clisp.org>
20834
20835         pipe-filter-ii: Fix test failure on AIX and IRIX.
20836         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20837         with EAGAIN, retry with a smaller buffer size.
20838
20839 2011-06-05  Bruno Haible  <bruno@clisp.org>
20840
20841         localename: Fix link dependencies.
20842         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20843         * modules/localename-tests (Makefile.am): Link test-localename with
20844         $(LIBTHREAD).
20845
20846 2011-06-05  Bruno Haible  <bruno@clisp.org>
20847
20848         error: Avoid gcc warning.
20849         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20850
20851 2011-06-05  Bruno Haible  <bruno@clisp.org>
20852
20853         unsetenv: Avoid gcc warning.
20854         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20855
20856 2011-06-05  Bruno Haible  <bruno@clisp.org>
20857
20858         setenv: Avoid gcc warning.
20859         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20860
20861 2011-06-05  Bruno Haible  <bruno@clisp.org>
20862
20863         sys_select: Ensure memset is declared also on AIX 7.
20864         * lib/sys_select.in.h: Include <string.h> also on AIX.
20865         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20866         self-contained also on AIX 7.1.
20867
20868 2011-06-04  Jim Meyering  <meyering@redhat.com>
20869
20870         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20871         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20872         function name, "error".
20873         (_gl_translatable_diag_func_re): New configurable variable.
20874
20875 2011-06-04  Bruno Haible  <bruno@clisp.org>
20876
20877         getopt: Avoid gcc warning.
20878         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20879
20880 2011-06-04  Bruno Haible  <bruno@clisp.org>
20881
20882         strerror_r: Fix comments.
20883         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20884         commit.
20885
20886 2011-06-04  Bruno Haible  <bruno@clisp.org>
20887
20888         perror: Fix compilation error.
20889         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20890         Undefine fprintf, not sprintf.
20891         * modules/perror (Depends-on): Remove intprops, verify.
20892
20893 2011-06-04  Bruno Haible  <bruno@clisp.org>
20894
20895         setlocale: Enable replacement on Cygwin 1.5.
20896         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20897         Cygwin 1.5.x.
20898         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20899         LC_CTYPE category also exists on Cygwin 1.5.x.
20900
20901 2011-06-04  Bruno Haible  <bruno@clisp.org>
20902
20903         strerror-override: Don't disable symbol renamings.
20904         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20905         * lib/strerror-override.c: Include config.h.
20906         (strerror_override): Don't undefine.
20907
20908 2011-06-03  Bruno Haible  <bruno@clisp.org>
20909
20910         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20911         * lib/localename.h: Update copyright header.
20912         * lib/localename.c: Likewise.
20913         * lib/relocatable.h: Likewise.
20914         * lib/relocatable.c: Likewise.
20915
20916 2011-06-02  Bruno Haible  <bruno@clisp.org>
20917
20918         doc: Fix a module name.
20919         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20920
20921 2011-06-02  Bruno Haible  <bruno@clisp.org>
20922
20923         pipe2: Remove dependency on 'nonblocking' module.
20924         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20925         O_NONBLOCK is defined by gnulib.
20926         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20927         is zero.
20928         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20929         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20930         defined by gnulib.
20931         (get_nonblocking_flag): New function.
20932         (main): Test O_NONBLOCK flag only if it is nonzero.
20933         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20934
20935 2011-06-03  Jim Meyering  <meyering@redhat.com>
20936
20937         maint: three new prohibit-header-without-use rules
20938         Prohibit use of cloexec.h, posixver.h, same.h without use.
20939         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20940         (sc_prohibit_posixver_without_use): Likewise.
20941         (sc_prohibit_same_without_use): Likewise.
20942
20943 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20944
20945         allocator: 'die' routine is now given requested size
20946         * lib/allocator.h (struct allocator.die): New size arg.
20947         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20948         If the actual problem is an ssize_t limitation, not a size_t or
20949         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20950
20951 2011-06-01  Eric Blake  <eblake@redhat.com>
20952
20953         strerror: drop strerror_r dependency
20954         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20955         * lib/strerror-override.c (strerror_override): ...to new file.
20956         * lib/strerror-override.h: Add prototype.
20957         * lib/strerror-impl.h: Delete.
20958         * lib/strerror.c (strerror): New implementation.
20959         * modules/errno (Files): Add new files.
20960         (configure.ac): Compile new file as appropriate.
20961         * modules/strerror (Files): Drop unused file.
20962         (Depends-on): Drop strerror_r-posix.
20963         * MODULES.html.sh: Document strerror_r-posix.
20964         Requested by Sam Steingold.
20965
20966         perror: call strerror_r directly
20967         * modules/perror (Files): Drop strerror-impl.h.
20968         * lib/perror.c (perror): Use our own stack buffer, rather than
20969         calling a wrapper that uses static storage.
20970         * doc/posix-functions/perror.texi (perror): Document a limitation
20971         of our replacement.
20972
20973         strerror_r: fix includes for FreeBSD
20974         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20975         since we use abort on some platforms.
20976         Reported by Matthias Bolte.
20977
20978 2011-05-31  Bruno Haible  <bruno@clisp.org>
20979
20980         Fix link errors in tests: openat-die uses gettext-h.
20981         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20982         against $(LIBINTL).
20983         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20984         against $(LIBINTL).
20985         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20986         $(LIBINTL).
20987         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20988         against $(LIBINTL).
20989         * modules/linkat-tests (Makefile.am): Link test-linkat against
20990         $(LIBINTL).
20991         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20992         $(LIBINTL).
20993         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20994         against $(LIBINTL).
20995         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20996         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20997         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20998         $(LIBINTL).
20999         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
21000         $(LIBINTL).
21001         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
21002         $(LIBINTL).
21003         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21004
21005 2011-05-31  Bruno Haible  <bruno@clisp.org>
21006
21007         Fix link errors in tests: wait-process uses gettext-h.
21008         * modules/nonblocking-pipe-tests (Makefile.am): Set
21009         test_nonblocking_pipe_main_LDADD.
21010         * modules/nonblocking-socket-tests (Makefile.am): Link
21011         test-nonblocking-socket-main against $(LIBINTL).
21012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21013
21014 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
21015
21016         assert-h: work around 'verify' incompatibility
21017         * lib/verify.h: Use @...@ directives, not ifdef.
21018         * modules/assert-h (assert.h): Implement the directives.
21019         (assert.h): Substitute the symbol-prefix more consistently.
21020
21021 2011-05-29  Jim Meyering  <meyering@redhat.com>
21022
21023         trim: remove three superfluous assignments
21024         * lib/trim.c (trim2): Remove three superfluous assignments
21025         and correct brace positioning.
21026
21027 2011-05-29  Bruno Haible  <bruno@clisp.org>
21028
21029         wctype-h: Avoid namespace pollution on Solaris 2.6.
21030         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
21031         identifiers.
21032         * doc/posix-headers/wctype.texi: Mention the problem.
21033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21034
21035 2011-05-28  Jim Meyering  <meyering@redhat.com>
21036
21037         parse-datetime.y: accommodate -Wstrict-overflow
21038         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
21039         placate -Wstrict-overflow.
21040
21041         trim: avoid a warning from -O2 -Wstrict-overflow
21042         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
21043
21044 2011-05-29  Bruno Haible  <bruno@clisp.org>
21045
21046         gnulib-tool: Fix bug in yesterday's commit.
21047         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
21048         twice.
21049
21050 2011-05-29  Bruno Haible  <bruno@clisp.org>
21051
21052         Allow multiple gnulib generated include files to be combined.
21053         * gnulib-tool (func_compute_include_guard_prefix): New function.
21054         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
21055         ${gl_include_guard_prefix} references.
21056         (func_import, func_create_testdir): Invoke
21057         func_compute_include_guard_prefix.
21058         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
21059         * lib/ctype.in.h: Likewise.
21060         * lib/dirent.in.h: Likewise.
21061         * lib/errno.in.h: Likewise.
21062         * lib/fcntl.in.h: Likewise.
21063         * lib/float.in.h: Likewise.
21064         * lib/getopt.in.h: Likewise.
21065         * lib/iconv.in.h: Likewise.
21066         * lib/langinfo.in.h: Likewise.
21067         * lib/locale.in.h: Likewise.
21068         * lib/math.in.h: Likewise.
21069         * lib/netdb.in.h: Likewise.
21070         * lib/netinet_in.in.h: Likewise.
21071         * lib/poll.in.h: Likewise.
21072         * lib/pthread.in.h: Likewise.
21073         * lib/pty.in.h: Likewise.
21074         * lib/sched.in.h: Likewise.
21075         * lib/se-selinux.in.h: Likewise.
21076         * lib/search.in.h: Likewise.
21077         * lib/signal.in.h: Likewise.
21078         * lib/spawn.in.h: Likewise.
21079         * lib/stdarg.in.h: Likewise.
21080         * lib/stddef.in.h: Likewise.
21081         * lib/stdint.in.h: Likewise.
21082         * lib/stdio.in.h: Likewise.
21083         * lib/stdlib.in.h: Likewise.
21084         * lib/string.in.h: Likewise.
21085         * lib/strings.in.h: Likewise.
21086         * lib/sys_file.in.h: Likewise.
21087         * lib/sys_ioctl.in.h: Likewise.
21088         * lib/sys_select.in.h: Likewise.
21089         * lib/sys_socket.in.h: Likewise.
21090         * lib/sys_stat.in.h: Likewise.
21091         * lib/sys_time.in.h: Likewise.
21092         * lib/sys_times.in.h: Likewise.
21093         * lib/sys_uio.in.h: Likewise.
21094         * lib/sys_utsname.in.h: Likewise.
21095         * lib/sys_wait.in.h: Likewise.
21096         * lib/sysexits.in.h: Likewise.
21097         * lib/termios.in.h: Likewise.
21098         * lib/time.in.h: Likewise.
21099         * lib/unistd.in.h: Likewise.
21100         * lib/wchar.in.h: Likewise.
21101         * lib/wctype.in.h: Likewise.
21102         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
21103         * modules/ctype (Makefile.am): Likewise.
21104         * modules/dirent (Makefile.am): Likewise.
21105         * modules/errno (Makefile.am): Likewise.
21106         * modules/fcntl-h (Makefile.am): Likewise.
21107         * modules/float (Makefile.am): Likewise.
21108         * modules/getopt-posix (Makefile.am): Likewise.
21109         * modules/iconv-h (Makefile.am): Likewise.
21110         * modules/langinfo (Makefile.am): Likewise.
21111         * modules/locale (Makefile.am): Likewise.
21112         * modules/math (Makefile.am): Likewise.
21113         * modules/netdb (Makefile.am): Likewise.
21114         * modules/netinet_in (Makefile.am): Likewise.
21115         * modules/poll-h (Makefile.am): Likewise.
21116         * modules/pthread (Makefile.am): Likewise.
21117         * modules/pty (Makefile.am): Likewise.
21118         * modules/sched (Makefile.am): Likewise.
21119         * modules/search (Makefile.am): Likewise.
21120         * modules/selinux-h (Makefile.am): Likewise.
21121         * modules/signal (Makefile.am): Likewise.
21122         * modules/spawn (Makefile.am): Likewise.
21123         * modules/stdarg (Makefile.am): Likewise.
21124         * modules/stddef (Makefile.am): Likewise.
21125         * modules/stdint (Makefile.am): Likewise.
21126         * modules/stdio (Makefile.am): Likewise.
21127         * modules/stdlib (Makefile.am): Likewise.
21128         * modules/string (Makefile.am): Likewise.
21129         * modules/strings (Makefile.am): Likewise.
21130         * modules/sys_file (Makefile.am): Likewise.
21131         * modules/sys_ioctl (Makefile.am): Likewise.
21132         * modules/sys_select (Makefile.am): Likewise.
21133         * modules/sys_socket (Makefile.am): Likewise.
21134         * modules/sys_stat (Makefile.am): Likewise.
21135         * modules/sys_time (Makefile.am): Likewise.
21136         * modules/sys_times (Makefile.am): Likewise.
21137         * modules/sys_uio (Makefile.am): Likewise.
21138         * modules/sys_utsname (Makefile.am): Likewise.
21139         * modules/sys_wait (Makefile.am): Likewise.
21140         * modules/sysexits (Makefile.am): Likewise.
21141         * modules/termios (Makefile.am): Likewise.
21142         * modules/time (Makefile.am): Likewise.
21143         * modules/unistd (Makefile.am): Likewise.
21144         * modules/wchar (Makefile.am): Likewise.
21145         * modules/wctype-h (Makefile.am): Likewise.
21146         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
21147
21148 2011-05-29  Bruno Haible  <bruno@clisp.org>
21149
21150         assert-h: Allow multiple gnulib generated replacements to coexist.
21151         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
21152
21153 2011-05-29  Bruno Haible  <bruno@clisp.org>
21154
21155         argp: Allow coexistence with strerror_r-posix module.
21156         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
21157         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
21158         by gnulib's <string.h> replacement), assume it has the POSIX signature,
21159         not the glibc signature.
21160
21161 2011-05-28  Bruno Haible  <bruno@clisp.org>
21162
21163         gnulib-tool: Alternative structure of testdirs, similar to --import.
21164         * gnulib-tool: New option --single-configure.
21165         (func_usage): Document it.
21166         (single_configure): New variable.
21167         (func_modules_transitive_closure_separately,
21168         func_modules_transitive_closure_separately,
21169         func_determine_use_libtests, func_modules_add_dummy_separately,
21170         func_modules_to_filelist_separately): New functions, extracted from
21171         func_import.
21172         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
21173         (func_import): Use the new functions.
21174         (func_create_testdir): Set final_modules. Handle $single_configure =
21175         true case.
21176
21177 2011-05-28  Bruno Haible  <bruno@clisp.org>
21178
21179         getloadavg: Remove an unreliable safety check.
21180         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
21181         getloadavg.c is in place.
21182         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
21183         Reported by Sam Steingold <sds@gnu.org>.
21184
21185 2011-05-28  Bruno Haible  <bruno@clisp.org>
21186
21187         doc: Cleanup yet another file produced by texinfo.tex.
21188         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
21189
21190 2011-05-28  Bruno Haible  <bruno@clisp.org>
21191
21192         Finish the conditional dependencies mechanism.
21193         * gnulib-tool: New option --no-conditional-dependencies.
21194         (func_usage): Document it. Don't mark --conditional-dependencies as
21195         experimental.
21196         (cond_dependencies): The possible values can now be true, false, empty.
21197         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
21198         (func_import): Store setting in gnulib-cache.m4 and read it from there.
21199         * doc/gnulib-tool.texi (Conditional dependencies): New section.
21200
21201 2011-05-28  Bruno Haible  <bruno@clisp.org>
21202
21203         doc: Use a recent texinfo.tex.
21204         * doc/Makefile (tex_opts): New variable.
21205         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21206
21207 2011-05-28  Jim Meyering  <meyering@redhat.com>
21208
21209         intprops.h: adjust comment to match code change
21210         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21211         only once, it *may* have side effects.  Also fix an unrelated typo.
21212         (_GL_INT_SIGNED): Likewise.
21213
21214 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21215
21216         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21217
21218 2011-05-26  Bruno Haible  <bruno@clisp.org>
21219
21220         mbsrchr: Avoid collision with system function on Interix.
21221         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21222         Reported by Markus Duft <mduft@gentoo.org>.
21223
21224 2011-05-15  James Youngman  <jay@gnu.org>
21225
21226         getopt: for ambiguous options, enumerate the possibilities.
21227         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21228         the ambiguous options when an ambiguous prefix is given. This was
21229         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21230         glibc change was
21231         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21232
21233 2011-05-25  Eric Blake  <eblake@redhat.com>
21234
21235         getcwd: work around mingw bug
21236         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21237         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21238         Reported by Matthias Bolte.
21239
21240 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21241
21242         test-intprops: disable -Wtype-limits diagnostics
21243         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21244         diagnostics.  Otherwise, the integer overflow macros generate many
21245         diagnostics.  Reported by Jim Meyering in
21246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21247
21248         intprops: shorten, to pacify gcc -Woverlength-strings
21249         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21250         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21251         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21252         likely to run afoul of C compiler limits for string constant lengths.
21253         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21254
21255 2011-05-24  Eric Blake  <eblake@redhat.com>
21256
21257         docs: document recently fixed glibc printf bug
21258         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21259         * doc/posix-functions/printf.texi (printf): Likewise.
21260         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21261         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21262
21263         closein-tests: convert to init.sh
21264         * modules/closein-tests (Files): Add init.sh
21265         * tests/test-closein.sh Use it.
21266
21267         yesno-tests: convert to init.sh
21268         * modules/yesno-tests (Files): Add init.sh.
21269         * tests/test-yesno.sh: Use it.
21270
21271         atexit-tests: ensure reliable exit status
21272         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21273         Reported by Bruno Haible.
21274
21275 2011-05-24  Bruno Haible  <bruno@clisp.org>
21276
21277         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21278         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21279         gl_PREREQ_STRERROR_R invocations from here...
21280         * modules/strerror_r-posix (configure.ac): ... to here.
21281
21282 2011-05-24  Eric Blake  <eblake@redhat.com>
21283
21284         strerror_r: fix missing header
21285         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21286
21287         strerror_r: fix AIX test failures
21288         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21289         ERANGE failure.
21290
21291         strerror_r: fix Solaris test failures
21292         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21293         failures.
21294         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21295
21296         strerror_r: enforce POSIX recommendations
21297         * lib/strerror_r.c (safe_copy): New helper method.
21298         (strerror_r): Guarantee a non-empty string.
21299         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21300         recent POSIX rulings and to match our strerror guarantees.
21301         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21302
21303 2011-05-24  Jim Meyering  <meyering@redhat.com>
21304
21305         test-perror2.c: avoid warning about unused variable
21306         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21307
21308 2011-05-24  Eric Blake  <eblake@redhat.com>
21309
21310         perror: avoid spurious test failure on HP-UX
21311         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21312
21313         tests: fix logic bug in init.sh
21314         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21315         shell.
21316
21317 2011-05-24  Jim Meyering  <meyering@redhat.com>
21318
21319         utimensat: do not reference an out-of-scope buffer
21320         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21321         declared in an inner scope, yet "times" would be dereferenced outside
21322         the scope in which "ts" was valid.
21323         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21324         of ts[2] "out/up", so that the use of aliased "times" (via
21325         "times = ts;") does not end up referencing an out-of-scope "ts"
21326
21327         opendir-safer.c: don't clobber errno; don't close negative FD
21328         * lib/opendir-safer.c (opendir_safer):
21329         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21330         file descriptor, and more importantly, don't clobber the
21331         offending errno value with EINVAL.  Before, upon failure
21332         of dup_safer, we would pass the negative file descriptor to
21333         fdopendir, which would clobber errno.
21334
21335 2011-05-23  Bruno Haible  <bruno@clisp.org>
21336
21337         idcache: Fix module description.
21338         * modules/idcache (Include): Set to "idcache.h".
21339
21340 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21341
21342         gnulib-tool: fix portability problem with MacOS sed
21343         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21344         before the "}".  Problem reported by Leo in
21345         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21346         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21347         sed_extract_condition1, sed_extract_condition2.
21348
21349 2011-05-23  Bruno Haible  <bruno@clisp.org>
21350
21351         hash: Simplify autoconf macro.
21352         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21353
21354 2011-05-23  Bruno Haible  <bruno@clisp.org>
21355
21356         getugroups: Fix module description.
21357         * modules/getugroups (Include): Set to "getugroups.h".
21358
21359 2011-05-23  Bruno Haible  <bruno@clisp.org>
21360
21361         linkat: Simplify autoconf macro.
21362         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21363
21364 2011-05-23  Bruno Haible  <bruno@clisp.org>
21365             Eric Blake  <eblake@redhat.com>
21366
21367         linkat, renameat: Update dependencies.
21368         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21369         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21370         symlinkat.
21371
21372 2011-05-23  Jim Meyering  <meyering@redhat.com>
21373
21374         maint.mk: more tight_scope improvements
21375         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21376         (_gl_TS_headers): Define only in if-0'd block.
21377         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21378         sometimes we must *not* use it.  Adjust uses accordingly.
21379         (sc_tight_scope): Use much simpler grep-based test to determine
21380         whether we skip this rule.
21381
21382         maint.mk: generalize/improve the tight-scope rule
21383         * top/maint.mk: Emit a warning when the test is skipped.
21384         (_gl_TS_dir): Add $(srcdir)/ prefix.
21385         (_gl_TS_function_match): Simplify, rather than trying
21386         to enumerate common types.  Otherwise, it would fail to match an
21387         "extern unsigned char const *" declaration in idutils.
21388         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21389         a way to support use of that type of macro.
21390         (_gl_TS_var_match): Simplify regexp.
21391         (_gl_TS_obj_files): New configurable variable.
21392         (_gl_TS_headers): Likewise.
21393
21394 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21395
21396         verify: fix bug when gnulib <assert.h> is also included
21397         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21398         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21399         Perhaps there's a better way, but this fixes the immediate problem.
21400         Problem reported by Bruno Haible in
21401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21402
21403 2011-05-22  Bruno Haible  <bruno@clisp.org>
21404
21405         xgetcwd: Simplify autoconf macro.
21406         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21407
21408 2011-05-22  Bruno Haible  <bruno@clisp.org>
21409
21410         New module 'mktime-internal'.
21411         * modules/mktime-internal: New file.
21412         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21413         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21414         mktime_internal as a C macro if libc has __mktime_internal.
21415         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21416         conditions.
21417         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21418
21419 2011-05-22  Bruno Haible  <bruno@clisp.org>
21420
21421         timegm: Correct mktime replacement statements.
21422         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21423         defining mktime as a C macro. This completes a 2009-07-28 commit.
21424
21425 2011-05-22  Bruno Haible  <bruno@clisp.org>
21426
21427         timegm: Simplify autoconf macro.
21428         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21429
21430 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21431
21432         clock-time: change to LGPLv2+.
21433         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21434         BSD-like but we have no mark for that; this is good enough for now.
21435
21436 2011-05-21  Bruno Haible  <bruno@clisp.org>
21437
21438         strerror_r: Fix comments.
21439         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21440
21441 2011-05-21  Bruno Haible  <bruno@clisp.org>
21442
21443         relocatable-prog-wrapper: Fix possible link error.
21444         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21445         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21446         (gl_FUNC_SETENV): ... to here.
21447         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21448         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21449
21450 2011-05-21  Bruno Haible  <bruno@clisp.org>
21451
21452         relocatable-prog-wrapper: Assume strerror() exists.
21453         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21454         m4/strerror.m4.
21455         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21456         * lib/relocwrapper.c: Remove mention of strerror module.
21457         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21458         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21459         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21460         C macro.
21461
21462 2011-05-21  Bruno Haible  <bruno@clisp.org>
21463
21464         select: Simplify replacement idiom.
21465         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21466         Win32 platforms.
21467         * lib/sys_select.in.h (select): Simplify accordingly.
21468         * modules/select (Depends-on): Likewise.
21469
21470 2011-05-21  Bruno Haible  <bruno@clisp.org>
21471
21472         mkdir-p: Simplify autoconf macro.
21473         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21474         gl_FUNC_LCHOWN.
21475
21476 2011-05-21  Eric Blake  <eblake@redhat.com>
21477
21478         strerror_r: avoid clobbering strerror on cygwin
21479         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21480         fall back instead to sys_errlist.
21481         * modules/strerror (configure.ac): Add witness.
21482         * tests/test-strerror_r.c (main): Enhance test.
21483         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21484         * tests/test-perror2.c (main): Free memory before exit.
21485
21486 2011-05-21  Bruno Haible  <bruno@clisp.org>
21487
21488         mkdtemp: Use gnulib naming conventions.
21489         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21490         * modules/mkdtemp (configure.ac): Update.
21491
21492 2011-05-20  Eric Blake  <eblake@redhat.com>
21493
21494         strerror_r: avoid corrupting errno on Solaris
21495         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21496         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21497
21498         strerror_r: avoid compiler warning
21499         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21500
21501         strerror_r: simplify AIX code
21502         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21503
21504         test-perror: avoid spurious failure on FreeBSD
21505         * modules/perror-tests (Depends-on): Add strerror, now that
21506         strerror_r no longer pulls it in.
21507
21508 2011-05-20  Bruno Haible  <bruno@clisp.org>
21509
21510         strerror_r-posix: Remove unused dependencies.
21511         * modules/strerror_r-posix (Depends-on): Remove strerror.
21512         Reported by Eric Blake.
21513
21514 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21515
21516         intprops: remove assumption about A|B representation
21517         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21518         is a valid integer if both A and B are.  Although this is true for
21519         all known practical hosts, the C standard doesn't guarantee it,
21520         and the code need not assume it.  Also, this change may work around
21521         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21523
21524 2011-05-20  Eric Blake  <eblake@redhat.com>
21525
21526         perror: work around FreeBSD bug
21527         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21528         is broken.  Move AC_LIBOBJ...
21529         * modules/perror (configure.ac): Here.
21530         * doc/posix-functions/perror.texi (perror): Document this.
21531         * tests/test-perror2.c (main): Enhance test.
21532
21533         test-perror: check for strerror interactions
21534         * tests/macros.h (STREQ): Add macro.
21535         * modules/perror-tests (Files): Add second test.
21536         * tests/test-perror2.c (main): New file.
21537         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21538
21539         test-perror: rewrite to use init script
21540         * modules/perror-tests (Files): Add init.sh.
21541         * tests/test-perror.sh: Use temporary directory.
21542
21543 2011-05-20  Jim Meyering  <meyering@redhat.com>
21544
21545         maint: replace misused "a" with "an"
21546         * doc/intprops.texi: "a integer"
21547         * doc/regex.texi: "a explanation"
21548         * lib/alignof.h: "a object"
21549         * lib/argmatch.h: "a explanation"
21550         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21551         * lib/stdint.in.h: "a integer"
21552         * lib/userspec.c: "a owner"
21553         * doc/gnulib.texi: Fix "a idea", and reword.
21554
21555 2011-05-19  Jim Meyering  <meyering@redhat.com>
21556
21557         maint: correct misuse of "a" and "an"
21558         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21559         * lib/argp-help.c: "an docum...": s/an/a/
21560         * lib/argp-parse.c: "An vector": s/An/A/
21561         * lib/execute.c: "an native": s/an/a/
21562         * lib/spawn-pipe.c: Likewise.
21563         * lib/gc.h: "an Gc_rc": s/an/a/
21564         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21565         * lib/fts.c: "an stat.st_dev": s/an/a/
21566
21567 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21568
21569         intprops-tests: work around HP-UX 11.23 cc bug with constants
21570         * tests/test-intprops.c (VERIFY): New macro.
21571         (main): Use it, instead of verify, to work around the compiler bug; see
21572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21573
21574         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21575         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21576         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21577         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21578         (_GL_REMAINDER_OVERFLOW): Use it.
21579
21580         intprops-tests: revert unsigned part of previous change
21581         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21582         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21583         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21585
21586 2011-05-19  Bruno Haible  <bruno@clisp.org>
21587
21588         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21589         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21590         strerror_r() returned without filling the buffer.
21591         Reported by Eric Blake.
21592
21593 2011-05-19  Eric Blake  <eblake@redhat.com>
21594
21595         strerror_r: guarantee unchanged errno
21596         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21597         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21598         failure.
21599         * tests/test-strerror_r.c (main): Enhance test.
21600
21601 2011-05-19  Bruno Haible  <bruno@clisp.org>
21602
21603         strerror_r: Reorder #if blocks.
21604         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21605         for consistency with the previous commit.
21606
21607 2011-05-19  Bruno Haible  <bruno@clisp.org>
21608
21609         perror: Avoid clobbering the strerror buffer when possible.
21610         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21611         * lib/strerror.c: Include it.
21612         * modules/strerror (Files): Add lib/strerror-impl.h.
21613         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21614         (my_strerror): New function, defined through lib/strerror-impl.h.
21615         (perror): Use it instead of strerror.
21616         * modules/perror (Files): Add lib/strerror-impl.h.
21617         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21618
21619 2011-05-19  Eric Blake  <eblake@redhat.com>
21620
21621         strerror_r: fix on newer cygwin
21622         * lib/strerror_r.c (strerror_r): Cygwin now has
21623         __xpg_strerror_r, use it.
21624
21625 2011-05-19  Bruno Haible  <bruno@clisp.org>
21626
21627         strerror_r: Avoid clobbering the strerror buffer when possible.
21628         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21629         (sys_nerr, sys_errlist): New declarations.
21630         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21631         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21632         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21633
21634 2011-05-19  Bruno Haible  <bruno@clisp.org>
21635
21636         strerror_r: Fix test failure on mingw.
21637         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21638         EXTEND_STRERROR_R.
21639         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21640         macros from errno.in.h instead.
21641
21642 2011-05-19  Eric Blake  <eblake@redhat.com>
21643
21644         strerror: relax test for Solaris
21645         * tests/test-strerror.c (main): Permit Solaris behavior.
21646         * tests/test-strerror_r.c (main): Likewise.
21647
21648         strerror: enforce POSIX ruling on strerror(0)
21649         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21651         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21652         * doc/posix-functions/strerror.texi (strerror): Document it.
21653         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21654         * tests/test-strerror.c (main): Strengthen test.
21655         * tests/test-strerror_r.c (main): Likewise.
21656
21657 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21658
21659         intprop-tests: port to older and more-pedantic compilers
21660         * modules/intprops-tests (Files): Add tests/macros.h.
21661         * tests/test-intprops.c: Include macros.h.
21662         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21663         it's no longer documented to expand to an integer constant expression.
21664         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21665         argument is floating point, as it's no longer documented to expand
21666         to an integer constant expression in that case.
21667         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21668         compiler bugs reported by Bruno Haible.  See
21669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21670         (U0, U1): New constants, to work around the same bugs.  Also,
21671         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21672
21673         intprops: work around C compiler bugs
21674         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21675         bug in Sun C 5.11 2010/08/13 and other compilers; see
21676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21677
21678         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21679         * doc/intprops.texi (Integer Type Determination): Fix
21680         documentation for TYPE_IS_INTEGER: it returns an constant
21681         expression, not an integer constant expression.  Fix doc for
21682         TYPE_SIGNED: it returns an integer constant expression only if its
21683         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21684         hardly worth documented that way....)
21685
21686 2011-05-18  Bruno Haible  <bruno@clisp.org>
21687
21688         strerror_r: Avoid clobbering the strerror buffer when possible.
21689         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21690         Handle gnulib defined errno values here. When strerror() returns NULL
21691         or an empty string, return EINVAL.
21692         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21693         gnulib defined errno values here.
21694         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21695
21696 2011-05-18  Eric Blake  <eblake@redhat.com>
21697
21698         fnmatch: avoid compiler warning
21699         * lib/fnmatch_loop.c (FCT): Use correct type.
21700         Reported by Matthias Bolte.
21701
21702 2011-05-13  Jim Meyering  <meyering@redhat.com>
21703
21704         maint.mk: three new prohibit_<HDR>_without_use rules
21705         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21706         (sc_prohibit_stdio-safer_without_use): Likewise.
21707         (sc_prohibit_xfreopen_without_use): Likewise.
21708
21709 2011-05-17  Jim Meyering  <meyering@redhat.com>
21710
21711         announce-gen: fail if the NEWS delta is empty
21712         If there's nothing noteworthy in NEWS, then either you forgot
21713         or you shouldn't be releasing.
21714         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21715
21716 2011-05-17  Pádraig Brady <P@draigBrady.com>
21717
21718         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21719         reserved symbols starting with double underscore from the check.
21720
21721 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21722
21723         intprops: add doc
21724         * doc/intprops.texi: New file, documenting intprops.
21725         * doc/gnulib.texi (Particular Modules): Include it.
21726
21727         verify: add doc to gnulib manual and fix example
21728         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21729         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21730         (Compile-time Assertions): Fix example so it can't overflow.
21731
21732 2011-05-17  Jim Meyering  <meyering@redhat.com>
21733
21734         warnings.m4: don't usurp save_CPPFLAGS variable name
21735         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21736
21737         doc: fix typo
21738         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21739
21740 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21741             Bruno Haible  <bruno@clisp.org>
21742
21743         doc: Tweak recent change.
21744         * README (Portability guidelines): Tweak new text.
21745         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21746         Interix 6.1.
21747
21748 2011-05-16  Eric Blake  <eblake@redhat.com>
21749
21750         inttypes: avoid autoconf warning
21751         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21752         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21753
21754 2011-05-16  Sam Steingold <sds@gnu.org>
21755         and Eric Blake  <eblake@redhat.com>
21756
21757         vc-list-files: accept multiple directory operands
21758         * build-aux/vc-list-files: Iterate over all remaining operands.
21759
21760 2011-05-16  Bruno Haible  <bruno@clisp.org>
21761
21762         Fix confusion regarding deprecated modules.
21763         * modules/calloc (Status, Notice): Mark module as deprecated, not
21764         obsolete.
21765         * modules/fnmatch-posix (Status, Notice): Likewise.
21766         * modules/getdate (Status, Notice): Likewise.
21767         * modules/getopt (Status, Notice): Likewise.
21768         * modules/malloc (Status, Notice): Likewise.
21769         * modules/pipe (Status, Notice): Likewise.
21770         * modules/realloc (Status, Notice): Likewise.
21771         * modules/rename-dest-slash (Status, Notice): Likewise.
21772         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21773         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21774         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21775         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21776         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21777
21778 2011-05-16  Bruno Haible  <bruno@clisp.org>
21779
21780         doc: List the target platforms.
21781         * doc/gnulib-intro.texi (Target Platforms): New section.
21782         * doc/gnulib.texi (Introduction): Update menu.
21783         * README (Portability guidelines): Refer to the new section. Update
21784         statement about oldest supported environment. Remove rationale why
21785         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21786         unportable C89 function.
21787         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21788         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21789
21790 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21791
21792         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21793
21794 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21795
21796         intprops-tests: new module
21797         * modules/intprops-tests, tests/test-intprops.c: New files.
21798
21799         intprops: add safe, portable integer overflow checking
21800         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21801         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21802         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21803         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21804         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21805         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21806         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21807         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21808         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21809         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21810         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21811
21812 2011-05-12  James Youngman  <jay@gnu.org>
21813
21814         Add a test for glibc's Bugzilla bug #12378.
21815         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21816         doesn't allow the literal matching of a lone "[" (which is
21817         required by POSIX).
21818         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21819
21820 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21821
21822         Sync glibc change fixing Bugzilla bug #12378.
21823         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21824         beginning and fall back to matching as normal character if the
21825         string ends before the matching ']' is found.  This is what POSIX
21826         requires.
21827
21828 2011-05-13  Eric Blake  <eblake@redhat.com>
21829
21830         getcwd-lgpl: relax test for FreeBSD
21831         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21832         issue.
21833         * tests/test-getcwd-lgpl.c (main): Relax test.
21834         Reported by Matthias Bolte.
21835
21836 2011-05-11  Eric Blake  <eblake@redhat.com>
21837
21838         test-fflush: silence compiler warning
21839         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21840
21841 2011-05-11  Bruno Haible  <bruno@clisp.org>
21842
21843         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21844         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21845         * modules/canonicalize (Depends-on): Add 'nocrash'.
21846         * modules/canonicalize-lgpl (Depends-on): Likewise.
21847         * doc/posix-functions/realpath.texi: Update platforms list.
21848         Reported by Ryan Schmidt <ryandesign@macports.org>.
21849
21850 2011-05-11  Bruno Haible  <bruno@clisp.org>
21851
21852         group-member: Declare function in <unistd.h>.
21853         * lib/unistd.in.h (group_member): New declaration.
21854         * lib/group-member.h: Remove file.
21855         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21856         * tests/test-unistd-c++.cc: Check signature of group_member.
21857         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21858         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21859         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21860         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21861         HAVE_GROUP_MEMBER.
21862         * modules/group-member (Files): Remove lib/group-member.h.
21863         (Depends-on): Add unistd. Specify conditions.
21864         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21865         (Include): Change to <unistd.h>.
21866         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21867         HAVE_GROUP_MEMBER.
21868         * NEWS: Mention the change.
21869         * lib/euidaccess.c: Don't include group-member.h.
21870
21871 2011-05-11  Bruno Haible  <bruno@clisp.org>
21872
21873         group-member: Document module.
21874         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21875         module.
21876
21877 2011-05-11  Bruno Haible  <bruno@clisp.org>
21878
21879         fclose: Fix mistake earlier today.
21880         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21881
21882 2011-05-11  Eric Blake  <eblake@redhat.com>
21883
21884         fclose: preserve fflush errors
21885         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21886         Reported by Jim Meyering.
21887
21888         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21889         * build-aux/bootstrap (check_versions): When no specific version
21890         is required, merely check that the app produces an exit status
21891         that indicates its existence.
21892
21893         maint.mk: drop redundant check
21894         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21895         the same but better.
21896
21897 2011-05-11  Bruno Haible  <bruno@clisp.org>
21898
21899         fclose: Fix possible link error.
21900         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21901         unregister_shadow_fd. Improve comments.
21902         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21903         Eric Blake.
21904
21905 2011-05-11  Jim Meyering  <meyering@redhat.com>
21906
21907         maint.mk: improve "can not" detection and generalize rule name
21908         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21909         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21910         Use the same technique as in sc_prohibit_doubled_word, so that
21911         we recognize "can not" also when the words are separated by a newline.
21912         Suggested by Eric Blake.
21913         (perl_filename_lineno_text_): Define.  Factored out of...
21914         (prohibit_doubled_word_): ...here.  Use the new definition.
21915         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21916         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21917         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21918
21919 2011-05-10  Eric Blake  <eblake@redhat.com>
21920
21921         fclose: avoid double close race when possible
21922         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21923         all but WINDOWS_SOCKETS.
21924
21925 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21926
21927         openat: correct new comment
21928         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21929
21930 2011-05-10  Jim Meyering  <meyering@redhat.com>
21931
21932         openat: add comments
21933         * lib/openat-proc.c (openat_proc_name): Add comments,
21934         mostly from Eric Blake.
21935
21936 2011-05-09  Eric Blake  <eblake@redhat.com>
21937
21938         openat: reduce syscalls in first probe of /proc
21939         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21940         be a directory.  Simplify the probe for .. bugs.
21941         * modules/openat (Depends-on): Drop same-inode.
21942         Reported by Bastien ROUCARIES.
21943
21944 2011-05-09  Jim Meyering  <meyering@redhat.com>
21945
21946         maint.mk: change semantics/name of tight_scope variables
21947         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21948         Rename variables to align with semantics that make them more useful.
21949
21950         maint.mk: tweak new rule's name not to impinge
21951         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21952         (sc_tight_scope): Use new rule name rather than $@-0.
21953
21954         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21955         * top/maint.mk (sc_tight_scope): New rule.
21956         (sc_tight_scope-0): New rule, ifdef'd out.
21957         (_gl_TS_dir): Default.
21958         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21959         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21960
21961 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21962
21963         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21964         Haible <bruno@clisp.org>.
21965
21966 2011-05-08  Bruno Haible  <bruno@clisp.org>
21967
21968         Comments.
21969         * m4/isnanf.m4: Add comment.
21970         * m4/isnanl.m4: Likewise.
21971
21972 2011-05-08  Bruno Haible  <bruno@clisp.org>
21973
21974         glob: Remove obsolete macro.
21975         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21976
21977 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21978
21979         intprops: Sun C 5.11 supports __typeof__
21980         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21981         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21982         which is new.
21983         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21984
21985         intprops: switch to usual gnulib indenting and naming
21986         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21987         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21988
21989         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21990
21991 2011-05-08  Jim Meyering  <meyering@redhat.com>
21992
21993         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21994         * top/maint.mk (release-prep): Use make's --no-print-directory
21995         option when generating the announcement.  This eliminates the
21996         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21997         generated announcement template.
21998
21999 2011-05-08  Bruno Haible  <bruno@clisp.org>
22000
22001         tzset: Fix gettimeofday wrapper on Solaris 2.6.
22002         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
22003         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
22004
22005 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
22006
22007         ignore-value, verify: Omit include files from lib_SOURCES.
22008         * modules/ignore-value, modules/verify (Makefile.am):
22009         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
22010         that leads Automake to duplicate use of am__objects_... variables
22011         in Makefile.in.  See
22012         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
22013
22014 2011-05-07  Bruno Haible  <bruno@clisp.org>
22015
22016         fclose: Simplify autoconf macro.
22017         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
22018         defined.
22019
22020 2011-05-07  Bruno Haible  <bruno@clisp.org>
22021
22022         canonicalize-lgpl: Fix autoconf macro ordering bug.
22023         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
22024         gl_STDLIB_H_DEFAULTS.
22025
22026 2011-05-06  Eric Blake  <eblake@redhat.com>
22027
22028         maintainer-makefile: make sc_po_check easier to tune
22029         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
22030         to probe for strings, such as an alternate location for gnulib.
22031
22032         fclose: guarantee behavior on seekable stdin
22033         * modules/fclose (Depends-on): Add fflush.
22034         * doc/posix-functions/fclose.texi (fclose): Document this.
22035         * tests/test-fclose.c (main): Make test for this unconditional.
22036
22037 2011-05-06  Bruno Haible  <bruno@clisp.org>
22038
22039         fflush, fpurge: Relicense under LGPLv2+.
22040         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
22041         * modules/fpurge (License): Likewise.
22042         With permission from Eric Blake and Jim Meyering.
22043         Suggested by Eric Blake.
22044
22045 2011-05-06  Karl Berry  <karl@gnu.org>
22046
22047         * MODULES.html.sh (func_all_modules): remove exit.
22048
22049 2011-05-06  Jim Meyering  <meyering@redhat.com>
22050
22051         maint.mk: use info-gnu@ as the default only for a stable release
22052         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
22053         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
22054         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
22055         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
22056
22057 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22058
22059         assert-h: new module, which supports C1X-style static_assert
22060         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
22061         * lib/verify.h: Revamp so that this can be copied into assert.h,
22062         while retaining the ability to use it standalone as before.
22063         Rename private identifiers so as not to encroach on the
22064         standard C namespace, since this is now used by assert.h.
22065         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
22066         the old verify_true.
22067         (_GL_VERIFY_TRUE): New macro, with much of the contents of
22068         the old verify_true.  Use _GL_VERIFY_TYPE.
22069         (_GL_VERIFY): New macro, with much of the contents of the old verify.
22070         (static_assert): New macro, if _GL_STATIC_ASSERT_H
22071         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
22072         defined when this file is copied into the replacement assert.h.
22073         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
22074         and _Static_assert is not built in.
22075         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
22076         defined, and use the new macros mentioned above.
22077         * doc/posix-headers/assert.texi: Document this.
22078
22079 2011-05-05  Bruno Haible  <bruno@clisp.org>
22080
22081         fclose, fflush: Respect rules for use of AC_LIBOBJ.
22082         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
22083         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
22084         gl_REPLACE_FCLOSE here.
22085         * modules/fflush (Depends-on): Remove fclose.
22086         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
22087         combination with module 'fclose'.
22088
22089 2011-05-05  Bruno Haible  <bruno@clisp.org>
22090
22091         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
22092         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
22093         gl_FUNC_FFLUSH.
22094         (gl_FUNC_FFLUSH): Use it.
22095         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
22096         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
22097         gl_REPLACE_FSEEKO here.
22098
22099 2011-05-05  Bruno Haible  <bruno@clisp.org>
22100
22101         tzset: Relicense under LGPL.
22102         * modules/tzset (License): Change to LGPL.
22103         No agreement needed; it's a no-op.
22104
22105         strtoimax, strtoumax: Relicense under LGPL.
22106         * modules/strtoimax (License): Change to LGPL.
22107         * modules/strtoumax (License): Likewise.
22108         With permission from Jim Meyering, Paul Eggert:
22109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
22110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
22111
22112         getgroups: Relicense under LGPL.
22113         * modules/getgroups (License): Change to LGPL.
22114         With permission from Jim Meyering, Paul Eggert, Eric Blake:
22115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22118
22119         nanosleep: Relicense under LGPL.
22120         * modules/nanosleep (License): Change to LGPL.
22121         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
22122         Haible:
22123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22127
22128         futimens: Relicense under LGPL.
22129         * modules/futimens (License): Change to LGPL.
22130         With permission from Eric Blake:
22131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22132
22133         fflush: Relicense under LGPL.
22134         * modules/fflush (License): Change to LGPL.
22135         With permission from Eric Blake, Bruno Haible, Jim Meyering:
22136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
22139
22140         tmpfile: Relicense under LGPL.
22141         * modules/tmpfile (License): Change to LGPL.
22142         With permission from Ben Pfaff:
22143         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22144
22145         isfinite: Relicense under LGPL.
22146         * modules/isfinite (License): Change to LGPL.
22147         With permission from Ben Pfaff, Bruno Haible:
22148         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
22150
22151         acosl..tanl: Relicense under LGPL.
22152         * modules/acosl (License): Change to LGPL.
22153         * modules/asinl (License): Likewise.
22154         * modules/atanl (License): Likewise.
22155         * modules/cosl (License): Likewise.
22156         * modules/expl (License): Likewise.
22157         * modules/logl (License): Likewise.
22158         * modules/sinl (License): Likewise.
22159         * modules/sqrtl (License): Likewise.
22160         * modules/tanl (License): Likewise.
22161         Source code originally from glibc and Paolo Bonzini. Agreements:
22162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
22163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
22164
22165 2011-05-05  Bruno Haible  <bruno@clisp.org>
22166
22167         signal: Define sighandler_t.
22168         * lib/signal.in.h (sighandler_t): New type.
22169         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
22170         whether sighandler_t is defined.
22171         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
22172         * modules/signal (Depends-on): Add extensions.
22173         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
22174         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
22175         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
22176
22177 2011-05-05  Eric Blake  <eblake@redhat.com>
22178
22179         maint: remove useless REPLACE_*_H macros
22180         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
22181         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22182         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22183         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
22184         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22185         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22186         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
22187         * m4/btowc.m4: Update callers.
22188         * m4/dirfd.m4: Likewise.
22189         * m4/duplocale.m4: Likewise.
22190         * m4/fchdir.m4: Likewise.
22191         * m4/fdopendir.m4: Likewise.
22192         * m4/inet_ntop.m4: Likewise.
22193         * m4/inet_pton.m4: Likewise.
22194         * m4/ioctl.m4: Likewise.
22195         * m4/mbrlen.m4: Likewise.
22196         * m4/mbrtowc.m4: Likewise.
22197         * m4/mbsinit.m4: Likewise.
22198         * m4/mbsnrtowcs.m4: Likewise.
22199         * m4/mbsrtowcs.m4: Likewise.
22200         * m4/poll.m4: Likewise.
22201         * m4/setlocale.m4: Likewise.
22202         * m4/wcrtomb.m4: Likewise.
22203         * m4/wcsnrtombs.m4: Likewise.
22204         * m4/wcsrtombs.m4: Likewise.
22205         * m4/wctob.m4: Likewise.
22206         * m4/wcwidth.m4: Likewise.
22207         * modules/posix_spawn: Likewise.
22208         * modules/posix_spawn_file_actions_addclose: Likewise.
22209         * modules/posix_spawn_file_actions_adddup2: Likewise.
22210         * modules/posix_spawn_file_actions_addopen: Likewise.
22211         * modules/posix_spawn_file_actions_destroy: Likewise.
22212         * modules/posix_spawn_file_actions_init: Likewise.
22213         * modules/posix_spawnattr_destroy: Likewise.
22214         * modules/posix_spawnattr_getflags: Likewise.
22215         * modules/posix_spawnattr_getpgroup: Likewise.
22216         * modules/posix_spawnattr_getschedparam: Likewise.
22217         * modules/posix_spawnattr_getschedpolicy: Likewise.
22218         * modules/posix_spawnattr_getsigdefault: Likewise.
22219         * modules/posix_spawnattr_getsigmask: Likewise.
22220         * modules/posix_spawnattr_init: Likewise.
22221         * modules/posix_spawnattr_setflags: Likewise.
22222         * modules/posix_spawnattr_setpgroup: Likewise.
22223         * modules/posix_spawnattr_setschedparam: Likewise.
22224         * modules/posix_spawnattr_setschedpolicy: Likewise.
22225         * modules/posix_spawnattr_setsigdefault: Likewise.
22226         * modules/posix_spawnattr_setsigmask: Likewise.
22227         * modules/posix_spawnp: Likewise.
22228
22229 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22230
22231         Add option to do-release-commit-and-tag to specify branch.
22232         * build-aux/do-release-commit-and-tag: Add --branch.
22233
22234 2011-05-03  Bruno Haible  <bruno@clisp.org>
22235
22236         Avoid unnecessary compilation units, through conditional dependencies.
22237         * modules/accept (Depends-on): Add conditions to the dependencies.
22238         * modules/acosl (Depends-on): Likewise.
22239         * modules/argz (Depends-on): Likewise.
22240         * modules/asinl (Depends-on): Likewise.
22241         * modules/atanl (Depends-on): Likewise.
22242         * modules/atoll (Depends-on): Likewise.
22243         * modules/bind (Depends-on): Likewise.
22244         * modules/btowc (Depends-on): Likewise.
22245         * modules/canonicalize-lgpl (Depends-on): Likewise.
22246         * modules/ceil (Depends-on): Likewise.
22247         * modules/ceilf (Depends-on): Likewise.
22248         * modules/ceill (Depends-on): Likewise.
22249         * modules/chdir-long (Depends-on): Likewise.
22250         * modules/chown (Depends-on): Likewise.
22251         * modules/close (Depends-on): Likewise.
22252         * modules/connect (Depends-on): Likewise.
22253         * modules/cosl (Depends-on): Likewise.
22254         * modules/dirfd (Depends-on): Likewise.
22255         * modules/dprintf (Depends-on): Likewise.
22256         * modules/dprintf-posix (Depends-on): Likewise.
22257         * modules/error (Depends-on): Likewise.
22258         * modules/euidaccess (Depends-on): Likewise.
22259         * modules/expl (Depends-on): Likewise.
22260         * modules/faccessat (Depends-on): Likewise.
22261         * modules/fchdir (Depends-on): Likewise.
22262         * modules/fclose (Depends-on): Likewise.
22263         * modules/fcntl (Depends-on): Likewise.
22264         * modules/fdopendir (Depends-on): Likewise.
22265         * modules/fflush (Depends-on): Likewise.
22266         * modules/floor (Depends-on): Likewise.
22267         * modules/floorf (Depends-on): Likewise.
22268         * modules/floorl (Depends-on): Likewise.
22269         * modules/fnmatch (Depends-on): Likewise.
22270         * modules/fopen (Depends-on): Likewise.
22271         * modules/fprintf-posix (Depends-on): Likewise.
22272         * modules/frexp (Depends-on): Likewise.
22273         * modules/frexp-nolibm (Depends-on): Likewise.
22274         * modules/frexpl (Depends-on): Likewise.
22275         * modules/frexpl-nolibm (Depends-on): Likewise.
22276         * modules/fseek (Depends-on): Likewise.
22277         * modules/fsusage (Depends-on): Likewise.
22278         * modules/ftell (Depends-on): Likewise.
22279         * modules/ftello (Depends-on): Likewise.
22280         * modules/futimens (Depends-on): Likewise.
22281         * modules/getcwd (Depends-on): Likewise.
22282         * modules/getcwd-lgpl (Depends-on): Likewise.
22283         * modules/getdelim (Depends-on): Likewise.
22284         * modules/getdomainname (Depends-on): Likewise.
22285         * modules/getgroups (Depends-on): Likewise.
22286         * modules/gethostname (Depends-on): Likewise.
22287         * modules/getline (Depends-on): Likewise.
22288         * modules/getlogin_r (Depends-on): Likewise.
22289         * modules/getopt-posix (Depends-on): Likewise.
22290         * modules/getpeername (Depends-on): Likewise.
22291         * modules/getsockname (Depends-on): Likewise.
22292         * modules/getsockopt (Depends-on): Likewise.
22293         * modules/getsubopt (Depends-on): Likewise.
22294         * modules/getusershell (Depends-on): Likewise.
22295         * modules/glob (Depends-on): Likewise.
22296         * modules/grantpt (Depends-on): Likewise.
22297         * modules/iconv_open (Depends-on): Likewise.
22298         * modules/iconv_open-utf (Depends-on): Likewise.
22299         * modules/inet_ntop (Depends-on): Likewise.
22300         * modules/inet_pton (Depends-on): Likewise.
22301         * modules/ioctl (Depends-on): Likewise.
22302         * modules/isapipe (Depends-on): Likewise.
22303         * modules/isfinite (Depends-on): Likewise.
22304         * modules/isinf (Depends-on): Likewise.
22305         * modules/lchown (Depends-on): Likewise.
22306         * modules/ldexpl (Depends-on): Likewise.
22307         * modules/link (Depends-on): Likewise.
22308         * modules/linkat (Depends-on): Likewise.
22309         * modules/listen (Depends-on): Likewise.
22310         * modules/logl (Depends-on): Likewise.
22311         * modules/lstat (Depends-on): Likewise.
22312         * modules/mbrlen (Depends-on): Likewise.
22313         * modules/mbrtowc (Depends-on): Likewise.
22314         * modules/mbsinit (Depends-on): Likewise.
22315         * modules/mbsnrtowcs (Depends-on): Likewise.
22316         * modules/mbsrtowcs (Depends-on): Likewise.
22317         * modules/mbtowc (Depends-on): Likewise.
22318         * modules/memcmp (Depends-on): Likewise.
22319         * modules/mkdir (Depends-on): Likewise.
22320         * modules/mkdtemp (Depends-on): Likewise.
22321         * modules/mkfifo (Depends-on): Likewise.
22322         * modules/mkfifoat (Depends-on): Likewise.
22323         * modules/mknod (Depends-on): Likewise.
22324         * modules/mkostemp (Depends-on): Likewise.
22325         * modules/mkostemps (Depends-on): Likewise.
22326         * modules/mkstemp (Depends-on): Likewise.
22327         * modules/mkstemps (Depends-on): Likewise.
22328         * modules/mktime (Depends-on): Likewise.
22329         * modules/nanosleep (Depends-on): Likewise.
22330         * modules/open (Depends-on): Likewise.
22331         * modules/openat (Depends-on): Likewise.
22332         * modules/perror (Depends-on): Likewise.
22333         * modules/poll (Depends-on): Likewise.
22334         * modules/popen (Depends-on): Likewise.
22335         * modules/posix_spawn (Depends-on): Likewise.
22336         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22337         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22338         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22339         * modules/posix_spawnp (Depends-on): Likewise.
22340         * modules/pread (Depends-on): Likewise.
22341         * modules/printf-posix (Depends-on): Likewise.
22342         * modules/ptsname (Depends-on): Likewise.
22343         * modules/putenv (Depends-on): Likewise.
22344         * modules/pwrite (Depends-on): Likewise.
22345         * modules/readline (Depends-on): Likewise.
22346         * modules/readlink (Depends-on): Likewise.
22347         * modules/readlinkat (Depends-on): Likewise.
22348         * modules/recv (Depends-on): Likewise.
22349         * modules/recvfrom (Depends-on): Likewise.
22350         * modules/regex (Depends-on): Likewise.
22351         * modules/remove (Depends-on): Likewise.
22352         * modules/rename (Depends-on): Likewise.
22353         * modules/renameat (Depends-on): Likewise.
22354         * modules/rmdir (Depends-on): Likewise.
22355         * modules/round (Depends-on): Likewise.
22356         * modules/roundf (Depends-on): Likewise.
22357         * modules/roundl (Depends-on): Likewise.
22358         * modules/rpmatch (Depends-on): Likewise.
22359         * modules/select (Depends-on): Likewise.
22360         * modules/send (Depends-on): Likewise.
22361         * modules/sendto (Depends-on): Likewise.
22362         * modules/setenv (Depends-on): Likewise.
22363         * modules/setlocale (Depends-on): Likewise.
22364         * modules/setsockopt (Depends-on): Likewise.
22365         * modules/shutdown (Depends-on): Likewise.
22366         * modules/sigaction (Depends-on): Likewise.
22367         * modules/signbit (Depends-on): Likewise.
22368         * modules/sigprocmask (Depends-on): Likewise.
22369         * modules/sinl (Depends-on): Likewise.
22370         * modules/sleep (Depends-on): Likewise.
22371         * modules/snprintf (Depends-on): Likewise.
22372         * modules/snprintf-posix (Depends-on): Likewise.
22373         * modules/socket (Depends-on): Likewise.
22374         * modules/sprintf-posix (Depends-on): Likewise.
22375         * modules/sqrtl (Depends-on): Likewise.
22376         * modules/stat (Depends-on): Likewise.
22377         * modules/strchrnul (Depends-on): Likewise.
22378         * modules/strdup-posix (Depends-on): Likewise.
22379         * modules/strerror (Depends-on): Likewise.
22380         * modules/strerror_r-posix (Depends-on): Likewise.
22381         * modules/strndup (Depends-on): Likewise.
22382         * modules/strnlen (Depends-on): Likewise.
22383         * modules/strptime (Depends-on): Likewise.
22384         * modules/strsep (Depends-on): Likewise.
22385         * modules/strsignal (Depends-on): Likewise.
22386         * modules/strstr-simple (Depends-on): Likewise.
22387         * modules/strtod (Depends-on): Likewise.
22388         * modules/strtoimax (Depends-on): Likewise.
22389         * modules/strtok_r (Depends-on): Likewise.
22390         * modules/strtoumax (Depends-on): Likewise.
22391         * modules/symlink (Depends-on): Likewise.
22392         * modules/symlinkat (Depends-on): Likewise.
22393         * modules/tanl (Depends-on): Likewise.
22394         * modules/tcgetsid (Depends-on): Likewise.
22395         * modules/tmpfile (Depends-on): Likewise.
22396         * modules/trunc (Depends-on): Likewise.
22397         * modules/truncf (Depends-on): Likewise.
22398         * modules/truncl (Depends-on): Likewise.
22399         * modules/uname (Depends-on): Likewise.
22400         * modules/unlink (Depends-on): Likewise.
22401         * modules/unlockpt (Depends-on): Likewise.
22402         * modules/unsetenv (Depends-on): Likewise.
22403         * modules/usleep (Depends-on): Likewise.
22404         * modules/utimensat (Depends-on): Likewise.
22405         * modules/vasprintf (Depends-on): Likewise.
22406         * modules/vdprintf (Depends-on): Likewise.
22407         * modules/vdprintf-posix (Depends-on): Likewise.
22408         * modules/vfprintf-posix (Depends-on): Likewise.
22409         * modules/vprintf-posix (Depends-on): Likewise.
22410         * modules/vsnprintf (Depends-on): Likewise.
22411         * modules/vsnprintf-posix (Depends-on): Likewise.
22412         * modules/vsprintf-posix (Depends-on): Likewise.
22413         * modules/wcrtomb (Depends-on): Likewise.
22414         * modules/wcscasecmp (Depends-on): Likewise.
22415         * modules/wcscspn (Depends-on): Likewise.
22416         * modules/wcsdup (Depends-on): Likewise.
22417         * modules/wcsncasecmp (Depends-on): Likewise.
22418         * modules/wcsnrtombs (Depends-on): Likewise.
22419         * modules/wcspbrk (Depends-on): Likewise.
22420         * modules/wcsrtombs (Depends-on): Likewise.
22421         * modules/wcsspn (Depends-on): Likewise.
22422         * modules/wcsstr (Depends-on): Likewise.
22423         * modules/wcstok (Depends-on): Likewise.
22424         * modules/wcswidth (Depends-on): Likewise.
22425         * modules/wctob (Depends-on): Likewise.
22426         * modules/wctomb (Depends-on): Likewise.
22427         * modules/wctype (Depends-on): Likewise.
22428         * modules/wcwidth (Depends-on): Likewise.
22429         * modules/write (Depends-on): Likewise.
22430
22431 2011-05-03  Bruno Haible  <bruno@clisp.org>
22432
22433         Support for conditional dependencies.
22434         * doc/gnulib.texi (Module description): Document the syntax of
22435         conditional dependencies.
22436         * gnulib-tool: New option --conditional-dependencies.
22437         (func_usage): Document it.
22438         (cond_dependencies): New variable.
22439         (func_get_automake_snippet_conditional,
22440         func_get_automake_snippet_unconditional): New functions, extracted from
22441         func_get_automake_snippet.
22442         (func_get_automake_snippet): Use them.
22443         (sed_first_32_chars): New variable.
22444         (func_module_shellfunc_name): New function.
22445         (func_module_shellvar_name): New function.
22446         (func_module_conditional_name): New function.
22447         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22448         func_cond_module_condition): New functions.
22449         (func_modules_transitive_closure): Add support for conditional
22450         dependencies.
22451         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22452         conditional automake snippet in an automake conditional.
22453         (func_emit_autoconf_snippets): Emit shell functions that contain the
22454         code for conditional modules.
22455         (func_import, func_create_testdir): Update specification.
22456
22457 2011-05-03  Eric Blake  <eblake@redhat.com>
22458
22459         test-getaddrinfo: report error information
22460         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22461
22462 2011-05-03  Jim Meyering  <meyering@redhat.com>
22463
22464         bootstrap: avoid build failure when $GZIP is set
22465         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22466         program name.  If defined at all, it is supposed to list gzip options.
22467         Reported by Alan Curry in http://debbugs.gnu.org/8609
22468
22469 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22470
22471         readme-release: new module with release instructions
22472         * modules/readme-release: New module.
22473         * top/README-release: New file, from coreutils, grep, diffutils.
22474         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22475
22476 2011-05-02  Eric Blake  <eblake@redhat.com>
22477
22478         fflush: also replace fclose when fixing fflush
22479         * modules/fflush (Depends-on): Add fclose.
22480         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22481         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22482         memstreams with no backing fd.
22483         * doc/posix-functions/fclose.texi (fclose): Document the use of
22484         fflush module to fix the bug.
22485         * tests/test-fclose.c (main): Relax test when fclose is used in
22486         isolation.
22487
22488         fclose: add some tests
22489         * modules/fclose-tests: New test module.
22490         * tests/test-fclose.c: New file.
22491         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22492
22493         fclose: reduced dependencies
22494         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22495         simpler lseek.
22496         * lib/fclose.c (rpl_fclose): Likewise.
22497         Reported by Simon Josefsson.
22498
22499         exit: drop remaining clients
22500         * modules/argmatch (Depends-on): Replace exit with stdlib.
22501         * modules/copy-file (Depends-on): Likewise.
22502         * modules/execute (Depends-on): Likewise.
22503         * modules/exitfail (Depends-on): Likewise.
22504         * modules/obstack (Depends-on): Likewise.
22505         * modules/pagealign_alloc (Depends-on): Likewise.
22506         * modules/pipe-filter-gi (Depends-on): Likewise.
22507         * modules/pipe-filter-ii (Depends-on): Likewise.
22508         * modules/savewd (Depends-on): Likewise.
22509         * modules/spawn-pipe (Depends-on): Likewise.
22510         * modules/wait-process (Depends-on): Likewise.
22511         * modules/xsetenv (Depends-on): Likewise.
22512         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22513         * modules/git-merge-changelog (Depends-on): Likewise.
22514         * modules/long-options (Depends-on): Likewise.
22515         * modules/pt_chown (Depends-on): Likewise.
22516         * modules/sysexits (Depends-on): Likewise.
22517
22518         freading: relax license from LGPLv3+ to LGPLv2+
22519         * modules/freading (License): Relax LGPL version.
22520
22521 2011-05-02  Bruno Haible  <bruno@clisp.org>
22522
22523         fchdir: Remove unused dependencies.
22524         * modules/fchdir (Depends-on): Remove include_next.
22525
22526 2011-05-02  Bruno Haible  <bruno@clisp.org>
22527
22528         gnulib-tool: Refactor.
22529         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22530         from func_emit_autoconf_snippets.
22531         (func_emit_autoconf_snippets): Use it.
22532
22533 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22534
22535         * NEWS: Document removal of 'exit'.
22536         * modules/exit: Remove file.
22537
22538 2011-05-01  Bruno Haible  <bruno@clisp.org>
22539
22540         Update DEPENDENCIES.
22541         * DEPENDENCIES (gettext): Recommend the newest release.
22542         Reported by Simon Josefsson.
22543
22544 2011-05-01  Bruno Haible  <bruno@clisp.org>
22545
22546         gnulib-tool: Reduce code duplication.
22547         * gnulib-tool (func_emit_autoconf_snippets): New function.
22548         (func_import, func_create_testdir): Use it.
22549
22550 2011-04-30  Eric Blake  <eblake@redhat.com>
22551
22552         fclose: don't fail on non-seekable input stream
22553         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22554         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22555         since fflush is allowed to fail in that case.
22556
22557 2011-04-30  Bruno Haible  <bruno@clisp.org>
22558
22559         dup3: cleanup
22560         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22561
22562 2011-04-30  Bruno Haible  <bruno@clisp.org>
22563
22564         netdb: Make it work in C++ mode.
22565         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22566         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22567         module.
22568         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22569         gl_MODULE_INDICATOR_FOR_TESTS.
22570         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22571         * modules/netdb-c++-tests: New file.
22572         * tests/test-netdb-c++.cc: New file.
22573
22574 2011-04-30  Bruno Haible  <bruno@clisp.org>
22575
22576         New modules 'vfscanf', 'vscanf'.
22577         * modules/vfscanf: New file.
22578         * modules/vscanf: New file.
22579         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22580         here.
22581         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22582         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22583
22584 2011-04-30  Bruno Haible  <bruno@clisp.org>
22585
22586         passfd: Add comments.
22587         * lib/passfd.c: Add comments about platforms.
22588
22589 2011-04-30  Bruno Haible  <bruno@clisp.org>
22590
22591         sys_uio: Make <sys/uio.h> self-contained.
22592         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22593         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22594
22595 2011-04-30  Bruno Haible  <bruno@clisp.org>
22596
22597         sys_socket: Ensure 'struct iovec' definition.
22598         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22599         <sys/socket.h>.
22600         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22601
22602 2011-04-30  Bruno Haible  <bruno@clisp.org>
22603
22604         sys_uio: Protect definition of 'struct iovec'.
22605         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22606         it as a C struct.
22607
22608 2011-04-30  Bruno Haible  <bruno@clisp.org>
22609
22610         manywarnings: fix indentation
22611         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22612
22613 2011-04-30  Pádraig Brady <P@draigBrady.com>
22614
22615         manywarnings: add -Wno-missing-field-initializers if needed.
22616         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22617         option if it's needed to allow initialization with { 0, }
22618
22619 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22620
22621         announce-gen: cosmetic improvement
22622         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22623
22624 2011-04-29  Jim Meyering  <meyering@redhat.com>
22625
22626         vc-list-files: indent with spaces, not TABs
22627         * build-aux/vc-list-files: Convert leading TABs to spaces,
22628         to match the style of most other files in gnulib.
22629
22630         announce-gen: indent with spaces, not TABs
22631         * build-aux/announce-gen: Convert all TABs to spaces, to match
22632         the style of most other files in gnulib.
22633
22634 2011-04-29  Eric Blake  <eblake@redhat.com>
22635
22636         quotearg: avoid uninitialized variable use
22637         * lib/quotearg.c (quoting_options_from_style): Initialize
22638         remaining fields, and ensure that custom styles are only used via
22639         quoting_options rather than quoting_style.
22640
22641 2011-04-29  Jim Meyering  <meyering@redhat.com>
22642
22643         maint.mk: remove unused VC-tag variable
22644         * top/maint.mk (VC-tag): Remove unused variable.
22645
22646 2011-04-29  Bruno Haible  <bruno@clisp.org>
22647
22648         netdb: fix gai_strerror replacements
22649         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22650         * modules/netdb: Substitute it.
22651
22652 2011-04-29  Jim Meyering  <meyering@redhat.com>
22653
22654         test-getcwd.c: avoid new set-but-not-used warning
22655         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22656         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22657         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22658         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22659
22660         test-hash.c: avoid a new shadowing warning
22661         * tests/test-hash.c (main): Don't shadow "dup".
22662
22663 2011-04-28  Eric Blake  <eblake@redhat.com>
22664
22665         getaddrinfo: fix gai_strerror signature
22666         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22667         and work around mingw with UNICODE defined.
22668         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22669         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22670         * modules/netdb (Makefile.am): Substitute it.
22671         * lib/netdb.in.h (gai_strerror): Declare replacement.
22672         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22673         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22674         the fix.
22675
22676         getsockopt: avoid compiler warning
22677         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22678         Reported by Matthias Bolte.
22679
22680         tests: drop unused link dependency
22681         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22682         * modules/dirent-safer-tests (Makefile.am): Likewise.
22683         * modules/fdopendir-tests (Makefile.am): Likewise.
22684         * modules/mkfifoat-tests (Makefile.am): Likewise.
22685         * modules/openat-safer-tests (Makefile.am): Likewise.
22686         * modules/openat-tests (Makefile.am): Likewise.
22687         * modules/readlinkat-tests (Makefile.am): Likewise.
22688         * modules/symlinkat-tests (Makefile.am): Likewise.
22689         * modules/linkat-tests (Makefile.am): Likewise.
22690         (Depends-on): Switch to filenamecat-lgpl.
22691         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22692         LIBINTL.
22693         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22694         * tests/test-linkat.c (main): Don't require xalloc.
22695
22696         hash, mgetgroups: drop xalloc dependency
22697         * lib/hash.c (includes): Adjust includes.
22698         * lib/mgetgroups.c (includes): Likewise.
22699         (xgetgroups): Move...
22700         * lib/xgetgroups.c: ...to new file.
22701         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22702         * modules/xgetgroups: New file, split from...
22703         * modules/mgetgroups: ...here.
22704         (Depends-on): Add xalloc-oversized.
22705         * modules/hash (Depends-on): Likewise.
22706         * modules/hash-tests (Depends-on): Drop xalloc.
22707         (test_hash_LDADD): Drop unused library.
22708         * tests/test-hash.c (main): Break xalloc dependency.
22709         (includes): Drop unused include.
22710
22711         xalloc-oversized: new module
22712         * modules/xalloc-oversized: New module.
22713         * modules/xalloc (Depends-on): Add it.
22714         * lib/xalloc.h (xalloc_oversized): Move...
22715         * lib/xalloc-oversized.h: ...into new file.
22716
22717         utimecmp: drop dependency on xmalloc
22718         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22719         due to memory pressure.
22720         * modules/utimecmp (Depends-on): Drop xalloc.
22721
22722 2011-04-27  Eric Blake  <eblake@redhat.com>
22723
22724         getcwd: fix mingw bugs
22725         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22726         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22727         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22728
22729 2011-04-27  Bruno Haible  <bruno@clisp.org>
22730
22731         mkstemps: Ensure declaration on MacOS X 10.5.
22732         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22733         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22734         MacOS X.
22735
22736 2011-04-27  Bruno Haible  <bruno@clisp.org>
22737
22738         mkstemp: More documentation.
22739         * doc/posix-functions/mkstemp.texi: Document header file problem on
22740         MacOS X.
22741
22742 2011-04-27  Bruno Haible  <bruno@clisp.org>
22743
22744         mkstemp: Tweak configure message when cross-compiling.
22745         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22746         result as a guess.
22747
22748 2011-04-27  Bruno Haible  <bruno@clisp.org>
22749
22750         clean-temp: Clarify what it does.
22751         * lib/clean-temp.h: Add more comments.
22752         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22753         module.
22754         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22755         * doc/glibc-functions/mkstemps.texi: Likewise.
22756         * doc/glibc-functions/mkostemps.texi: Likewise.
22757
22758 2011-04-27  Eric Blake  <eblake@redhat.com>
22759
22760         fchdir: avoid extra chdir and fix test
22761         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22762         getcwd-lgpl.
22763         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22764         have to be canonical.
22765         (canonicalize_file_name): Drop unused macro.
22766         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22767
22768         filenamecat-lgpl: fix licence
22769         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22770         when it was first created.
22771
22772         linkat, renameat: add missing dependency
22773         * modules/linkat (Depends-on): Require getcwd-lgpl.
22774         * modules/renameat (Depends-on): Likewise.
22775
22776         tests: reduce dependencies
22777         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22778         * tests/test-renameat.c (main): Likewise.
22779         * modules/linkat-tests (Depends-on): Relax dependency.
22780         * modules/renameat-tests (Depends-on): Likewise.
22781         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22782         dependency explicit.
22783
22784         save-cwd: reduce default dependency
22785         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22786         * lib/save-cwd.c: Update comments.
22787         * NEWS: Document the semantic change.
22788
22789         getcwd: enhance tests
22790         * tests/test-getcwd-lgpl.c: New file, taken from...
22791         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22792         repeat long path stress tests from m4 probe.
22793         * modules/getcwd-lgpl-tests: New module.
22794         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22795         * m4/getcwd-abort-bug.m4: Update comment.
22796         * m4/getcwd-path-max.m4: Likewise.
22797
22798         getcwd-lgpl: new module
22799         * modules/getcwd-lgpl: New module.
22800         * lib/getcwd-lgpl.c: New file.
22801         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22802         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22803         * modules/getcwd (configure.ac): Set C witness.
22804         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22805
22806         getcwd: tweak comments
22807         * m4/getcwd-abort-bug.m4: Fix comments.
22808         * m4/getcwd-path-max.m4: Likewise.
22809         * m4/getcwd.m4: Likewise.
22810
22811 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22812         and Eric Blake  <eblake@redhat.com>
22813
22814         mkstemp: replace if system version uses wrong permissions
22815         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22816         read/write mode bits set in file created by mkstemp.
22817         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22818
22819 2011-04-27  Eric Blake  <eblake@redhat.com>
22820
22821         passfd: avoid compiler warning
22822         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22823         Reported by Laine Stump.
22824
22825 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22826
22827         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22828         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22829
22830 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22831         and Eric Blake  <eblake@redhat.com>
22832
22833         mkstemp: mention clean-temp module
22834         * lib/mkstemp.c: Add comment.
22835         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22836
22837 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22838
22839         inttypes: also provide default values for 32-bit tests
22840         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22841         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22842
22843 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22844
22845         strtoumax: remove dependency on strtoimax
22846         This is like the strtoull change of yesterday.
22847         * modules/strtoumax (Files): Add lib/strtoimax.c.
22848         (Depends-on): Remove strtoimax and add verify.
22849
22850         inttypes-incomplete: new module
22851         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22852         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22853         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22854         of gl_INTTYPES_H.
22855         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22856         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22857         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22858         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22859         * modules/strtoumax, modules/xstrtol (Depends-on):
22860         Depend on inttypes-incomplete, not inttypes.
22861         * modules/inttypes-incomplete: New module, containing the contents
22862         of the old modules/inttypes module, except that the Files: section
22863         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22864         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22865         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22866         (Depends-on): Depend only on inttypes-incomplete.
22867         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22868
22869         inttypes: omit now-redundant strtoimax and strtoumax work
22870         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22871         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22872
22873         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22874         This supports apps that need pointers to strtoimax and strtoumax,
22875         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22876         nonexistent functions.  See
22877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22878         et seq.
22879         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22880         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22881         a macro.
22882         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22883
22884 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22885
22886         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22887
22888 2011-04-25  Bruno Haible  <bruno@clisp.org>
22889
22890         strtol, strtoul: Mark modules as obsolete.
22891         * modules/strtol (Status, Notice): New sections.
22892         * modules/strtoul (Status, Notice): New sections.
22893
22894 2011-04-25  Bruno Haible  <bruno@clisp.org>
22895
22896         strtod: Remove check for strtod, unless supporting old platforms.
22897         * modules/strtod-obsolete: New file.
22898         * m4/strtod-obsolete.m4: New file.
22899         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22900         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22901         * modules/strtod (Depends-on): Add strtod-obsolete.
22902         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22903
22904 2011-04-25  Bruno Haible  <bruno@clisp.org>
22905
22906         strcase: Make module obsolete.
22907         * modules/strcase (Status, Notice): New sections.
22908
22909 2011-04-25  Bruno Haible  <bruno@clisp.org>
22910
22911         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22912         * modules/dup2-obsolete: New file.
22913         * m4/dup2-obsolete.m4: New file.
22914         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22915         gl_FUNC_DUP2_OBSOLETE is not also defined.
22916         * modules/dup2 (Depends-on): Add dup2-obsolete.
22917         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22918
22919 2011-04-25  Bruno Haible  <bruno@clisp.org>
22920
22921         strnlen: Avoid memchr related link error on old obsolete platforms.
22922         * modules/memchr-obsolete: New file.
22923         * m4/memchr-obsolete.m4: New file.
22924         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22925         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22926         * modules/memchr (Depends-on): Add memchr-obsolete.
22927         * modules/strnlen (Depends-on): Likewise.
22928         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22929
22930 2011-04-25  Jim Meyering  <meyering@redhat.com>
22931
22932         maint.mk: makefile_at_at_check extend and clean up
22933         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22934         in addition to */Makefile.am.
22935         Exempt legitimate uses of @VAR@ notation, e.g.,
22936         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22937         Remove obsolete coreutils-specific comment.
22938         Prompted by discussion here:
22939         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22940
22941 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22942
22943         strtoul: remove dependency on strtol
22944         This is so that 'configure' need not check for strtol merely because
22945         the application needs strtoul.
22946         * modules/strtoul (Files): Add lib/strtol.c.
22947         (Depends-on): Remove strtol.
22948
22949         strtoull: remove dependency on strtoul
22950         This is like the strtoll change.
22951         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22952         (Depends-on): Remove strtoul.
22953
22954         strtoll: remove dependency on strtol
22955         This is so that 'configure' need not check for strtol merely because
22956         the application needs strtoll.
22957         * modules/strtoll (Files): Add lib/strtol.c.
22958         (Depends-on): Remove strtol.
22959
22960 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22961
22962         inttypes: Move some configure check to module 'imaxdiv'.
22963         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22964         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22965         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22966
22967 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22968
22969         inttypes: Move some configure check to module 'imaxabs'.
22970         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22971         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22972         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22973
22974 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22975
22976         inttypes: Remove configure tests that are not needed since 2009-12-31.
22977         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22978         gl_cv_header_working_inttypes_h.
22979
22980 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22981
22982         * modules/strnlen (Depends-on): Remove memchr.
22983         The strnlen implementation doesn't need the memchr module's fixes; see
22984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22985
22986         strtol: remove dependency on wchar
22987         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22988         * modules/strtol (Depends-on): Remove wchar.
22989
22990 2011-04-21  Eric Blake  <eblake@redhat.com>
22991
22992         passfd: fix test regression on Linux
22993         * modules/passfd-tests (configure.ac): Correct socketpair check.
22994
22995         passfd: speed up configure and drop unused code
22996         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22997         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22998         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22999         Instead of probing at configure for unix_scm_rights_bsd44_way,
23000         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
23001         check to a struct member probe.
23002         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
23003         (sendfd, recvfd): Update preprocessor checks.
23004         * modules/passfd (Files): Reflect rename, and drop unused file.
23005         (Depends-on): Drop unused dependency.
23006
23007         passfd: allow compilation on mingw
23008         * modules/sys_socket (Depends-on): Add sys_uio.
23009         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
23010         iovec and a minimal struct msghdr.
23011         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
23012         * tests/test-sys_socket.c (main): Enhance test.
23013         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
23014         guaranteed to provide what we need.
23015         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
23016         * modules/passfd-tests (Depends-on): Add sys_wait.
23017         * tests/test-passfd.c (main): Skip test on mingw, for now.
23018         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
23019         partial 'struct msghdr' implementation.
23020
23021         sys_uio: new module
23022         * modules/sys_uio: New module.
23023         * modules/sys_uio-tests: Likewise.
23024         * lib/sys_uio.in.h: New file.
23025         * m4/sys_uio_h.m4: Likewise.
23026         * tests/test-sys_uio.c: Likewise.
23027         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
23028         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
23029
23030 2011-04-20  Jim Meyering  <meyering@redhat.com>
23031
23032         useless-if-before-free: avoid false-positive
23033         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
23034         disjunct so that it too requires a terminating ";".  Without that,
23035         this script would identify as useless one statement from gcc that
23036         was not:
23037           if (aligned_ptr)
23038             free (((void **) aligned_ptr) [-1]);
23039
23040 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
23041
23042         doc: update users.txt.
23043         * users.txt: Add barcode.
23044
23045 2011-04-19  Bruno Haible  <bruno@clisp.org>
23046
23047         ioctl: Remove link dependency on native Windows.
23048         * lib/fd-hook.h: Renamed from lib/close-hook.h.
23049         (gl_close_fn, gl_ioctl_fn): New types.
23050         (struct fd_hook): Renamed from struct close_hook. Change type of
23051         private_close_fn field. Add private_ioctl_fn field.
23052         (close_hook_fn): Add parameter for primary close method.
23053         (execute_close_hooks, execute_all_close_hooks): Likewise.
23054         (ioctl_hook_fn): New type.
23055         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
23056         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23057         argument.
23058         (unregister_fd_hook): Renamed from unregister_close_hook.
23059         * lib/fd-hook.c: Renamed from lib/close-hook.c.
23060         Don't include <unistd.h>.
23061         (close): Remove undef.
23062         (anchor): Update.
23063         (execute_close_hooks): Add argument for primary close method.
23064         (execute_all_close_hooks): Likewise.
23065         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
23066         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23067         argument. Allow each argument to be NULL.
23068         (unregister_fd_hook): Renamed from unregister_close_hook.
23069         * lib/close.c (rpl_close): Pass 'close' function pointer to
23070         execute_all_close_hooks.
23071         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
23072         (primary_ioctl): New function.
23073         (ioctl): Don't call ioctlsocket here. Instead, call
23074         execute_all_ioctl_hooks.
23075         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
23076         close method.
23077         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
23078         (fd_sockets_hook): Renamed from close_sockets_hook.
23079         (gl_sockets_startup, gl_sockets_cleanup): Update.
23080         * modules/fd-hook: Renamed from modules/close-hook. Update.
23081         * modules/close (Depends-on): Add fd-hook, remove close-hook.
23082         * modules/sockets (Depends-on): Likewise.
23083         * modules/ioctl (Depends-on): Add fd-hook.
23084         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
23085         GNULIB_SOCKET.
23086
23087 2011-04-19  Bruno Haible  <bruno@clisp.org>
23088
23089         Move the support of O_NONBLOCK in open() to the 'open' module.
23090         * modules/nonblocking (Depends-on): Remove 'open'.
23091         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
23092         gl_cv_have_open_O_NONBLOCK.
23093         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
23094         O_NONBLOCK support.
23095         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
23096
23097 2011-04-17  Bruno Haible  <bruno@clisp.org>
23098
23099         pipe2: Simplify code.
23100         * lib/pipe2.c (pipe2): Reduce code duplication.
23101
23102 2011-04-17  Bruno Haible  <bruno@clisp.org>
23103
23104         nonblocking: Add comment.
23105         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
23106
23107 2011-04-17  Bruno Haible  <bruno@clisp.org>
23108
23109         nonblocking: Add tests for sockets.
23110         * tests/test-nonblocking-socket.sh: New file.
23111         * tests/test-nonblocking-socket-main.c: New file.
23112         * tests/test-nonblocking-socket-child.c: New file.
23113         * tests/test-nonblocking-socket.h: New file.
23114         * tests/socket-server.h: New file.
23115         * tests/socket-client.h: New file.
23116         * modules/nonblocking-socket-tests: New file.
23117         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
23118
23119 2011-04-17  Bruno Haible  <bruno@clisp.org>
23120
23121         nonblocking: Add tests for pipes.
23122         * tests/test-nonblocking-pipe.sh: New file.
23123         * tests/test-nonblocking-pipe-main.c: New file.
23124         * tests/test-nonblocking-pipe-child.c: New file.
23125         * tests/test-nonblocking-pipe.h: New file.
23126         * tests/test-nonblocking-writer.h: New file.
23127         * tests/test-nonblocking-reader.h: New file.
23128         * tests/test-nonblocking-misc.h: New file.
23129         * modules/nonblocking-pipe-tests: New file.
23130         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
23131
23132 2011-04-16  Bruno Haible  <bruno@clisp.org>
23133
23134         gettext: Clarify the needed programmer actions.
23135         * modules/gettext (Notice): New field.
23136         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23137
23138 2011-04-16  Bruno Haible  <bruno@clisp.org>
23139
23140         strchrnul: Tweak last commit.
23141         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
23142         bug.
23143         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
23144         as in _GL_FUNCDECL_SYS.
23145         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
23146         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
23147
23148 2011-04-15  Eric Blake  <eblake@redhat.com>
23149
23150         strchrnul: work around cygwin bug
23151         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
23152         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
23153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
23154         * modules/string (Makefile.am): Substitute it.
23155         * lib/string.in.h (strchrnul): Use it.
23156
23157 2011-04-15  Bruno Haible  <bruno@clisp.org>
23158
23159         Don't require lib/stdio-write.c when only module 'stdio' is used.
23160         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
23161         invocation.
23162         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
23163
23164 2011-04-14  Bruno Haible  <bruno@clisp.org>
23165
23166         Support non-blocking pipe I/O in read() on native Windows.
23167         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
23168         (read): New declaration.
23169         * lib/read.c: New file.
23170         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
23171         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
23172         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
23173         vscanf): New declarations.
23174         * lib/stdio-read.c: New file.
23175         * m4/read.m4: New file.
23176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
23177         REPLACE_READ.
23178         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
23179         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23180         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
23181         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
23182         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
23183         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23184         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23185         * modules/read: New file.
23186         * modules/nonblocking (Files): Add lib/stdio-read.c.
23187         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
23188         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
23189         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23190         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23191         * modules/pread (Depends-on): Add read.
23192         * modules/safe-read (Depends-on): Likewise.
23193         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
23194         gets, scanf, vfscanf, vscanf): Verify signatures.
23195         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
23196         problem with non-blocking pipes.
23197         * doc/posix-functions/fgetc.texi: Likewise.
23198         * doc/posix-functions/fgets.texi: Likewise.
23199         * doc/posix-functions/fread.texi: Likewise.
23200         * doc/posix-functions/fscanf.texi: Likewise.
23201         * doc/posix-functions/getc.texi: Likewise.
23202         * doc/posix-functions/getchar.texi: Likewise.
23203         * doc/posix-functions/gets.texi: Likewise.
23204         * doc/posix-functions/scanf.texi: Likewise.
23205         * doc/posix-functions/vfscanf.texi: Likewise.
23206         * doc/posix-functions/vscanf.texi: Likewise.
23207
23208 2011-04-14  Bruno Haible  <bruno@clisp.org>
23209
23210         Support non-blocking pipe I/O in write() on native Windows.
23211         * lib/write.c (rpl_write): Split a write request that failed merely
23212         because the byte count was larger than the pipe buffer's size.
23213         * doc/posix-functions/write.texi: Mention the problem with large byte
23214         counts.
23215
23216 2011-04-14  Bruno Haible  <bruno@clisp.org>
23217
23218         wchar: Ensure that wchar_t gets defined on uClibc.
23219         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23220         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23221
23222 2011-04-13  Bruno Haible  <bruno@clisp.org>
23223
23224         safe-write, full-read: Avoid unnecessary compilation units.
23225         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23226         (Depends-on): Remove safe-read. Add ssize_t.
23227         * modules/full-read (Files): Add lib/full-write.c.
23228         (Depends-on): Add full-write.
23229
23230 2011-04-13  Bruno Haible  <bruno@clisp.org>
23231
23232         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23233         * modules/pwrite (Depends-on): Add 'write'.
23234
23235 2011-04-13  Bruno Haible  <bruno@clisp.org>
23236
23237         Support non-blocking pipe I/O in write() on native Windows.
23238         * lib/unistd.in.h (write): Enable replacement also if
23239         GNULIB_UNISTD_H_NONBLOCKING is 1.
23240         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23241         (rpl_write): When failing to write on a non-blocking pipe, change
23242         errno from ENOSPC to EAGAIN.
23243         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23244         putchar, puts, vfprintf, vprintf): Enable replacement also if
23245         GNULIB_STDIO_H_NONBLOCKING is 1.
23246         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23247         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23248         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23249         CALL_WITH_SIGPIPE_EMULATION.
23250         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23251         * m4/nonblocking.m4: New file.
23252         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23253         for non-blocking I/O support.
23254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23255         GNULIB_UNISTD_H_NONBLOCKING.
23256         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23257         required for non-blocking I/O support.
23258         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23259         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23260         lib/stdio-write.c, m4/asm-underscore.m4.
23261         (Depends-on): Add stdio, unistd.
23262         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23263         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23264         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23265         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23266         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23267         problem with non-blocking pipes.
23268         * doc/posix-functions/fputc.texi: Likewise.
23269         * doc/posix-functions/fputs.texi: Likewise.
23270         * doc/posix-functions/fwrite.texi: Likewise.
23271         * doc/posix-functions/printf.texi: Likewise.
23272         * doc/posix-functions/putc.texi: Likewise.
23273         * doc/posix-functions/putchar.texi: Likewise.
23274         * doc/posix-functions/puts.texi: Likewise.
23275         * doc/posix-functions/vfprintf.texi: Likewise.
23276         * doc/posix-functions/vprintf.texi: Likewise.
23277         * doc/posix-functions/write.texi: Likewise.
23278
23279 2011-04-10  Jim Meyering  <meyering@redhat.com>
23280
23281         maint.mk: prohibit doubled words
23282         Detect them also when they're separated by a newline.
23283         There are 3 ways to customize it:
23284           - disable the test on a per file basis, as usual with rules using
23285             $(VC_LIST_EXCEPT)
23286           - replace the default doubled-word-selecting regexp (affects all files)
23287           - ignore a particular file-vs-doubled-word match
23288         I nearly used that last one to ignore the "is is" match in
23289         coreutils' NEWS file, since the text was "ls -is is ..."
23290         To do that, I would have added this line to cfg.mk:
23291           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23292         but it would have ignored any "is is" match in NEWS.
23293         Low probability, but still...
23294         Instead, I changed the text, slightly:
23295           -  ls -is is now consistent with ls -lis in ignoring values returned
23296           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23297         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23298         (prohibit_doubled_word_): Define.
23299         (sc_prohibit_doubled_word): New rule.
23300         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23301
23302 2011-04-10  Jim Meyering  <meyering@redhat.com>
23303
23304         maint: fix doubled-word typo in comment
23305         * m4/gethostname.m4: s/is is/it is/
23306         * m4/getdomainname.m4: Likewise.
23307
23308 2011-04-10  Jim Meyering  <meyering@redhat.com>
23309
23310         maint: remove doubled word: s/it it/it/
23311         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23312
23313 2011-04-10  Jim Meyering  <meyering@redhat.com>
23314
23315         maint.mk: remove useless semicolon and backslash
23316         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23317         semicolon and backslash.
23318
23319 2011-04-10  Bruno Haible  <bruno@clisp.org>
23320
23321         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23322         * modules/stdint-tests (Depends-on): Add wchar.
23323
23324 2011-04-10  Jim Meyering  <meyering@redhat.com>
23325
23326         maint: remove doubled words in comments, e.g., s/a a/a/
23327         * lib/strptime.c (day_of_the_week): s/the the/the/
23328         * tests/test-chown.h (test_chown): s/a a/a/
23329
23330         test-chown.h: correct a cast
23331         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23332         when the destination is a stat.st_gid.
23333
23334 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23335
23336         getaddrinfo: Fix test for sa_len member.
23337         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23338         include <sys/types.h> before <sys/socket.h>.
23339
23340 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23341
23342         maint: change "can not" to "cannot"
23343         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23344         boundaries.
23345
23346 2011-04-09  Jim Meyering  <meyering@redhat.com>
23347
23348         maint: change "a a" to "a"
23349         * tests/test-lchown.h (test_lchown): s/a a/a/
23350
23351         maint.mk: prohibit \<the the\>
23352         * top/maint.mk (sc_prohibit_the_the): New rule.
23353
23354         maint: fix "the the" in comment
23355         * lib/count-one-bits.h: s/the the/the/
23356
23357         maint: change "can not" to "cannot"
23358         But do not change the occurrences in maintain.texi or in
23359         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23360         * doc/gnulib-tool.texi: s/can not/cannot/
23361         * doc/posix-functions/accept.texi (accept): Likewise.
23362         * doc/posix-functions/socket.texi (socket): Likewise.
23363         * lib/mbrtowc.c: Likewise.
23364
23365         maint.mk: prohibit use of "can not"
23366         * top/maint.mk (sc_prohibit_can_not): New rule.
23367         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23368
23369 2011-04-09  Bruno Haible  <bruno@clisp.org>
23370
23371         careadlinkat: Guard against misuse of careadlinkatcwd.
23372         * lib/careadlinkat.c: Include <stdlib.h>.
23373         (careadlinkatcwd): Check that the fd argument is as expected.
23374
23375 2011-04-09  Bruno Haible  <bruno@clisp.org>
23376
23377         careadlinkat: Use common coding style.
23378         * lib/careadlinkat.c: Move gnulib includes after system includes.
23379
23380 2011-04-09  Bruno Haible  <bruno@clisp.org>
23381
23382         careadlinkat: Clarify specification.
23383         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23384         (careadlinkatcwd): Add comment.
23385         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23386
23387 2011-04-09  Bruno Haible  <bruno@clisp.org>
23388
23389         areadlinkat: Avoid link error on many platforms.
23390         * modules/areadlinkat (Depends-on): Add areadlink.
23391
23392 2011-04-09  Bruno Haible  <bruno@clisp.org>
23393
23394         allocator, careadlinkat: Fix double-inclusion guard.
23395         * lib/allocator.h: Fix double-inclusion guard.
23396         * lib/careadlinkat.h: Likewise.
23397
23398 2011-04-09  Bruno Haible  <bruno@clisp.org>
23399
23400         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23401         * lib/relocwrapper.c: Update dependencies hierarchy.
23402         * build-aux/install-reloc: Update list of files to be compiled.
23403         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23404         lib/allocator.[hc].
23405
23406 2011-04-08  Eric Blake  <eblake@redhat.com>
23407
23408         strftime: silence gnulib-tool warning
23409         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23410
23411 2011-04-08  Bruno Haible  <bruno@clisp.org>
23412
23413         verify: Fix syntax error with GCC 4.6 in C++ mode.
23414         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23415         (HAVE_STATIC_ASSERT): New macro.
23416         (verify_true, verify): Use 'static_assert' if it is supported and
23417         '_Static_assert' is not supported.
23418
23419 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23420
23421         allocator: New module.
23422         * modules/allocator, lib/allocator.c: New files.
23423         * lib/allocator.h (stdlib_allocator): New decl.
23424         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23425         Remove.  Do not include <stdlib.h>.
23426         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23427         * modules/careadlinkat (Files): Remove lib/allocator.h.
23428         (Depends-on): Add allocator.
23429
23430         stdlib: let modules use system malloc, realloc
23431         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23432         if !_GL_USE_STDLIB_ALLOC.
23433         (malloc, realloc): Limit this change to a smaller scope.
23434
23435         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23436         (malloc, realloc): Don't #undef; no longer needed.
23437         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23438         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23439         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23440         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23441         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23442         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23443         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23444         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23445
23446         careadlinkat: rename members to avoid problem
23447         * lib/allocator.h (struct allocator): Rename members from
23448         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23449         and realloc are #define'd.  Reported by Eric Blake in
23450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23451         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23452
23453 2011-04-08  Eric Blake  <eblake@redhat.com>
23454
23455         nonblocking: reduce dependency
23456         * tests/test-nonblocking.c: Only test sockets when in use.
23457         * modules/nonblocking-tests (Depends-on): Drop socket.
23458         (Makefile.am): Link even if sockets are not present.
23459         * modules/pipe2-tests (Makefile.am): Likewise.
23460         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23461
23462         pipe2: fix O_NONBLOCK support on mingw
23463         * modules/pipe2 (Depends-on): Add nonblocking.
23464         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23465         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23466         * tests/test-nonblocking.c (main): Likewise.
23467         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23468
23469         fcntl-h: fix O_ACCMODE on cygwin
23470         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23471         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23472
23473         pipe-filter: drop O_NONBLOCK workarounds
23474         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23475         * modules/pipe-filter-ii (Depends-on): Likewise.
23476         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23477
23478         nonblocking: provide O_NONBLOCK for mingw
23479         * modules/nonblocking (Depends-on): Add open.
23480         (configure.ac): Set new witness macro.
23481         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23482         * modules/fcntl-h (Makefile.am): Substitute it.
23483         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23484         nonblocking module is in use.
23485         * lib/nonblocking.c: Adjust portability test.
23486         * lib/open.c (open): Don't let native open see gnulib flag.
23487         * tests/test-fcntl-h.c (main): Enhance test.
23488         * tests/test-open.h (test_open): Likewise.
23489         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23490
23491         careadlinkat: fix compilation error on mingw
23492         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23493         within struct allocator.
23494
23495 2011-04-06  Eric Blake  <eblake@redhat.com>
23496
23497         binary-io: relicense under LGPLv2+
23498         * modules/binary-io (License): Relax to LGPLv2+.
23499         Requested for libvirt, and required by pipe2.
23500
23501 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23502
23503         verify: use _Static_assert if available
23504         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23505         (verify_true, verify): Use it if available.  This generates better
23506         diagnostics with GCC 4.6.0 and later.
23507
23508 2011-04-05  Bruno Haible  <bruno@clisp.org>
23509
23510         Remove leftover generated .h files after config.status changed.
23511
23512         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23513         GL_GENERATE_ALLOCA_H.
23514         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23515         GL_GENERATE_ALLOCA_H evaluates to false.
23516
23517         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23518         GL_GENERATE_ARGZ_H.
23519         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23520         evaluates to false.
23521
23522         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23523         GL_GENERATE_BYTESWAP_H.
23524         * modules/byteswap (Makefile.am): Remove byteswap.h if
23525         GL_GENERATE_BYTESWAP_H evaluates to false.
23526
23527         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23528         GL_GENERATE_ERRNO_H.
23529         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23530         evaluates to false.
23531
23532         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23533         GL_GENERATE_FLOAT_H.
23534         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23535         evaluates to false.
23536
23537         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23538         GL_GENERATE_FNMATCH_H.
23539         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23540         GL_GENERATE_FNMATCH_H evaluates to false.
23541
23542         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23543         GL_GENERATE_GLOB_H.
23544         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23545         evaluates to false.
23546
23547         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23548         automake conditional GL_GENERATE_ICONV_H.
23549         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23550         evaluates to false.
23551
23552         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23553         GL_GENERATE_NETINET_IN_H.
23554         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23555         GL_GENERATE_NETINET_IN_H evaluates to false.
23556
23557         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23558         conditional GL_GENERATE_PTHREAD_H.
23559         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23560         * modules/pthread (Makefile.am): Remove pthread.h if
23561         GL_GENERATE_PTHREAD_H evaluates to false.
23562
23563         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23564         GL_GENERATE_SCHED_H.
23565         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23566         evaluates to false.
23567
23568         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23569         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23570         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23571         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23572
23573         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23574         GL_GENERATE_STDARG_H.
23575         * modules/stdarg (Makefile.am): Remove stdarg.h if
23576         GL_GENERATE_STDARG_H evaluates to false.
23577
23578         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23579         GL_GENERATE_STDBOOL_H.
23580         * modules/stdbool (Makefile.am): Remove stdbool.h if
23581         GL_GENERATE_STDBOOL_H evaluates to false.
23582
23583         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23584         conditional GL_GENERATE_STDDEF_H.
23585         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23586         * modules/stddef (Makefile.am): Remove stddef.h if
23587         GL_GENERATE_STDDEF_H evaluates to false.
23588
23589         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23590         GL_GENERATE_STDINT_H.
23591         * modules/stdint (Makefile.am): Remove stdint.h if
23592         GL_GENERATE_STDINT_H evaluates to false.
23593
23594         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23595         GL_GENERATE_SYSEXITS_H.
23596         * modules/sysexits (Makefile.am): Remove sysexits.h if
23597         GL_GENERATE_SYSEXITS_H evaluates to false.
23598
23599         Reported by Karl Berry and Ralf Wildenhues.
23600
23601 2011-04-05  Bruno Haible  <bruno@clisp.org>
23602
23603         Ensure to rebuild generated .h files when config.status has changed.
23604         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23605         config.status.
23606         * modules/ctype (Makefile.am): Likewise.
23607         * modules/dirent (Makefile.am): Likewise.
23608         * modules/errno (Makefile.am): Likewise.
23609         * modules/fcntl-h (Makefile.am): Likewise.
23610         * modules/float (Makefile.am): Likewise.
23611         * modules/getopt-posix (Makefile.am): Likewise.
23612         * modules/glob (Makefile.am): Likewise.
23613         * modules/iconv-h (Makefile.am): Likewise.
23614         * modules/inttypes (Makefile.am): Likewise.
23615         * modules/langinfo (Makefile.am): Likewise.
23616         * modules/locale (Makefile.am): Likewise.
23617         * modules/math (Makefile.am): Likewise.
23618         * modules/netdb (Makefile.am): Likewise.
23619         * modules/netinet_in (Makefile.am): Likewise.
23620         * modules/poll-h (Makefile.am): Likewise.
23621         * modules/pthread (Makefile.am): Likewise.
23622         * modules/pty (Makefile.am): Likewise.
23623         * modules/sched (Makefile.am): Likewise.
23624         * modules/search (Makefile.am): Likewise.
23625         * modules/selinux-h (Makefile.am): Likewise.
23626         * modules/signal (Makefile.am): Likewise.
23627         * modules/spawn (Makefile.am): Likewise.
23628         * modules/stdarg (Makefile.am): Likewise.
23629         * modules/stdbool (Makefile.am): Likewise.
23630         * modules/stddef (Makefile.am): Likewise.
23631         * modules/stdint (Makefile.am): Likewise.
23632         * modules/stdio (Makefile.am): Likewise.
23633         * modules/stdlib (Makefile.am): Likewise.
23634         * modules/string (Makefile.am): Likewise.
23635         * modules/strings (Makefile.am): Likewise.
23636         * modules/sys_file (Makefile.am): Likewise.
23637         * modules/sys_ioctl (Makefile.am): Likewise.
23638         * modules/sys_select (Makefile.am): Likewise.
23639         * modules/sys_socket (Makefile.am): Likewise.
23640         * modules/sys_stat (Makefile.am): Likewise.
23641         * modules/sys_time (Makefile.am): Likewise.
23642         * modules/sys_times (Makefile.am): Likewise.
23643         * modules/sys_utsname (Makefile.am): Likewise.
23644         * modules/sys_wait (Makefile.am): Likewise.
23645         * modules/sysexits (Makefile.am): Likewise.
23646         * modules/termios (Makefile.am): Likewise.
23647         * modules/time (Makefile.am): Likewise.
23648         * modules/unistd (Makefile.am): Likewise.
23649         * modules/wchar (Makefile.am): Likewise.
23650         * modules/wctype-h (Makefile.am): Likewise.
23651         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23652
23653 2011-04-05  Bruno Haible  <bruno@clisp.org>
23654
23655         pipe2: Relicense under LGPLv2+.
23656         * modules/pipe2 (License): Change to LGPLv2+.
23657         Requested by Eric Blake, for libvirt.
23658
23659 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23660
23661         bootstrap: compute gnulib_extra_files after updating build_aux
23662         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23663         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23664
23665 2011-04-05  Eric Blake  <eblake@redhat.com>
23666
23667         bootstrap: preserve git whitelist item sorting
23668         * build-aux/bootstrap (sort_patterns): New function.
23669         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23670
23671 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23672
23673         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23674         sc_space_tab check.
23675
23676 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23677
23678         areadlink, areadlinkat: rewrite in terms of careadlinkat
23679         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23680         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23681         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23682         (malloc, realloc): Remove #undefs.
23683         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23684         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23685         readlink, ssize_t, stdint, unistd.
23686         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23687         areadlink, stdint.
23688
23689         careadlinkat: new module
23690         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23691         * modules/careadlinkat: New files, written by me with
23692         a review and feedback from Ben Pfaff in
23693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23694
23695 2011-04-01  Bruno Haible  <bruno@clisp.org>
23696
23697         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23698         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23699         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23700         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23701         Reported by Bruce Korb <bruce.korb@gmail.com>.
23702
23703 2011-04-01  Bruno Haible  <bruno@clisp.org>
23704
23705         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23706         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23707         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23708         * modules/wcpcpy (Depends-on): Add extensions.
23709         * modules/wcpncpy (Depends-on): Likewise.
23710         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23711         systems.
23712         * doc/posix-functions/wcpncpy.texi: Likewise.
23713         * doc/posix-functions/wcwidth.texi: Likewise.
23714
23715 2011-03-31  Eric Blake  <eblake@redhat.com>
23716
23717         nonblocking: fix mingw test failures
23718         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23719         non-blocking flag on regular file.
23720         (get_nonblocking_flag): Set errno on invalid fd.
23721         * tests/test-nonblocking.c (main): Avoid test failure on
23722         directories if fchdir is not active.
23723         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23724
23725 2011-03-31  Bruno Haible  <bruno@clisp.org>
23726
23727         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23728         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23729         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23730         Reported by Simon Josefsson <simon@josefsson.org>.
23731
23732 2011-03-31  Bruno Haible  <bruno@clisp.org>
23733         and Eric Blake  <eblake@redhat.com>
23734
23735         nonblocking: new module
23736         * modules/nonblocking: New module.
23737         * modules/nonblocking-tests: Likewise.
23738         * lib/nonblocking.h: New file.
23739         * lib/nonblocking.c: Likewise.
23740         * tests/test-nonblocking.c: New test.
23741         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23742
23743 2011-03-30  Bruno Haible  <bruno@clisp.org>
23744
23745         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23746         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23747         instead of 'printf' format for GCC >= 4.4.
23748         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23749         (fprintf, printf, vfprintf, vprintf): Declare with
23750         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23751         the system's vfprintf() function.
23752         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23753
23754 2011-03-30  Eric Blake  <eblake@redhat.com>
23755
23756         passfd: fix scoping bug
23757         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23758         before sendmsg/recvmsg.
23759
23760         passfd: standardize coding conventions
23761         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23762         can be learned at compile time.
23763         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23764         ifdefs.
23765         (sendfd, recvfd): Follow gnulib code conventions.
23766
23767         passfd: fix incorrect sendmsg arguments
23768         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23769         incorrect msg_controllen value.
23770         * modules/passfd-tests (Depends-on): Check for alarm.
23771         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23772         Reported by Bastien ROUCARIES.
23773
23774 2011-03-30  Bruno Haible  <bruno@clisp.org>
23775
23776         c-strcasestr: Relicense under LGPLv2+.
23777         * modules/c-strcasestr (License): Change to LGPLv2+.
23778         Requested by Eric Blake, for libvirt.
23779
23780 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23781
23782         * users.txt: Add libidn2.  Fix libtasn1 link.
23783
23784 2011-03-30  Jim Meyering  <meyering@redhat.com>
23785
23786         tests: readlink* ("",... fails with EINVAL on newer kernels
23787         readlink and readlinkat have typically failed with ENOENT for
23788         the invalid, empty file name,  "".  However, with the advent
23789         of linux-2.6.39, they fail with EINVAL.
23790         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23791         when operating on the empty file name.
23792         * tests/test-readlink.h (test_readlink): Likewise.
23793
23794 2011-03-29  Bruno Haible  <bruno@clisp.org>
23795
23796         Relicense some modules under LGPLv2+, for libidn2.
23797         * modules/array-mergesort (License): Change to LGPLv2+.
23798         * modules/c-strcaseeq (License): Likewise.
23799         * modules/striconveh (License): Likewise.
23800         * modules/striconveha (License): Likewise.
23801         * modules/uniconv/base (License): Likewise.
23802         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23803         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23804         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23805         * modules/unictype/base (License): Likewise.
23806         * modules/unictype/bidiclass-of (License): Likewise.
23807         * modules/unictype/category-M (License): Likewise.
23808         * modules/unictype/category-none (License): Likewise.
23809         * modules/unictype/category-of (License): Likewise.
23810         * modules/unictype/category-test (License): Likewise.
23811         * modules/unictype/category-test-withtable (License): Likewise.
23812         * modules/unictype/combining-class (License): Likewise.
23813         * modules/unictype/joiningtype-of (License): Likewise.
23814         * modules/unictype/scripts (License): Likewise.
23815         * modules/uninorm/base (License): Likewise.
23816         * modules/uninorm/canonical-decomposition (License): Likewise.
23817         * modules/uninorm/composition (License): Likewise.
23818         * modules/uninorm/decompose-internal (License): Likewise.
23819         * modules/uninorm/decomposition-table (License): Likewise.
23820         * modules/uninorm/nfc (License): Likewise.
23821         * modules/uninorm/nfd (License): Likewise.
23822         * modules/uninorm/u32-normalize (License): Likewise.
23823         * modules/unistr/base (License): Likewise.
23824         * modules/unistr/u32-cpy (License): Likewise.
23825         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23826         * modules/unistr/u32-to-u8 (License): Likewise.
23827         * modules/unistr/u32-uctomb (License): Likewise.
23828         * modules/unistr/u8-check (License): Likewise.
23829         * modules/unistr/u8-mblen (License): Likewise.
23830         * modules/unistr/u8-mbtouc (License): Likewise.
23831         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23832         * modules/unistr/u8-mbtoucr (License): Likewise.
23833         * modules/unistr/u8-prev (License): Likewise.
23834         * modules/unistr/u8-strlen (License): Likewise.
23835         * modules/unistr/u8-to-u32 (License): Likewise.
23836         * modules/unistr/u8-uctomb (License): Likewise.
23837         * modules/unitypes (License): Likewise.
23838         Requested by Simon Josefsson.
23839
23840 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23841
23842         lib-symbol-visibility: Add a notice.
23843         * modules/lib-symbol-visibility (Notice): New field.
23844
23845 2011-03-29  Bruno Haible  <bruno@clisp.org>
23846
23847         getaddrinfo: Doc fix.
23848         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23849         section "fixed in Gnulib".
23850
23851 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23852
23853         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23854         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23855
23856 2011-03-26  Bruno Haible  <bruno@clisp.org>
23857
23858         unictype/property-byname: Reduce the number of load-time relocations.
23859         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23860         (UC_PROPERTY_INDEX_*): New enumeration values.
23861         (uc_property_byname): Convert an index from the lookup table to an
23862         uc_property_t.
23863         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23864         values.
23865
23866 2011-03-26  Bruno Haible  <bruno@clisp.org>
23867
23868         unictype/property-byname: Allow omitted word separators and aliases.
23869         * lib/unictype/pr_byname.gperf: Add property names without word
23870         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23871         for 'space'.
23872
23873 2011-03-26  Bruno Haible  <bruno@clisp.org>
23874
23875         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23876         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23877         also hyphens to space.
23878         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23879         without spaces.
23880         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23881
23882 2011-03-26  Bruno Haible  <bruno@clisp.org>
23883
23884         unictype/joiningtype-byname: Recognize long names as well.
23885         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23886         a long name.
23887         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23888         unictype/joiningtype_byname.h.
23889         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23890         * lib/unictype/joiningtype_byname.gperf: New file.
23891         * modules/unictype/joiningtype-byname (Files): Add
23892         lib/unictype/joiningtype_byname.gperf.
23893         (Depends-on): Add gperf.
23894         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23895         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23896         long names.
23897
23898         Tests for module 'unictype/joiningtype-longname'.
23899         * modules/unictype/joiningtype-longname-tests: New file.
23900         * tests/unictype/test-joiningtype_longname.c: New file.
23901
23902         New module 'unictype/joiningtype-longname'.
23903         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23904         * lib/unictype/joiningtype_longname.c: New file.
23905         * modules/unictype/joiningtype-longname: New file.
23906         * modules/unictype/joiningtype-all (Depends-on): Add
23907         unictype/joiningtype-longname.
23908
23909 2011-03-26  Bruno Haible  <bruno@clisp.org>
23910
23911         unictype/bidiclass-byname: Recognize long names as well.
23912         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23913         name.
23914         * lib/unictype/bidi_byname.c: Include <string.h>,
23915         unictype/bidi_byname.h.
23916         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23917         * lib/unictype/bidi_byname.gperf: New file.
23918         * modules/unictype/bidiclass-byname (Files): Add
23919         lib/unictype/bidi_byname.gperf.
23920         (Depends-on): Add gperf.
23921         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23922         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23923         long names.
23924
23925         Tests for module 'unictype/bidiclass-longname'.
23926         * modules/unictype/bidiclass-longname-tests: New file.
23927         * tests/unictype/test-bidi_longname.c: New file.
23928
23929         New module 'unictype/bidiclass-longname'.
23930         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23931         * lib/unictype/bidi_longname.c: New file.
23932         * modules/unictype/bidiclass-longname: New file.
23933         * modules/unictype/bidiclass-all (Depends-on): Add
23934         unictype/bidiclass-longname.
23935
23936 2011-03-26  Bruno Haible  <bruno@clisp.org>
23937
23938         unictype/bidi*: Rename modules.
23939         * modules/unictype/bidiclass-all: Renamed from
23940         modules/unictype/bidicategory-all.
23941         * modules/unictype/bidiclass-name: Renamed from
23942         modules/unictype/bidiclass-name.
23943         (Description): Update.
23944         * modules/unictype/bidiclass-name-tests: Renamed from
23945         modules/unictype/bidicategory-name-tests.
23946         * modules/unictype/bidiclass-byname: Renamed from
23947         modules/unictype/bidicategory-byname.
23948         (Description): Update.
23949         * modules/unictype/bidiclass-byname-tests: Renamed from
23950         modules/unictype/bidicategory-byname-tests.
23951         * modules/unictype/bidiclass-of: Renamed from
23952         modules/unictype/bidicategory-of.
23953         (Description): Update.
23954         * modules/unictype/bidiclass-of-tests: Renamed from
23955         modules/unictype/bidicategory-of-tests.
23956         * modules/unictype/bidiclass-test: Renamed from
23957         modules/unictype/bidicategory-test.
23958         (Description): Update.
23959         * modules/unictype/bidiclass-test-tests: Renamed from
23960         modules/unictype/bidicategory-test-tests.
23961         * modules/unictype/bidicategory-all: New file, a simple redirection.
23962         * modules/unictype/bidicategory-name: Likewise.
23963         * modules/unictype/bidicategory-byname: Likewise.
23964         * modules/unictype/bidicategory-of: Likewise.
23965         * modules/unictype/bidicategory-test: Likewise.
23966         * modules/unictype/property-bidi-* (Dependencies): Update.
23967         * lib/unictype/bidi_*.c: Update comment.
23968
23969 2011-03-26  Bruno Haible  <bruno@clisp.org>
23970
23971         unictype/bidi*: Rename functions, part 2.
23972         * modules/unictype/bidicategory-name (configure.ac): Update required
23973         libunistring version.
23974         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23975
23976 2011-03-25  Bruno Haible  <bruno@clisp.org>
23977
23978         New module 'unictype/combining-class-all'.
23979         * modules/unictype/combining-class-all: New file.
23980
23981         Tests for module 'unictype/combining-class-byname'.
23982         * modules/unictype/combining-class-byname-tests: New file.
23983         * tests/unictype/test-combiningclass_byname.c: New file.
23984
23985         New module 'unictype/combining-class-byname'.
23986         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23987         * lib/unictype/combiningclass_byname.c: New file.
23988         * lib/unictype/combiningclass_byname.gperf: New file.
23989         * modules/unictype/combining-class-byname: New file.
23990
23991         Tests for module 'unictype/combining-class-longname'.
23992         * modules/unictype/combining-class-longname-tests: New file.
23993         * tests/unictype/test-combiningclass_longname.c: New file.
23994
23995         New module 'unictype/combining-class-longname'.
23996         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23997         * lib/unictype/combiningclass_longname.c: New file.
23998         * modules/unictype/combining-class-longname: New file.
23999
24000         Tests for module 'unictype/combining-class-name'.
24001         * modules/unictype/combining-class-name-tests: New file.
24002         * tests/unictype/test-combiningclass_name.c: New file.
24003
24004         New module 'unictype/combining-class-name'.
24005         * lib/unictype.in.h (uc_combining_class_name): New declaration.
24006         * lib/unictype/combiningclass_name.c: New file.
24007         * modules/unictype/combining-class-name: New file.
24008
24009 2011-03-25  Bruno Haible  <bruno@clisp.org>
24010
24011         unictype/combining-class: Rename source files.
24012         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
24013         of unictype/combining.h.
24014         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
24015         Update.
24016         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
24017         * modules/unictype/combining-class (Description): Fix.
24018         (Files, Makefile.am): Update.
24019         * tests/unictype/test-combiningclass.c: Renamed from
24020         tests/unictype/test-combining.c.
24021         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
24022
24023 2011-03-25  Bruno Haible  <bruno@clisp.org>
24024
24025         unictype: Update list of canonical combining classes.
24026         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
24027
24028 2011-03-25  Bruno Haible  <bruno@clisp.org>
24029
24030         unictype/category-byname: Recognize long names as well.
24031         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
24032         a long name.
24033         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
24034         unictype/categ_byname.h.
24035         (UC_CATEGORY_INDEX_*): New enumeration values.
24036         (uc_general_category_byname): Use uc_general_category_lookup and
24037         convert from index to value.
24038         * lib/unictype/categ_byname.gperf: New file.
24039         * modules/unictype/category-byname (Files): Add
24040         lib/unictype/categ_byname.gperf.
24041         (Depends-on): Add gperf.
24042         (Makefile.am): Add rule for generating unictype/categ_byname.h.
24043         * tests/unictype/test-categ_byname.c (main): Test the recognition of
24044         long names.
24045
24046         Tests for module 'unictype/category-longname'.
24047         * modules/unictype/category-longname-tests: New file.
24048         * tests/unictype/test-categ_longname.c: New file.
24049
24050         New module 'unictype/category-longname'.
24051         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
24052         * lib/unictype/categ_longname.c: New file.
24053         * modules/unictype/category-longname: New file.
24054         * modules/unictype/category-all (Depends-on): Add it.
24055
24056 2011-03-25  Bruno Haible  <bruno@clisp.org>
24057
24058         Tests for module 'unictype/category-LC'.
24059         * modules/unictype/category-LC-tests: New file.
24060         * tests/unictype/test-categ_LC.c: New file, automatically generated.
24061
24062         New module 'unictype/category-LC'.
24063         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
24064         (UC_CATEGORY_LC): New declaration.
24065         (UC_CASED_LETTER): New macro.
24066         * lib/gen-uni-tables.c (is_category_LC): New function.
24067         (output_categories): Also handle category LC.
24068         (UC_CATEGORY_MASK_LC): New enumeration value.
24069         (general_category_byname): Also handle category LC.
24070         * lib/unictype/categ_LC.c: New file.
24071         * lib/unictype/categ_LC.h: New file, automatically generated.
24072         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
24073         category LC.
24074         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
24075         * modules/unictype/category-LC: New file.
24076         * modules/unictype/category-byname (Depends-on): Add
24077         unictype/category-LC.
24078         * modules/unictype/category-all (Depends-on): Likewise.
24079
24080 2011-03-25  Eric Blake  <eblake@redhat.com>
24081
24082         xmalloc: revert yesterday's regression
24083         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
24084         realloc's underlying behavior (allowing allocation of zero-size
24085         objects, especially if malloc-gnu is also in use).
24086
24087 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
24088
24089         maint.mk: add missing version to VC-tag
24090         * top/maint.mk: git tag was missing actual tag name; add it.
24091
24092         valgrind: do leak checking, and exit with code 1 on error (not 0)
24093         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
24094         to VALGRIND.
24095
24096 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
24097
24098         posix-modules: say what it does.
24099         * posix-modules: Add a line to the --help output saying what it does.
24100
24101 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24102
24103         xmalloc: Do not leak if underlying realloc is C99 compatible.
24104         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
24105         This avoids a leak on C99-based systems.  See
24106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
24107
24108 2011-03-24  Eric Blake  <eblake@redhat.com>
24109
24110         realloc: document portability problem
24111         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
24112         passing 0 size to realloc.
24113
24114 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
24115
24116         doc: update users.txt
24117         * users.txt: Add cvsps, tmpwatch
24118
24119 2011-03-23  Matt Rice  <ratmice@gmail.com>
24120
24121         doc: update users.txt
24122         * users.txt: Add gdb.
24123
24124 2011-03-23  Jim Meyering  <meyering@redhat.com>
24125
24126         doc: update users.txt
24127         Looking through matches up to the following URL (there are still
24128         several more pages), I found several projects that use gnulib:
24129         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
24130         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
24131         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
24132
24133 2011-03-22  Bruno Haible  <bruno@clisp.org>
24134
24135         unictype/bidi*: Rename functions.
24136         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
24137         uc_bidi_class, uc_is_bidi_class): New declarations.
24138         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
24139         uc_bidi_category_byname.
24140         (uc_bidi_category_byname): New function.
24141         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
24142         u_bidi_category_name.
24143         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
24144         (uc_bidi_category_name): New function.
24145         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
24146         uc_bidi_category.
24147         (uc_bidi_category): New function.
24148         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
24149         uc_is_bidi_category. Invoke uc_bidi_class.
24150         (uc_is_bidi_category): New function.
24151         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
24152         instead of uc_bidi_category_byname.
24153         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
24154         instead of uc_bidi_category_name.
24155         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
24156         uc_bidi_category.
24157         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
24158         instead of uc_is_bidi_category.
24159
24160 2011-03-21  Bruno Haible  <bruno@clisp.org>
24161
24162         New module 'unictype/joininggroup-all'.
24163         * modules/unictype/joininggroup-all: New file.
24164
24165         Tests for module 'unictype/joininggroup-of'.
24166         * modules/unictype/joininggroup-of-tests: New file.
24167         * tests/unictype/test-joininggroup_of.c: New file.
24168         * tests/unictype/test-joininggroup_of.h: New file, automatically
24169         generated by gen-uni-tables.
24170
24171         New module 'unictype/joininggroup-of'.
24172         * modules/unictype/joininggroup-of: New file.
24173         * lib/unictype/joininggroup_of.c: New file.
24174         * lib/unictype/joininggroup_of.h: New file, automatically generated by
24175         gen-uni-tables.
24176
24177         Tests for module 'unictype/joininggroup-byname'.
24178         * modules/unictype/joininggroup-byname-tests: New file.
24179         * tests/unictype/test-joininggroup_byname.c: New file.
24180
24181         New module 'unictype/joininggroup-byname'.
24182         * modules/unictype/joininggroup-byname: New file.
24183         * lib/unictype/joininggroup_byname.c: New file.
24184         * lib/unictype/joininggroup_byname.gperf: New file.
24185
24186         Tests for module 'unictype/joininggroup-name'.
24187         * modules/unictype/joininggroup-name-tests: New file.
24188         * tests/unictype/test-joininggroup_name.c: New file.
24189
24190         New module 'unictype/joininggroup-name'.
24191         * modules/unictype/joininggroup-name: New file.
24192         * lib/unictype/joininggroup_name.c: New file.
24193         * lib/unictype/joininggroup_name.h: New file.
24194
24195         New module 'unictype/joiningtype-all'.
24196         * modules/unictype/joiningtype-all: New file.
24197
24198         Tests for module 'unictype/joiningtype-of'.
24199         * modules/unictype/joiningtype-of-tests: New file.
24200         * tests/unictype/test-joiningtype_of.c: New file.
24201         * tests/unictype/test-joiningtype_of.h: New file, automatically
24202         generated by gen-uni-tables.
24203
24204         New module 'unictype/joiningtype-of'.
24205         * modules/unictype/joiningtype-of: New file.
24206         * lib/unictype/joiningtype_of.c: New file.
24207         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24208         gen-uni-tables.
24209
24210         Tests for module 'unictype/joiningtype-byname'.
24211         * modules/unictype/joiningtype-byname-tests: New file.
24212         * tests/unictype/test-joiningtype_byname.c: New file.
24213
24214         New module 'unictype/joiningtype-byname'.
24215         * modules/unictype/joiningtype-byname: New file.
24216         * lib/unictype/joiningtype_byname.c: New file.
24217
24218         Tests for module 'unictype/joiningtype-name'.
24219         * modules/unictype/joiningtype-name-tests: New file.
24220         * tests/unictype/test-joiningtype_name.c: New file.
24221
24222         New module 'unictype/joiningtype-name'.
24223         * modules/unictype/joiningtype-name: New file.
24224         * lib/unictype/joiningtype_name.c: New file.
24225
24226         unictype: Add support for Arabic shaping properties.
24227         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24228         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24229         declarations.
24230         (UC_JOINING_GROUP_*): New enumeration values.
24231         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24232         declarations.
24233         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24234         (unicode_joining_type): New variable.
24235         (UC_JOINING_GROUP_*): New enumeration values.
24236         (unicode_joining_group): New variable.
24237         (fill_arabicshaping, joining_type_as_c_identifier,
24238         output_joining_type_test, output_joining_type,
24239         joining_group_as_c_identifier, output_joining_group_test,
24240         output_joining_group): New functions.
24241         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24242         fill_arabicshaping and output_joining_type_test, output_joining_type,
24243         output_joining_group_test, output_joining_group.
24244         Reported by Simon Josefsson.
24245
24246 2011-03-21  Jim Meyering  <meyering@redhat.com>
24247
24248         strftime: fix a bug in yesterday's change
24249         * lib/strftime.c (add): Accommodate width's initial value of -1.
24250         Otherwise, nstrftime would copy uninitialized data into
24251         the result buffer.
24252
24253 2011-03-21  Jim Meyering  <meyering@redhat.com>
24254
24255         tests: add strftime-tests module
24256         * tests/test-strftime.c: New file.
24257         * modules/strftime-tests: New module.
24258
24259 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24260
24261         strftime: don't assume a byte count fits in 'int'
24262         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24263         found this problem by static analysis, using gcc -Wstrict-overflow
24264         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24265         on an integer overflow having undefined behavior, but it turns out
24266         that the argument is a size, which might not fit in 'int' anyway,
24267
24268 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24269
24270         stdio: don't require ignore_value around fwrite
24271
24272         This patch works around libc bug 11959
24273         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24274         Without this patch, applications must often write
24275         ignore_value (fwrite (...)) even though the ignore_value is
24276         not helpful here.  It's common to write many objects, using
24277         fwrite/printf/etc., and then use ferror to detect output error.
24278
24279         I considered making this patch optional, but decided against it,
24280         because libc is obviously being inconsistent here: there is no
24281         reason libc should insist that user code must inspect fwrite
24282         return's value without also insisting that it inspect printf's,
24283         putchar's, etc.  If user code wants to have a strict style where
24284         all these functions' values are checked (so that ferror need not
24285         be checked), we could add support for that style in a new gnulib
24286         module, but in the meantime it's better to be consistent and to
24287         support common usage.
24288
24289         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24290         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24291         that we are compiling in checking mode, and if not C++, and
24292         if not already wrapping fwrite for some other reason.
24293         (fwrite): #define to rpl_fwrite if the latter is defined.
24294
24295 2011-03-20  Bruno Haible  <bruno@clisp.org>
24296
24297         verror: Fix compilation error introduced on 2011-02-13.
24298         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24299         instead of __attribute__.
24300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24301
24302 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24303             Bruno Haible  <bruno@clisp.org>
24304
24305         socklen: do not depend on sys_socket
24306         While trying to modify Emacs to use gnulib's socklen module,
24307         I discovered a circular dependency: socklen depends on sys_socket
24308         and vice versa.  Emacs can use socklen, but it does not need
24309         sys_socket because it has its own substitute for sys/socket.h.
24310         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24311         gl_TYPE_SOCKLEN_T.
24312         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24313         gl_PREREQ_SYS_H_SOCKET.
24314         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24315         gl_PREREQ_SYS_H_SOCKET.
24316         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24317         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24318         * modules/socklen (Depends-on): Do not depend on sys_socket.
24319         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24320
24321 2011-03-20  Jim Meyering  <meyering@redhat.com>
24322
24323         maint.mk: sort file names *after* new transformation
24324         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24325         prefix would have led to an unwarranted failure in GNU parted.
24326         Sort after that transformation.
24327
24328 2011-03-19  Jim Meyering  <meyering@redhat.com>
24329
24330         maint.mk: fix po-file syntax-check rule
24331         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24332         Patch by Bruno Haible.
24333
24334 2011-03-19  Bruno Haible  <bruno@clisp.org>
24335
24336         socklen: Update comment.
24337         * m4/socklen.m4: Update comment about platforms.
24338
24339 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24340             Bruno Haible  <bruno@clisp.org>
24341
24342         inet_ntop, inet_pton: Simplify.
24343         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24344         documented to provide socklen_t and we already depend on sys_socket.
24345         * modules/inet_pton (Depends-on): Likewise.
24346         * lib/arpa_inet.in.h: Adjust comment.
24347
24348 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24349             Bruno Haible  <bruno@clisp.org>
24350
24351         netdb: Simplify.
24352         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24353         documented to provide socklen_t and we already depend on sys_socket.
24354         * lib/netdb.in.h: Adjust comment.
24355
24356 2011-03-19  Bruno Haible  <bruno@clisp.org>
24357
24358         sys_socket, netdb: Document problem with socklen_t.
24359         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24360         platforms.
24361         * doc/posix-headers/netdb.texi: Likewise.
24362
24363 2011-03-18  Eric Blake  <eblake@redhat.com>
24364
24365         maint.mk: let po check work in VPATH build
24366         * top/maint.mk (po_file): Allow cfg.mk override.
24367         (sc_po_check): Allow VPATH use.
24368         Reported by Jiri Denemark.
24369
24370 2011-03-16  Jim Meyering  <meyering@redhat.com>
24371
24372         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24373         Before, you would have had to create one .x-sc_ file per rule in order
24374         to exempt offending files.  Now, you may instead use a Make variable --
24375         usually defined in cfg.mk -- whose name identifies the affected rule.
24376         * top/maint.mk (_sc_excl): Define.
24377         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24378         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24379
24380 2011-03-13  Bruno Haible  <bruno@clisp.org>
24381
24382         ignore-value tests: Avoid warnings.
24383         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24384         empty for gcc < 3.4.
24385
24386 2011-03-13  Bruno Haible  <bruno@clisp.org>
24387
24388         passfd: Fix link error on Solaris.
24389         * modules/passfd (Description): Correct.
24390         (Depends-on): Add socketlib.
24391         (Link): New section.
24392         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24393
24394 2011-03-13  Bruno Haible  <bruno@clisp.org>
24395
24396         passfd: Fix link error on AIX 5.2.
24397         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24398
24399 2011-03-13  Bruno Haible  <bruno@clisp.org>
24400
24401         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24402         * lib/sys_socket.in.h: Include <stddef.h>.
24403         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24404         CMSG_FIRSTHDR. Remove unused variable.
24405
24406 2011-03-13  Bruno Haible  <bruno@clisp.org>
24407
24408         passfd: Fix compilation error on OpenBSD.
24409         * lib/passfd.c: Include <sys/uio.h>.
24410
24411 2011-03-13  Bruno Haible  <bruno@clisp.org>
24412
24413         passfd test: Fix warnings.
24414         * tests/test-passfd.c: Include <sys/wait.h>.
24415         (main): Fix typo.
24416
24417 2011-03-13  Bruno Haible  <bruno@clisp.org>
24418
24419         passfd module, part 4, tweaks.
24420         * tests/test-passfd.c: Reorder includes.
24421         (main): Fix perror and printf calls.
24422
24423 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24424
24425         passfd module, part 4.
24426         * modules/passfd-tests: New file.
24427         * tests/test-passfd.c: New file.
24428
24429 2011-03-13  Jim Meyering  <meyering@redhat.com>
24430
24431         Makefile: rely on GNU make; derive syntax-check rule names
24432         Rather than requiring that each sc_ rule be listed as a dependent
24433         of "check", use features of GNU make to derive the list.
24434         * Makefile (syntax-check-rules): Define.
24435         (check): Depend on the new variable, not the hard-coded list.
24436
24437 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24438             Bruno Haible  <bruno@clisp.org>
24439
24440         passfd module, part 3.
24441         * lib/passfd.h (recvfd): Add a flags argument.
24442         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24443         (recvfd): Add a flags argument.
24444         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24445         exists.
24446         * modules/passfd (Depends-on): Add cloexec.
24447         Suggested by Eric Blake.
24448
24449 2011-03-13  Bruno Haible  <bruno@clisp.org>
24450
24451         passfd module, part 2, tweaks.
24452         * modules/passfd (Files): Reorder.
24453         (Depends-on): Remove errno.
24454         (Include): Remove <sys/socket.h>, <sys/un.h>.
24455         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24456         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24457         specification header. Include <sys/socket.h> always. Don't include
24458         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24459         (sendfd): Clarify that it sets errno when it fails.
24460         (recvfd): Fix specification.
24461
24462 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24463
24464         passfd module, part 2.
24465         * modules/passfd: New file.
24466         * lib/passfd.h: New file.
24467         * lib/passfd.c: New file.
24468
24469 2011-03-12  Bruno Haible  <bruno@clisp.org>
24470
24471         wcswidth, mbswidth: Avoid integer overflow.
24472         * lib/wcswidth.c: Include <limits.h>.
24473         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24474         * lib/mbswidth.c: Include <limits.h>.
24475         (mbsnwidth): Avoid 'int' overflow.
24476         Reported by Jim Meyering.
24477
24478 2011-03-12  Bruno Haible  <bruno@clisp.org>
24479
24480         futimens, utimensat: Avoid endless recursion on Solaris 10.
24481         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24482         Solaris.
24483         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24484         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24485
24486 2011-03-11  Jim Meyering  <meyering@redhat.com>
24487
24488         maint.mk: relax a regexp to accommodate other formatting styles
24489         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24490         between "ngettext" and the following "(".
24491
24492 2011-03-11  Pádraig Brady <P@draigBrady.com>
24493
24494         maint.mk: suppress a false positive warning
24495         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24496         diagnostics are marked with ngettext.
24497
24498 2011-03-10  Eric Blake  <eblake@redhat.com>
24499
24500         wchar: add explicit dependencies, for Tru64
24501         * modules/mbmemcasecoll (Depends-on): Add wchar.
24502         * modules/mbtowc (Depends-on): Likewise.
24503         * modules/vasnprintf (Depends-on): Likewise.
24504         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24505         * modules/wctomb (Depends-on): Likewise.
24506         Reported by Peter O'Gorman.
24507
24508 2011-03-08  Bruno Haible  <bruno@clisp.org>
24509
24510         passfd module, part 1, tweaks.
24511         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24512         Improve indentation. Improve AC_MSG_CHECKING messages.
24513         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24514         gl_SOCKET_FAMILIES.
24515
24516 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24517
24518         passfd module, part 1.
24519         * m4/afunix.m4: New file.
24520         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24521         sockets.
24522
24523 2011-03-08  Bruno Haible  <bruno@clisp.org>
24524
24525         regex-quote: New API.
24526         * lib/regex-quote.h: Include <stdbool.h>.
24527         (struct regex_quote_spec): New type.
24528         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24529         New declarations.
24530         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24531         'const struct regex_quote_spec *' argument.
24532         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24533         (pcre_special): New constant.
24534         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24535         New functions.
24536         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24537         'const struct regex_quote_spec *' argument.
24538         * modules/regex-quote (Depends-on): Add stdbool.
24539         * tests/test-regex-quote.c (check): Update for new API. Add test for
24540         anchored results.
24541         * NEWS: Mention the API change.
24542         Reported by Reuben Thomas and Eric Blake.
24543
24544 2011-03-06  Bruno Haible  <bruno@clisp.org>
24545
24546         regex-quote: Fix creation of POSIX extended regular expressions.
24547         * lib/regex-quote.c (ere_special): Add grouping and alternation
24548         operators.
24549
24550 2011-03-05  Bruno Haible  <bruno@clisp.org>
24551
24552         doc: Improve doc regarding autopoint vs. gnulib.
24553         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24554         disable autopoint while running autoreconf.
24555         Suggested by Ralf Wildenhues.
24556
24557 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24558
24559         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24560         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24561
24562 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24563
24564         parse-duration: remove xalloc.h dependency
24565         * lib/parse-duration.c (parse_period): handle NULL return from
24566         strdup instead of calling xstrdup().
24567         * modules/parse-duration: remove "xalloc" dependency
24568
24569 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24570
24571         bootstrap: honor m4_base when running aclocal
24572         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24573
24574 2011-03-02  Jim Meyering  <meyering@redhat.com>
24575
24576         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24577         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24578         on request from Matt Booth.
24579
24580 2011-03-01  Eric Blake  <eblake@redhat.com>
24581
24582         test-link: work on Hurd
24583         * tests/test-link.h (test_link): Hurd rejects linking directories
24584         with EISDIR instead of the POSIX-mandated EPERM.
24585
24586 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24587
24588         stdio: simplify by moving files to printf-posix, sigpipe
24589         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24590         since this symbol is needed only if printf is replaced.
24591         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24592         Require gl_ASM_SYMBOL_PREFIX.
24593         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24594         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24595         (Depends-on): Add 'raise'.
24596         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24597         * modules/stdio (Files): Remove lib/stdio-write.c,
24598         m4/asm-underscore.m4.
24599         (Depends-on): Remove 'raise'.
24600
24601         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24602         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24603         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24604         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24605
24606 2011-02-28  Bruno Haible  <bruno@clisp.org>
24607
24608         localcharset: Assume ANSI C behaviour of free().
24609         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24610         calling free().
24611         Suggested by Simon Josefsson <simon@josefsson.org>.
24612
24613 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24614             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24615             Bruno Haible  <bruno@clisp.org>  (tiny change)
24616
24617         On Cygwin, use /proc file system instead of win32 API.
24618         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24619         Win32 file names.
24620         (DllMain): Simplify by removing Cygwin specific code.
24621         (find_shared_library_fullname): Use Linux specific implementation also
24622         for Cygwin.
24623         (get_shared_library_fullname): Update accordingly.
24624         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24625         Win32 file names.
24626         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24627         Cygwin specific code.
24628
24629 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24630             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24631
24632         Fix OpenMP flag detection for various Fortran compilers.
24633         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24634         OpenMP-conditional compilation construct, to force compile
24635         failure with missing OpenMP flag.
24636         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24637
24638 2011-02-25  Eric Blake  <eblake@redhat.com>
24639
24640         strstr: expand test coverage
24641         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24642         compilation.
24643         * tests/test-memmem.c (main): Duplicate tests.
24644         * tests/test-strcasestr.c (main): Likewise.
24645         * tests/test-c-strcasestr.c (main): Likewise.
24646
24647 2011-02-25  Jim Meyering  <meyering@redhat.com>
24648
24649         maint.mk: detect missing-NL-at-EOF, too
24650         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24651         it also detects when a file lacks a newline at EOF.
24652         (require_exactly_one_NL_at_EOF_): Renamed from
24653         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24654         since people may well have .x-sc_... file names tied to the
24655         existing name.  Suggested by Eric Blake.
24656
24657 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24658
24659         dirname: move m4/dos.m4 functionality into lib/dosname.h
24660
24661         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24662         extracts symbols from it, puts them into config.h; but it's much
24663         easier to use the symbols directly.  filename.h already does this,
24664         but it disagrees with dos.m4 in some respects.  This patch
24665         introduces a different include file dosname.h that packages up
24666         dos.m4, and then later we can work on merging filename.h and
24667         dosname.h.  Applications that need only the easy-to-configure
24668         symbols should consider including dosname.h rather than dirname.h.
24669         * NEWS: Mention incompatible changes.
24670         * m4/dos.m4: Remove.
24671         * lib/dosname.h, modules/dosname: New files.
24672         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24673         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24674         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24675         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24676         Include dosname.h, not dirname.h.
24677         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24678         Include dosname.h, for definitions of symbols like ISSLASH
24679         that used to be in config.h.
24680         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24681         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24682         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24683         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24684         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24685         * modules/rmdir (Files): Likewise.
24686         * modules/stat (Files): Likewise.
24687         * modules/unlink (Files): Likewise.
24688         * modules/dirname-lgpl (Depends-on): Add dosname.
24689         * modules/lstat (Depends-on): Likewise.
24690         * modules/openat (Depends-on): Likewise.
24691         * modules/rmdir (Depends-on): Likewise.
24692         * modules/savewd (Depends-on): Likewise.
24693         * modules/stat (Depends-on): Likewise.
24694         * modules/unlink (Depends-on): Likewise.
24695         * modules/openat (Depends-on): Remove dirname-lgpl.
24696         * modules/savewd (Depends-on): Likewise.
24697         * tests/test-dirname.c: Do not use removed symbols like
24698         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24699         the remaining symbols, e.g., ISSLASH ('\\').
24700
24701 2011-02-25  Eric Blake  <eblake@redhat.com>
24702
24703         strstr: revert patches that introduced bug and pessimization
24704         * lib/str-two-way.h: Add another reference.
24705         (two_way_short_needle, two_way_long_needle): Revert changes from
24706         2011-02-24; they pessimize search speed.
24707         (critical_factorization): Partially revert changes from
24708         2010-06-22; they violate the requirement that the left half of the
24709         needle be smaller than the period of the needle.
24710
24711 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24712
24713         filenamecat: remove unnecessary dependency on dirname-lgpl
24714         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24715         is no direct dependency, just an indirect one via filenamecat-lgpl.
24716
24717         remove: remove unnecessary use of m4/dos.m4
24718         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24719         * modules/remove (FILES): Remove m4/dos.m4.
24720
24721         * lib/openat-proc.c: Don't include dirname.h; not needed.
24722
24723         backupfile: remove unnecessary use of m4/dos.m4
24724         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24725         of its symbols are used by the backupfile code.  backupfile.c does
24726         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24727         for the rare case of programs that want all their backup file
24728         names to live within 8+3 limits, and dos.m4 doesn't address that.
24729         * modules/backupfile (Files): Remove m4/dos.m4.
24730
24731 2011-02-24  Jim Meyering  <meyering@redhat.com>
24732
24733         strstr: fix a bug whereby strstr would mistakenly return NULL
24734         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24735         in period calculation.
24736         (two_way_long_needle): Likewise.
24737         The original problem was reported by Mike Stump in
24738         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24739         Ralf Wildenhues provided the short needle and haystack.
24740         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24741         Add a more involved test to trigger the bug in two_way_long_needle.
24742
24743 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24744
24745         gnulib-tool: remove use of bold display in help screen
24746         * gnulib-tool (func_usage): Do not use bold display anymore in the
24747         help screen.  That was just meant to be a temporary emphasis for a
24748         backward-incompatible change.
24749
24750 2011-02-23  Bruno Haible  <bruno@clisp.org>
24751
24752         Fix misindentation of preprocessor directives.
24753         * lib/argp-namefrob.h: Reindent preprocessor directives.
24754         * lib/getopt_int.h (struct _getopt_data): Likewise.
24755         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24756         * lib/vasnprintf.c (decode_long_double): Likewise.
24757         * tests/test-argmatch.c: Insert blank lines, for clarity.
24758         * tests/test-exclude.c: Likewise.
24759
24760 2011-02-22  Bruno Haible  <bruno@clisp.org>
24761
24762         ioctl: Fix for MacOS X in 64-bit mode.
24763         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24764         value.
24765         Suggested by Eric Blake.
24766         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24767
24768 2011-02-22  Jim Meyering  <meyering@redhat.com>
24769
24770         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24771         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24772         in lib/.
24773
24774 2011-02-22  Eric Blake  <eblake@redhat.com>
24775
24776         maint: avoid any CDPATH issue
24777         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24778
24779         maint: adjust cpp indentation for my modules, as well
24780         * Makefile (sc_cpp_indent_check): Add my name.
24781         * lib/fbufmode.c: Filter through cppi.
24782         * lib/fpurge.c: Likewise.
24783         * lib/freadable.c: Likewise.
24784         * lib/freading.c: Likewise.
24785         * lib/fwritable.c: Likewise.
24786         * lib/fwriting.c: Likewise.
24787         * lib/sigaction.c: Likewise.
24788
24789 2011-02-22  Jim Meyering  <meyering@redhat.com>
24790
24791         maint: adjust cpp indentation to reflect nesting depth
24792         I.e., in a block of code that begins with an unnested "#if",
24793         put one space between the "#" in column 1 and following token.
24794         For example,
24795         -#include <sys/vfs.h>
24796         +# include <sys/vfs.h>
24797         Do this only in .c files that are part of a module I maintain.
24798         * lib/linkat.c: Filter through cppi.
24799         * lib/nanosleep.c: Likewise.
24800         * lib/openat.c: Likewise.
24801         * lib/openat-die.c: Likewise.
24802         * lib/dup3.c: Likewise.
24803         * lib/fchownat.c: Likewise.
24804         * lib/flock.c: Likewise.
24805         * lib/fsync.c: Likewise.
24806         * lib/fts.c: Likewise.
24807         * lib/getpass.c: Likewise.
24808         * lib/gettimeofday.c: Likewise.
24809         * lib/userspec.c: Likewise.
24810         * Makefile (sc_cpp_indent_check): New rule, to check this.
24811
24812 2011-02-22  Bruno Haible  <bruno@clisp.org>
24813
24814         New module 'wctomb'.
24815         * lib/stdlib.in.h (wctomb): New declaration.
24816         * lib/wctomb.c: New file.
24817         * lib/wctomb-impl.h: New file.
24818         * m4/wctomb.m4: New file.
24819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24820         REPLACE_WCTOMB.
24821         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24822         REPLACE_WCTOMB.
24823         * modules/wctomb: New file.
24824         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24825         * doc/posix-functions/wctomb.texi: Mention the new module.
24826         * modules/wctob (Depends-on): Add wctomb.
24827
24828 2011-02-22  Bruno Haible  <bruno@clisp.org>
24829
24830         New module 'mbtowc'.
24831         * lib/stdlib.in.h (mbtowc): New declaration.
24832         * lib/mbtowc.c: New file.
24833         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24834         * m4/mbtowc.m4: New file.
24835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24836         REPLACE_MBTOWC.
24837         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24838         REPLACE_MBTOWC.
24839         * modules/mbtowc: New file.
24840         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24841         * doc/posix-functions/mbtowc.texi: Mention the new module.
24842         * modules/btowc (Depends-on): Add mbtowc.
24843
24844 2011-02-22  Bruno Haible  <bruno@clisp.org>
24845
24846         wcrtomb: Add more tests for native Windows platforms.
24847         * tests/test-wcrtomb-w32-1.sh: New file.
24848         * tests/test-wcrtomb-w32-2.sh: New file.
24849         * tests/test-wcrtomb-w32-3.sh: New file.
24850         * tests/test-wcrtomb-w32-4.sh: New file.
24851         * tests/test-wcrtomb-w32-5.sh: New file.
24852         * tests/test-wcrtomb-w32.c: New file.
24853         * modules/wcrtomb-tests (Files): Add them.
24854         (Makefile.am): Arrange to run these tests.
24855         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24856         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24857
24858 2011-02-20  Bruno Haible  <bruno@clisp.org>
24859
24860         wcrtomb: Enhance test.
24861         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24862
24863 2011-02-20  Bruno Haible  <bruno@clisp.org>
24864
24865         mbrtowc: Tiny optimization.
24866         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24867
24868 2011-02-20  Jim Meyering  <meyering@redhat.com>
24869
24870         test-exclude.c: remove unmatched #endif
24871         * tests/test-exclude.c: Remove stray #endif, left over from
24872         the change of a week ago.
24873
24874 2011-02-19  Jim Meyering  <meyering@redhat.com>
24875
24876         git-version-gen: skip "-dirty" check when appropriate
24877         * build-aux/git-version-gen: Don't run any git commands when the
24878         version string comes from .tarball-version.  Prior to this, we
24879         would run git update-index --refresh even from a just-unpacked
24880         tarball directory, and that could affect a .git/ directory in a
24881         parent of the build directory.  Reported by Mike Frysinger.
24882
24883 2011-02-19  Bruno Haible  <bruno@clisp.org>
24884
24885         unictype/property-byname: Reduce the size of the 'data' segment.
24886         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24887
24888 2011-02-19  Bruno Haible  <bruno@clisp.org>
24889
24890         unictype/scripts: Reduce the size of the 'data' segment.
24891         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24892         '%pic'.
24893         * lib/unictype/scripts_byname.gperf: Regenerated.
24894
24895 2011-02-19  Bruno Haible  <bruno@clisp.org>
24896
24897         stdint: Update documentation.
24898         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24899
24900 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24901
24902         stdint: omit redundant check for wchar.h
24903         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24904         always tests whether wchar.h exists, so remove the now-redundant test.
24905
24906 2011-02-18  Bruno Haible  <bruno@clisp.org>
24907
24908         stdint: Cut dependency to module 'wchar'.
24909         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24910         include the necessary prerequisites.
24911         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24912         * modules/stdint (Depends-on): Remove wchar.
24913         (Makefile.am): Substitute HAVE_WCHAR_H.
24914         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24915
24916 2011-02-18  Eric Blake  <eblake@redhat.com>
24917
24918         longlong: skip, rather than fail, on cross-compilation
24919         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24920         when cross-compiling; regression from 2011-02-16.
24921
24922 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24923
24924         * NEWS: Mention 2011-02-08 change to stdlib.
24925
24926 2011-02-17  Bruno Haible  <bruno@clisp.org>
24927
24928         getloadavg: Add comments about platforms.
24929         * m4/getloadavg.m4: Add comment.
24930         * lib/getloadavg.c: Likewise.
24931
24932 2011-02-17  Bruno Haible  <bruno@clisp.org>
24933
24934         getloadavg: Fix link error on Solaris 2.6.
24935         * modules/getloadavg (Link): New section.
24936         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24937         linking test-getloadavg.
24938         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24939         getloadavg.
24940
24941 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24942
24943         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24944         It was 'int', but this doesn't match the IRIX 6.5 manual.
24945         Suggested by Bruno Haible in
24946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24947
24948 2011-02-17  Bruno Haible  <bruno@clisp.org>
24949
24950         havelib: Fix comments.
24951         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24952         change.
24953
24954 2011-02-17  Bruno Haible  <bruno@clisp.org>
24955
24956         havelib: Update config.rpath.
24957         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24958
24959 2011-02-17  Bruno Haible  <bruno@clisp.org>
24960
24961         getloadavg test: Add some plausibility checks.
24962         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24963         is improbable.
24964
24965 2011-02-16  Eric Blake  <eblake@redhat.com>
24966
24967         maintainer-makefile: make syntax-check a no-op from tarballs
24968         * top/maint.mk (no-vc-detected): New rule.
24969         (local-checks-available): Use it to avoid hanging if someone tries
24970         'make syntax-check' from a tarball.  Also append to any non-syntax
24971         checks already defined in cfg.mk.
24972
24973 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24974
24975         longlong: tune, particularly for common case of c99
24976
24977         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24978         or running anything if c99, or if unsigned long long int does not
24979         work.  In either case, we know the answer without further tests.
24980         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24981         it at most once, and use its results for both long long int and
24982         unsigned long long int.  This is more likely to be efficient in
24983         the common case where the program wants to check for both long
24984         long int and unsigned long long int.
24985         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24986         since the answer is already known.
24987
24988 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24989
24990         getloadavg: set errno
24991         * lib/getloadavg.c: Set errno when returning -1.  If no other
24992         error number looks appropriate, set it to ENOSYS if the getloadavg
24993         looks like it can't possibly ever work, ENOTSUP otherwise.
24994         Suggested by Bruno Haible in
24995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24996
24997         getloadavg: trim unused parts and speed up 'configure'
24998         * NEWS: Document this.
24999         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
25000         always compiled if getloadavg is absent.
25001         Move test code to ...
25002         * tests/test-getloadavg.c: New file, containing previous
25003         contents of test from lib/getloadavg.c.  It also contains
25004         suggestions by Bruno Haible in
25005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
25006         * modules/getloadavg-tests: New file.
25007         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
25008         Do tests in the same order as they're needed for getloadavg.c.
25009         Omit setgid-related tests that generate symbols KMEM_GROUP,
25010         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
25011         Do only the tests that are needed to see whether the system has
25012         getloadavg, moving the other tests into ...
25013         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
25014         NLIST_NAME_UNION; nobody should be using it.  Do not define
25015         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
25016         relevant, as the user of this module shouldn't care how getloadavg
25017         is implemented.
25018
25019         getloadavg: omit unused var
25020         * lib/getloadavg.c (getloadavg): Omit unused local variable.
25021
25022 2011-02-15  Jim Meyering  <meyering@redhat.com>
25023
25024         doc: update users.txt
25025         * users.txt: Update iwhd's URL.
25026
25027 2011-02-13  Bruno Haible  <bruno@clisp.org>
25028
25029         Consistent macro naming for macros that use GCC __attribute__.
25030         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
25031         _ATTRIBUTE_NONNULL_.
25032         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
25033         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
25034         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
25035         ATTRIBUTE_DEPRECATED.
25036         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
25037         ATTRIBUTE_NORETURN.
25038         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25039         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25040         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25041         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25042         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
25043         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
25044         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
25045         ATTRIBUTE_SENTINEL.
25046         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
25047         ATTRIBUTE_RETURN_CHECK.
25048         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
25049         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
25050         ATTRIBUTE_NORETURN.
25051         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
25052         Reported by Paul Eggert.
25053
25054 2011-02-13  Bruno Haible  <bruno@clisp.org>
25055
25056         Don't interfere with a program's definition of __attribute__.
25057         * lib/argp.h (__attribute__): Remove definition.
25058         (_GL_ATTRIBUTE_FORMAT): New macro.
25059         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
25060         * lib/argp-fmtstream.h (__attribute__): Remove definition.
25061         (_GL_ATTRIBUTE_FORMAT): New macro.
25062         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
25063         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
25064         GCC 3 or newer.
25065         * lib/error.h (__attribute__): Remove definition.
25066         (_GL_ATTRIBUTE_FORMAT): New macro.
25067         (error, error_at_line): Use it.
25068         * lib/hash.h (__attribute__): Remove definition.
25069         (ATTRIBUTE_WUR): Update definition. Define always.
25070         * lib/openat.h (__attribute__): Remove definition.
25071         (ATTRIBUTE_NORETURN): Update definition. Define always.
25072         * lib/sigpipe-die.h (__attribute__): Remove definition.
25073         (ATTRIBUTE_NORETURN): Update definition. Define always.
25074         * lib/vasnprintf.h (__attribute__): Remove definition.
25075         (_GL_ATTRIBUTE_FORMAT): New macro.
25076         (asnprintf, vasnprintf): Use it.
25077         * lib/xalloc.h (__attribute__): Remove definition.
25078         (ATTRIBUTE_NORETURN): Update definition. Define always.
25079         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
25080         * lib/xmemdup0.h (__attribute__): Remove definition.
25081         (ATTRIBUTE_NORETURN): Update definition. Define always.
25082         * lib/xprintf.h (__attribute__): Remove definition.
25083         (_GL_ATTRIBUTE_FORMAT): New macro.
25084         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
25085         * lib/xstrtol.h (__attribute__): Remove definition.
25086         (ATTRIBUTE_NORETURN): Update definition. Define always.
25087         * lib/xvasprintf.h (__attribute__): Remove definition.
25088         (_GL_ATTRIBUTE_FORMAT): New macro.
25089         (xasprintf, xvasprintf): Use it.
25090         * tests/test-argmatch.c (__attribute__): Remove definition.
25091         (ATTRIBUTE_NORETURN): Update definition. Define always.
25092         * tests/test-exclude.c (__attribute__): Remove definition.
25093         (ATTRIBUTE_NORETURN): Update definition. Define always.
25094         Reported by Paul Eggert.
25095
25096 2011-02-13  Bruno Haible  <bruno@clisp.org>
25097
25098         mbrtowc: Add more tests for native Windows platforms.
25099         * tests/test-mbrtowc-w32-1.sh: New file.
25100         * tests/test-mbrtowc-w32-2.sh: New file.
25101         * tests/test-mbrtowc-w32-3.sh: New file.
25102         * tests/test-mbrtowc-w32-4.sh: New file.
25103         * tests/test-mbrtowc-w32-5.sh: New file.
25104         * tests/test-mbrtowc-w32.c: New file.
25105         * modules/mbrtowc-tests (Files): Add them.
25106         (Makefile.am): Arrange to run these tests.
25107         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
25108         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
25109
25110 2011-02-13  Bruno Haible  <bruno@clisp.org>
25111
25112         mbrtowc: Work around native Windows bug.
25113         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
25114         guess when no suitable locale for testing was found.
25115         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
25116
25117 2011-02-13  Bruno Haible  <bruno@clisp.org>
25118
25119         mbsinit: Work around mingw bug.
25120         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
25121         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
25122         Windows.
25123         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
25124
25125 2011-02-13  Bruno Haible  <bruno@clisp.org>
25126
25127         mbsinit: Don't crash for a NULL argument.
25128         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
25129         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
25130
25131 2011-02-13  Bruno Haible  <bruno@clisp.org>
25132
25133         Don't interfere with a program's definition of __attribute__.
25134         * lib/stdio.in.h (__attribute__): Remove definition.
25135         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
25136         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
25137         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
25138         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
25139         * lib/string.in.h (__attribute__): Remove definition.
25140         Reported by Paul Eggert.
25141
25142 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25143
25144         stdlib: don't get in the way of non-GCC __attribute__
25145         See thread starting at
25146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
25147         Revert previous stdlib change, installing the following instead:
25148         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25149         to get in the way of a non-GCC compiler that supports __attribute__.
25150         (_GL_ATTRIBUTE_RETURN): New macro.
25151         (_Exit): Use it instead of __attribute__.
25152
25153 2011-02-12  Bruno Haible  <bruno@clisp.org>
25154
25155         quotearg test: Avoid test failure on mingw.
25156         * tests/test-quotearg.sh: Convert the locale identifier from native
25157         Windows syntax to Unix syntax.
25158
25159 2011-02-12  Bruno Haible  <bruno@clisp.org>
25160
25161         setlocale: Prefer gnulib's override over libintl's override.
25162         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
25163         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
25164         GNULIB_defined_setlocale is set.
25165
25166 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25167
25168         stdlib: support non-GCC __attribute__
25169
25170         Fix a serious and tricky problem encountered when attempting to
25171         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
25172         5.5, but it crashed due to memory corruption on Solaris 10 with
25173         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
25174         bits that are otherwise zero.  This tagging is optional inside
25175         Emacs but is preferred and is used when __attribute__ ((__aligned
25176         (8))) works, as it does with both recent-enough GCC and with Sun C
25177         5.11.  However, Sun C 5.11 is not GCC and does not #define
25178         __GNUC__ and __GNUC_MINOR__.
25179
25180         When I added the getloadavg module to Emacs, it brought in
25181         stdlib.in.h, which contained this fragment:
25182
25183            #ifndef __attribute__
25184            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
25185            #  define __attribute__(Spec)   /* empty */
25186            # endif
25187            #endif
25188
25189         When files that include <stdlib.h> were compiled with Sun C 5.11,
25190         the above code disabled __attribute__ ((__aligned (8))), which
25191         caused variables to not be properly aligned, which eventually led
25192         to the pointer corruption mentioned above.  (This was a bit hard
25193         to diagnose, unfortunately.)
25194
25195         Several "#define __attribute__(X) /* empty */" code snippets need
25196         to be eradicated from Gnulib to work with non-GCC compilers that
25197         support __attribute__.  The Autoconf way to do this is to test for
25198         each kind of attribute that we want support for, and selectively
25199         enable that in source code.
25200
25201         Fix this problem just for stdlib.h, by adding a test for the
25202         __noreturn__ attribute, and change stdlib.in.h to use that test
25203         when needed.  This technique can be easily generalized to the
25204         other *.in.h files and attributes, and a similar technique can be
25205         used for *.h and *.c files.  This patch is enough to solve the
25206         problem for Emacs + getloadavg, and I thought I'd publish it for
25207         feedback before undertaking further, similar fixes in other
25208         modules.
25209
25210         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25211         because it's not needed for stdlib.h.  It merely substitutes the
25212         value directly into stdlib.h.  We may well need to #define it, or
25213         similar symbols, for other modules, but it's nice to also have an
25214         option to not #define it for applications like Emacs that do not
25215         need it.
25216
25217         * lib/stdlib.in.h (__attribute__): Do not #define.
25218         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25219         be defined only if the _Exit module is also used.
25220         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25222         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25223         platforms.
25224         * modules/_Exit (Files): Add m4/attribute.m4.
25225         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25226         * m4/attribute.m4: New file.
25227
25228 2011-02-12  Bruno Haible  <bruno@clisp.org>
25229
25230         wcsrtombs: Work around bug on native Windows.
25231         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25232         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25233         instead of len.
25234         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25235
25236 2011-02-12  Bruno Haible  <bruno@clisp.org>
25237
25238         mbsrtowcs: Work around bug on native Windows.
25239         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25240         against mingw bug.
25241         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25242
25243 2011-02-12  Bruno Haible  <bruno@clisp.org>
25244
25245         Avoid setlocale bugs in tests.
25246         * modules/btowc (Dependencies): Add setlocale.
25247         * modules/c-strcase (Dependencies): Likewise.
25248         * modules/mbmemcasecmp (Dependencies): Likewise.
25249         * modules/mbmemcasecoll (Dependencies): Likewise.
25250         * modules/mbrtowc (Dependencies): Likewise.
25251         * modules/mbscasecmp (Dependencies): Likewise.
25252         * modules/mbscasestr (Dependencies): Likewise.
25253         * modules/mbschr (Dependencies): Likewise.
25254         * modules/mbscspn (Dependencies): Likewise.
25255         * modules/mbsinit (Dependencies): Likewise.
25256         * modules/mbsncasecmp (Dependencies): Likewise.
25257         * modules/mbsnrtowcs (Dependencies): Likewise.
25258         * modules/mbspbrk (Dependencies): Likewise.
25259         * modules/mbspcasecmp (Dependencies): Likewise.
25260         * modules/mbsrchr (Dependencies): Likewise.
25261         * modules/mbsrtowcs (Dependencies): Likewise.
25262         * modules/mbsspn (Dependencies): Likewise.
25263         * modules/mbsstr (Dependencies): Likewise.
25264         * modules/nl_langinfo (Dependencies): Likewise.
25265         * modules/quotearg (Dependencies): Likewise.
25266         * modules/unicase/locale-language (Dependencies): Likewise.
25267         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25268         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25269         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25270         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25271         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25272         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25273         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25274         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25275         * modules/vasnprintf-posix (Dependencies): Likewise.
25276         * modules/wcrtomb (Dependencies): Likewise.
25277         * modules/wcsnrtombs (Dependencies): Likewise.
25278         * modules/wcsrtombs (Dependencies): Likewise.
25279
25280 2011-02-12  Bruno Haible  <bruno@clisp.org>
25281
25282         setlocale: Workaround native Windows bug.
25283         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25284         succeeds but sets LC_CTYPE to "C", report a failure.
25285         * tests/test-setlocale2.sh: New file.
25286         * tests/test-setlocale2.c: New file.
25287         * modules/setlocale-tests (Files): Add the new files.
25288         (Makefile.am): Enable test-setlocale2.sh test.
25289         * doc/posix-functions/setlocale.texi: Mention workaround.
25290
25291 2011-02-11  Bruno Haible  <bruno@clisp.org>
25292
25293         Tests for module 'setlocale'.
25294         * modules/setlocale-tests: New file.
25295         * tests/test-setlocale1.sh: New file.
25296         * tests/test-setlocale1.c: New file.
25297
25298         New module 'setlocale'.
25299         * lib/locale.in.h (setlocale): New declaration.
25300         * lib/setlocale.c: New file, based on
25301         gettext/gettext-runtime/intl/setlocale.c.
25302         * m4/setlocale.m4: New file.
25303         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25304         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25305         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25306         REPLACE_SETLOCALE.
25307         * modules/setlocale: New file.
25308         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25309         * doc/posix-functions/setlocale.texi: Mention the new module.
25310
25311 2011-02-11  Bruno Haible  <bruno@clisp.org>
25312
25313         Prepare for locale dependent tests on mingw.
25314         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25315         because it has the wrong locale encoding.
25316         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25317         French_France.1252 instead of "fr".
25318         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25319         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25320         because it has the wrong locale encoding.
25321         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25322         native Windows, try Turkish_Turkey.65001.
25323         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25324         Chinese_China.54936.
25325
25326         Prepare for locale dependent tests on mingw.
25327         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25328         differently.
25329         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25330         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25331         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25332         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25333
25334 2011-02-11  Eric Blake  <eblake@redhat.com>
25335
25336         strptime: avoid compiler warnings
25337         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25338         compiler warnings about dead code.
25339         Reported by Daniel P. Berrange.
25340
25341 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25342
25343         doc: update users.txt
25344         * users.txt: Add rcs.
25345
25346 2011-02-10  John W. Eaton  <jwe@gnu.org>
25347
25348         doc: update users.txt
25349         * users.txt: Add octave.
25350
25351 2011-02-10  Jim Meyering  <meyering@redhat.com>
25352
25353         doc: update users.txt
25354         * users.txt: Add iwhd.
25355
25356 2011-02-09  Bruno Haible  <bruno@clisp.org>
25357
25358         gnulib-tool: Make copyright notice adjustment more robust.
25359         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25360         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25361         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25362         License".
25363         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25364
25365 2011-02-06  Bruno Haible  <bruno@clisp.org>
25366
25367         New module 'towctrans'.
25368         * modules/towctrans: New file.
25369         * lib/wctype.in.h (towctrans): New declaration.
25370         * lib/towctrans.c: New file.
25371         * lib/towctrans-impl.h: New file.
25372         * m4/towctrans.m4: New file.
25373         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25374         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25375         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25376         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25377         * doc/posix-functions/towctrans.texi: Mention the new module.
25378
25379 2011-02-06  Bruno Haible  <bruno@clisp.org>
25380
25381         New module 'wctrans'.
25382         * modules/wctrans: New file.
25383         * lib/wctype.in.h (wctrans): New declaration.
25384         * lib/wctrans.c: New file.
25385         * lib/wctrans-impl.h: New file.
25386         * m4/wctrans.m4: New file.
25387         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25388         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25389         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25390         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25391         * doc/posix-functions/wctrans.texi: Mention the new module.
25392
25393 2011-02-06  Bruno Haible  <bruno@clisp.org>
25394
25395         New module 'iswctype'.
25396         * modules/iswctype: New file.
25397         * lib/wctype.in.h (iswctype): New declaration.
25398         * lib/iswctype.c: New file.
25399         * lib/iswctype-impl.h: New file.
25400         * m4/iswctype.m4: New file.
25401         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25402         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25403         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25404         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25405         * doc/posix-functions/iswctype.texi: Mention the new module and the
25406         HP-UX 11.00 problem.
25407
25408 2011-02-06  Bruno Haible  <bruno@clisp.org>
25409
25410         New module 'wctype'.
25411         * modules/wctype: Change to represent the wctype() substitute.
25412         * lib/wctype.in.h (wctype): New declaration.
25413         * lib/wctype.c: New file.
25414         * lib/wctype-impl.h: New file.
25415         * m4/wctype.m4: New file.
25416         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25417         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25418         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25419         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25420         * doc/posix-functions/wctype.texi: Mention the new module and the
25421         HP-UX 11.00 problem.
25422
25423 2011-02-06  Bruno Haible  <bruno@clisp.org>
25424
25425         wctype-h: Ensure wctype_t and wctrans_t are defined.
25426         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25427         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25428         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25429         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25430         HAVE_WCTRANS_T.
25431         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25432
25433 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25434
25435         flock: fix license typo
25436
25437         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25438         omitted.
25439
25440 2011-02-08  Bruno Haible  <bruno@clisp.org>
25441
25442         Split large sed scripts, for HP-UX sed.
25443         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25444         to avoid HP-UX limit of 99 commands, in the near future.
25445         * modules/stdlib (Makefile.am): Likewise.
25446         * modules/unistd (Makefile.am): Likewise.
25447         * modules/wchar (Makefile.am): Likewise.
25448         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25449         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25450         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25451
25452 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25453             Bruno Haible  <bruno@clisp.org>
25454
25455         stdlib: improve random_r modularization
25456         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25457         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25458         you also need the random_r module to get this material right.
25459         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25460         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25461         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25462
25463 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25464
25465         stdlib: don't depend on stdint
25466         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25467         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25468         be independent of whether stdint.h is needed.
25469         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25470         here, instead of ...
25471         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25472         struct random_data should be using the random_r module, not just
25473         the stdlib module (which wouldn't make sense: what package needs
25474         just struct random_data without also needing random_r?).
25475         * modules/stdlib (Depends-on): Remove stdint.
25476
25477         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25478         See the thread rooted at
25479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25480         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25481         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25482         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25483         __VMS)); previously it was always included (via fcntl--.h).
25484         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25485         hand; this is good enough for load averages.  Also, do not use
25486         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25487         flags directly if available and don't bother otherwise.  (Packages
25488         that need the extra reliability should use the modules that define
25489         these flags on older platforms that lack them.)
25490         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25491         fcntl-safer.
25492
25493 2011-02-08  Jim Meyering  <meyering@redhat.com>
25494
25495         di-set.h, ino-map.h: add multiple-inclusion guard
25496         Technically, the guard is required only for ino-map.h, due to its
25497         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25498         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25499         * lib/ino-map.h: Likewise.
25500
25501 2011-02-06  Bruno Haible  <bruno@clisp.org>
25502
25503         iswblank: Ensure declaration on glibc systems.
25504         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25505         * modules/iswblank (Dependencies): Add 'extensions'.
25506         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25507
25508 2011-02-06  Bruno Haible  <bruno@clisp.org>
25509
25510         New module 'iswblank'.
25511         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25512         * modules/iswblank: New file.
25513         * modules/wctype-h (Files): Remove lib/iswblank.c.
25514         (Makefile.am): Substitute GNULIB_ISWBLANK.
25515         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25516         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25517         (gl_WCTYPE_H_DEFAULTS): New macro.
25518         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25519         * modules/iswblank-tests: New file.
25520         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25521         * tests/test-wctype-h.c (main): Remove iswblank tests.
25522         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25523         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25524         of 'wctype-h'.
25525         * NEWS: Mention the change.
25526         * modules/mbchar (Depends-on): Add iswblank.
25527
25528 2011-02-08  Bruno Haible  <bruno@clisp.org>
25529
25530         di-set tests: Refactor.
25531         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25532         unnecessary includes.
25533         (ASSERT): Remove macro.
25534         (main): Make C90 compliant by avoiding variable declaration after
25535         statement.
25536         * modules/di-set-tests (Files): Add tests/macros.h.
25537
25538 2011-02-08  Bruno Haible  <bruno@clisp.org>
25539
25540         ino-map tests: Refactor.
25541         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25542         unnecessary includes.
25543         (ASSERT): Remove macro.
25544         (main): Make C90 compliant by avoiding variable declaration after
25545         statement.
25546         * modules/ino-map-tests (Files): Add tests/macros.h.
25547
25548 2011-02-08  Jim Meyering  <meyering@redhat.com>
25549
25550         di-set: add "const" to a cast
25551         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25552         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25553
25554 2011-02-06  Bruno Haible  <bruno@clisp.org>
25555
25556         Rename module 'wctype' to 'wctype-h'.
25557         * modules/wctype-h: Renamed from modules/wctype.
25558         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25559         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25560         (Files, Depends-on, Makefile.am): Update.
25561         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25562         (Files, Makefile.am): Update.
25563         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25564         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25565         * doc/posix-headers/wctype.texi: Update.
25566         * doc/posix-functions/iswalnum.texi: Update.
25567         * doc/posix-functions/iswalpha.texi: Update.
25568         * doc/posix-functions/iswblank.texi: Update.
25569         * doc/posix-functions/iswcntrl.texi: Update.
25570         * doc/posix-functions/iswdigit.texi: Update.
25571         * doc/posix-functions/iswgraph.texi: Update.
25572         * doc/posix-functions/iswlower.texi: Update.
25573         * doc/posix-functions/iswprint.texi: Update.
25574         * doc/posix-functions/iswpunct.texi: Update.
25575         * doc/posix-functions/iswspace.texi: Update.
25576         * doc/posix-functions/iswupper.texi: Update.
25577         * doc/posix-functions/iswxdigit.texi: Update.
25578         * doc/posix-functions/towlower.texi: Update.
25579         * doc/posix-functions/towupper.texi: Update.
25580         * NEWS: Mention the change.
25581         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25582         * modules/mbchar (Dependencies): Likewise.
25583         * modules/mbswidth (Dependencies): Likewise.
25584         * modules/quotearg (Dependencies): Likewise.
25585         * modules/regex (Dependencies): Likewise.
25586         * modules/wcscasecmp (Dependencies): Likewise.
25587         * modules/wcsncasecmp (Dependencies): Likewise.
25588         * modules/wcwidth (Dependencies): Likewise.
25589
25590 2011-02-06  Bruno Haible  <bruno@clisp.org>
25591
25592         New module 'wcswidth'.
25593         * modules/wcswidth: New file.
25594         * lib/wchar.in.h (wcswidth): New declaration.
25595         * lib/wcswidth.c: New file.
25596         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25597         * m4/wcswidth.m4: New file.
25598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25600         REPLACE_WCSWIDTH.
25601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25602         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25603         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25604         * doc/posix-functions/wcswidth.texi: Mention the new module.
25605
25606 2011-02-06  Bruno Haible  <bruno@clisp.org>
25607
25608         New module 'wcstok'.
25609         * modules/wcstok: New file.
25610         * lib/wchar.in.h (wcstok): New declaration.
25611         * lib/wcstok.c: New file.
25612         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25613         * m4/wcstok.m4: New file.
25614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25617         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25618         * doc/posix-functions/wcstok.texi: Mention the new module.
25619
25620 2011-02-06  Bruno Haible  <bruno@clisp.org>
25621
25622         New module 'wcsstr'.
25623         * modules/wcsstr: New file.
25624         * lib/wchar.in.h (wcsstr): New declaration.
25625         * lib/wcsstr.c: New file.
25626         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25627         * m4/wcsstr.m4: New file.
25628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25631         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25632         * doc/posix-functions/wcsstr.texi: Mention the new module.
25633
25634 2011-02-06  Bruno Haible  <bruno@clisp.org>
25635
25636         New module 'wcspbrk'.
25637         * modules/wcspbrk: New file.
25638         * lib/wchar.in.h (wcspbrk): New declaration.
25639         * lib/wcspbrk.c: New file.
25640         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25641         * m4/wcspbrk.m4: New file.
25642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25645         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25646         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25647
25648 2011-02-06  Bruno Haible  <bruno@clisp.org>
25649
25650         New module 'wcsspn'.
25651         * modules/wcsspn: New file.
25652         * lib/wchar.in.h (wcsspn): New declaration.
25653         * lib/wcsspn.c: New file.
25654         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25655         * m4/wcsspn.m4: New file.
25656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25659         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25660         * doc/posix-functions/wcsspn.texi: Mention the new module.
25661
25662 2011-02-06  Bruno Haible  <bruno@clisp.org>
25663
25664         New module 'wcscspn'.
25665         * modules/wcscspn: New file.
25666         * lib/wchar.in.h (wcscspn): New declaration.
25667         * lib/wcscspn.c: New file.
25668         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25669         * m4/wcscspn.m4: New file.
25670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25673         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25674         * doc/posix-functions/wcscspn.texi: Mention the new module.
25675
25676 2011-02-06  Bruno Haible  <bruno@clisp.org>
25677
25678         New module 'wcsrchr'.
25679         * modules/wcsrchr: New file.
25680         * lib/wchar.in.h (wcsrchr): New declaration.
25681         * lib/wcsrchr.c: New file.
25682         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25683         * m4/wcsrchr.m4: New file.
25684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25687         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25688         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25689
25690 2011-02-06  Bruno Haible  <bruno@clisp.org>
25691
25692         New module 'wcschr'.
25693         * modules/wcschr: New file.
25694         * lib/wchar.in.h (wcschr): New declaration.
25695         * lib/wcschr.c: New file.
25696         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25697         * m4/wcschr.m4: New file.
25698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25701         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25702         * doc/posix-functions/wcschr.texi: Mention the new module.
25703
25704 2011-02-06  Bruno Haible  <bruno@clisp.org>
25705
25706         New module 'wcsdup'.
25707         * modules/wcsdup: New file.
25708         * lib/wchar.in.h (wcsdup): New declaration.
25709         * lib/wcsdup.c: New file.
25710         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25711         * m4/wcsdup.m4: New file.
25712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25715         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25716         * doc/posix-functions/wcsdup.texi: Mention the new module.
25717
25718 2011-02-06  Bruno Haible  <bruno@clisp.org>
25719
25720         New module 'wcsxfrm'.
25721         * modules/wcsxfrm: New file.
25722         * lib/wchar.in.h (wcsxfrm): New declaration.
25723         * lib/wcsxfrm.c: New file.
25724         * lib/wcsxfrm-impl.h: New file.
25725         * m4/wcsxfrm.m4: New file.
25726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25729         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25730         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25731
25732 2011-02-06  Bruno Haible  <bruno@clisp.org>
25733
25734         New module 'wcscoll'.
25735         * modules/wcscoll: New file.
25736         * lib/wchar.in.h (wcscoll): New declaration.
25737         * lib/wcscoll.c: New file.
25738         * lib/wcscoll-impl.h: New file.
25739         * m4/wcscoll.m4: New file.
25740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25743         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25744         * doc/posix-functions/wcscoll.texi: Mention the new module.
25745
25746 2011-02-06  Bruno Haible  <bruno@clisp.org>
25747
25748         New module 'wcsncasecmp'.
25749         * modules/wcsncasecmp: New file.
25750         * lib/wchar.in.h (wcsncasecmp): New declaration.
25751         * lib/wcsncasecmp.c: New file.
25752         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25753         * m4/wcsncasecmp.m4: New file.
25754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25757         HAVE_WCSNCASECMP.
25758         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25759         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25760
25761 2011-02-06  Bruno Haible  <bruno@clisp.org>
25762
25763         New module 'wcscasecmp'.
25764         * modules/wcscasecmp: New file.
25765         * lib/wchar.in.h (wcscasecmp): New declaration.
25766         * lib/wcscasecmp.c: New file.
25767         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25768         * m4/wcscasecmp.m4: New file.
25769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25772         HAVE_WCSCASECMP.
25773         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25774         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25775
25776 2011-02-05  Bruno Haible  <bruno@clisp.org>
25777
25778         New module 'wcsncmp'.
25779         * modules/wcsncmp: New file.
25780         * lib/wchar.in.h (wcsncmp): New declaration.
25781         * lib/wcsncmp.c: New file.
25782         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25783         * m4/wcsncmp.m4: New file.
25784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25787         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25788         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25789
25790 2011-02-05  Bruno Haible  <bruno@clisp.org>
25791
25792         New module 'wcscmp'.
25793         * modules/wcscmp: New file.
25794         * lib/wchar.in.h (wcscmp): New declaration.
25795         * lib/wcscmp.c: New file.
25796         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25797         * m4/wcscmp.m4: New file.
25798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25801         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25802         * doc/posix-functions/wcscmp.texi: Mention the new module.
25803
25804 2011-02-05  Bruno Haible  <bruno@clisp.org>
25805
25806         New module 'wcsncat'.
25807         * modules/wcsncat: New file.
25808         * lib/wchar.in.h (wcsncat): New declaration.
25809         * lib/wcsncat.c: New file.
25810         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25811         * m4/wcsncat.m4: New file.
25812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25814         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25815         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25816         * doc/posix-functions/wcsncat.texi: Mention the new module.
25817
25818 2011-02-05  Bruno Haible  <bruno@clisp.org>
25819
25820         New module 'wcscat'.
25821         * modules/wcscat: New file.
25822         * lib/wchar.in.h (wcscat): New declaration.
25823         * lib/wcscat.c: New file.
25824         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25825         * m4/wcscat.m4: New file.
25826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25829         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25830         * doc/posix-functions/wcscat.texi: Mention the new module.
25831
25832 2011-02-05  Bruno Haible  <bruno@clisp.org>
25833
25834         New module 'wcpncpy'.
25835         * modules/wcpncpy: New file.
25836         * lib/wchar.in.h (wcpncpy): New declaration.
25837         * lib/wcpncpy.c: New file.
25838         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25839         * m4/wcpncpy.m4: New file.
25840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25842         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25843         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25844         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25845
25846 2011-02-05  Bruno Haible  <bruno@clisp.org>
25847
25848         New module 'wcsncpy'.
25849         * modules/wcsncpy: New file.
25850         * lib/wchar.in.h (wcsncpy): New declaration.
25851         * lib/wcsncpy.c: New file.
25852         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25853         * m4/wcsncpy.m4: New file.
25854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25857         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25858         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25859
25860 2011-02-05  Bruno Haible  <bruno@clisp.org>
25861
25862         New module 'wcpcpy'.
25863         * modules/wcpcpy: New file.
25864         * lib/wchar.in.h (wcpcpy): New declaration.
25865         * lib/wcpcpy.c: New file.
25866         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25867         * m4/wcpcpy.m4: New file.
25868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25870         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25871         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25872         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25873
25874 2011-02-05  Bruno Haible  <bruno@clisp.org>
25875
25876         New module 'wcscpy'.
25877         * modules/wcscpy: New file.
25878         * lib/wchar.in.h (wcscpy): New declaration.
25879         * lib/wcscpy.c: New file.
25880         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25881         * m4/wcscpy.m4: New file.
25882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25885         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25886         * doc/posix-functions/wcscpy.texi: Mention the new module.
25887
25888 2011-02-05  Bruno Haible  <bruno@clisp.org>
25889
25890         New module 'wcsnlen'.
25891         * modules/wcsnlen: New file.
25892         * lib/wchar.in.h (wcsnlen): New declaration.
25893         * lib/wcsnlen.c: New file.
25894         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25895         * m4/wcsnlen.m4: New file.
25896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25898         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25899         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25900         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25901
25902 2011-02-05  Bruno Haible  <bruno@clisp.org>
25903
25904         New module 'wcslen'.
25905         * modules/wcslen: New file.
25906         * lib/wchar.in.h (wcslen): New declaration.
25907         * lib/wcslen.c: New file.
25908         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25909         * m4/wcslen.m4: New file.
25910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25912         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25913         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25914         * doc/posix-functions/wcslen.texi: Mention the new module.
25915
25916 2011-02-05  Bruno Haible  <bruno@clisp.org>
25917
25918         New module 'wmemset'.
25919         * modules/wmemset: New file.
25920         * lib/wchar.in.h (wmemset): New declaration.
25921         * lib/wmemset.c: New file.
25922         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25923         * m4/wmemset.m4: New file.
25924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25926         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25927         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25928         * doc/posix-functions/wmemset.texi: Mention the new module.
25929
25930 2011-02-05  Bruno Haible  <bruno@clisp.org>
25931
25932         New module 'wmemmove'.
25933         * modules/wmemmove: New file.
25934         * lib/wchar.in.h (wmemmove): New declaration.
25935         * lib/wmemmove.c: New file.
25936         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25937         * m4/wmemmove.m4: New file.
25938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25940         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25941         HAVE_WMEMMOVE.
25942         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25943         * doc/posix-functions/wmemmove.texi: Mention the new module.
25944
25945 2011-02-05  Bruno Haible  <bruno@clisp.org>
25946
25947         New module 'wmemcpy'.
25948         * modules/wmemcpy: New file.
25949         * lib/wchar.in.h (wmemcpy): New declaration.
25950         * lib/wmemcpy.c: New file.
25951         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25952         * m4/wmemcpy.m4: New file.
25953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25955         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25956         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25957         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25958
25959 2011-02-05  Bruno Haible  <bruno@clisp.org>
25960
25961         New module 'wmemcmp'.
25962         * modules/wmemcmp: New file.
25963         * lib/wchar.in.h (wmemcmp): New declaration.
25964         * lib/wmemcmp.c: New file.
25965         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25966         * m4/wmemcmp.m4: New file.
25967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25969         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25970         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25971         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25972
25973 2011-02-07  Jim Meyering  <meyering@redhat.com>
25974
25975         di-set, ino-map: new modules, from coreutils
25976         * lib/di-set.c: New file.
25977         * lib/di-set.h: Likewise.
25978         * lib/ino-map.c: Likewise.
25979         * lib/ino-map.h: Likewise.
25980         * modules/di-set: Likewise.
25981         * modules/di-set-tests: Likewise.
25982         * modules/ino-map: Likewise.
25983         * modules/ino-map-tests: Likewise.
25984         * tests/test-di-set.c: Likewise.
25985         * tests/test-ino-map.c: Likewise.
25986
25987 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25988
25989         getloadavg: merge minor changes from Emacs
25990
25991         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25992         (getloadavg): Use memset, not bzero.
25993
25994         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25995         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25996         clash (bug#86).
25997
25998 2010-11-14  Bruno Haible  <bruno@clisp.org>
25999
26000         Allow multiple gnulib generated replacements to coexist.
26001         * lib/getopt.in.h (struct option): Avoid identical redefinition.
26002         * lib/inttypes.in.h (imaxdiv_t): Likewise.
26003         * lib/langinfo.in.h (nl_item): Likewise.
26004         * lib/math.in.h (_NaN, NAN): Likewise.
26005         * lib/netdb.in.h (struct addrinfo): Likewise.
26006         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
26007         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
26008         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
26009         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
26010         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
26011         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
26012         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
26013         pthread_mutexattr_init, pthread_mutexattr_settype,
26014         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
26015         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
26016         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
26017         pthread_spin_trylock, pthread_spin_unlock): Likewise.
26018         * lib/sched.in.h (struct sched_param): Likewise.
26019         * lib/se-selinux.in.h (security_class_t, security_context_t,
26020         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
26021         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
26022         lsetfilecon, fsetfilecon, security_check_context,
26023         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
26024         Likewise.
26025         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
26026         Likewise.
26027         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
26028         _gl_function_taking_int_returning_void_t, union sigval,
26029         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
26030         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
26031         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26032         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
26033         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
26034         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
26035         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
26036         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
26037         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
26038         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
26039         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
26040         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
26041         socklen_t, rpl_fd_isset): Likewise.
26042         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
26043         * lib/sys_time.in.h (struct timeval): Likewise.
26044         * lib/sys_times.in.h (struct tms): Likewise.
26045         * lib/sys_utsname.in.h (struct utsname):
26046         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
26047         * lib/unistd.in.h (getpagesize): Likewise.
26048         * lib/wchar.in.h (mbstate_t): Likewise.
26049         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26050         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
26051         towlower, towupper): Likewise.
26052         Reported by Sam Steingold <sds@gnu.org>.
26053
26054 2011-02-05  Eric Blake  <eblake@redhat.com>
26055
26056         unsetenv: work around Haiku issues
26057         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
26058         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
26059
26060 2010-12-30  Bruce Korb  <bkorb@gnu.org>
26061
26062         libposix: avoid calling error() within libposix
26063         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
26064         is defined.
26065
26066 2011-02-05  Eric Blake  <eblake@redhat.com>
26067
26068         strerror_r-posix: port to cygwin
26069         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
26070         implementation.
26071         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
26072         * tests/test-strerror_r.c (main): Fix test.
26073         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
26074         issue.
26075
26076 2011-02-05  Bruno Haible  <bruno@clisp.org>
26077
26078         New module 'wmemchr'.
26079         * modules/wmemchr: New file.
26080         * lib/wchar.in.h (wmemchr): New declaration.
26081         * lib/wmemchr.c: New file.
26082         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
26083         * m4/wmemchr.m4: New file.
26084         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
26085         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
26086         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
26087         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
26088         * doc/posix-functions/wmemchr.texi: Mention the new module.
26089
26090 2011-02-04  Eric Blake  <eblake@redhat.com>
26091
26092         fdopendir: detect FreeBSD bug
26093         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
26094         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
26095
26096 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26097
26098         stdbool: do not define HAVE_STDBOOL_H
26099         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
26100         AC_HEADER_STDBOOL.  All uses changed.  Do not define
26101         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
26102         imported from the latest Autoconf git.  It was motivated by Emacs,
26103         which uses gnulib but does not need HAVE_STDBOOL_H.
26104
26105 2011-02-04  Bruno Haible  <bruno@clisp.org>
26106
26107         wcsnrtombs: Prepare for new module wwcsnrtombs.
26108         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
26109         * lib/wcsnrtombs.c: Include it.
26110         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
26111
26112         wcsrtombs: Prepare for new module wwcsrtombs.
26113         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
26114         * lib/wcsrtombs.c: Include it.
26115         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
26116
26117         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
26118         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
26119         * lib/mbsnrtowcs.c: Include it.
26120         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
26121
26122         mbsrtowcs: Prepare for new module mbsrtowwcs.
26123         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
26124         * lib/mbsrtowcs.c: Include it.
26125         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
26126
26127 2011-02-04  Bruno Haible  <bruno@clisp.org>
26128
26129         vasnprintf: Reduce use of malloc for small format strings.
26130         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
26131         (arguments): Add room for the first 7 arguments.
26132         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
26133         (char_directives, u8_directives, u16_directives, u32_directives): Add
26134         room for the first 7 directives.
26135         * lib/printf-parse.c: Include <string.h>.
26136         (PRINTF_PARSE): Change memory handling code so that it uses the first
26137         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
26138         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
26139         Reported by Pádraig Brady <P@draigbrady.com>.
26140
26141 2011-01-31  Eric Blake  <eblake@redhat.com>
26142
26143         dup2: work around Haiku bug
26144         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
26145         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
26146         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26147         * tests/test-dup2.c (main): Enhance test.
26148
26149 2011-01-31  Simon Josefsson  <simon@josefsson.org>
26150
26151         doc: off_t is not available in eglibc 2.11.2 stdio.h.
26152         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
26153         declared by eglibc 2.11.2.
26154         * lib/stdio.in.h: Likewise.
26155
26156 2011-01-31  Eric Blake  <eblake@redhat.com>
26157
26158         ignore-value: add missing test dependency
26159         * tests/test-ignore-value.c: Revert previous change; stdio.h
26160         provides off_t.
26161         * modules/ignore-value-tests (Depends-on): Add missing dependency.
26162
26163 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26164
26165         mktime: clarify long_int width checking
26166         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
26167         the top level, to make it clearer that the assumption about
26168         long_int width is being checked.  See
26169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
26170
26171 2011-01-30  Simon Josefsson  <simon@josefsson.org>
26172
26173         ignore-value: Fix self-test.
26174         * tests/test-ignore-value.c: Include sys/types.h for off_t.
26175
26176 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26177
26178         TYPE_MAXIMUM: avoid theoretically undefined behavior
26179         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
26180         negative number, which the C Standard says has undefined behavior.
26181         In practice this is not a problem, but might as well do it by the book.
26182         Reported by Rich Felker and Eric Blake; see
26183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
26184         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
26185         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26187         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
26188         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26189         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
26190
26191         mktime: #undef mktime before #defining it
26192         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
26193
26194         mktime: systematically normalize tm_isdst comparisons
26195         * lib/mktime.c (isdst_differ): New function.
26196         (__mktime_internal): Use it systematically for all isdst comparisons.
26197         This completes the fix for libc BZ #6723, and removes the need for
26198         normalizing tm_isdst.  See
26199         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
26200         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
26201
26202         mktime: fix some integer overflow issues and sidestep the rest
26203
26204         This was prompted by a bug report by Benjamin Lindner for MinGW
26205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26206         His bug is due to signed integer overflow (0 - INT_MIN), and I
26207         I scanned through mktime.c looking for other integer overflow
26208         problems, fixing all the bugs I found.
26209
26210         Although the C Standard says the resulting code is still not safe
26211         in the presence of integer overflow, in practice it should be good
26212         enough for all real-world two's-complement implementations, except
26213         for debugging environments that deliberately trap on integer
26214         overflow (e.g., gcc -ftrapv).
26215
26216         * lib/mktime.c (WRAPV): New macro.
26217         (SHR): Also check that long_int and time_t shift right in the
26218         usual way, before using the fast-but-unportable method.
26219         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26220         used.  The code already assumed two's complement, so there's
26221         no need to test for alternatives.  All uses removed.
26222         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26223         the C standard.  Problem reported by Rich Felker in
26224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26225         (twos_complement_arithmetic): Also check long_int and time_t.
26226         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26227         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26228         (__mktime_internal): Avoid integer overflow with unary subtraction
26229         in two instances where -1 - X is an adequate replacement for -X,
26230         since the calculations are approximate.
26231
26232 2011-01-29  Eric Blake  <eblake@redhat.com>
26233
26234         mktime: avoid infinite loop
26235         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26236         type; behavior is still undefined but portable to all known targets.
26237         Reported by Rich Felker.
26238
26239 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26240
26241         rename, unlink, same-inode: Relicense.
26242         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26243         * modules/unlink (License): Likewise.
26244         * modules/same-inode (License): Likewise.
26245
26246 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26247
26248         mktime: avoid problems on NetBSD 5 / i386
26249         * lib/mktime.c (long_int): New type.  This works around a problem
26250         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26251         but time_t is 64 bits, and where I expect the existing code is
26252         wrong in some cases.
26253         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26254         (ydhms_diff): Bring back the compile-time check for wide-enough
26255         year and yday.
26256
26257         mktime: fix misspelling in comment
26258         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26259         This merges all recent glibc changes of importance.
26260
26261 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26262
26263         move-if-change: cope with concurrent mv of identical file.
26264         * build-aux/move-if-change (CMPPROG): Accept environment
26265         variable as an override for `cmp'.
26266         (usage): Document CMPPROG.
26267         Adjust comparison to drop stdout.  Cope with failure of mv if
26268         the target file exists and is identical to the source, for
26269         parallel builds.
26270         Report from H.J. Lu against binutils in PR binutils/12283.
26271
26272 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26273
26274         * users.txt: Mention sharutils.
26275
26276 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26277
26278         * users.txt: Mention OATH Toolkit.
26279
26280 2011-01-27  Bruno Haible  <bruno@clisp.org>
26281
26282         Prepare for supporting FreeBSD 10.
26283         * build-aux/config.libpath: Remove handling of freebsd1*.
26284
26285 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26286
26287         Prepare for supporting FreeBSD 10.
26288         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26289         match FreeBSD 10.0.
26290
26291 2011-01-27  Bruno Haible  <bruno@clisp.org>
26292
26293         vma-iter, get-rusage-as: Add OpenBSD support.
26294         * modules/vma-iter (configure.ac): Test for mquery.
26295         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26296         * lib/vma-iter.c: Include <sys/mman.h>.
26297         (vma_iterate): Add an implementation based on mquery().
26298         * lib/resource-ext.h (get_rusage_as): Update comments.
26299         * lib/get-rusage-as.c: Likewise.
26300         * lib/get-rusage-data.c: Likewise.
26301
26302 2011-01-26  Karl Berry  <karl@gnu.org>
26303
26304         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26305         variables to make it easier to override the makeinfo program used.
26306
26307 2011-01-26  Eric Blake  <eblake@redhat.com>
26308
26309         fcntl: work around Haiku F_DUPFD bugs
26310         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26311         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26312         cloexec bit on duplication.
26313         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26314
26315 2011-01-26  Bruno Haible  <bruno@clisp.org>
26316
26317         Enable memory leak tests on AIX.
26318         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26319         * tests/test-fprintf-posix3.c (main): Likewise.
26320
26321 2011-01-26  Bruno Haible  <bruno@clisp.org>
26322
26323         Tests for module 'get-rusage-data'.
26324         * modules/get-rusage-data-tests: New file.
26325         * tests/test-get-rusage-data.c: New file.
26326
26327         New module 'get-rusage-data'.
26328         * lib/resource-ext.h (get_rusage_data): New declaration.
26329         * lib/get-rusage-data.c: New file.
26330         * modules/get-rusage-data: New file.
26331
26332 2011-01-25  Bruno Haible  <bruno@clisp.org>
26333
26334         get-rusage-as: Allow for easier testing.
26335         * lib/resource-ext.h (get_rusage_as): Add comment.
26336         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26337         (main): New function for interactive testing.
26338
26339 2011-01-25  Bruno Haible  <bruno@clisp.org>
26340
26341         vma-iter: Treat Haiku like BeOS.
26342         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26343         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26344
26345 2011-01-25  Eric Blake  <eblake@redhat.com>
26346
26347         c-stack: fix regression on cygwin when libsigsegv is present
26348         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26349
26350 2011-01-24  Bruno Haible  <bruno@clisp.org>
26351
26352         vma-iter: Avoid empty intervals.
26353         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26354         on an empty interval.
26355
26356 2011-01-24  Jim Meyering  <meyering@redhat.com>
26357
26358         u64: remove unnecessary #include
26359         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26360
26361 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26362
26363         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26364         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26365
26366 2011-01-23  Bruno Haible  <bruno@clisp.org>
26367
26368         New module 'vma-iter'.
26369         * lib/vma-iter.h: New file.
26370         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26371         * modules/vma-iter: New file.
26372         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26373         for get_rusage_as_via_iterator.
26374         (vma_iterate_callback): New function.
26375         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26376         * modules/get-rusage-as (Depends-on): Add vma-iter.
26377
26378 2011-01-23  Bruno Haible  <bruno@clisp.org>
26379
26380         uninorm: Tweak includes.
26381         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26382         Reported by Jim Meyering.
26383
26384 2011-01-23  Bruno Haible  <bruno@clisp.org>
26385
26386         get-rusage-as: Improve on NetBSD.
26387         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26388         /proc, like on FreeBSD.
26389
26390 2011-01-23  Jim Meyering  <meyering@redhat.com>
26391
26392         xreadlink.h: remove unnecessary #include
26393         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26394
26395         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26396         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26397
26398 2011-01-23  Bruno Haible  <bruno@clisp.org>
26399
26400         get-rusage-as: Fix bug.
26401         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26402         original limit when aborting the first loop.
26403
26404 2011-01-23  Bruno Haible  <bruno@clisp.org>
26405
26406         wctype: Ensure valid C syntax.
26407         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26408         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26409
26410 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26411
26412         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26414         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26415         as they are needed only for configure's test case.
26416         This removes two unnecessary symbols from config.h.
26417
26418         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26419         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26421         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26422         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26423         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26424         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26425         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26426         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26427         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26428         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26430         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26431         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26432         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26433         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26434         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26435         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26436
26437 2011-01-21  Eric Blake  <eblake@redhat.com>
26438
26439         maintainer-makefile: work with older git for submodule check
26440         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26441         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26442         Reported by Matthias Bolte.
26443
26444         bootstrap: minor portability fixes
26445         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26446         (usage): Omit leading capital and trailing . on help phrases, per
26447         GNU Coding Standards.
26448         (check_versions, top level): Prefix messages with script name.
26449
26450 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26451
26452         bootstrap: support --no-git option
26453         * build-aux/bootstrap: Add --no-git option, to be used when
26454         --gnulib-srcdir points to the exact desired checkout.
26455
26456 2011-01-21  Eric Blake  <eblake@redhat.com>
26457
26458         strerror_r-posix: work with glibc 2.13
26459         * lib/strerror_r.c (strerror_r): Fix return type.
26460
26461 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26462             Bruno Haible  <bruno@clisp.org>
26463
26464         uN_strstr: New unit tests.
26465         * modules/unistr/u8-strstr-tests: New file.
26466         * modules/unistr/u16-strstr-tests: New file.
26467         * modules/unistr/u32-strstr-tests: New file.
26468         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26469         * tests/unistr/test-u8-strstr.c: New file.
26470         * tests/unistr/test-u16-strstr.c: New file.
26471         * tests/unistr/test-u32-strstr.c: New file.
26472
26473 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26474             Bruno Haible  <bruno@clisp.org>
26475
26476         Make uN_strstr functions O(n) worst-case.
26477         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26478         16-bit and 32-bit unit cases, use the unibyte algorithm from
26479         lib/mbsstr.c.
26480         * lib/unistr/u8-strstr.c: Include <string.h>.
26481         (UNIT_IS_UINT8_T): New macro.
26482         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26483         (U_STRLEN, U_STRNLEN): New macros.
26484         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26485         (U_STRLEN, U_STRNLEN): New macros.
26486         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26487         (configure.ac): Update required libunistring version.
26488         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26489         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26490         malloca.
26491         (configure.ac): Update required libunistring version.
26492         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26493         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26494         malloca.
26495         (configure.ac): Update required libunistring version.
26496
26497 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26498             Bruno Haible  <bruno@clisp.org>
26499
26500         Prepare for faster uN_strstr functions.
26501         * lib/str-kmp.h: Support definable UNITs.
26502         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26503         needle_len argument.
26504         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26505         * lib/mbscasestr.c (mbscasestr): Likewise.
26506
26507 2011-01-21  Pádraig Brady <P@draigBrady.com>
26508
26509         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26510         * tests/test-malloca.c (main): Unset the environment variable
26511         to greatly speed up the test.
26512         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26513         * modules/malloca-tests: Depend on unsetenv.
26514
26515 2011-01-21  Pádraig Brady <P@draigBrady.com>
26516
26517         ignore-value: remove stdint dependency
26518         * lib/ignore-value.h: Remove <stdint.h>
26519         * modules/ignore-value: Remove stdint dependency.
26520
26521 2011-01-21  Jim Meyering  <meyering@redhat.com>
26522
26523         maint.mk: adjust variable name to be consistent with other gl_ vars
26524         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26525         to be lower case.
26526
26527 2011-01-20  Jim Meyering  <meyering@redhat.com>
26528
26529         maint.mk: make "check" depend on public-submodule-commit by default
26530         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26531
26532 2011-01-20  Bruno Haible  <bruno@clisp.org>
26533
26534         mbfile, mbiter: Complete change from 2008-12-21.
26535         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26536         * m4/mbiter.m4 (gl_MBITER): Likewise.
26537
26538 2011-01-20  Jim Meyering  <meyering@redhat.com>
26539
26540         init.sh: insert space between each function name and "()"
26541         * tests/init.sh: Make it a little easier to see that a function's
26542         name is "warn_", and not "warn" when looking at the first part of
26543         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26544
26545 2011-01-20  Jim Meyering  <meyering@redhat.com>
26546
26547         mountlist: clean up code formatting
26548         * lib/mountlist.c (read_file_system_list): Split a long line,
26549         correct bracing style, use NULL in place of "(struct statfs *)0",
26550         don't parenthesize return value, add spaces around "=" and after
26551         ";-in-for-stmt".
26552
26553 2011-01-14  Markus Duft <mduft@gentoo.org>
26554
26555         mountlist: add support for Interix
26556         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26557         Apply statvfs to all entries of /dev/fs.
26558         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26559         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26560
26561 2011-01-20  Jim Meyering  <meyering@redhat.com>
26562
26563         maint.mk: improve the public-submodule-commit rule
26564         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26565         to suppress printing of its commands... unless V=1.
26566         Add git submodule's --quiet option to suppress printing of e.g.,
26567         "Entering gnulib" output.
26568         "cd" into $(srcdir) before running git submodule.
26569
26570 2011-01-20  Bruno Haible  <bruno@clisp.org>
26571
26572         include_next: Fix bug introduced on 2011-01-18.
26573         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26574         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26575         ac_cv_header_... variable if the second argument is not 'check'.
26576         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26577         gl_NEXT_HEADERS_INTERNAL.
26578
26579 2011-01-20  Bruno Haible  <bruno@clisp.org>
26580
26581         Allow the user to avoid the GNULIB_TEST_* macros.
26582         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26583         Suggested by Paul Eggert.
26584
26585 2011-01-14  Jim Meyering  <meyering@redhat.com>
26586
26587         bootstrap: avoid failure when there is no .gitmodules file
26588         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26589         has been assigned to, even when its value is the empty string.
26590         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26591         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26592         Reported by John W. Eaton <jwe@gnu.org>.
26593
26594 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26595
26596         assume <ctype.h>, ..., <time.h> exist
26597         For years gnulib has been assuming the existence of the headers
26598         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26599         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26600         them, since they don't appear to be needed.
26601         * README (Portability guidelines): Document this.
26602         * lib/flock.c: Assume <fcntl.h> exists.
26603         * lib/regex_internal.h: Assume <locale.h> exists.
26604         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26605         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26606         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26607         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26608         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26609         * m4/regex.m4 (gl_REGEX): Likewise.
26610         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26611         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26612         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26613         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26614         * tests/test-argp.c: Likewise.
26615         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26616
26617         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26618         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26619         AA_APPLE_UNIVERSAL_BUILD.  See
26620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26621         * NEWS: Document this.
26622
26623 2011-01-19  Eric Blake  <eblake@redhat.com>
26624
26625         c-stack: assume stack overflow if SA_SIGINFO unsupported
26626         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26627         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26628         sigaction will work.
26629         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26630         behavior match Linux.
26631         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26632
26633         stdbool-tests: accommodate Haiku
26634         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26635
26636         binary-io: fix O_TEXT on Haiku
26637         * modules/binary-io (Depends-on): Add fcntl-h.
26638         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26639         than blindly undefining O_TEXT.
26640         Reported by Scott McCreary.
26641
26642 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26643
26644         include_next: do not check for standard headers like stddef.h
26645
26646         I found this problem when modifying Emacs to use gnulib.
26647         I noticed that it added HAVE_STDDEF_H to config.h, even though
26648         gnulib always assumes <stddef.h> exists as per README and this
26649         symbol is unnecessary.
26650         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26651         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26652         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26653         faster for headers like stddef.h that are known to exist.
26654         (gl_CHECK_NEXT_HEADERS): Use it.
26655         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26656         rather than gl_CHECK_NEXT_HEADERS.
26657         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26658         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26659
26660 2011-01-18  Eric Blake  <eblake@redhat.com>
26661
26662         ansi-c++-opt: skip C++ dependency style if C++ is unused
26663         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26664         tests when we know C++ compilation is not desired.
26665         Reported by Scott McCreary.
26666
26667 2011-01-18  Bruno Haible  <bruno@clisp.org>
26668
26669         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26670         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26671         (main): Perform test also when getrlimit and setrlimit don't exist or
26672         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26673         limiting the address space size using setrlimit, compare the address
26674         space size before and after the the test.
26675         * tests/test-dprintf-posix2.c: Likewise.
26676         * tests/test-fprintf-posix3.sh: Update skip messages.
26677         * tests/test-dprintf-posix2.sh: Likewise.
26678         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26679         * modules/dprintf-posix-tests (Depends-on): Likewise.
26680         Reported by Bruce Korb <bkorb@gnu.org> and
26681         Gary V. Vaughan <gary@gnu.org>.
26682
26683 2011-01-18  Bruno Haible  <bruno@clisp.org>
26684
26685         get-rusage-as: Improvement for Cygwin.
26686         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26687         areas that are merely reserved.
26688
26689 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26690
26691         strftime: remove dependencies on multibyte modules
26692
26693         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26694         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26695         only if __osf__ is defined, and I suspect OSF doesn't need these
26696         other modules.  If my guess is wrong, we'll need to come up with a
26697         variant of strftime that doesn't need the multibyte modules.
26698
26699         I discovered this problem when attempting modify Emacs to use the
26700         strftime module.  With the previous gnulib, this caused Emacs to
26701         need 31 new files, ranging from lib/config.charset to
26702         m4/wint_t.m4.  This was overkill and I expect would be offputting
26703         to the Emacs maintainers.  After this change, only 6 new files are
26704         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26705         stdbool.m4, and tm_gmtoff.m4.
26706
26707         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26708         Suggested by Bruno Haible in
26709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26710         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26711         and do not check for wchar.h.
26712         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26713         (Depends-on): Remove mbrlen, mbsinit, wchar.
26714
26715 2011-01-18  Bruno Haible  <bruno@clisp.org>
26716
26717         Tests for module 'get-rusage-as'.
26718         * modules/get-rusage-as-tests: New file.
26719         * tests/test-get-rusage-as.c: New file.
26720
26721         New module 'get-rusage-as'.
26722         * modules/get-rusage-as: New file.
26723         * lib/resource-ext.h: New file.
26724         * lib/get-rusage-as.c: New file.
26725
26726 2011-01-17  Eric Blake  <eblake@redhat.com>
26727
26728         sigaction: relax license from LGPLv3+ to LGPLv2+
26729         * modules/sigaction (License): Relax to LGPLv2+.
26730
26731 2011-01-14  Bruno Haible  <bruno@clisp.org>
26732
26733         filemode: Make function declarations usable in C++ mode.
26734         * lib/filemode.h: Enclose function declarations in extern "C" block.
26735         Reported by John W. Eaton <jwe@gnu.org>.
26736
26737 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26738
26739         save-cwd: no longer include "xgetcwd.h"
26740         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26741         This avoids a compilation failure in projects that use save-cwd
26742         without also using the xgetcwd module.
26743
26744 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26745
26746         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26747         This is so that a program like Emacs, which needs only dtoastr,
26748         does not have to bother with distributing and compiling ftoastr
26749         and ldtoastr.
26750         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26751         * modules/dtoastr, modules/ldtoastr: New files.
26752         * modules/ftoastr: Now works just for 'float'.
26753         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26754         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26755         dtoastr.c, ldtoastr.c.
26756
26757 2011-01-11  Jim Meyering  <meyering@redhat.com>
26758
26759         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26760         There is no need to work around the lack of the fchdir function,
26761         since gnulib can now provide a replacement when required.
26762         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26763         * modules/save-cwd (Depends-on): Add fchdir.
26764
26765 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26766
26767         openat, save-cwd: avoid xmalloc
26768
26769         This removes a direct (but undocumented) dependency of openat on
26770         xalloc, along with an indirect dependency via save-cwd.  It also
26771         removes a dependency of save-cwd on xgetcwd, and thereby
26772         indirectly on xalloc.  This change causes the openat substitute
26773         to fall back on save_cwd when memory is tight, and for save_cwd to
26774         fail instead of dying when memory is tight, but that's good enough.
26775         Problem and initial idea for fix reported by Bastien Roucaries in
26776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26777
26778         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26779         xalloc.h (for xmalloc).
26780         (openat_proc_name): Use malloc, not xmalloc.
26781         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26782         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26783
26784         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26785         This avoids heap allocation for file names whose lengths are in
26786         the range 512..1023, with the upper bound increasing to at most
26787         4031 depending on the platform's PATH_MAX.  (We do not want
26788         pathmax.h here as it might supply a non-constant PATH_MAX.)
26789         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26790         Perhaps they should be moved to malloca.h?
26791         (OPENAT_BUFFER_SIZE): Use them.
26792
26793 2011-01-10  Bruno Haible  <bruno@clisp.org>
26794
26795         doc: Update users.txt.
26796         * users.txt: Add recutils.
26797
26798 2011-01-09  Karl Berry  <karl@gnu.org>
26799
26800         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26801
26802         * doc/configmake.texi: New file.
26803         * doc/gnulib.texi: Include it.
26804         * modules/configmake: Move documentation from here.
26805
26806 2011-01-09  Bruno Haible  <bruno@clisp.org>
26807
26808         Update to Unicode 6.0.0.
26809         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26810         (get_lbp): Update for Unicode 6.0.0.
26811         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26812         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26813         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26814         U+11001, U+11038..U+11046. Remove U+06DE.
26815         (uc_width): Fix bounds of planes.
26816         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26817         lib/uniwidth/width.c.
26818         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26819         trailing whitespace removed.
26820         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26821         without comments, but with the original copyright notice.
26822         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26823         * lib/unicase/ignorable.h: Likewise.
26824         * lib/unicase/tocasefold.h: Likewise.
26825         * lib/unicase/tolower.h: Likewise.
26826         * lib/unicase/totitle.h: Likewise.
26827         * lib/unicase/toupper.h: Likewise.
26828         * lib/unictype/bidi_of.h: Likewise.
26829         * lib/unictype/blocks.h: Likewise.
26830         * lib/unictype/categ_C.h: Likewise.
26831         * lib/unictype/categ_Cn.h: Likewise.
26832         * lib/unictype/categ_L.h: Likewise.
26833         * lib/unictype/categ_Ll.h: Likewise.
26834         * lib/unictype/categ_Lm.h: Likewise.
26835         * lib/unictype/categ_Lo.h: Likewise.
26836         * lib/unictype/categ_Lu.h: Likewise.
26837         * lib/unictype/categ_M.h: Likewise.
26838         * lib/unictype/categ_Mc.h: Likewise.
26839         * lib/unictype/categ_Me.h: Likewise.
26840         * lib/unictype/categ_Mn.h: Likewise.
26841         * lib/unictype/categ_N.h: Likewise.
26842         * lib/unictype/categ_Nd.h: Likewise.
26843         * lib/unictype/categ_No.h: Likewise.
26844         * lib/unictype/categ_P.h: Likewise.
26845         * lib/unictype/categ_Po.h: Likewise.
26846         * lib/unictype/categ_S.h: Likewise.
26847         * lib/unictype/categ_Sc.h: Likewise.
26848         * lib/unictype/categ_Sk.h: Likewise.
26849         * lib/unictype/categ_Sm.h: Likewise.
26850         * lib/unictype/categ_So.h: Likewise.
26851         * lib/unictype/categ_of.h: Likewise.
26852         * lib/unictype/combining.h: Likewise.
26853         * lib/unictype/ctype_alnum.h: Likewise.
26854         * lib/unictype/ctype_alpha.h: Likewise.
26855         * lib/unictype/ctype_graph.h: Likewise.
26856         * lib/unictype/ctype_lower.h: Likewise.
26857         * lib/unictype/ctype_print.h: Likewise.
26858         * lib/unictype/ctype_punct.h: Likewise.
26859         * lib/unictype/ctype_upper.h: Likewise.
26860         * lib/unictype/decdigit.h: Likewise.
26861         * lib/unictype/digit.h: Likewise.
26862         * lib/unictype/numeric.h: Likewise.
26863         * lib/unictype/pr_alphabetic.h: Likewise.
26864         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26865         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26866         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26867         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26868         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26869         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26870         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26871         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26872         * lib/unictype/pr_case_ignorable.h: Likewise.
26873         * lib/unictype/pr_cased.h: Likewise.
26874         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26875         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26876         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26877         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26878         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26879         * lib/unictype/pr_combining.h: Likewise.
26880         * lib/unictype/pr_composite.h: Likewise.
26881         * lib/unictype/pr_currency_symbol.h: Likewise.
26882         * lib/unictype/pr_decimal_digit.h: Likewise.
26883         * lib/unictype/pr_deprecated.h: Likewise.
26884         * lib/unictype/pr_format_control.h: Likewise.
26885         * lib/unictype/pr_grapheme_base.h: Likewise.
26886         * lib/unictype/pr_grapheme_extend.h: Likewise.
26887         * lib/unictype/pr_grapheme_link.h: Likewise.
26888         * lib/unictype/pr_id_continue.h: Likewise.
26889         * lib/unictype/pr_id_start.h: Likewise.
26890         * lib/unictype/pr_ideographic.h: Likewise.
26891         * lib/unictype/pr_lowercase.h: Likewise.
26892         * lib/unictype/pr_math.h: Likewise.
26893         * lib/unictype/pr_numeric.h: Likewise.
26894         * lib/unictype/pr_other_alphabetic.h: Likewise.
26895         * lib/unictype/pr_other_id_continue.h: Likewise.
26896         * lib/unictype/pr_other_math.h: Likewise.
26897         * lib/unictype/pr_punctuation.h: Likewise.
26898         * lib/unictype/pr_sentence_terminal.h: Likewise.
26899         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26900         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26901         * lib/unictype/pr_unified_ideograph.h: Likewise.
26902         * lib/unictype/pr_uppercase.h: Likewise.
26903         * lib/unictype/pr_xid_continue.h: Likewise.
26904         * lib/unictype/pr_xid_start.h: Likewise.
26905         * lib/unictype/scripts.h: Likewise.
26906         * lib/unictype/scripts_byname.gperf: Likewise.
26907         * lib/unictype/sy_java_ident.h: Likewise.
26908         * lib/unigbrk/gbrkprop.h: Likewise.
26909         * lib/unilbrk/lbrkprop1.h: Likewise.
26910         * lib/unilbrk/lbrkprop2.h: Likewise.
26911         * lib/uninorm/decomposition-table2.h: Likewise.
26912         * lib/uniwbrk/wbrkprop.h: Likewise.
26913         * tests/unicase/test-cased.c: Likewise.
26914         * tests/unicase/test-ignorable.c: Likewise.
26915         * tests/unicase/test-uc_tolower.c: Likewise.
26916         * tests/unicase/test-uc_totitle.c: Likewise.
26917         * tests/unicase/test-uc_toupper.c: Likewise.
26918         * tests/unictype/test-categ_C.c: Likewise.
26919         * tests/unictype/test-categ_Cn.c: Likewise.
26920         * tests/unictype/test-categ_L.c: Likewise.
26921         * tests/unictype/test-categ_Ll.c: Likewise.
26922         * tests/unictype/test-categ_Lm.c: Likewise.
26923         * tests/unictype/test-categ_Lo.c: Likewise.
26924         * tests/unictype/test-categ_Lu.c: Likewise.
26925         * tests/unictype/test-categ_M.c: Likewise.
26926         * tests/unictype/test-categ_Mc.c: Likewise.
26927         * tests/unictype/test-categ_Me.c: Likewise.
26928         * tests/unictype/test-categ_Mn.c: Likewise.
26929         * tests/unictype/test-categ_N.c: Likewise.
26930         * tests/unictype/test-categ_Nd.c: Likewise.
26931         * tests/unictype/test-categ_No.c: Likewise.
26932         * tests/unictype/test-categ_P.c: Likewise.
26933         * tests/unictype/test-categ_Po.c: Likewise.
26934         * tests/unictype/test-categ_S.c: Likewise.
26935         * tests/unictype/test-categ_Sc.c: Likewise.
26936         * tests/unictype/test-categ_Sk.c: Likewise.
26937         * tests/unictype/test-categ_Sm.c: Likewise.
26938         * tests/unictype/test-categ_So.c: Likewise.
26939         * tests/unictype/test-ctype_alnum.c: Likewise.
26940         * tests/unictype/test-ctype_alpha.c: Likewise.
26941         * tests/unictype/test-ctype_graph.c: Likewise.
26942         * tests/unictype/test-ctype_lower.c: Likewise.
26943         * tests/unictype/test-ctype_print.c: Likewise.
26944         * tests/unictype/test-ctype_punct.c: Likewise.
26945         * tests/unictype/test-ctype_upper.c: Likewise.
26946         * tests/unictype/test-decdigit.h: Likewise.
26947         * tests/unictype/test-digit.h: Likewise.
26948         * tests/unictype/test-numeric.h: Likewise.
26949         * tests/unictype/test-pr_alphabetic.c: Likewise.
26950         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26951         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26952         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26953         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26954         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26955         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26956         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26957         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26958         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26959         * tests/unictype/test-pr_cased.c: Likewise.
26960         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26961         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26962         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26963         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26964         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26965         * tests/unictype/test-pr_combining.c: Likewise.
26966         * tests/unictype/test-pr_composite.c: Likewise.
26967         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26968         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26969         * tests/unictype/test-pr_deprecated.c: Likewise.
26970         * tests/unictype/test-pr_format_control.c: Likewise.
26971         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26972         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26973         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26974         * tests/unictype/test-pr_id_continue.c: Likewise.
26975         * tests/unictype/test-pr_id_start.c: Likewise.
26976         * tests/unictype/test-pr_ideographic.c: Likewise.
26977         * tests/unictype/test-pr_lowercase.c: Likewise.
26978         * tests/unictype/test-pr_math.c: Likewise.
26979         * tests/unictype/test-pr_numeric.c: Likewise.
26980         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26981         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26982         * tests/unictype/test-pr_other_math.c: Likewise.
26983         * tests/unictype/test-pr_punctuation.c: Likewise.
26984         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26985         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26986         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26987         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26988         * tests/unictype/test-pr_uppercase.c: Likewise.
26989         * tests/unictype/test-pr_xid_continue.c: Likewise.
26990         * tests/unictype/test-pr_xid_start.c: Likewise.
26991         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26992         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26993         changes.
26994         * lib/unictype/categ_Cc.h: Likewise.
26995         * lib/unictype/categ_Cf.h: Likewise.
26996         * lib/unictype/categ_Co.h: Likewise.
26997         * lib/unictype/categ_Cs.h: Likewise.
26998         * lib/unictype/categ_Lt.h: Likewise.
26999         * lib/unictype/categ_Nl.h: Likewise.
27000         * lib/unictype/categ_Pc.h: Likewise.
27001         * lib/unictype/categ_Pd.h: Likewise.
27002         * lib/unictype/categ_Pe.h: Likewise.
27003         * lib/unictype/categ_Pf.h: Likewise.
27004         * lib/unictype/categ_Pi.h: Likewise.
27005         * lib/unictype/categ_Ps.h: Likewise.
27006         * lib/unictype/categ_Z.h: Likewise.
27007         * lib/unictype/categ_Zl.h: Likewise.
27008         * lib/unictype/categ_Zp.h: Likewise.
27009         * lib/unictype/categ_Zs.h: Likewise.
27010         * lib/unictype/ctype_blank.h: Likewise.
27011         * lib/unictype/ctype_cntrl.h: Likewise.
27012         * lib/unictype/ctype_digit.h: Likewise.
27013         * lib/unictype/ctype_space.h: Likewise.
27014         * lib/unictype/ctype_xdigit.h: Likewise.
27015         * lib/unictype/mirror.h: Likewise.
27016         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27017         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27018         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27019         * lib/unictype/pr_bidi_control.h: Likewise.
27020         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27021         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27022         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27023         * lib/unictype/pr_bidi_pdf.h: Likewise.
27024         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27025         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27026         * lib/unictype/pr_dash.h: Likewise.
27027         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27028         * lib/unictype/pr_diacritic.h: Likewise.
27029         * lib/unictype/pr_extender.h: Likewise.
27030         * lib/unictype/pr_hex_digit.h: Likewise.
27031         * lib/unictype/pr_hyphen.h: Likewise.
27032         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27033         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27034         * lib/unictype/pr_ignorable_control.h: Likewise.
27035         * lib/unictype/pr_iso_control.h: Likewise.
27036         * lib/unictype/pr_join_control.h: Likewise.
27037         * lib/unictype/pr_left_of_pair.h: Likewise.
27038         * lib/unictype/pr_line_separator.h: Likewise.
27039         * lib/unictype/pr_logical_order_exception.h: Likewise.
27040         * lib/unictype/pr_non_break.h: Likewise.
27041         * lib/unictype/pr_not_a_character.h: Likewise.
27042         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27043         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27044         * lib/unictype/pr_other_id_start.h: Likewise.
27045         * lib/unictype/pr_other_lowercase.h: Likewise.
27046         * lib/unictype/pr_other_uppercase.h: Likewise.
27047         * lib/unictype/pr_paired_punctuation.h: Likewise.
27048         * lib/unictype/pr_paragraph_separator.h: Likewise.
27049         * lib/unictype/pr_pattern_syntax.h: Likewise.
27050         * lib/unictype/pr_pattern_white_space.h: Likewise.
27051         * lib/unictype/pr_private_use.h: Likewise.
27052         * lib/unictype/pr_quotation_mark.h: Likewise.
27053         * lib/unictype/pr_radical.h: Likewise.
27054         * lib/unictype/pr_soft_dotted.h: Likewise.
27055         * lib/unictype/pr_space.h: Likewise.
27056         * lib/unictype/pr_titlecase.h: Likewise.
27057         * lib/unictype/pr_variation_selector.h: Likewise.
27058         * lib/unictype/pr_white_space.h: Likewise.
27059         * lib/unictype/pr_zero_width.h: Likewise.
27060         * lib/unictype/sy_c_ident.h: Likewise.
27061         * lib/unictype/sy_c_whitespace.h: Likewise.
27062         * lib/unictype/sy_java_whitespace.h: Likewise.
27063         * lib/uninorm/composition-table.gperf: Likewise.
27064         * lib/uninorm/decomposition-table1.h: Likewise.
27065         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
27066         LB8.
27067         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27068         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27069         * modules/unictype/*: Bump version number of expected libunistring
27070         version.
27071
27072 2011-01-09  Bruno Haible  <bruno@clisp.org>
27073
27074         Update to Unicode 5.2.0.
27075         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
27076         trailing whitespace removed.
27077
27078 2011-01-09  Bruno Haible  <bruno@clisp.org>
27079
27080         New Unicode character properties, from Unicode 5.2.0.
27081         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
27082         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
27083         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
27084         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
27085         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
27086         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
27087         uc_is_property_cased, uc_is_property_case_ignorable,
27088         uc_is_property_changes_when_lowercased,
27089         uc_is_property_changes_when_uppercased,
27090         uc_is_property_changes_when_titlecased,
27091         uc_is_property_changes_when_casefolded,
27092         uc_is_property_changes_when_casemapped): New declarations.
27093         * lib/unictype/pr_byname.gperf: Add the new properties.
27094         * modules/unictype/property-byname (Depends-on): Depend on the new
27095         properties modules.
27096         * modules/unictype/property-all (Depends-on): Likewise.
27097         * MODULES.html.sh (Unicode string functions): Add
27098         unictype/property-case-ignorable, unictype/property-cased,
27099         unictype/property-changes-when-casefolded,
27100         unictype/property-changes-when-casemapped,
27101         unictype/property-changes-when-lowercased,
27102         unictype/property-changes-when-titlecased,
27103         unictype/property-changes-when-uppercased.
27104
27105         New module 'unictype/property-changes-when-casemapped'.
27106         * modules/unictype/property-changes-when-casemapped: New file.
27107         * lib/unictype/pr_changes_when_casemapped.c: New file.
27108         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
27109         generated by gen-uni-tables.
27110         * modules/unictype/property-changes-when-casemapped-tests: New file.
27111         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
27112         automatically generated by gen-uni-tables.
27113
27114         New module 'unictype/property-changes-when-casefolded'.
27115         * modules/unictype/property-changes-when-casefolded: New file.
27116         * lib/unictype/pr_changes_when_casefolded.c: New file.
27117         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
27118         generated by gen-uni-tables.
27119         * modules/unictype/property-changes-when-casefolded-tests: New file.
27120         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
27121         automatically generated by gen-uni-tables.
27122
27123         New module 'unictype/property-changes-when-titlecased'.
27124         * modules/unictype/property-changes-when-titlecased: New file.
27125         * lib/unictype/pr_changes_when_titlecased.c: New file.
27126         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
27127         generated by gen-uni-tables.
27128         * modules/unictype/property-changes-when-titlecased-tests: New file.
27129         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
27130         automatically generated by gen-uni-tables.
27131
27132         New module 'unictype/property-changes-when-uppercased'.
27133         * modules/unictype/property-changes-when-uppercased: New file.
27134         * lib/unictype/pr_changes_when_uppercased.c: New file.
27135         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
27136         generated by gen-uni-tables.
27137         * modules/unictype/property-changes-when-uppercased-tests: New file.
27138         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
27139         automatically generated by gen-uni-tables.
27140
27141         New module 'unictype/property-changes-when-lowercased'.
27142         * modules/unictype/property-changes-when-lowercased: New file.
27143         * lib/unictype/pr_changes_when_lowercased.c: New file.
27144         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
27145         generated by gen-uni-tables.
27146         * modules/unictype/property-changes-when-lowercased-tests: New file.
27147         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
27148         automatically generated by gen-uni-tables.
27149
27150         New module 'unictype/property-case-ignorable'.
27151         * modules/unictype/property-case-ignorable: New file.
27152         * lib/unictype/pr_case_ignorable.c: New file.
27153         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
27154         by gen-uni-tables.
27155         * modules/unictype/property-case-ignorable-tests: New file.
27156         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
27157         generated by gen-uni-tables.
27158
27159         New module 'unictype/property-cased'.
27160         * modules/unictype/property-cased: New file.
27161         * lib/unictype/pr_cased.c: New file.
27162         * lib/unictype/pr_cased.h: New file, automatically generated by
27163         gen-uni-tables.
27164         * modules/unictype/property-cased-tests: New file.
27165         * tests/unictype/test-pr_cased.c: New file, automatically generated by
27166         gen-uni-tables.
27167
27168 2011-01-09  Bruno Haible  <bruno@clisp.org>
27169
27170         Update to Unicode 5.2.0.
27171         * lib/gen-uni-tables.c (output_predicate, output_category,
27172         output_combclass, output_bidi_category, output_decimal_digit_test,
27173         output_decimal_digit, output_digit_test, output_digit,
27174         output_numeric_test, output_numeric, output_mirror, output_scripts,
27175         output_scripts_byname, output_blocks, output_ident_category): Fix
27176         comment header.
27177         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
27178         get_wbp.
27179         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
27180         items.
27181         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
27182         Changes_When_Lowercased, Changes_When_Uppercased,
27183         Changes_When_Titlecased, Changes_When_Casefolded,
27184         Changes_When_Casemapped.
27185         (is_property_alphabetic, is_property_default_ignorable_code_point):
27186         Update for Unicode 5.2.0.
27187         (is_property_cased, is_property_case_ignorable,
27188         is_property_changes_when_lowercased,
27189         is_property_changes_when_uppercased,
27190         is_property_changes_when_titlecased,
27191         is_property_changes_when_casefolded,
27192         is_property_changes_when_casemapped): New functions.
27193         (output_properties): Output also the properties cased, case_ignorable,
27194         changes_when_lowercased, changes_when_uppercased,
27195         changes_when_titlecased, changes_when_casefolded,
27196         changes_when_casemapped.
27197         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
27198         Unicode TR#11 revision 17 -> 19.
27199         (LBP_CP): New enumeration value.
27200         (LBP_*): Adjust values accordingly.
27201         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27202         TR#14 revision 22 -> 24.
27203         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27204         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27205         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27206         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27207         is_WBP_MIDLETTER.
27208         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27209         the code1 and code2 of each composition rule.
27210         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27211         * lib/unicase/ignorable.h: Likewise.
27212         * lib/unicase/tocasefold.h: Likewise.
27213         * lib/unicase/tolower.h: Likewise.
27214         * lib/unicase/totitle.h: Likewise.
27215         * lib/unicase/toupper.h: Likewise.
27216         * lib/unictype/bidi_of.h: Likewise.
27217         * lib/unictype/blocks.h: Likewise.
27218         * lib/unictype/categ_C.h: Likewise.
27219         * lib/unictype/categ_Cf.h: Likewise.
27220         * lib/unictype/categ_Cn.h: Likewise.
27221         * lib/unictype/categ_L.h: Likewise.
27222         * lib/unictype/categ_Ll.h: Likewise.
27223         * lib/unictype/categ_Lm.h: Likewise.
27224         * lib/unictype/categ_Lo.h: Likewise.
27225         * lib/unictype/categ_Lu.h: Likewise.
27226         * lib/unictype/categ_M.h: Likewise.
27227         * lib/unictype/categ_Mc.h: Likewise.
27228         * lib/unictype/categ_Mn.h: Likewise.
27229         * lib/unictype/categ_N.h: Likewise.
27230         * lib/unictype/categ_Nd.h: Likewise.
27231         * lib/unictype/categ_Nl.h: Likewise.
27232         * lib/unictype/categ_No.h: Likewise.
27233         * lib/unictype/categ_P.h: Likewise.
27234         * lib/unictype/categ_Pd.h: Likewise.
27235         * lib/unictype/categ_Po.h: Likewise.
27236         * lib/unictype/categ_S.h: Likewise.
27237         * lib/unictype/categ_Sc.h: Likewise.
27238         * lib/unictype/categ_So.h: Likewise.
27239         * lib/unictype/categ_of.h: Likewise.
27240         * lib/unictype/combining.h: Likewise.
27241         * lib/unictype/ctype_alnum.h: Likewise.
27242         * lib/unictype/ctype_alpha.h: Likewise.
27243         * lib/unictype/ctype_graph.h: Likewise.
27244         * lib/unictype/ctype_lower.h: Likewise.
27245         * lib/unictype/ctype_print.h: Likewise.
27246         * lib/unictype/ctype_punct.h: Likewise.
27247         * lib/unictype/ctype_upper.h: Likewise.
27248         * lib/unictype/decdigit.h: Likewise.
27249         * lib/unictype/digit.h: Likewise.
27250         * lib/unictype/numeric.h: Likewise.
27251         * lib/unictype/pr_alphabetic.h: Likewise.
27252         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27253         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27254         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27255         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27256         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27257         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27258         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27259         * lib/unictype/pr_combining.h: Likewise.
27260         * lib/unictype/pr_composite.h: Likewise.
27261         * lib/unictype/pr_currency_symbol.h: Likewise.
27262         * lib/unictype/pr_dash.h: Likewise.
27263         * lib/unictype/pr_decimal_digit.h: Likewise.
27264         * lib/unictype/pr_deprecated.h: Likewise.
27265         * lib/unictype/pr_diacritic.h: Likewise.
27266         * lib/unictype/pr_extender.h: Likewise.
27267         * lib/unictype/pr_grapheme_base.h: Likewise.
27268         * lib/unictype/pr_grapheme_extend.h: Likewise.
27269         * lib/unictype/pr_grapheme_link.h: Likewise.
27270         * lib/unictype/pr_id_continue.h: Likewise.
27271         * lib/unictype/pr_id_start.h: Likewise.
27272         * lib/unictype/pr_ideographic.h: Likewise.
27273         * lib/unictype/pr_ignorable_control.h: Likewise.
27274         * lib/unictype/pr_logical_order_exception.h: Likewise.
27275         * lib/unictype/pr_lowercase.h: Likewise.
27276         * lib/unictype/pr_numeric.h: Likewise.
27277         * lib/unictype/pr_other_alphabetic.h: Likewise.
27278         * lib/unictype/pr_punctuation.h: Likewise.
27279         * lib/unictype/pr_sentence_terminal.h: Likewise.
27280         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27281         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27282         * lib/unictype/pr_unified_ideograph.h: Likewise.
27283         * lib/unictype/pr_uppercase.h: Likewise.
27284         * lib/unictype/pr_xid_continue.h: Likewise.
27285         * lib/unictype/pr_xid_start.h: Likewise.
27286         * lib/unictype/pr_zero_width.h: Likewise.
27287         * lib/unictype/scripts.h: Likewise.
27288         * lib/unictype/scripts_byname.gperf: Likewise.
27289         * lib/unictype/sy_java_ident.h: Likewise.
27290         * lib/unigbrk/gbrkprop.h: Likewise.
27291         * lib/unilbrk/lbrkprop1.h: Likewise.
27292         * lib/unilbrk/lbrkprop2.h: Likewise.
27293         * lib/unilbrk/lbrktables.h: Likewise.
27294         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27295         LBP_CP. Implement rule LB30.
27296         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27297         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27298         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27299         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27300         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27301         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27302         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27303         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27304         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27305         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27306         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27307         bits instead of 16 bits in the code1 and code2 of each composition
27308         rule.
27309         (uc_composition): Update for Unicode 5.2.0.
27310         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27311         * lib/uninorm/decomposition-table2.h: Likewise.
27312         * lib/uniwbrk/wbrkprop.h: Likewise.
27313         * tests/unicase/test-cased.c: Likewise.
27314         * tests/unicase/test-ignorable.c: Likewise.
27315         * tests/unicase/test-uc_tolower.c: Likewise.
27316         * tests/unicase/test-uc_totitle.c: Likewise.
27317         * tests/unicase/test-uc_toupper.c: Likewise.
27318         * tests/unictype/test-categ_C.c: Likewise.
27319         * tests/unictype/test-categ_Cf.c: Likewise.
27320         * tests/unictype/test-categ_Cn.c: Likewise.
27321         * tests/unictype/test-categ_L.c: Likewise.
27322         * tests/unictype/test-categ_Ll.c: Likewise.
27323         * tests/unictype/test-categ_Lm.c: Likewise.
27324         * tests/unictype/test-categ_Lo.c: Likewise.
27325         * tests/unictype/test-categ_Lu.c: Likewise.
27326         * tests/unictype/test-categ_M.c: Likewise.
27327         * tests/unictype/test-categ_Mc.c: Likewise.
27328         * tests/unictype/test-categ_Mn.c: Likewise.
27329         * tests/unictype/test-categ_N.c: Likewise.
27330         * tests/unictype/test-categ_Nd.c: Likewise.
27331         * tests/unictype/test-categ_Nl.c: Likewise.
27332         * tests/unictype/test-categ_No.c: Likewise.
27333         * tests/unictype/test-categ_P.c: Likewise.
27334         * tests/unictype/test-categ_Pd.c: Likewise.
27335         * tests/unictype/test-categ_Po.c: Likewise.
27336         * tests/unictype/test-categ_S.c: Likewise.
27337         * tests/unictype/test-categ_Sc.c: Likewise.
27338         * tests/unictype/test-categ_So.c: Likewise.
27339         * tests/unictype/test-ctype_alnum.c: Likewise.
27340         * tests/unictype/test-ctype_alpha.c: Likewise.
27341         * tests/unictype/test-ctype_graph.c: Likewise.
27342         * tests/unictype/test-ctype_lower.c: Likewise.
27343         * tests/unictype/test-ctype_print.c: Likewise.
27344         * tests/unictype/test-ctype_punct.c: Likewise.
27345         * tests/unictype/test-ctype_upper.c: Likewise.
27346         * tests/unictype/test-decdigit.h: Likewise.
27347         * tests/unictype/test-digit.h: Likewise.
27348         * tests/unictype/test-numeric.h: Likewise.
27349         * tests/unictype/test-pr_alphabetic.c: Likewise.
27350         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27351         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27352         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27353         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27354         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27355         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27356         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27357         * tests/unictype/test-pr_combining.c: Likewise.
27358         * tests/unictype/test-pr_composite.c: Likewise.
27359         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27360         * tests/unictype/test-pr_dash.c: Likewise.
27361         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27362         * tests/unictype/test-pr_deprecated.c: Likewise.
27363         * tests/unictype/test-pr_diacritic.c: Likewise.
27364         * tests/unictype/test-pr_extender.c: Likewise.
27365         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27366         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27367         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27368         * tests/unictype/test-pr_id_continue.c: Likewise.
27369         * tests/unictype/test-pr_id_start.c: Likewise.
27370         * tests/unictype/test-pr_ideographic.c: Likewise.
27371         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27372         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27373         * tests/unictype/test-pr_lowercase.c: Likewise.
27374         * tests/unictype/test-pr_numeric.c: Likewise.
27375         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27376         * tests/unictype/test-pr_punctuation.c: Likewise.
27377         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27378         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27379         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27380         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27381         * tests/unictype/test-pr_uppercase.c: Likewise.
27382         * tests/unictype/test-pr_xid_continue.c: Likewise.
27383         * tests/unictype/test-pr_xid_start.c: Likewise.
27384         * tests/unictype/test-pr_zero_width.c: Likewise.
27385         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27386         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27387         changed behaviour: line breaking is now disallowed between a letter
27388         or '=' and '('.
27389         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27390         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27391         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27392         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27393         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27394         lib/uniwidth/width.c.
27395         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27396         without comments, but with the original copyright notice.
27397         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27398         changes.
27399         * lib/unictype/categ_Cc.h: Likewise.
27400         * lib/unictype/categ_Co.h: Likewise.
27401         * lib/unictype/categ_Cs.h: Likewise.
27402         * lib/unictype/categ_Lt.h: Likewise.
27403         * lib/unictype/categ_Me.h: Likewise.
27404         * lib/unictype/categ_Pc.h: Likewise.
27405         * lib/unictype/categ_Pe.h: Likewise.
27406         * lib/unictype/categ_Pf.h: Likewise.
27407         * lib/unictype/categ_Pi.h: Likewise.
27408         * lib/unictype/categ_Ps.h: Likewise.
27409         * lib/unictype/categ_Sk.h: Likewise.
27410         * lib/unictype/categ_Sm.h: Likewise.
27411         * lib/unictype/categ_Z.h: Likewise.
27412         * lib/unictype/categ_Zl.h: Likewise.
27413         * lib/unictype/categ_Zp.h: Likewise.
27414         * lib/unictype/categ_Zs.h: Likewise.
27415         * lib/unictype/ctype_blank.h: Likewise.
27416         * lib/unictype/ctype_cntrl.h: Likewise.
27417         * lib/unictype/ctype_digit.h: Likewise.
27418         * lib/unictype/ctype_space.h: Likewise.
27419         * lib/unictype/ctype_xdigit.h: Likewise.
27420         * lib/unictype/mirror.h: Likewise.
27421         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27422         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27423         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27424         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27425         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27426         * lib/unictype/pr_bidi_control.h: Likewise.
27427         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27428         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27429         * lib/unictype/pr_bidi_pdf.h: Likewise.
27430         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27431         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27432         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27433         * lib/unictype/pr_format_control.h: Likewise.
27434         * lib/unictype/pr_hex_digit.h: Likewise.
27435         * lib/unictype/pr_hyphen.h: Likewise.
27436         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27437         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27438         * lib/unictype/pr_iso_control.h: Likewise.
27439         * lib/unictype/pr_join_control.h: Likewise.
27440         * lib/unictype/pr_left_of_pair.h: Likewise.
27441         * lib/unictype/pr_line_separator.h: Likewise.
27442         * lib/unictype/pr_math.h: Likewise.
27443         * lib/unictype/pr_non_break.h: Likewise.
27444         * lib/unictype/pr_not_a_character.h: Likewise.
27445         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27446         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27447         * lib/unictype/pr_other_id_continue.h: Likewise.
27448         * lib/unictype/pr_other_id_start.h: Likewise.
27449         * lib/unictype/pr_other_lowercase.h: Likewise.
27450         * lib/unictype/pr_other_math.h: Likewise.
27451         * lib/unictype/pr_other_uppercase.h: Likewise.
27452         * lib/unictype/pr_paired_punctuation.h: Likewise.
27453         * lib/unictype/pr_paragraph_separator.h: Likewise.
27454         * lib/unictype/pr_pattern_syntax.h: Likewise.
27455         * lib/unictype/pr_pattern_white_space.h: Likewise.
27456         * lib/unictype/pr_private_use.h: Likewise.
27457         * lib/unictype/pr_quotation_mark.h: Likewise.
27458         * lib/unictype/pr_radical.h: Likewise.
27459         * lib/unictype/pr_soft_dotted.h: Likewise.
27460         * lib/unictype/pr_space.h: Likewise.
27461         * lib/unictype/pr_titlecase.h: Likewise.
27462         * lib/unictype/pr_variation_selector.h: Likewise.
27463         * lib/unictype/pr_white_space.h: Likewise.
27464         * lib/unictype/sy_c_ident.h: Likewise.
27465         * lib/unictype/sy_c_whitespace.h: Likewise.
27466         * lib/unictype/sy_java_whitespace.h: Likewise.
27467         * modules/uni*/*: Bump version number of expected libunistring version.
27468         Reported by Simon Josefsson.
27469
27470 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27471
27472         useless-if-before-free: fix typo in --help and make the internal,
27473         automatic version date update process work once again.
27474         --help output contained a NUL character instead of the
27475         backslash-zero that was intended.  Also, the "must lie within
27476         the first 8 lines" line is on line 9, and hence not getting
27477         automatically updated.
27478         * build-aux/useless-if-before-free: Fix the former by adding a
27479         backslash, and the latter by condensing the three lines of what-it-does
27480         to a single line, leaving one line of slack for the future.
27481
27482 2011-01-09  Bruno Haible  <bruno@clisp.org>
27483
27484         uniwidth/width: Fix width of U+1D173..U+1D17A.
27485         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27486         symbolic_width, output_width_property_test): New functions.
27487         (main): Invoke output_nonspacing_property, output_width_property_test.
27488         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27489         U+1D173..U+1D17A.
27490         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27491         1.
27492         * modules/uniwidth/*: Bump version number of expected libunistring
27493         version.
27494         * modules/unilbrk/*: Likewise.
27495
27496 2011-01-08  Bruno Haible  <bruno@clisp.org>
27497
27498         uninorm tests: Preserve copyright of Unicode data file.
27499         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27500         Mention modifications.
27501
27502 2011-01-08  Bruno Haible  <bruno@clisp.org>
27503
27504         gen-uni-tables: Prepare for Unicode 5.2.0.
27505         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27506         (debug_output_lbp, output_lbp): Update.
27507
27508 2011-01-08  Bruno Haible  <bruno@clisp.org>
27509
27510         unilbrk: Clarify gen-uni-tables.c code.
27511         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27512         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27513         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27514
27515 2011-01-07  Bruno Haible  <bruno@clisp.org>
27516
27517         strtod: Restore errno when successfully parsing Infinity or NaN.
27518         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27519         restore the original errno.
27520
27521 2011-01-07  Bruno Haible  <bruno@clisp.org>
27522
27523         remove test: Avoid failure on HP-UX 11.
27524         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27525
27526 2011-01-07  Bruno Haible  <bruno@clisp.org>
27527
27528         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27529         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27530         error code.
27531
27532 2011-01-07  Pádraig Brady <P@draigBrady.com>
27533
27534         ignore-value: fixup comments, and add Eric Blake
27535         as an author since he rewrote the macros.
27536         * lib/ignore-value.h (ignore_value):  State that
27537         we now support aggregates.  Also specify exactly
27538         when the GCC warn_unused_result feature was added.
27539
27540 2011-01-06  Eric Blake  <eblake@redhat.com>
27541
27542         ignore-value: support aggregate types
27543         * lib/ignore-value.h (ignore_value): Provide separate gcc
27544         definition.
27545         * modules/ignore-value-tests: New test module.
27546         * tests/test-ignore-value.c: New test.
27547
27548         maint.mk: improve sc_prohibit_strcmp regex
27549         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27550         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27551         definition of STRNEQ.
27552
27553         signal: work around Haiku issue with SIGBUS
27554         * lib/siglist.h: Add comment.
27555         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27556         strsignal's favoring of SIGSEGV.
27557         * tests/test-signal.c (main): Avoid test failure.
27558         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27559         Reported by Scott McCreary.
27560
27561         maint.mk: add pre-release check to ensure submodule commits are public
27562         * top/maint.mk (public-submodule-commit): New rule.
27563         (submodule-checks): New variable.
27564         (alpha beta stable): Depend on the variable.
27565
27566 2011-01-05  Pádraig Brady <P@draigBrady.com>
27567         and Jim Meyering  <meyering@redhat.com>
27568
27569         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27570         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27571         (ATTRIBUTE_DEPRECATED): Define.
27572         (_ignore_case): New function.
27573         (ignore_value): New macro, to replace the old function.
27574         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27575         * modules/ignore-value (Depends-on): Add stdint.
27576
27577 2011-01-04  Eric Blake  <eblake@redhat.com>
27578
27579         doc: regenerate INSTALL
27580         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27581         @firstparagraphindent support, now that autoconf dropped it.
27582         (INSTALL_PRELUDE): Reinstate old macro.
27583         * doc/install.texi: Resync from autoconf.
27584         * doc/INSTALL: Reflect recent autoconf update.
27585         * doc/INSTALL.ISO: Likewise.
27586         * doc/INSTALL.UTF-8: Likewise.
27587         Reported by Karl Berry.
27588
27589 2011-01-04  Bruce Korb  <address@hidden>
27590
27591         git-version-gen: avoid a sub-shell
27592         * build-aux/git-version-gen: Redirect stderr in `...` via
27593         "exec 2>...", rather than via an added sub-shell.
27594
27595 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27596
27597         git-version-gen: use (...) rather than sh -c '...'
27598         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27599         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27600
27601 2011-01-03  Jim Meyering  <meyering@redhat.com>
27602
27603         git-version-gen: convert leading TABs to spaces
27604         * build-aux/git-version-gen: Expand leading TABs.
27605
27606         git-version-gen: handle failed "git rev-list"
27607         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27608         from git and proceeding as if it had succeeded but printed no SHA1
27609         checksums, suppress the diagnostic and handle the failure.
27610         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27611
27612         git-version-gen: include command name in one more diagnostic
27613         * build-aux/git-version-gen: When the required .tarball-version file
27614         was missing or unreadable, you might see the diagnostic from "cat",
27615         but no trace of the name of the invoking script.  Now, you still see
27616         the diagnostic from cat, but also get one from "git-version-gen: ".
27617         Inspired by a patch from Bruce Korb.
27618
27619         update-copyright: adjust test to match changed code
27620         * tests/test-update-copyright.sh: Change test's expected output
27621         to match new actual output.
27622
27623 2011-01-02  Bruno Haible  <bruno@clisp.org>
27624
27625         getlogin_r: Avoid test failure on HP-UX 11.
27626         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27627         ERANGE when the second argument is zero.
27628         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27629         portability problem.
27630
27631 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27632
27633         * build-aux/update-copyright: doc Simon's changes
27634
27635 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27636
27637         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27638         environment variable.
27639
27640 2011-01-02  Bruno Haible  <bruno@clisp.org>
27641
27642         unigbrk: Avoid gcc warnings.
27643         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27644         unused variable.
27645         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27646         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27647         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27648         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27649         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27650         Change type of first argument to 'const char *'.
27651         (main): Remove unused variable.
27652         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27653         type of first argument to 'const char *'.
27654         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27655         Likewise.
27656         (main): Change type of variable 's'.
27657         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27658         to 'int'.
27659
27660 2011-01-02  Bruno Haible  <bruno@clisp.org>
27661
27662         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27663         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27664         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27665         bug.
27666         * lib/pwrite.c: Undo 2010-12-31 patch.
27667         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27668
27669 2011-01-02  Bruno Haible  <bruno@clisp.org>
27670
27671         pread: Fix test whether it works.
27672         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27673
27674 2011-01-02  Bruno Haible  <bruno@clisp.org>
27675
27676         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27677         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27678         ends in "6". Don't require a specific month name. Try also the locale
27679         names found on HP-UX 11 and Solaris 7.
27680
27681 2011-01-02  Bruno Haible  <bruno@clisp.org>
27682
27683         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27684         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27685         C linkage.
27686         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27687
27688 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27689
27690         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27691         for consistency, since the "cluster" term is not used elsewhere.
27692         * lib/unigbrk.in.h: Update name.
27693         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27694         * lib/unigbrk/u16-grapheme-next.c: Update name.
27695         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27696         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27697         * lib/unigbrk/u32-grapheme-next.c: Update name.
27698         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27699         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27700         * lib/unigbrk/u8-grapheme-next.c: Update name.
27701         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27702         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27703         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27704         Suggested by Bruno Haible.
27705
27706 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27707
27708         Remove module 'u8-grapheme-len' as too redundant with
27709         'u8-grapheme-next'.
27710         * modules/unigbrk/u8-grapheme-len: Delete file.
27711         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27712         * lib/unigbrk.in.h: Remove prototype for deleted function.
27713         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27714         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27715
27716         Remove module 'u16-grapheme-len' as too redundant with
27717         'u16-grapheme-next'.
27718         * modules/unigbrk/u16-grapheme-len: Delete file.
27719         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27720         * lib/unigbrk.in.h: Remove prototype for deleted function.
27721         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27722         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27723
27724         Remove module 'u32-grapheme-len' as too redundant with
27725         'u32-grapheme-next'.
27726         * modules/unigbrk/u32-grapheme-len: Delete file.
27727         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27728         * lib/unigbrk.in.h: Remove prototype for deleted function.
27729         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27730         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27731
27732         Suggested by Bruno Haible.
27733
27734 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27735
27736         * unigbrk.in.h: Fix typo: "ben" => "been".
27737         Reported by Bruno Haible.
27738
27739 2011-01-01  Jim Meyering  <meyering@redhat.com>
27740
27741         maint: update almost all copyright ranges to include 2011
27742         Run the new "make update-copyright" rule.
27743
27744 2011-01-01  Jim Meyering  <meyering@redhat.com>
27745
27746         maint: update-copyright: exempt doc/INSTALL*
27747         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27748         since they are generated.  Suggested by Bruno Haible.
27749
27750 2011-01-01  Jim Meyering  <meyering@redhat.com>
27751
27752         maint: refine the update-copyright rule
27753         * Makefile (update-copyright): Also exclude any file that includes
27754         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27755         code that merely generates the comment.
27756
27757 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27758
27759         New module 'u8-grapheme-len'.
27760         * modules/unigbrk/u8-grapheme-len: New file.
27761         * modules/unigbrk/u8-grapheme-len-tests: New file.
27762         * lib/unigbrk.in.h: Add prototype for new function.
27763         * lib/unigbrk/u8-grapheme-len.c: New file.
27764         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27765
27766         New module 'u16-grapheme-len'.
27767         * modules/unigbrk/u16-grapheme-len: New file.
27768         * modules/unigbrk/u16-grapheme-len-tests: New file.
27769         * lib/unigbrk.in.h: Add prototype for new function.
27770         * lib/unigbrk/u16-grapheme-len.c: New file.
27771         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27772
27773         New module 'u32-grapheme-len'.
27774         * modules/unigbrk/u32-grapheme-len: New file.
27775         * modules/unigbrk/u32-grapheme-len-tests: New file.
27776         * lib/unigbrk.in.h: Add prototype for new function.
27777         * lib/unigbrk/u32-grapheme-len.c: New file.
27778         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27779
27780         New module 'u8-grapheme-next'.
27781         * modules/unigbrk/u8-grapheme-next: New file.
27782         * modules/unigbrk/u8-grapheme-next-tests: New file.
27783         * lib/unigbrk.in.h: Add prototype for new function.
27784         * lib/unigbrk/u8-grapheme-next.c: New file.
27785         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27786
27787         New module 'u16-grapheme-next'.
27788         * modules/unigbrk/u16-grapheme-next: New file.
27789         * modules/unigbrk/u16-grapheme-next-tests: New file.
27790         * lib/unigbrk.in.h: Add prototype for new function.
27791         * lib/unigbrk/u16-grapheme-next.c: New file.
27792         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27793
27794         New module 'u32-grapheme-next'.
27795         * modules/unigbrk/u32-grapheme-next: New file.
27796         * modules/unigbrk/u32-grapheme-next-tests: New file.
27797         * lib/unigbrk.in.h: Add prototype for new function.
27798         * lib/unigbrk/u32-grapheme-next.c: New file.
27799         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27800
27801         New module 'u8-grapheme-prev'.
27802         * modules/unigbrk/u8-grapheme-prev: New file.
27803         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27804         * lib/unigbrk.in.h: Add prototype for new function.
27805         * lib/unigbrk/u8-grapheme-prev.c: New file.
27806         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27807
27808         New module 'u16-grapheme-prev'.
27809         * modules/unigbrk/u16-grapheme-prev: New file.
27810         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27811         * lib/unigbrk.in.h: Add prototype for new function.
27812         * lib/unigbrk/u16-grapheme-prev.c: New file.
27813         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27814
27815         New module 'u32-grapheme-prev'.
27816         * modules/unigbrk/u32-grapheme-prev: New file.
27817         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27818         * lib/unigbrk.in.h: Add prototype for new function.
27819         * lib/unigbrk/u32-grapheme-prev.c: New file.
27820         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27821
27822         New module 'u8-grapheme-breaks'.
27823         * modules/unigbrk/u8-grapheme-breaks: New file.
27824         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27825         * lib/unigbrk.in.h: Add prototype for new function.
27826         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27827         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27828
27829         New module 'u16-grapheme-breaks'.
27830         * modules/unigbrk/u16-grapheme-breaks: New file.
27831         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27832         * lib/unigbrk.in.h: Add prototype for new function.
27833         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27834         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27835
27836         New module 'u32-grapheme-breaks'.
27837         * modules/unigbrk/u32-grapheme-breaks: New file.
27838         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27839         * lib/unigbrk.in.h: Add prototype for new function.
27840         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27841         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27842
27843         New module 'ulc-grapheme-breaks'.
27844         * modules/unigbrk/ulc-grapheme-breaks: New file.
27845         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27846         * m4/locale-ar.m4: New file.
27847         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27848         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27849         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27850
27851 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27852
27853         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27854         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27855         modified how this file was generated before I initially submitted
27856         the module, but failed to regenerate it.  This meant that several
27857         of the level2 entries were wrong.
27858         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27859         Remove the division-by-2 that is folded into the table now that
27860         gbrkprop.h has been regenerated properly.  Now -1 entries are
27861         handled correctly.
27862
27863         New module 'unigbrk/uc-gbrk-prop-tests'.
27864         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27865         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27866         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27867         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27868
27869 2011-01-01  Bruno Haible  <bruno@clisp.org>
27870
27871         Avoid use of hexadecimal escapes.
27872         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27873         instead of hexadecimal escapes.
27874
27875 2011-01-01  Jim Meyering  <meyering@redhat.com>
27876
27877         maint: new rule to update copyright year ranges
27878         * Makefile (update-copyright): New rule.
27879
27880         maint: indent with TABs in Makefile
27881         * Makefile: Expand leading sequences of spaces to TABs
27882
27883         version-etc: update the copyright year it reports
27884         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27885
27886 2010-12-31  Bruno Haible  <bruno@clisp.org>
27887
27888         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27889         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27890         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27891         zero.
27892
27893 2010-12-31  Bruno Haible  <bruno@clisp.org>
27894
27895         pwrite: Work around HP-UX 11.11 bug.
27896         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27897         works and set REPLACE_PWRITE if not.
27898         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27899         function.
27900         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27901
27902 2010-12-31  Bruno Haible  <bruno@clisp.org>
27903
27904         pread: Work around HP-UX 11 bugs.
27905         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27906         and set REPLACE_PREAD if not.
27907         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27908
27909 2010-12-31  Eric Blake  <eblake@redhat.com>
27910
27911         nl_langinfo: fix YESEXPR on Irix 6.5
27912         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27913         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27914         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27915         it.
27916
27917 2010-12-31  Bruno Haible  <bruno@clisp.org>
27918
27919         iconv: Document HP-UX 11 bug.
27920         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27921
27922 2010-12-31  Bruno Haible  <bruno@clisp.org>
27923
27924         ldexpl: Fix link error on HP-UX 11.
27925         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27926         LDEXPL_LIBM, using $ISNANL_LIBM.
27927
27928 2010-12-31  Eric Blake  <eblake@redhat.com>
27929
27930         ftello: avoid compilation failure with SunStudio c89
27931         * lib/ftello.c (ftello): Use lseek, not llseek.
27932
27933         tests: avoid failing coreutils tests on cygwin
27934         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27935         (create_exe_shims_): Return 0 when skipping.
27936
27937 2010-12-31  Bruno Haible  <bruno@clisp.org>
27938
27939         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27940         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27941
27942 2010-12-31  Bruno Haible  <bruno@clisp.org>
27943
27944         waitpid: Fix link error in C++ mode.
27945         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27946
27947 2010-12-31  Bruno Haible  <bruno@clisp.org>
27948
27949         isnan: Use GCC built-ins when possible.
27950         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27951         __builtin_isnan.
27952         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27953         (isnan): Define using GCC built-ins for GCC >= 4.0.
27954
27955 2010-12-31  Bruno Haible  <bruno@clisp.org>
27956
27957         isnand: Fix mistake.
27958         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27959         __builtin_isnand.
27960
27961 2010-12-31  Bruno Haible  <bruno@clisp.org>
27962
27963         open: Avoid C++ error on HP-UX 11.
27964         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27965
27966 2010-12-31  Bruno Haible  <bruno@clisp.org>
27967
27968         time_r: Add missing declarations on HP-UX 11.
27969         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27970         instead of HAVE_LOCALTIME_R.
27971         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27972         HAVE_LOCALTIME_R always.
27973         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27974         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27975         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27976         HAVE_LOCALTIME_R.
27977         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27978         * doc/posix-functions/localtime_r.texi: Likewise.
27979
27980 2010-12-29  Eric Blake  <eblake@redhat.com>
27981
27982         mountlist: tweak previous commit
27983         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27984         Reported by Paul Eggert.
27985
27986         mountlist: fix local drive detection on cygwin
27987         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27988         that works for cygwin.
27989
27990 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27991
27992         ftoastr, snprintf: ftoastr + snprintf module
27993         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27994         since the snprintf module now should be good enough here.
27995         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27996         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27997         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27998         GNULIB_SNPRINTF only for the test directory, and the latter
27999         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
28000         seems to suffice by itself.
28001
28002 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28003
28004         alloca: one step towards thread-safety
28005         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
28006         need for a static variable.  All callers changed.  This does not
28007         make the alloca replacement thread-safe, but it's one step.
28008
28009         tests: minor indenting change
28010         * tests/init.sh: Sync from coreutils housekeeping patch
28011         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
28012         to keep lines within 80 columns.
28013
28014 2010-12-28  Jim Meyering  <meyering@redhat.com>
28015
28016         regex: don't infloop on persistent failing calloc
28017         * lib/regexec.c (build_trtable): Return failure indication upon
28018         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28019         In glibc, this was fixed for version 2.13:
28020         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
28021
28022 2010-12-28  Bruno Haible  <bruno@clisp.org>
28023             Paul Eggert <eggert@cs.ucla.edu>
28024
28025         linkat: Make implementation robust against system behaviour variations.
28026         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
28027         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
28028         way, and to -2 if it needs a generic runtime test.
28029         * lib/linkat.c (solaris_optimized_link_immediate,
28030         solaris_optimized_link_follow): New functions.
28031         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
28032         (check_same_link): Use it.
28033
28034 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
28035
28036         New module 'unigbrk/base'.
28037         * modules/unigbrk/base: New file.
28038         * lib/unigbrk.in.h: New file.
28039
28040         New module 'unigbrk/uc-gbrk-prop'.
28041         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
28042         * modules/unigbrk/uc-gbrk-prop: New file.
28043         * lib/unigbrk/gbrkprop.h: New file.
28044         * lib/unigbrk/uc-gbrk-prop.c: New file.
28045
28046         New module 'unigbrk/uc-is-grapheme-break'.
28047         * modules/unigbrk/uc-is-grapheme-break: New file.
28048         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
28049         * lib/unigbrk/uc-is-grapheme-break.c: New file.
28050         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
28051         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
28052         * tests/unigbrk/GraphemeBreakTest.txt: New file.
28053
28054         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
28055
28056 2010-12-27  Bruno Haible  <bruno@clisp.org>
28057
28058         linkat test: Avoid failure on Solaris 11 2010-11.
28059         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
28060
28061 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28062
28063         utimens: work around glibc rounding bug on more platforms
28064         * lib/utimens.c (fdutimens): Work around rounding bug even if
28065         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
28066         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
28067
28068 2010-12-27  Bruno Haible  <bruno@clisp.org>
28069
28070         select tests: Improve comments.
28071         * tests/test-select.c (do_select): Add comments.
28072
28073 2010-12-27  Bruno Haible  <bruno@clisp.org>
28074
28075         select tests: Safer way of handling timeout.
28076         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
28077         at every invocation.
28078
28079 2010-12-27  Bruno Haible  <bruno@clisp.org>
28080
28081         select tests: Use 'bool' where appropriate.
28082         * tests/test-select.c (connect_to_socket): Change argument type to
28083         'bool'.
28084
28085 2010-12-27  Bruno Haible  <bruno@clisp.org>
28086
28087         select tests: Use existing modules.
28088         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
28089         (configure.ac): Don't test for unistd.h.
28090         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
28091         declared in <unistd.h>.
28092
28093 2010-12-27  Bruno Haible  <bruno@clisp.org>
28094
28095         mbrtowc: Work around a Solaris 7 bug.
28096         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
28097         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
28098         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
28099         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
28100         MBRTOWC_NULL_ARG1_BUG.
28101         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
28102         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
28103         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
28104         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
28105
28106 2010-12-27  Jim Meyering  <meyering@redhat.com>
28107
28108         read-file.c: tweak syntax
28109         * lib/read-file.c (fread_file): Remove space after "*" in function
28110         definitions.
28111
28112 2010-12-27  Bruno Haible  <bruno@clisp.org>
28113
28114         times test: Avoid gcc warnings on OSF/1.
28115         * tests/test-times.c (main): Cast printf arguments from clock_t to
28116         'long int'.
28117
28118 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28119
28120         utimens: work around glibc rounding bug on older Linux kernels
28121         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
28122         on Linux with a glibc whose utimes might not work, then work
28123         around a longstanding glibc bug involving rounding rather than
28124         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
28125         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28126
28127 2010-12-26  Bruno Haible  <bruno@clisp.org>
28128
28129         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
28130         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
28131         _GL_CXXALIAS_SYS.
28132         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28133
28134 2010-12-26  Bruno Haible  <bruno@clisp.org>
28135
28136         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
28137         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
28138         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28139         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
28140         looking for the declaration.
28141         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
28142         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
28143         problem.
28144         * doc/posix-functions/inet_pton.texi: Likewise.
28145
28146 2010-12-26  Bruno Haible  <bruno@clisp.org>
28147
28148         arpa_inet: Use the common idioms with C++ support.
28149         * lib/arpa_inet.in.h: Include c++defs.h.
28150         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
28151         support.
28152         * modules/arpa_inet (Depends-on): Add c++defs.
28153         (Makefile.am): Substitute the contents of c++defs.h.
28154         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
28155         * modules/arpa_inet-c++-tests: New file.
28156         * tests/test-arpa_inet-c++.cc: New file.
28157
28158 2010-12-25  Bruno Haible  <bruno@clisp.org>
28159
28160         Fix more C++ link errors on Solaris 8.
28161         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
28162         $(LIB_EACCESS).
28163         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
28164         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
28165         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
28166         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
28167         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
28168
28169 2010-12-25  Bruno Haible  <bruno@clisp.org>
28170
28171         printf-posix: Fix link error when a non-GCC compiler is used.
28172         * lib/stdio.in.h (printf): When not using GCC, override printf
28173         correctly.
28174         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28175
28176 2010-12-25  Bruno Haible  <bruno@clisp.org>
28177
28178         strerror_r-posix: Update doc.
28179         * doc/posix-functions/strerror_r.texi: Update doc about the return
28180         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
28181
28182 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28183
28184         utimens: simplify the logic of the previous change
28185         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
28186         This should not affect whether the test succeeds or fails.
28187
28188         utimens: configure better on hosts with NFS clock skew
28189         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
28190         uses the clock of the local host.  It might use the clock of the
28191         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
28192         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28193
28194 2010-12-25  Bruno Haible  <bruno@clisp.org>
28195
28196         ptsname test: Avoid failure on Solaris.
28197         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
28198         open a pseudo-terminal; don't use BSD-style ptys.
28199         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
28200
28201 2010-12-25  Bruno Haible  <bruno@clisp.org>
28202
28203         ptsname: Avoid ERANGE failure on some systems.
28204         * lib/ptsname.c (buffer): Increase size.
28205
28206 2010-12-25  Bruno Haible  <bruno@clisp.org>
28207
28208         rename, renameat: Avoid test failures at NFS mounted locations.
28209         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28210         so that subsequent mkdir calls succeed.
28211
28212 2010-12-25  Bruno Haible  <bruno@clisp.org>
28213
28214         iswblank: Fix C++ link error on Solaris 8.
28215         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28216         _GL_FUNCDECL_SYS.
28217
28218 2010-12-25  Bruno Haible  <bruno@clisp.org>
28219
28220         unistd: Fix C++ link error on Solaris 8.
28221         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28222
28223 2010-12-25  Bruno Haible  <bruno@clisp.org>
28224
28225         readlink doc: Mention an old glibc bug.
28226         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28227
28228 2010-12-25  Bruno Haible  <bruno@clisp.org>
28229
28230         fcntl-h: Fix for use of C++ on glibc systems.
28231         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28232         also on glibc systems in C++ mode.
28233         Reported by Gary V. Vaughan <gary@gnu.org>.
28234
28235 2010-12-25  Bruno Haible  <bruno@clisp.org>
28236
28237         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28238         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28239
28240 2010-12-25  Bruno Haible  <bruno@clisp.org>
28241
28242         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28243         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28244         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28245         test whether truncl works according to ISO C 99 with IEC 60559.
28246         * m4/truncl-ieee.m4: New file.
28247         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28248         m4/signbit.m4.
28249         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28250
28251 2010-12-25  Bruno Haible  <bruno@clisp.org>
28252
28253         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28254         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28255         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28256         test whether ceill works according to ISO C 99 with IEC 60559.
28257         * m4/ceill-ieee.m4: New file.
28258         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28259         m4/signbit.m4.
28260         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28261
28262 2010-12-25  Bruno Haible  <bruno@clisp.org>
28263
28264         Ensure all prerequisites of <wchar.h> are included.
28265         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28266         before <wchar.h>.
28267         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28268         gl_MBRLEN_NUL_RETVAL): Likewise.
28269         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28270         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28271         AC_FUNC_MBRTOWC): Likewise.
28272         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28273         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28274         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28275         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28276         Likewise.
28277         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28278         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28279         (gl_WCHAR_H): Improve comments.
28280         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28281
28282 2010-12-25  Bruno Haible  <bruno@clisp.org>
28283
28284         strtok_r: Fix C syntax error in autoconf macro.
28285         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28286         characters in test program.
28287
28288 2010-12-24  Bruno Haible  <bruno@clisp.org>
28289
28290         ceil, trunc, round: Fix gcc warnings.
28291         * lib/ceil.c (MIN): Undefine before redefining.
28292         * lib/trunc.c (MIN): Likewise.
28293         * lib/round.c (MIN): Likewise.
28294         Include <math.h> first.
28295
28296 2010-12-24  Bruno Haible  <bruno@clisp.org>
28297
28298         select tests: Avoid failures on OSF/1 5.1.
28299         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28300         failure of closing the last socket; it may fail with ECONNRESET.
28301
28302 2010-12-24  Eric Blake  <eblake@redhat.com>
28303
28304         stdint: avoid HP-UX 10.20 preprocessor bug
28305         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28306         than #if.
28307         * tests/test-floor2.c (main): Likewise.
28308         Reported by Peter O'Gorman.
28309
28310         pipe: make obsoletion transition easier
28311         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28312         * modules/pipe (Files): Include revived file.
28313         (Include): Drop reference, to mirror getdate's behavior.
28314
28315 2010-12-24  Bruno Haible  <bruno@clisp.org>
28316
28317         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28318         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28319         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28320         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28321
28322 2010-12-24  Bruno Haible  <bruno@clisp.org>
28323
28324         gethostname: Ensure declaration on NonStop Kernel.
28325         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28326         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28327
28328 2010-12-24  Bruno Haible  <bruno@clisp.org>
28329
28330         sys_select: Ensure all necessary types on NonStop Kernel.
28331         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28332         include <sys/time.h>.
28333         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28334         NonStop Kernel.
28335         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28336
28337 2010-12-24  Bruno Haible  <bruno@clisp.org>
28338
28339         sys_select: Remove unneeded include.
28340         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28341         have <sys/select.h>.
28342
28343 2010-12-24  Bruno Haible  <bruno@clisp.org>
28344
28345         gethostname: Provide a fallback for HOST_NAME_MAX.
28346         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28347         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28348         instead.
28349         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28350
28351 2010-12-24  Bruno Haible  <bruno@clisp.org>
28352
28353         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28354         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28355         (SA_RESTART): Likewise.
28356         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28357
28358 2010-12-24  Bruno Haible  <bruno@clisp.org>
28359
28360         signal: Define NSIG.
28361         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28362         * tests/test-signal.c (nsig): New variable.
28363         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28364
28365 2010-12-24  Bruno Haible  <bruno@clisp.org>
28366
28367         rename, renameat: Avoid test failures on OSF/1 5.1.
28368         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28369         alternative error codes.
28370         * tests/test-renameat.c (main): Likewise.
28371
28372 2010-12-24  Bruno Haible  <bruno@clisp.org>
28373
28374         *printf: Detect large precisions bug on Solaris 10/SPARC.
28375         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28376         by Paul Eggert.
28377         * tests/test-snprintf-posix.h (test_function): Add this test code here
28378         too.
28379         * tests/test-sprintf-posix.h (test_function): Likewise.
28380         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28381         * tests/test-vasprintf-posix.c (test_function): Likewise.
28382         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28383         around by gnulib.
28384         * doc/posix-functions/printf.texi: Likewise.
28385         * doc/posix-functions/snprintf.texi: Likewise.
28386         * doc/posix-functions/sprintf.texi: Likewise.
28387         * doc/posix-functions/vfprintf.texi: Likewise.
28388         * doc/posix-functions/vprintf.texi: Likewise.
28389         * doc/posix-functions/vsnprintf.texi: Likewise.
28390         * doc/posix-functions/vsprintf.texi: Likewise.
28391         * doc/posix-functions/dprintf.texi: Undo last commit.
28392         * doc/posix-functions/vdprintf.texi: Likewise.
28393
28394 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28395
28396         tests: port test-fdutimensat.c to Solaris 8
28397         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28398         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28399         On Solaris 8, it fails with errno == ENOSYS, because there is no
28400         futimens (so it can't use the fd), and there is no lutimens (so it
28401         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28402
28403         vsnprintf: make more consistent with snprintf; doc fixes
28404
28405         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28406         the byte count return problem was promoted from the snprintf-posix
28407         to the snprintf module.
28408         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28409         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28410         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28411         * tests/test-snprintf.c (main): Check the byte count returned.
28412         * tests/test-vsnprintf.c (main): Likewise.
28413
28414 2010-12-23  Eric Blake  <eblake@redhat.com>
28415
28416         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28417         * modules/sigpipe (License): Relax license.
28418
28419 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28420
28421         doc: document Solaris printf bug with large float precisions
28422         * doc/posix-functions/dprintf.texi (dprintf):
28423         * doc/posix-functions/fprintf.texi (fprintf):
28424         * doc/posix-functions/printf.texi (printf):
28425         * doc/posix-functions/snprintf.texi (snprintf):
28426         * doc/posix-functions/sprintf.texi (sprintf):
28427         * doc/posix-functions/vdprintf.texi (vdprintf):
28428         * doc/posix-functions/vfprintf.texi (vfprintf):
28429         * doc/posix-functions/vprintf.texi (vprintf):
28430         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28431         * doc/posix-functions/vsprintf.texi (vsprintf):
28432         Mention that these functions mishandle large floating point
28433         precisions on Solaris 10.  The same bug is also present in Solaris
28434         8, and I assume earlier.  This causes "cd gnulib-tests; make
28435         check" to fail on Solaris 8 (and I assume, later) when building
28436         the latest coreutils, in test-vasprintf-posix's call to
28437         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28438         the wide flavors (e.g., wprintf) so this patch just updates the
28439         documentation for the narrow ones.
28440
28441         test-posixtm.c: add two tests
28442         * tests/test-posixtm.c: Add two tests, to highlight the
28443         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28444         around this bug; this is merely to document it.
28445
28446 2010-12-22  Bruno Haible  <bruno@clisp.org>
28447
28448         getlogin_r: Work around portability problem on OSF/1.
28449         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28450         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28451         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28452         test for a truncated result.
28453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28454         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28455         * modules/getlogin_r (Depends-on): Add memchr.
28456         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28457
28458 2010-12-22  Bruno Haible  <bruno@clisp.org>
28459
28460         ptsname: Avoid test failure on OSF/1 5.1.
28461         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28462         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28463         (same_slave): New function.
28464         (main): Use it to compare ptsname's result with the expected file name.
28465
28466 2010-12-22  Bruno Haible  <bruno@clisp.org>
28467
28468         Port extended stdio modules to HP NonStop Kernel.
28469         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28470         macros.
28471         * lib/fbufmode.c: Update comments.
28472         * lib/fflush.c: Likewise.
28473         * lib/fpurge.c: Likewise.
28474         * lib/freadable.c: Likewise.
28475         * lib/freadahead.c: Likewise.
28476         * lib/freading.c: Likewise.
28477         * lib/freadptr.c: Likewise.
28478         * lib/freadseek.c: Likewise.
28479         * lib/fseeko.c: Likewise.
28480         * lib/fseterr.c: Likewise.
28481         * lib/fwritable.c: Likewise.
28482         * lib/fwriting.c: Likewise.
28483         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28484
28485 2010-12-22  Bruno Haible  <bruno@clisp.org>
28486
28487         ttyname_r: Work around bug on OSF/1 5.1.
28488         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28489         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28490         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28491         present.
28492         * lib/ttyname_r.c (ttyname_r): Update comments.
28493
28494 2010-12-22  Bruno Haible  <bruno@clisp.org>
28495
28496         round: Implement result sign according to IEEE 754.
28497         * lib/round.c (MIN, MINUS_ZERO): New macros.
28498         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28499         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28500         * tests/test-round-ieee.c (main): Likewise.
28501         * tests/test-roundl-ieee.c (main): Likewise.
28502
28503         trunc: Implement result sign according to IEEE 754.
28504         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28505         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28506         * tests/test-trunc2.c: Include minus-zero.h.
28507         (MINUS_ZERO): New macro.
28508         (trunc_reference): Keep in sync with lib/trunc.c.
28509         * tests/test-truncf2.c: Include minus-zero.h.
28510         (MINUS_ZERO): New macro.
28511         (truncf_reference): Keep in sync with lib/trunc.c.
28512         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28513         * tests/test-trunc-ieee.c (main): Likewise.
28514         * tests/test-truncl-ieee.c (main): Likewise.
28515
28516         ceil: Implement result sign according to IEEE 754.
28517         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28518         (FUNC): Return -0.0 for -1 < x < 0.
28519         * tests/test-ceil2.c: Include minus-zero.h.
28520         (MINUS_ZERO): New macro.
28521         (ceil_reference): Keep in sync with lib/ceil.c.
28522         * tests/test-ceilf2.c: Include minus-zero.h.
28523         (MINUS_ZERO): New macro.
28524         (ceilf_reference): Keep in sync with lib/ceil.c.
28525         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28526         * tests/test-ceil-ieee.c (main): Likewise.
28527         * tests/test-ceill-ieee.c (main): Likewise.
28528
28529         floor: Implement result sign according to IEEE 754.
28530         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28531         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28532         * tests/test-floorf2.c (floorf_reference): Likewise.
28533         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28534         * tests/test-floor-ieee.c (main): Likewise.
28535         * tests/test-floorl-ieee.c (main): Likewise.
28536
28537 2010-12-22  Bruno Haible  <bruno@clisp.org>
28538
28539         getaddrinfo: Update doc.
28540         * doc/posix-functions/gai_strerror.texi: Return type is also different
28541         on AIX and HP-UX.
28542
28543 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28544
28545         getaddrinfo, inet_ntop: Update doc for Solaris.
28546         * doc/posix-functions/gai_strerror.texi: Return type is also an
28547         issue on Solaris 9 and earlier.
28548         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28549         on Solaris 10 and earlier.
28550
28551 2010-12-21  Bruno Haible  <bruno@clisp.org>
28552
28553         New module 'roundl-ieee'.
28554         * modules/roundl-ieee: New file.
28555         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28556         test whether roundl works according to ISO C 99 with IEC 60559.
28557         * m4/roundl-ieee.m4: New file.
28558         * modules/roundl-ieee-tests: New file.
28559         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28560         * tests/test-roundl.c (main): Remove signbit tests.
28561         * modules/roundl-tests (Depends-on): Remove signbit.
28562         * doc/posix-functions/roundl.texi: Mention the new module.
28563
28564 2010-12-21  Bruno Haible  <bruno@clisp.org>
28565
28566         New module 'truncl-ieee'.
28567         * modules/truncl-ieee: New file.
28568         * modules/truncl-ieee-tests: New file.
28569         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28570         * tests/test-truncl.c (main): Remove signbit tests.
28571         * modules/truncl-tests (Depends-on): Remove signbit.
28572         * doc/posix-functions/truncl.texi: Mention the new module.
28573
28574 2010-12-21  Bruno Haible  <bruno@clisp.org>
28575
28576         New module 'ceill-ieee'.
28577         * modules/ceill-ieee: New file.
28578         * modules/ceill-ieee-tests: New file.
28579         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28580         * tests/test-ceill.c (main): Remove signbit tests.
28581         * modules/ceill-tests (Depends-on): Remove signbit.
28582         * doc/posix-functions/ceill.texi: Mention the new module.
28583
28584 2010-12-21  Bruno Haible  <bruno@clisp.org>
28585
28586         New module 'floorl-ieee'.
28587         * modules/floorl-ieee: New file.
28588         * modules/floorl-ieee-tests: New file.
28589         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28590         * tests/test-floorl.c (main): Remove signbit tests.
28591         * modules/floorl-tests (Depends-on): Remove signbit.
28592         * doc/posix-functions/floorl.texi: Mention the new module.
28593
28594 2010-12-21  Bruno Haible  <bruno@clisp.org>
28595
28596         New module 'round-ieee'.
28597         * modules/round-ieee: New file.
28598         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28599         whether round works according to ISO C 99 with IEC 60559.
28600         * m4/round-ieee.m4: New file.
28601         * modules/round-ieee-tests: New file.
28602         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28603         * tests/test-round1.c (main): Remove signbit tests.
28604         * modules/round-tests (Depends-on): Remove 'signbit'.
28605         * doc/posix-functions/round.texi: Mention the new module.
28606
28607 2010-12-21  Bruno Haible  <bruno@clisp.org>
28608
28609         New module 'trunc-ieee'.
28610         * modules/trunc-ieee: New file.
28611         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28612         whether trunc works according to ISO C 99 with IEC 60559.
28613         * m4/trunc-ieee.m4: New file.
28614         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28616         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28617         * modules/trunc-ieee-tests: New file.
28618         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28619         * tests/test-trunc1.c (main): Remove signbit tests.
28620         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28621         * doc/posix-functions/trunc.texi: Mention the new module.
28622
28623 2010-12-21  Bruno Haible  <bruno@clisp.org>
28624
28625         New module 'ceil-ieee'.
28626         * modules/ceil-ieee: New file.
28627         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28628         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28629         ISO C 99 with IEC 60559.
28630         * m4/ceil-ieee.m4: New file.
28631         * modules/ceil (Files): Add lib/ceil.c.
28632         (Depends-on): Add 'float'.
28633         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28634         * lib/math.in.h (ceil): New declaration.
28635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28636         REPLACE_CEIL.
28637         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28638         * modules/ceil-ieee-tests: New file.
28639         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28640         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28641         * doc/posix-functions/ceil.texi: Mention the new module.
28642
28643 2010-12-21  Bruno Haible  <bruno@clisp.org>
28644
28645         New module 'floor-ieee'.
28646         * modules/floor-ieee: New file.
28647         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28648         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28649         ISO C 99 with IEC 60559.
28650         * m4/floor-ieee.m4: New file.
28651         * modules/floor (Files): Add lib/floor.c.
28652         (Depends-on): Add 'float'.
28653         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28654         * lib/math.in.h (floor): New declaration.
28655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28656         REPLACE_FLOOR.
28657         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28658         * modules/floor-ieee-tests: New file.
28659         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28660         * tests/test-math-c++.cc: Check the signature of 'floor'.
28661         * doc/posix-functions/floor.texi: Mention the new module.
28662
28663 2010-12-21  Bruno Haible  <bruno@clisp.org>
28664
28665         New module 'roundf-ieee'.
28666         * modules/roundf-ieee: New file.
28667         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28668         test whether roundf works according to ISO C 99 with IEC 60559.
28669         * m4/roundf-ieee.m4: New file.
28670         * modules/roundf-ieee-tests: New file.
28671         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28672         * tests/test-roundf1.c (main): Remove signbit tests.
28673         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28674         * doc/posix-functions/roundf.texi: Mention the new module.
28675
28676 2010-12-21  Bruno Haible  <bruno@clisp.org>
28677
28678         New module 'truncf-ieee'.
28679         * modules/truncf-ieee: New file.
28680         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28681         test whether truncf works according to ISO C 99 with IEC 60559.
28682         * m4/truncf-ieee.m4: New file.
28683         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28685         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28686         * modules/truncf-ieee-tests: New file.
28687         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28688         * tests/test-truncf1.c (main): Remove signbit tests.
28689         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28690         * doc/posix-functions/truncf.texi: Mention the new module.
28691
28692 2010-12-21  Bruno Haible  <bruno@clisp.org>
28693
28694         New module 'ceilf-ieee'.
28695         * modules/ceilf-ieee: New file.
28696         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28697         test whether ceilf works according to ISO C 99 with IEC 60559.
28698         * m4/ceilf-ieee.m4: New file.
28699         * modules/ceilf-ieee-tests: New file.
28700         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28701         * tests/test-ceilf1.c (main): Remove signbit tests.
28702         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28703         * doc/posix-functions/ceilf.texi: Mention the new module.
28704
28705 2010-12-21  Bruno Haible  <bruno@clisp.org>
28706
28707         New module 'floorf-ieee'.
28708         * modules/floorf-ieee: New file.
28709         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28710         test whether floorf works according to ISO C 99 with IEC 60559.
28711         * m4/floorf-ieee.m4: New file.
28712         * modules/floorf-ieee-tests: New file.
28713         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28714         * tests/test-floorf1.c (main): Remove signbit tests.
28715         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28716         * doc/posix-functions/floorf.texi: Mention the new module.
28717
28718 2010-12-21  Bruno Haible  <bruno@clisp.org>
28719
28720         Support for minus zero in autoconf macros.
28721         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28722         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28723         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28724         * tests/minus-zero.h: Update comments.
28725
28726 2010-12-21  Bruno Haible  <bruno@clisp.org>
28727
28728         Tests for module 'ceil'.
28729         * modules/ceil-tests: New file.
28730         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28731         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28732
28733 2010-12-21  Bruno Haible  <bruno@clisp.org>
28734
28735         Tests for module 'floor'.
28736         * modules/floor-tests: New file.
28737         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28738         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28739
28740 2010-12-21  Bruno Haible  <bruno@clisp.org>
28741
28742         math: Fix indentation.
28743         * lib/math.in.h (floorf): Fix indentation.
28744
28745 2010-12-21  Bruno Haible  <bruno@clisp.org>
28746
28747         Fix cross-compilation guesses on Solaris.
28748         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28749         not match "solaris2.10".
28750         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28751         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28752         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28753
28754 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28755
28756         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28757         This fixes a problem observed with the latest coreutils snapshot
28758         that caused a test to fail on Solaris 8.  src/csplit.c's call
28759         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28760         earlier, instead of returning the number of bytes that would have
28761         been generated; this causes csplit to incorrectly report memory
28762         exhaustion.
28763         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28764         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28765         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28766         comments to match.
28767         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28768         Fix typo in matching older versions of Solaris: "solaris2.10"
28769         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28770         only for guessing while cross-compiling.
28771         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28772
28773 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28774
28775         ftoastr: fix comment again
28776         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28777         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28778         Also, simplify example a bit by using flags = 0.
28779
28780 2010-12-20  Bruno Haible  <bruno@clisp.org>
28781
28782         round*, trunc*: Update documentation regarding glibc.
28783         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28784         * doc/posix-functions/round.texi: Likewise.
28785         * doc/posix-functions/roundl.texi: Likewise.
28786         * doc/posix-functions/truncf.texi: Likewise.
28787         * doc/posix-functions/trunc.texi: Likewise.
28788         * doc/posix-functions/truncl.texi: Likewise.
28789
28790 2010-12-20  Bruno Haible  <bruno@clisp.org>
28791
28792         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28793         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28794         * doc/posix-functions/round.texi: Likewise.
28795         * doc/posix-functions/roundl.texi: Likewise.
28796
28797 2010-12-20  Bruno Haible  <bruno@clisp.org>
28798
28799         ttyname_r: Add missing declaration on HP-UX 11.
28800         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28801         HAVE_TTYNAME_R.
28802         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28803         declared. Set HAVE_TTYNAME_R always.
28804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28805         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28806         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28807         HAVE_TTYNAME_R.
28808         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28809
28810 2010-12-20  Bruno Haible  <bruno@clisp.org>
28811
28812         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28813         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28814         * doc/posix-functions/getlogin_r.texi: Likewise.
28815         * tests/test-getlogin.c: Include <errno.h>.
28816         (main): Avoid test failure on HP-UX 11.11.
28817         * tests/test-getlogin_r.c (main): Likewise.
28818
28819 2010-12-20  Bruno Haible  <bruno@clisp.org>
28820
28821         getlogin_r: Add missing declaration on HP-UX 11.
28822         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28823         declared also when it exists as a function.
28824         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28825
28826 2010-12-20  Bruno Haible  <bruno@clisp.org>
28827
28828         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28829         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28830         through wcrtomb.
28831
28832 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28833
28834         ftoastr: fix comment
28835         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28837
28838 2010-12-19  Bruno Haible  <bruno@clisp.org>
28839
28840         isnan: Ensure it is a macro.
28841         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28842         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28843         Solaris.
28844
28845 2010-12-19  Bruno Haible  <bruno@clisp.org>
28846
28847         ldexpl test: Fix link error on OSF/1 5.1.
28848         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28849
28850 2010-12-19  Bruno Haible  <bruno@clisp.org>
28851
28852         wctype: Make it work in C++ mode on OSF/1 5.1.
28853         * lib/wctype.in.h (iswblank): Declare but not define here.
28854         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28855         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28856         * modules/wctype (Files): Add lib/iswblank.c.
28857
28858 2010-12-19  Bruno Haible  <bruno@clisp.org>
28859
28860         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28861         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28862         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28863
28864 2010-12-19  Bruno Haible  <bruno@clisp.org>
28865
28866         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28868         _POSIX_PII_SOCKET.
28869         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28870         * doc/posix-functions/recvfrom.texi: Likewise.
28871         * doc/posix-functions/send.texi: Likewise.
28872         * doc/posix-functions/sendto.texi: Likewise.
28873
28874 2010-12-19  Bruno Haible  <bruno@clisp.org>
28875
28876         tcgetsid: Add missing declaration on OSF/1 5.1.
28877         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28878         HAVE_TCGETSID.
28879         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28880         Don't set HAVE_TCGETSID.
28881         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28882         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28883         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28884         HAVE_TCGETSID.
28885         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28886
28887 2010-12-19  Bruno Haible  <bruno@clisp.org>
28888
28889         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28890         * lib/stdio.in.h: During the include_next statement, let recursive
28891         includes of this file include only the system header file.
28892
28893 2010-12-19  Bruno Haible  <bruno@clisp.org>
28894
28895         iconv_open: Fix regression from 2010-12-04.
28896         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28897         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28898
28899 2010-12-19  Bruno Haible  <bruno@clisp.org>
28900
28901         stdbool test: Avoid a gcc warning.
28902         * tests/test-stdbool.c (main): Fail if e1 is false.
28903         Reported by Jim Meyering.
28904
28905 2010-12-19  Jim Meyering  <meyering@redhat.com>
28906
28907         setenv: restore to working order
28908         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28909         mistakenly removed.
28910         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28911         HAVE_SETENV.
28912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28913         HAVE_SETENV.
28914
28915 2010-12-19  Bruno Haible  <bruno@clisp.org>
28916
28917         Document some different function declarations on OSF/1 5.1.
28918         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28919         * doc/posix-functions/inet_ntop.texi: Likewise.
28920         * doc/posix-functions/gethostname.texi: Likewise.
28921         * lib/unistd.in.h (gethostname): Update comment.
28922
28923 2010-12-19  Bruno Haible  <bruno@clisp.org>
28924
28925         doc: Mention vasprintf-posix module.
28926         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28927         the 'vasprintf-posix' module.
28928         * doc/glibc-functions/vasprintf.texi: Likewise.
28929
28930 2010-12-19  Bruno Haible  <bruno@clisp.org>
28931
28932         unsetenv: Add missing declaration on OSF/1 5.1.
28933         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28934         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28935         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28937         not HAVE_UNSETENV.
28938         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28939         HAVE_UNSETENV.
28940         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28941
28942 2010-12-19  Bruno Haible  <bruno@clisp.org>
28943
28944         setenv: Add missing declaration on OSF/1 5.1.
28945         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28946         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28947         declared. Don't set HAVE_SETENV.
28948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28949         not HAVE_SETENV.
28950         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28951         HAVE_SETENV.
28952         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28953
28954 2010-12-19  Bruno Haible  <bruno@clisp.org>
28955
28956         nl_langinfo tests: Avoid gcc warning.
28957         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28958
28959 2010-12-19  Bruno Haible  <bruno@clisp.org>
28960
28961         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28962         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28963         _GL_CXXALIAS_SYS.
28964
28965 2010-12-19  Bruno Haible  <bruno@clisp.org>
28966
28967         stdbool: Relax test.
28968         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28969         address to 'bool' work in static initializer, for compilers other than
28970         GCC.
28971
28972 2010-12-19  Bruno Haible  <bruno@clisp.org>
28973
28974         ftello: Add missing declaration on OSF/1 5.1.
28975         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28976         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28978         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28979         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28980
28981 2010-12-19  Bruno Haible  <bruno@clisp.org>
28982
28983         fseeko: Add missing declaration on OSF/1 5.1.
28984         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28985         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28987         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28988         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28989
28990 2010-12-19  Bruno Haible  <bruno@clisp.org>
28991
28992         fchdir: Add missing declaration on OSF/1 5.1.
28993         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28996         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28997         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28998
28999 2010-12-19  Bruno Haible  <bruno@clisp.org>
29000
29001         relocatable-prog-wrapper: Separate from relocatable-prog.
29002         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
29003         uninstall-relocwrapper rule here.
29004         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
29005         Reported by Ian Beckwith <ianb@erislabs.net>.
29006
29007 2010-12-19  Bruno Haible  <bruno@clisp.org>
29008
29009         unistr/u8-mbsnlen: Add missing dependency.
29010         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
29011         Reported by Ian Beckwith <ianb@erislabs.net>.
29012
29013 2010-12-19  Bruno Haible  <bruno@clisp.org>
29014
29015         iconv: Make it possible again to use this module without 'iconv-h'.
29016         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
29017         if it is not defined.
29018         Reported by Ian Beckwith <ianb@erislabs.net>.
29019
29020 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29021
29022         acl: port to Solaris 8 when copying from tmpfs to ufs
29023         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
29024         error number.  Problem observed on Solaris 8 with latest
29025         coreutils, with "mv A B", where A is on a tmpfs file system and B
29026         is on a ufs file system.  This caused coreutils' mv/part-symlink
29027         test to fail.
29028
29029         tests: set fail=0 at start
29030         * tests/init.sh (setup_): Move fail=0 initialization here ...
29031         (mktempd_): ... from here, so that tests can rely on fail being
29032         set to 0 initially.  This fixes a problem in coreutils; see:
29033         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
29034
29035 2010-12-18  Bruno Haible  <bruno@clisp.org>
29036
29037         memmem-simple: Stylistic changes.
29038         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
29039         Fix preprocessor directive indentation.
29040
29041 2010-12-15  Pádraig Brady <P@draigBrady.com>
29042
29043         memmem, memmem-simple: reorganize and expand empty needle check
29044         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
29045         functional checks to memmem-simple so that one has a fully functional
29046         memmem by using just this module.
29047         Restrict the performance only check to the memmem module.
29048         Also expand the empty needle check to ensure the correct
29049         pointer is returned, not just a non NULL pointer.
29050         * doc/glibc-functions/memmem.texi: Rearrange the portability
29051         documentation to correlate with the rearranged checks.
29052         Clarify exactly how the memmem and memmem-simple modules
29053         relate to each other.
29054
29055 2010-12-15  Pádraig Brady <P@draigBrady.com>
29056             Bruno Haible  <bruno@clisp.org>
29057
29058         Improve cross-compilation guesses for uClibc.
29059         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
29060         that uClibc does not have the glibc bug.
29061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
29062         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
29063
29064 2010-12-14  Eric Blake  <eblake@redhat.com>
29065
29066         configmake: provide fallbacks for oldest supported autotools
29067         * m4/configmake.m4: New file.
29068         * modules/configmake (Files): Ship it.
29069         (configure.ac): Use it to guarantee fallbacks.
29070
29071 2010-12-13  Pádraig Brady <P@draigBrady.com>
29072
29073         read-file: Improve handling of large files
29074         * lib/read-file.c (fread_file): Minimize realloc()s
29075         for regular files, and better manage sizes around SIZE_MAX.
29076
29077 2010-12-13  Eric Blake  <eblake@redhat.com>
29078
29079         cloexec, fcntl: relax license
29080         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
29081         consent from all contributors.
29082         * modules/fcntl (License): Likewise.
29083
29084 2010-12-10  Bruno Haible  <bruno@clisp.org>
29085
29086         Tests for module 'pipe-posix'.
29087         * modules/pipe-posix-tests: New file.
29088         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
29089
29090 2010-12-10  Bruno Haible  <bruno@clisp.org>
29091
29092         pipe-posix: Make it work in C++ mode.
29093         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
29094         (pipe): Use common idiom, not a macro definition.
29095         * lib/pipe.c: New file.
29096         * m4/pipe.m4: New file.
29097         * modules/pipe-posix (Description): Enhance.
29098         (Files): Add lib/pipe.c, m4/pipe.m4.
29099         (configure.ac): Invoke gl_FUNC_PIPE.
29100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
29101         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
29102         * tests/test-unistd-c++.cc: Check the signature of pipe.
29103
29104 2010-12-10  Bruno Haible  <bruno@clisp.org>
29105
29106         Rename module 'pipe' to 'spawn-pipe'.
29107         * modules/spawn-pipe: New file, renamed from modules/pipe.
29108         (Files, configure.ac, Makefile.am): Update.
29109         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
29110         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
29111         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
29112         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
29113         "spawn-pipe.h" instead of "pipe.h".
29114         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
29115         to gl_SPAWN_PIPE.
29116         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
29117         (Files, Makefile.am): Update.
29118         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
29119         Update.
29120         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
29121         Include "spawn-pipe.h" instead of "pipe.h".
29122         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
29123         * lib/javacomp.c: Likewise.
29124         * lib/javaversion.c: Likewise.
29125         * lib/pipe-filter-gi.c: Likewise.
29126         * lib/pipe-filter-ii.c: Likewise.
29127         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
29128         * modules/javacomp (Depends-on): Likewise.
29129         * modules/javaversion (Depends-on): Likewise.
29130         * modules/pipe-filter-gi (Depends-on): Likewise.
29131         * modules/pipe-filter-ii (Depends-on): Likewise.
29132         * MODULES.html.sh (Executing programs): Update.
29133         * NEWS: Mention the change.
29134
29135 2010-12-10  Eric Blake  <eblake@redhat.com>
29136
29137         pipe-posix: new module
29138         * modules/pipe-posix: New file.
29139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
29140         (gl_UNISTD_H): Check for declaration.
29141         * modules/unistd (Makefile.am): Substitute it.
29142         * lib/unistd.in.h (pipe): Provide it for mingw.
29143         * doc/posix-functions/pipe.texi (pipe): Update documentation.
29144         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
29145
29146 2010-12-07  Bruno Haible  <bruno@clisp.org>
29147
29148         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
29149         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
29150         u8_strcmp_gnu.
29151         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
29152
29153 2010-12-06  Bruno Haible  <bruno@clisp.org>
29154
29155         Update internal documentation.
29156         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
29157
29158 2010-12-04  Bruno Haible  <bruno@clisp.org>
29159
29160         Put more information about failed tests into the test return codes.
29161         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
29162         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
29163         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29165         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
29166         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29167         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29168         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29169         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
29170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29171         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
29172         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29173         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29174         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29175         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
29176         returns a bit mask.
29177         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
29178         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
29179         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
29180         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
29181         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29182         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29183         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29185         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29186         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29187         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29188         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29189         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29190         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29191         * m4/link.m4 (gl_FUNC_LINK): Likewise.
29192         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29193         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
29194         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
29195         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29196         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
29197         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29198         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29199         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29200         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29201         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29202         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29203         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29204         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29205         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29206         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29207         gl_PRINTF_PRECISION): Likewise.
29208         * m4/regex.m4 (gl_REGEX): Likewise.
29209         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29210         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29211         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29212         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29213         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29215         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29216         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29217         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29218         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29219         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29220         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29221         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29222         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29223         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29224         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29225         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29226         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29228         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29229         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29230         enumerated value.
29231         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29232
29233 2010-12-04  Bruno Haible  <bruno@clisp.org>
29234
29235         Update for Solaris 11 2010-11.
29236         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29237         Express, released in November 2010.
29238
29239 2010-12-04  Bruno Haible  <bruno@clisp.org>
29240
29241         nproc: Relax license.
29242         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29243         and Paul Eggert.
29244         Requested by Ludovic Courtès <ludo@gnu.org>.
29245
29246 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29247
29248         utimecmp: fine-grained src to nearby coarse-grained dest
29249
29250         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29251         and the source is on a file system with higher-resolution time
29252         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29253         not work, and the time stamps are close together, the algorithm to
29254         determine the exact resolution from the read-back mtime was buggy:
29255         it had a "!=" where it should have had an "==".  This bug has been
29256         in the code ever since it was introduced to gnulib.
29257         Problem reported by Dan Jacobson in
29258         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29259
29260 2010-11-30  Bruno Haible  <bruno@clisp.org>
29261
29262         strerror_r-posix: Fix autoconf test.
29263         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29264
29265 2010-11-28  Bruno Haible  <bruno@clisp.org>
29266             Paul Eggert  <eggert@cs.ucla.edu>
29267
29268         Tests for module 'getdomainname'.
29269         * modules/getdomainname-tests: New file.
29270         * tests/test-getdomainname.c: New file, based on
29271         tests/test-gethostname.c.
29272
29273 2010-11-28  Bruno Haible  <bruno@clisp.org>
29274             Paul Eggert  <eggert@cs.ucla.edu>
29275
29276         getdomainname: Use the system function when possible.
29277         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29278         (getdomainname): Replace if needed. Provide the declaration if it is
29279         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29280         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29281         (getdomainname): When the system has getdomainname, call the system
29282         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29283         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29284         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29285         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29286         the function if its second argument is of type 'int' or if it is found
29287         in libnsl.
29288         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29289         <sys/systeminfo.h> and sysinfo().
29290         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29292         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29293         HAVE_GETDOMAINNAME.
29294         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29295         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29296         * doc/glibc-functions/getdomainname.texi: Document the problems with
29297         the getdomainname declaration.
29298
29299 2010-11-28  Bruno Haible  <bruno@clisp.org>
29300
29301         sys_socket: Ensure ss_family field on AIX.
29302         * lib/sys_socket.in.h (ss_family): New macro definition.
29303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29304         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29305         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29306         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29307         * modules/sys_socket (Makefile.am): Substitute
29308         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29309         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29310
29311 2010-11-27  Bruno Haible  <bruno@clisp.org>
29312
29313         readline: Improve configure output.
29314         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29315         "checking for readline..." result understandable.
29316
29317 2010-11-27  Bruno Haible  <bruno@clisp.org>
29318
29319         *printf-posix: Detect a bug on Solaris 10/x86.
29320         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29321         for floating-point output.
29322         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29323         directive.
29324         * tests/test-snprintf-posix.h (test_function): Likewise.
29325         * tests/test-sprintf-posix.h (test_function): Likewise.
29326         * tests/test-vasprintf-posix.c (test_function): Likewise.
29327         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29328         * doc/posix-functions/printf.texi: Likewise.
29329         * doc/posix-functions/snprintf.texi: Likewise.
29330         * doc/posix-functions/sprintf.texi: Likewise.
29331         * doc/posix-functions/vfprintf.texi: Likewise.
29332         * doc/posix-functions/vprintf.texi: Likewise.
29333         * doc/posix-functions/vsnprintf.texi: Likewise.
29334         * doc/posix-functions/vsprintf.texi: Likewise.
29335         * doc/glibc-functions/obstack_printf.texi: Likewise.
29336         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29337
29338 2010-11-27  Bruno Haible  <bruno@clisp.org>
29339
29340         Fix link error when module libunistring-optional is in use.
29341         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29342         * modules/striconveha-tests (Makefile.am): Likewise.
29343
29344 2010-11-27  Bruno Haible  <bruno@clisp.org>
29345
29346         regex: Mention link dependencies.
29347         * modules/regex (Link): New section.
29348         * modules/rpmatch (Link): Likewise.
29349         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29350
29351 2010-11-27  Bruno Haible  <bruno@clisp.org>
29352
29353         ftoastr: Fix compilation error on Solaris.
29354         * lib/ftoastr.c: Include <config.h>.
29355
29356 2010-11-27  Bruno Haible  <bruno@clisp.org>
29357
29358         getloadavg: Update documentation.
29359         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29360
29361 2010-11-27  Bruno Haible  <bruno@clisp.org>
29362
29363         sys_socket: Fix test whether the functions are declared.
29364         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29365         not <sys/select.h>.
29366
29367 2010-11-27  Bruno Haible  <bruno@clisp.org>
29368
29369         getpass: Make sure to get system declaration on some platforms.
29370         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29371         gl_USE_SYSTEM_EXTENSIONS.
29372         * modules/getpass (Depends-on): Add extensions.
29373
29374 2010-11-26  Bruno Haible  <bruno@clisp.org>
29375
29376         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29377         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29378         'iconv' module is present.
29379         (ICONV_CONST): New macro.
29380         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29381         ICONV_CONST.
29382         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29383         set ICONV_CONST.
29384         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29385         here.
29386         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29387         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29388         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29389         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29390         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29391         present.
29392
29393 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29394
29395         ftoastr: comment fix
29396         * lib/ftoastr.c: "little" -> "little or no" in comment
29397
29398 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29399
29400         stdint: port to GCC 4.3 + OSX + Octave
29401         On this platform, stdint.h is buggy and defines int64_t to long
29402         long int.  The replacement defined it to long int, causing
29403         problems with C++ style name mangling.  Instead, trust the system
29404         definition if INT64_MAX is defined, and likewise for the unsigned
29405         variant.   Problem reported by Jarno Rajahalme in
29406         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29407         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29408         and don't mess with int64_t and INT64_MAX in this case.
29409         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29410
29411 2010-11-24  Bruno Haible  <bruno@clisp.org>
29412
29413         doc: Corrections regarding MacOS X 10.4 and 10.5.
29414         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29415         MacOS X.
29416         Reported by Simon Josefsson.
29417
29418 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29419
29420         Uninstall ".bin" files installed by relocwrapper.
29421         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29422         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29423         unless it is already there.
29424
29425 2010-11-21  Bruno Haible  <bruno@clisp.org>
29426
29427         Update for NetBSD 5.0.
29428         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29429         NetBSD; the test fails on NetBSD 5.0.
29430         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29431         about NetBSD.
29432
29433 2010-11-21  Bruno Haible  <bruno@clisp.org>
29434
29435         Update for HP-UX 11.23 and HP-UX 11.31.
29436         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29437         HP-UX.
29438
29439 2010-11-21  Bruno Haible  <bruno@clisp.org>
29440
29441         Update for MacOS X 10.5.
29442         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29443         MacOS X; the test fails on MacOS X 10.5.8.
29444         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29445         about MacOS X.
29446
29447 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29448
29449         bootstrap: add bootstrap_sync option.
29450         See discussion at
29451         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29452         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29453         * build-aux/bootstrap: Accept --bootstrap-sync to update
29454         bootstrap if it is not identical to the local gnulib's
29455         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29456         enable this by default.  Accept --no-bootstrap-sync to disable
29457         it.
29458
29459 2010-11-20  Bruno Haible  <bruno@clisp.org>
29460
29461         Ensure that <features.h> is included before __GLIBC__ is tested.
29462         * lib/printf-parse.h: Include <features.h>.
29463         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29464         Reported by Mike Frysinger <vapier@gentoo.org>.
29465
29466         Ensure that <features.h> is included before __GLIBC__ is tested.
29467         * lib/wchar.in.h: Include <features.h>.
29468         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29469         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29470         Reported by Mike Frysinger <vapier@gentoo.org>.
29471
29472         Ensure that <features.h> is included before __GLIBC__ is tested.
29473         * lib/arpa_inet.in.h: Include <features.h>.
29474         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29475         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29476         Reported by Mike Frysinger <vapier@gentoo.org>.
29477
29478         Ensure that <features.h> is included before __GLIBC__ is tested.
29479         * build-aux/link-warning.h: Include <features.h>.
29480         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29481         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29482         Reported by Mike Frysinger <vapier@gentoo.org>.
29483
29484         Ensure that <features.h> is included before __GLIBC__ is tested.
29485         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29486         Reported by Mike Frysinger <vapier@gentoo.org>.
29487
29488 2010-11-20  Bruno Haible  <bruno@clisp.org>
29489
29490         memmem: Fix autoconf test.
29491         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29492
29493 2010-11-20  Bruno Haible  <bruno@clisp.org>
29494
29495         Port to uClibc.
29496         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29497         * lib/fcntl.in.h: Likewise.
29498         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29499         * lib/mbrtowc.c (mbrtowc): Likewise.
29500         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29501         * lib/strerror_r.c: Likewise.
29502         * lib/unistr/u8-strnlen.c: Likewise.
29503         * lib/vasnprintf.c (decimal_point_char): Likewise.
29504         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29505         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29506         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29507         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29508         * tests/test-sigaction.c (handler, main): Likewise.
29509         * lib/freading.h: Treat uClibc like a non-glibc platform.
29510         * lib/freading.c: Likewise.
29511         * lib/gettext.h: Likewise.
29512         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29513         Likewise.
29514         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29515         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29516         * lib/propername.c (proper_name_utf8): Likewise.
29517         * lib/spawn.in.h: Likewise.
29518         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29519         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29520         mem_cd_iconveh_internal): Likewise.
29521         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29522         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29523         strstr, strcasestr): Likewise.
29524         * lib/unicodeio.c (unicode_to_mb): Likewise.
29525         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29526         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29527         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29528         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29529         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29530         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29531         * lib/unistr/u8-stpncpy.c: Likewise.
29532         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29533         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29534         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29535         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29536         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29537         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29538         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29541         Likewise.
29542         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29543         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29544         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29546         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29547         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29548         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29549         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29550         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29551         * tests/test-striconveha.c (main): Likewise.
29552         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29553         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29554         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29555         * doc/posix-functions/getline.texi: Likewise.
29556         Reported by Mike Frysinger <vapier@gentoo.org>.
29557
29558 2010-11-20  Bruno Haible  <bruno@clisp.org>
29559
29560         nproc: Fix condition.
29561         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29562         HAVE_PTHREAD_AFFINITY_NP.
29563
29564 2010-11-20  Bruno Haible  <bruno@clisp.org>
29565
29566         Fix a comment.
29567         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29568
29569 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29570
29571         ftoastr: don't assume snprintf
29572         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29573         Implement a subset of snprintf here, by using sprintf safely.
29574         * modules/ftoastr (Depends-on): Remove snprintf.
29575
29576 2010-11-19  Jim Meyering  <meyering@redhat.com>
29577
29578         test-rename.h: fix compilation failure
29579         * tests/test-rename.h (test_rename): Add omitted "}".
29580
29581 2010-11-17  Jim Meyering  <meyering@redhat.com>
29582
29583         maint.mk: add a URL discussing the no-@acronym policy
29584         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29585
29586 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29587
29588         ftoastr: depend on snprintf, improve comments
29589         * lib/ftoastr.c: Also mention Loitsch's draft.
29590         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29591         needed in the current implementation, but it might simplify
29592         speeding up the code later.
29593         * modules/ftoastr: Depend on snprintf; this improves portability.
29594         Suggested by Bruno Haible in the same email.
29595
29596         ftoastr: port to hosts lacking strtof and strtold
29597         Problem reported by Bruno Haible in
29598         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29599         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29600         environment and strtold (and presumably strtof) are not available.
29601         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29602         (configure.ac): Require gl_C99_STRTOLD.
29603
29604 2010-11-18  Bruno Haible  <bruno@clisp.org>
29605
29606         c-strtold: Avoid link error on AIX 7.
29607         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29608         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29609         (gl_C_STRTOLD): Test whether strtold_l exists.
29610         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29611
29612 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29613
29614         intprops: new macro INT_BITS_STRLEN_BOUND
29615         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29616         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29617         not exposed.  Also, it uses a slightly tighter bound than before;
29618         though this makes no practical difference, we might as well be as
29619         tight as we easily can.
29620
29621         ftoastr: new module, for lossless conversion of floats to short strings
29622         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29623         * modules/ftoastr: New files.
29624
29625 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29626
29627         bootstrap: port to Solaris sed
29628         * build-aux/bootstrap (get_version): Port to Solaris sed.
29629         See Ralf Wildenhues's note in
29630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29631
29632 2010-11-14  Jim Meyering  <meyering@redhat.com>
29633
29634         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29635         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29636         and move definition closer to sole use.
29637
29638 2010-11-13  Jim Meyering  <meyering@redhat.com>
29639
29640         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29641         Now we require at least autoconf-2.59, which means the work-around
29642         is no longer needed.
29643         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29644         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29645         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29646         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29647         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29648
29649 2010-11-13  Bruno Haible  <bruno@clisp.org>
29650
29651         rename, renameat: Avoid test failures at NFS mounted locations.
29652         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29653         functions.
29654         (test_rename): Use assert_nonexistent.
29655         * tests/test-rename.c: Include <dirent.h>.
29656         * tests/test-renameat.c: Likewise.
29657         Reported by Gary V. Vaughan <gary@gnu.org>.
29658
29659         rename, renameat: Document Linux bug with NFS
29660         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29661         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29662         * doc/posix-functions/renameat.texi: Likewise.
29663         Suggested by Eric Blake.
29664
29665 2010-11-13  Bruno Haible  <bruno@clisp.org>
29666
29667         rename test: Add comments.
29668         * tests/test-rename.h (test_rename): Add structure and comments.
29669
29670 2010-11-13  Eric Blake  <eblake@redhat.com>
29671
29672         maintainer-makefile: cover a few more files
29673         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29674         scripts generated within C files, for libvirt.
29675
29676 2010-11-13  Bruno Haible  <bruno@clisp.org>
29677
29678         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29679         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29680         character, return the number of bytes that belong together, not always
29681         1.
29682         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29683         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29684         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29685         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29686         number of bytes of an invalid character.
29687         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29688         (main): Invoke it.
29689         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29690         results.
29691         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29692         malformed byte sequences.
29693         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29694         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29695         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29696         Reported by Ben Pfaff and Paolo Bonzini.
29697
29698 2010-11-13  Bruno Haible  <bruno@clisp.org>
29699
29700         openat: Work around glibc bug with fchownat() and empty file names.
29701         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29702         (gl_FUNC_FCHOWNAT): Invoke it.
29703         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29704         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29705         Reported by Gary V. Vaughan <gary@gnu.org>.
29706
29707 2010-11-13  Bruno Haible  <bruno@clisp.org>
29708
29709         openat: Ensure autoconf macro ordering.
29710         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29711         gl_USE_SYSTEM_EXTENSIONS.
29712         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29713
29714 2010-11-13  Bruno Haible  <bruno@clisp.org>
29715
29716         Update comments.
29717         * lib/unistr/u8-check.c: Update file name in comments.
29718         * lib/unistr/u8-mblen.c: Likewise.
29719         * lib/unistr/u8-prev.c: Likewise.
29720         * lib/unistr/u8-strmblen.c: Likewise.
29721         * lib/unistr/u8-strmbtouc.c: Likewise.
29722
29723 2010-11-13  Jim Meyering  <meyering@redhat.com>
29724
29725         tests: avoid test failure on Solaris 10 due to lack of PATH export
29726         * tests/test-update-copyright.sh: Don't forget to export PATH.
29727
29728         init.sh: ensure that IFS is defined, just in case...
29729         * tests/init.sh (setup_): Ensure that IFS is defined,
29730         so that saving and restoring it works as expected.  This
29731         appears to be useful at least for an old version of dash
29732         from a long time ago (RH 6).  See here for details:
29733         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29734
29735         maint.mk: tighten "test a == b" check
29736         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29737         test to files that contain something like #!/bin/sh.
29738         Without this, coreutils would get two false positives in
29739         the comments of C source files.
29740
29741 2010-11-12  Eric Blake  <eblake@redhat.com>
29742
29743         bootstrap: fix typo in previous attempt
29744         * build-aux/bootstrap (buildreq): Correct the grouping.
29745         Reported by Paul Eggert.
29746
29747         maintainer-makefile: prohibit test x == x
29748         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29749         Based on a report by Matthias Bolte.
29750
29751         bootstrap: allow FreeBSD gzip
29752         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29753         which has no '.' and goes to stderr.
29754         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29755         Reported by Matthias Bolte.
29756
29757         maintainer-makefile: check for i18n setup
29758         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29759         will likely work.
29760
29761 2010-11-12  Bruno Haible  <bruno@clisp.org>
29762
29763         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29764         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29765         * lib/nanosleep.c (nanosleep): Likewise.
29766
29767 2010-11-11  Bruno Haible  <bruno@clisp.org>
29768
29769         fcntl-h: Fix for use of C++ on glibc systems.
29770         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29771         also on glibc systems in C++ mode.
29772         Reported by Gary V. Vaughan <gary@gnu.org>.
29773
29774 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29775
29776         mknod: avoid false failure with dash
29777         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29778
29779 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29780
29781         unlink: Fix "is it should" typo in diagnostic.
29782         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29783         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29784
29785 2010-11-11  Bruno Haible  <bruno@clisp.org>
29786
29787         Tests for module 'strerror_r-posix'.
29788         * modules/strerror_r-posix-tests: New file.
29789         * tests/test-strerror_r.c: New file.
29790         * tests/test-string-c++.cc: Check the signature of strerror_r.
29791
29792         New module 'strerror_r-posix'.
29793         * lib/string.in.h (strerror_r): New declaration.
29794         * lib/strerror_r.c: New file.
29795         * m4/strerror_r.m4: New file.
29796         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29797         of strerror_r.
29798         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29799         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29800         * modules/strerror_r-posix: New file.
29801         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29802         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29803         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29804         portability problems.
29805
29806 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29807
29808         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29809         line is also considered for output. Quoted function name in shell
29810         command, so temporary files for functions like MyClass::operator()
29811         are removed correctly without errors.
29812
29813 2010-11-09  Bruno Haible  <bruno@clisp.org>
29814
29815         * doc/posix-functions/strerror.texi: List more failing platforms.
29816
29817         * doc/posix-functions/strerror.texi: Add a comment.
29818
29819 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29820
29821         fdopendir: fix bug on MacOS X when low on file descriptors
29822
29823         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29824         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29825         All callers changed.
29826         (fdopendir): Invoke save_cwd at the top level, not after using
29827         multiple dup() calls to use up file descriptors.  Then retry
29828         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29829         less than the maximum number of open file descriptors, because
29830         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29831         on Mac OS X 10.6.4 for tar 1.24
29832         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29833         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29834         and for tar 1.25
29835         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29836
29837 2010-11-07  Bruno Haible  <bruno@clisp.org>
29838
29839         vasnprintf: Support I flag on glibc systems.
29840         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29841         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29842         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29843         snprintf function.
29844         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29845         glibc systems.
29846         * tests/test-vasnprintf-posix3.c: New file.
29847         * modules/vasnprintf-posix-tests (Files): Add it.
29848         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29849
29850 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29851
29852         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29853         * MODULES.html.sh: For compiler warnings, use name
29854         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29855
29856 2010-11-05  Eric Blake  <eblake@redhat.com>
29857
29858         ceil, floor: avoid spurious failure with icc
29859         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29860         [denormals-as-zero] when optimizing without -mieee-fp option.
29861         * tests/test-floorf2.c (floorf_reference): Likewise.
29862         * tests/test-ceilf1.c (dummy): New function.
29863         (main): Use it to outsmart icc's optimization.
29864         * tests/test-floorf1.c (dummy, main): Likewise.
29865
29866         tests: require working signbit
29867         * modules/ceilf-tests (Depends-on): Add signbit.
29868         * modules/ceill-tests (Depends-on): Likewise.
29869         * modules/floorf-tests (Depends-on): Likewise.
29870         * modules/floorl-tests (Depends-on): Likewise.
29871         * modules/round-tests (Depends-on): Likewise.
29872         * modules/roundf-tests (Depends-on): Likewise.
29873         * modules/roundl-tests (Depends-on): Likewise.
29874         * modules/trunc-tests (Depends-on): Likewise.
29875         * modules/truncf-tests (Depends-on): Likewise.
29876         * modules/truncl-tests (Depends-on): Likewise.
29877
29878         strtod: work around icc bug
29879         * lib/strtod.c (minus_zero): Define to working value.
29880         (strtod): Use it to avoid icc bug.
29881
29882         copysign: enhance tests
29883         * modules/copysign-tests (Files): Add minus-zero.h.
29884         * tests/test-copysign.c (main): Also test zeros.
29885
29886 2010-11-04  Eric Blake  <eblake@redhat.com>
29887
29888         ceil, floor, round, trunc: enhance tests of -0
29889         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29890         * tests/test-ceill.c (main): Likewise.
29891         * tests/test-floorf1.c (main): Likewise.
29892         * tests/test-floorl.c (main): Likewise.
29893         * tests/test-round1.c (main): Likewise.
29894         * tests/test-roundf1.c (main): Likewise.
29895         * tests/test-roundl.c (main): Likewise.
29896         * tests/test-trunc1.c (main): Likewise.
29897         * tests/test-truncf1.c (main): Likewise.
29898         * tests/test-truncl.c (main): Likewise.
29899
29900 2010-11-04  Eric Blake  <eblake@redhat.com>
29901
29902         frexp, tests: work around ICC bug with -zero
29903         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29904         works with more compilers.
29905         * tests/minus-zero.h: New file.
29906         * modules/ceilf-tests (Files): Include it.
29907         * modules/ceill-tests (Files): Likewise.
29908         * modules/floorf-tests (Files): Likewise.
29909         * modules/floorl-tests (Files): Likewise.
29910         * modules/frexp-nolibm-tests (Files): Likewise.
29911         * modules/frexp-tests (Files): Likewise.
29912         * modules/frexpl-nolibm-tests (Files): Likewise.
29913         * modules/frexpl-tests (Files): Likewise.
29914         * modules/isnan-tests (Files): Likewise.
29915         * modules/isnand-nolibm-tests (Files): Likewise.
29916         * modules/isnand-tests (Files): Likewise.
29917         * modules/isnanf-nolibm-tests (Files): Likewise.
29918         * modules/isnanf-tests (Files): Likewise.
29919         * modules/isnanl-nolibm-tests (Files): Likewise.
29920         * modules/isnanl-tests (Files): Likewise.
29921         * modules/round-tests (Files): Likewise.
29922         * modules/roundf-tests (Files): Likewise.
29923         * modules/roundl-tests (Files): Likewise.
29924         * modules/ldexpl-tests (Files): Likewise.
29925         * modules/signbit-tests (Files): Likewise.
29926         * modules/snprintf-posix-tests (Files): Likewise.
29927         * modules/sprintf-posix-tests (Files): Likewise.
29928         * modules/strtod-tests (Files): Likewise.
29929         * modules/trunc-tests (Files): Likewise.
29930         * modules/truncf-tests (Files): Likewise.
29931         * modules/truncl-tests (Files): Likewise.
29932         * modules/vsnprintf-posix-tests (Files): Likewise.
29933         * modules/vsprintf-posix-tests (Files): Likewise.
29934         * modules/vasnprintf-posix-tests (Files): Likewise.
29935         * modules/vasprintf-posix-tests (Files): Likewise.
29936         * tests/test-ceilf1.c (main): Use it.
29937         * tests/test-ceill.c (main): Likewise.
29938         * tests/test-floorf1.c (main): Likewise.
29939         * tests/test-floorl.c (main): Likewise.
29940         * tests/test-frexp.c (main): Likewise.
29941         * tests/test-frexpl.c (main): Likewise.
29942         * tests/test-isnan.c (main): Likewise.
29943         * tests/test-isnand.h (main): Likewise.
29944         * tests/test-isnanf.h (main): Likewise.
29945         * tests/test-isnanl.h (main): Likewise.
29946         * tests/test-ldexpl.c (main): Likewise.
29947         * tests/test-round.c (main): Likewise.
29948         * tests/test-roundf.c (main): Likewise.
29949         * tests/test-roundl.c (main): Likewise.
29950         * tests/test-signbit.c (test_signbitf, test_signbitd)
29951         (test_signbitl): Likewise.
29952         * tests/test-snprintf-posix.h (test_function): Likewise.
29953         * tests/test-sprintf-posix.h (test_function): Likewise.
29954         * tests/test-strtod.c (main): Likewise.
29955         * tests/test-trunc1.c (main): Likewise.
29956         * tests/test-truncf1.c (main): Likewise.
29957         * tests/test-truncl.c (main): Likewise.
29958
29959         isnanl: work around icc bug
29960         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29961
29962 2010-11-03  Eric Blake  <eblake@redhat.com>
29963
29964         tests: fix compiler warnings
29965         * tests/test-getopt.h (test_getopt): Fix condition.
29966         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29967         * tests/test-pipe2.c (main): Likewise.
29968         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29969
29970         utimens: fix broken m4 test
29971         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29972
29973 2010-10-28  Bruno Haible  <bruno@clisp.org>
29974
29975         posix_spawn*, getdtablesize: Relax license.
29976         * modules/posix_spawn (License): Change to LGPLv2+.
29977         * modules/posix_spawnp (License): Likewise.
29978         * modules/posix_spawn-internal (License): Likewise.
29979         * modules/posix_spawnattr_init (License): Likewise.
29980         * modules/posix_spawnattr_getflags (License): Likewise.
29981         * modules/posix_spawnattr_setflags (License): Likewise.
29982         * modules/posix_spawnattr_getpgroup (License): Likewise.
29983         * modules/posix_spawnattr_setpgroup (License): Likewise.
29984         * modules/posix_spawnattr_getschedparam (License): Likewise.
29985         * modules/posix_spawnattr_setschedparam (License): Likewise.
29986         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29987         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29988         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29989         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29990         * modules/posix_spawnattr_getsigmask (License): Likewise.
29991         * modules/posix_spawnattr_setsigmask (License): Likewise.
29992         * modules/posix_spawnattr_destroy (License): Likewise.
29993         * modules/posix_spawn_file_actions_init (License): Likewise.
29994         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29995         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29996         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29997         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29998         * modules/getdtablesize (License): Likewise.
29999         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
30000
30001 2010-10-26  Bruno Haible  <bruno@clisp.org>
30002
30003         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
30004         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
30005         Cygwin and mingw.
30006         Suggested by Eric Blake.
30007
30008 2010-10-26  Bruno Haible  <bruno@clisp.org>
30009
30010         stdio: Work around compilation error due to renameat() on Solaris 10.
30011         * lib/stdio.in.h: Include <unistd.h> on Solaris.
30012         * lib/renameat.c: Don't include <unistd.h> here.
30013         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
30014         Reported by Paul Eggert and Eric Blake.
30015
30016 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30017
30018         renameat: port to Solaris 10, which declares renameat in unistd.h
30019
30020         * lib/renameat.c: Include unistd.h before stdio.h, because
30021         Solaris 10 declares renameat in unistd.h.  Problem encountered
30022         when building GNU tar 1.24 on Solaris 10.
30023
30024 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30025
30026         fdopendir: fix C89 compilation
30027         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
30028         compilers.
30029
30030 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
30031
30032         inttostr: simplify by removing unnecessary redundancy
30033         * lib/anytostr.c: Don't include verify.h.
30034         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
30035         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
30036         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
30037         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
30038         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
30039         Likewise.
30040         * modules/inttostr (Depends-on): Remove 'verify'.
30041
30042 2010-10-23  Bruno Haible  <bruno@clisp.org>
30043
30044         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
30045         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
30046         Reported by Eric Blake.
30047
30048 2010-10-23  Bruno Haible  <bruno@clisp.org>
30049
30050         Tests: Fix LOCALE_JA on MirBSD 10.
30051         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
30052         to an UTF-8 locale.
30053         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
30054         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30055         Reported by Eric Blake.
30056
30057 2010-10-21  Bruno Haible  <bruno@clisp.org>
30058
30059         nl_langinfo test: Avoid test failure on NetBSD 5.
30060         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
30061         Reported by Eric Blake.
30062
30063 2010-10-21  Eric Blake  <eblake@redhat.com>
30064
30065         c-stack: work around libsigsegv 2.8 bug
30066         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
30067         overflow on at least PowerPC64.
30068
30069 2010-10-17  Bruno Haible  <bruno@clisp.org>
30070
30071         userspec: Drop redundant file.
30072         * modules/userspec (Files): Remove lib/inttostr.h.
30073
30074 2010-10-17  Bruno Haible  <bruno@clisp.org>
30075
30076         nl_langinfo tests: Silence some warnings.
30077         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
30078         Reported by Jim Meyering.
30079
30080 2010-10-17  Bruno Haible  <bruno@clisp.org>
30081
30082         Make use of GCC's attribute __alloc_size__.
30083         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
30084         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
30085         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
30086         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
30087         __alloc_size__.
30088         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30089         Suggested by Jim Meyering.
30090
30091 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
30092
30093         bootstrap: anchor .gitignore entries.
30094         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
30095         with...
30096         (insert_vc_ignore): ... this new function, which prepends `/' to
30097         all .gitignore entries before passing them to
30098         insert_sorted_if_absent.
30099
30100 2010-10-16  Bruno Haible  <bruno@clisp.org>
30101
30102         nextafter: Fix configure check.
30103         * modules/nextafter (configure.ac): Correct expected prototype.
30104
30105 2010-10-16  Bruno Haible  <bruno@clisp.org>
30106
30107         termios: Update documentation.
30108         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
30109
30110 2010-10-16  Bruno Haible  <bruno@clisp.org>
30111
30112         tests: Make them compile with TinyCC.
30113         * tests/test-strstr.c (main): Remove parentheses around array
30114         initializer.
30115
30116 2010-10-15  Eric Blake  <eblake@redhat.com>
30117
30118         ignore-value: make header idempotent
30119         * lib/ignore-value.h: Add double-inclusion guards.
30120         Reported by Stefan Berger.
30121
30122 2010-10-15  Jim Meyering  <meyering@redhat.com>
30123
30124         GNUmakefile: handle "stable" target, not "major"
30125         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
30126         lists in maint.mk and announce-gen.  Without this, "make stable"
30127         would fail to ensure that $(VERSION) is up to date.
30128
30129 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
30130
30131         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
30132         & co.
30133
30134 2010-10-14  Bruno Haible  <bruno@clisp.org>
30135
30136         vasnprintf: Don't set errno to 0.
30137         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
30138         block that sets it to 0.
30139         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
30140
30141 2010-10-14  Bruno Haible  <bruno@clisp.org>
30142
30143         socketlib: Fix.
30144         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
30145         gl_PREREQ_SYS_H_WINSOCK2.
30146         Reported by Ian Beckwith <ianb@erislabs.net>.
30147
30148 2010-10-13  Jim Meyering  <meyering@redhat.com>
30149
30150         test-select-stdin.c: avoid warn_unused_result warnings
30151         * tests/test-select-stdin.c: Include "macros.h".
30152         ASSERT that read and fflush succeed.
30153
30154 2010-10-13  Jim Meyering  <meyering@redhat.com>
30155
30156         git-version-gen: do require git-VC'd files in cwd
30157         * build-aux/git-version-gen: Reject a git version string
30158         if there are no commits associated with the current directory.
30159         This avoids an unlikely false-positive (unrelated dir whose parent
30160         repository also contains a tag matching v*), as pointed out
30161         by Giuseppe Scrivano in
30162         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
30163
30164 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30165
30166         argv-iter: omit nonconforming declaration
30167         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
30168         enum arg_iter_err declaration, which doesn't conform to C99.
30169         Solaris 10 cc warns about this.
30170
30171 2010-10-13  Eric Blake  <eblake@redhat.com>
30172
30173         termios: fix compilation on mingw
30174         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
30175         (gl_TERMIOS_H): Adjust it on mingw.
30176         * modules/termios (Makefile.am): Substitute new key.
30177         * lib/termios.in.h (includes): Make include_next conditional.
30178         * doc/posix-headers/termios.texi (termios.h): Update
30179         documentation.
30180         Reported by Daniel P. Berrange.
30181
30182 2010-10-13  Jim Meyering  <meyering@redhat.com>
30183
30184         git-version-gen: don't require that .git/ be in the current dir
30185         * build-aux/git-version-gen: Adjust this script so that it works
30186         when run from any working directory beneath the top-level .git/-
30187         containing directory.  Inspired by a patch from Giuseppe Scrivano,
30188         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
30189
30190         test-select: avoid warn_unused_result warnings
30191         * tests/test-select.c: Include "macros.h".
30192         ASSERT that each call to read, write, and pipe succeeds.
30193         While not technically required, also check each "close".
30194         * modules/select-tests (Files): Add tests/macros.h.
30195
30196         test-symlinkat: remove declaration of unused local
30197         * tests/test-symlinkat.c (main): Remove unused local, "buf".
30198
30199         test-inttostr: avoid shadowing warnings
30200         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
30201         and use malloc rather than the stack for the same reason as
30202         mentioned in the comment justifying the other allocation.
30203
30204 2010-10-11  Bruno Haible  <bruno@clisp.org>
30205
30206         stdlib: Allow multiple gnulib generated replacements to coexist.
30207         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30208         Reported by Sam Steingold <sds@gnu.org>.
30209
30210 2010-10-11  Jim Meyering  <meyering@redhat.com>
30211
30212         fix a documentation typo
30213         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30214
30215 2010-10-11  Eric Blake  <eblake@redhat.com>
30216
30217         futimens: work around Solaris 11 bug
30218         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30219         * tests/test-futimens.h (test_futimens): Enhance, rather than
30220         weaken test.
30221         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30222
30223 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30224
30225         Indentation.
30226         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30227         higher-level operators more to the left.
30228
30229 2010-10-11  Jim Meyering  <meyering@redhat.com>
30230
30231         test-futimens: avoid unwarranted test failure on Solaris 5.11
30232         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30233         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30234         because it tries to dereference the NULL name argument.
30235
30236 2010-10-11  Bruno Haible  <bruno@clisp.org>
30237
30238         Indentation.
30239         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30240         indentation.
30241
30242 2010-10-11  Jim Meyering  <meyering@redhat.com>
30243
30244         spawn.in.h: make indentation consistent with parentheses
30245         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30246         Make indentation consistent with parentheses.
30247
30248 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30249
30250         Fix mismatched parens in previous commit
30251         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30252         parens.
30253
30254 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30255
30256         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30257
30258         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30259         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30260         * lib/malloca.c: Include "verify.h".
30261         (verify1): Remove, replacing with a verify call.
30262         * lib/relocwrapper.c (verify1): Likewise.
30263         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30264         Likewise.
30265         * modules/malloca (Depends-on): Add 'verify'.
30266         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30267         * modules/vasnprintf (Depends-on): Add 'verify'.
30268         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30269         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30270         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30271         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30272         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30273         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30274         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30275
30276         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30277
30278         Formerly the style was sometimes 2*X - 1, because the C standard
30279         was wrongly thought to disallow ?: in integral constant expressions.
30280         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30281         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30282         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30283         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30284         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30285         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30286         verify that time_t cannot be floating.
30287
30288 2010-10-08  Eric Blake  <eblake@redhat.com>
30289
30290         time: enforce recent POSIX ruling that time_t is integral
30291         * lib/time.in.h (__time_t_must_be_integral): Detect any
30292         problematic systems, allowing the rest of gnulib to assume POSIX.
30293
30294 2010-10-08  Jim Meyering  <meyering@redhat.com>
30295
30296         fdopendir: fix a bug on systems lacking openat and /proc support
30297         OpenBSD 4.7 is one such system.  The most noticeable effect was
30298         failure of any application making nontrivial use of fts: rm, du,
30299         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30300           ./rm: traversal failed: `a': Bad file descriptor
30301         Debugging that, you see that even though FD 6 was closed just
30302         prior to the opendir call in fd_clone_opendir, its resulting
30303         dir->dd_fd was 8, rather than the expected value of 6:
30304
30305         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30306         93                close (fd);
30307         (gdb) n
30308         94                dir = fd_clone_opendir (dupfd);
30309         (gdb) n
30310         95                saved_errno = errno;
30311         (gdb) p dir->dd_fd
30312         $11 = 8
30313
30314         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30315         The problem is that on OpenBSD, fd_clone_opendir has to resort
30316         to using the old-style save/restore CWD mechanism, due to its
30317         lack of openat/proc support, and *that* would steal the FD (6)
30318         that opendir was supposed to use.
30319
30320         The fix is to squirrel away the desired FD so that save_cwd uses a
30321         different one, and then free the dest FD right before calling opendir.
30322         That guarantees opendir will use the required file descriptor.
30323
30324         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30325
30326 2010-10-08  Bruno Haible  <bruno@clisp.org>
30327
30328         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30329         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30330
30331 2010-10-08  Bruno Haible  <bruno@clisp.org>
30332
30333         nanosleep: Make replacement POSIX compliant.
30334         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30335         is out of range.
30336         Reported by Jim Meyering.
30337
30338 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30339
30340         bootstrap: add hook for altering gnulib.mk, for Bison
30341         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30342         the Bison bootstrapping process can rewrite file names and variables
30343         in this file before later parts of 'bootstrap' use the file.
30344         Bison wants to include lib/gnulib.mk from the top-level makefile,
30345         so it needs the file names in this file to be relative to the top
30346         level, not relative to lib; plus it needs variable names to be
30347         rewritten.
30348         (slurp): Use the new function.
30349
30350         bootstrap: reformat for readability
30351         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30352
30353 2010-10-08  Eric Blake  <eblake@redhat.com>
30354
30355         docs: update cygwin progress
30356         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30357         1.7.7.
30358         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30359         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30360         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30361         * doc/posix-functions/carg.texi (carg): Likewise.
30362         * doc/posix-functions/cargf.texi (cargf): Likewise.
30363         * doc/posix-functions/casin.texi (casin): Likewise.
30364         * doc/posix-functions/casinf.texi (casinf): Likewise.
30365         * doc/posix-functions/casinh.texi (casinh): Likewise.
30366         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30367         * doc/posix-functions/catan.texi (catan): Likewise.
30368         * doc/posix-functions/catanf.texi (catanf): Likewise.
30369         * doc/posix-functions/catanh.texi (catanh): Likewise.
30370         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30371         * doc/posix-functions/ccos.texi (ccos): Likewise.
30372         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30373         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30374         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30375         * doc/posix-functions/cexp.texi (cexp): Likewise.
30376         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30377         * doc/posix-functions/cimag.texi (cimag): Likewise.
30378         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30379         * doc/posix-functions/clog.texi (clog): Likewise.
30380         * doc/posix-functions/clogf.texi (clogf): Likewise.
30381         * doc/posix-functions/conj.texi (conj): Likewise.
30382         * doc/posix-functions/conjf.texi (conjf): Likewise.
30383         * doc/posix-functions/cpow.texi (cpow): Likewise.
30384         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30385         * doc/posix-functions/cproj.texi (cproj): Likewise.
30386         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30387         * doc/posix-functions/creal.texi (creal): Likewise.
30388         * doc/posix-functions/crealf.texi (crealf): Likewise.
30389         * doc/posix-functions/csin.texi (csin): Likewise.
30390         * doc/posix-functions/csinf.texi (csinf): Likewise.
30391         * doc/posix-functions/csinh.texi (csinh): Likewise.
30392         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30393         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30394         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30395         * doc/posix-functions/ctan.texi (ctan): Likewise.
30396         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30397         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30398         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30399         * doc/posix-headers/complex.texi (complex.h): Likewise.
30400
30401 2010-10-07  Jim Meyering  <meyering@redhat.com>
30402
30403         parse-datetime: avoid compilation failure on OpenBSD 4.7
30404         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30405         This works around a compilation failure on OpenBSD 4.7:
30406         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30407
30408 2010-10-07  Eric Blake  <eblake@redhat.com>
30409
30410         docs: update cygwin progress
30411         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30412         1.7.6.
30413         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30414         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30415         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30416         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30417         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30418         Likewise.
30419         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30420         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30421         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30422         Likewise.
30423         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30424         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30425         Likewise.
30426         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30427         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30428         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30429         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30430         Likewise.
30431         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30432         Likewise.
30433         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30434
30435         docs: update parse-datetime history
30436         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30437         documentation of this function's history and alternatives.
30438
30439         cygwin: use more robust version check
30440         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30441         exclude an eventual cygwin 1.9.1.
30442         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30443         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30444         (gl_FUNC_STRCASESTR): Likewise.
30445         Reported by Bruno Haible.
30446
30447 2010-10-06  Bruno Haible  <bruno@clisp.org>
30448
30449         string, sys_select: Avoid #including large headers unless necessary.
30450         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30451         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30452         OSF/1, BeOS, Haiku.
30453         Reported by Jim Meyering.
30454
30455 2010-10-05  Eric Blake  <eblake@redhat.com>
30456
30457         memmem, strstr, strcasestr: fix bug with long periodic needle
30458         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30459         periodic needle having false positive.
30460         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30461         and cygwin 1.7.7.
30462         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30464         (gl_FUNC_STRCASESTR): Likewise.
30465         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30466         * tests/test-memmem.c (main): Expose the bug.
30467         * tests/test-strcasestr.c (main): Likewise.
30468         * tests/test-strstr.c (main): Likewise.
30469         * tests/test-c-strcasestr.c (main): Likewise.
30470         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30471         * doc/posix-functions/strstr.texi (strstr): Likewise.
30472         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30473         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30474
30475 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30476
30477         parse-datetime: do some more renaming
30478         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30479         parse_datetime, not get_date.  Mention the renaming.
30480         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30481         in comments.
30482         * m4/bison.m4: Likewise.
30483
30484 2010-10-05  Eric Blake  <eblake@redhat.com>
30485
30486         parse-datetime: better name than get_date
30487         * NEWS: Reword the deprecation notice.
30488         * modules/get_date: Rename to modules/parse-datetime.
30489         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30490         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30491         * lib/get_date.y: Rename to lib/parse-datetime.y.
30492         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30493         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30494         * doc/getdate.texi: Provide fallback wrapper.
30495         * lib/getdate.h: Move guts, and wrap...
30496         * lib/parse-datetime.h: ...new file.
30497         * lib/parse-datetime.y (get_date): Rename...
30498         (parse_datetime): ...to this.
30499         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30500         (gl_PARSE_DATETIME): ...to this.
30501         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30502         documentation.
30503         * modules/getdate (Files): Provide fallback docs and header.
30504         (Notice, Depends-on): Update references.
30505         * tests/test-parse-datetime.c: Likewise.
30506         * DEPENDENCIES: Likewise.
30507         * MODULES.html.sh (Date and time <time.h>): Likewise.
30508         * doc/parse-datetime.texi (Date input formats)
30509         (Authors of parse_datetime): Likewise.
30510         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30511         (Include): Likewise.
30512         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30513         * gnulib-tool: Likewise.
30514         * m4/bison.m4 (gl_BISON): Likewise.
30515         Suggested by Bruno Haible.
30516
30517 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30518
30519         more ports to Solaris tr, which needs [] around ranges
30520         * gnulib-tool: Solaris tr needs [] around ranges.
30521         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30522         * tests/test-pipe-filter-gi1.c (main): Likewise.
30523         * tests/test-pipe-filter-ii1.c (main): Likewise.
30524
30525 2010-10-05  Eric Blake  <eblake@redhat.com>
30526
30527         bootstrap: fix Solaris regression
30528         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30529         around ranges.
30530         Reported by Pádraig Brady.
30531
30532         bootstrap: work with pkg-config
30533         * build-aux/bootstrap (check_versions): Also transliterate - in
30534         prerequisite name.
30535         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30536         prerequisites that were already found, to avoid confusion.
30537         Reported by Justin Clift.
30538
30539         faccessat: remove unused wrappers
30540         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30541         presence of these wrappers dragged in -lgen on Solaris.
30542         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30543
30544 2010-10-05  Jim Meyering  <meyering@redhat.com>
30545
30546         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30547         * Makefile (sc_pragma_columns): New syntax-check rule.
30548
30549 2010-10-04  Bruno Haible  <bruno@clisp.org>
30550
30551         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30552         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30553         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30554         Reported by Bruce Korb and Eric Blake.
30555
30556 2010-10-04  Bruno Haible  <bruno@clisp.org>
30557
30558         threadlib: Make option --with-libpth-prefix work.
30559         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30560         use $LIBPTH, not just -lpth.
30561
30562 2010-10-04  Bruno Haible  <bruno@clisp.org>
30563
30564         Avoid line length limitation from HP NonStop system header files.
30565         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30566         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30567         * lib/ctype.in.h: Likewise.
30568         * lib/dirent.in.h: Likewise.
30569         * lib/errno.in.h: Likewise.
30570         * lib/fcntl.in.h: Likewise.
30571         * lib/float.in.h: Likewise.
30572         * lib/getopt.in.h: Likewise.
30573         * lib/iconv.in.h: Likewise.
30574         * lib/inttypes.in.h: Likewise.
30575         * lib/langinfo.in.h: Likewise.
30576         * lib/locale.in.h: Likewise.
30577         * lib/math.in.h: Likewise.
30578         * lib/netdb.in.h: Likewise.
30579         * lib/netinet_in.in.h: Likewise.
30580         * lib/poll.in.h: Likewise.
30581         * lib/pthread.in.h: Likewise.
30582         * lib/pty.in.h: Likewise.
30583         * lib/sched.in.h: Likewise.
30584         * lib/se-selinux.in.h: Likewise.
30585         * lib/search.in.h: Likewise.
30586         * lib/signal.in.h: Likewise.
30587         * lib/spawn.in.h: Likewise.
30588         * lib/stdarg.in.h: Likewise.
30589         * lib/stddef.in.h: Likewise.
30590         * lib/stdint.in.h: Likewise.
30591         * lib/stdio.in.h: Likewise.
30592         * lib/stdlib.in.h: Likewise.
30593         * lib/string.in.h: Likewise.
30594         * lib/strings.in.h: Likewise.
30595         * lib/sys_file.in.h: Likewise.
30596         * lib/sys_ioctl.in.h: Likewise.
30597         * lib/sys_select.in.h: Likewise.
30598         * lib/sys_socket.in.h: Likewise.
30599         * lib/sys_stat.in.h: Likewise.
30600         * lib/sys_time.in.h: Likewise.
30601         * lib/sys_times.in.h: Likewise.
30602         * lib/sys_utsname.in.h: Likewise.
30603         * lib/sys_wait.in.h: Likewise.
30604         * lib/sysexits.in.h: Likewise.
30605         * lib/termios.in.h: Likewise.
30606         * lib/time.in.h: Likewise.
30607         * lib/unistd.in.h: Likewise.
30608         * lib/wchar.in.h: Likewise.
30609         * lib/wctype.in.h: Likewise.
30610         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30611         * modules/ctype (Makefile.am): Likewise.
30612         * modules/dirent (Makefile.am): Likewise.
30613         * modules/errno (Makefile.am): Likewise.
30614         * modules/fcntl-h (Makefile.am): Likewise.
30615         * modules/float (Makefile.am): Likewise.
30616         * modules/getopt-posix (Makefile.am): Likewise.
30617         * modules/iconv-h (Makefile.am): Likewise.
30618         * modules/inttypes (Makefile.am): Likewise.
30619         * modules/langinfo (Makefile.am): Likewise.
30620         * modules/locale (Makefile.am): Likewise.
30621         * modules/math (Makefile.am): Likewise.
30622         * modules/netdb (Makefile.am): Likewise.
30623         * modules/netinet_in (Makefile.am): Likewise.
30624         * modules/poll-h (Makefile.am): Likewise.
30625         * modules/pthread (Makefile.am): Likewise.
30626         * modules/pty (Makefile.am): Likewise.
30627         * modules/sched (Makefile.am): Likewise.
30628         * modules/search (Makefile.am): Likewise.
30629         * modules/selinux-h (Makefile.am): Likewise.
30630         * modules/signal (Makefile.am): Likewise.
30631         * modules/spawn (Makefile.am): Likewise.
30632         * modules/stdarg (Makefile.am): Likewise.
30633         * modules/stddef (Makefile.am): Likewise.
30634         * modules/stdint (Makefile.am): Likewise.
30635         * modules/stdio (Makefile.am): Likewise.
30636         * modules/stdlib (Makefile.am): Likewise.
30637         * modules/string (Makefile.am): Likewise.
30638         * modules/strings (Makefile.am): Likewise.
30639         * modules/sys_file (Makefile.am): Likewise.
30640         * modules/sys_ioctl (Makefile.am): Likewise.
30641         * modules/sys_select (Makefile.am): Likewise.
30642         * modules/sys_socket (Makefile.am): Likewise.
30643         * modules/sys_stat (Makefile.am): Likewise.
30644         * modules/sys_time (Makefile.am): Likewise.
30645         * modules/sys_times (Makefile.am): Likewise.
30646         * modules/sys_utsname (Makefile.am): Likewise.
30647         * modules/sys_wait (Makefile.am): Likewise.
30648         * modules/sysexits (Makefile.am): Likewise.
30649         * modules/termios (Makefile.am): Likewise.
30650         * modules/time (Makefile.am): Likewise.
30651         * modules/unistd (Makefile.am): Likewise.
30652         * modules/wchar (Makefile.am): Likewise.
30653         * modules/wctype (Makefile.am): Likewise.
30654
30655 2010-10-04  Bruno Haible  <bruno@clisp.org>
30656
30657         read-file tests: Avoid a test failure on NonStop Kernel.
30658         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30659         a regular file.
30660         Reported by Joachim Schmitz <schmitz@hp.com>.
30661
30662 2010-10-03  Bruno Haible  <bruno@clisp.org>
30663
30664         gnulib-tool: Fixes for --create-testdir with --libtool.
30665         * gnulib-tool (func_get_automake_snippet): Don't augment
30666         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30667         an executable.
30668         (func_create_testdir): Handle module 'alloca' like func_import.
30669         Reported by Bruce Korb <bruce.korb@gmail.com>.
30670
30671 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30672
30673         Avoid some lines longer than 80 characters.
30674         * lib/stdint.in.h: Break long comment lines.
30675         * lib/math.in.h: Likewise.
30676         (_GL_NUM_UINT_WORDS): New macro, for readability.
30677         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30678         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30679         * lib/stdlib.in.h: Likewise.
30680         * lib/spawn.in.h: Likewise.
30681         * lib/sys_socket.in.h: Update an URL.
30682         * lib/sys_stat.in.h: Break long line.
30683
30684 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30685
30686         Improve pmccabe2html.
30687         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30688         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30689         when the sources change. Remove the line in the HTML about "Used
30690         ranges" (which implied that there might be other unused ranges),
30691         rename "Resume" to "Summary" (easier to understand for more users).
30692         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30693         styles, and some unnecessary blank lines.
30694
30695 2010-10-03  Bruno Haible  <bruno@clisp.org>
30696             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30697
30698         acl: Add support for ACLs on NonStop Kernel.
30699         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30700         Check whether the function aclsort() exists.
30701         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30702         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30703         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30704         (acl_nontrivial [HAVE_ACLSORT]: New function.
30705         (file_has_acl): Implement for NonStop Kernel.
30706         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30707         (qset_acl): Implement for NonStop Kernel.
30708         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30709         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30710         (main): Implement for NonStop Kernel.
30711         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30712         Kernel. Handle this flavor.
30713         * tests/test-set-mode-acl.sh: Likewise.
30714         * tests/test-copy-acl.sh: Likewise.
30715         * tests/test-copy-file.sh: Likewise.
30716
30717 2010-10-03  Bruno Haible  <bruno@clisp.org>
30718
30719         Info about ACLs on NonStop Kernel.
30720         * doc/acl-resources.txt: Add info about NonStop Kernel.
30721         References by Joachim Schmitz <schmitz@hp.com>.
30722
30723 2010-10-02  Bruno Haible  <bruno@clisp.org>
30724
30725         Define missing EDQUOT on NonStop Kernel.
30726         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30727         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30728         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30729         missing.
30730         * doc/posix-headers/errno.texi: Mention the NSK bug.
30731         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30732         Reported by Joachim Schmitz <schmitz@hp.com>.
30733
30734 2010-10-02  Bruno Haible  <bruno@clisp.org>
30735
30736         Update doc for POSIX:2008.
30737         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30738         Update URL of POSIX specification.
30739
30740 2010-10-02  Bruno Haible  <bruno@clisp.org>
30741
30742         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30743         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30744         from gnulib, not from Automake.
30745
30746 2010-10-02  Bruno Haible  <bruno@clisp.org>
30747
30748         New module 'system-posix'.
30749         * modules/system-posix: New file.
30750         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30751         module is present.
30752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30753         GNULIB_SYSTEM_POSIX.
30754         * modules/stdlib (Depends-on): Remove sys_wait.
30755         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30756         * doc/posix-functions/system.texi: Mention the new module.
30757         * doc/posix-headers/stdlib.texi: Likewise.
30758         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30759         define test_sys_wait_macros to a no-op.
30760         Reported by Sam Steingold <sds@gnu.org>.
30761
30762 2010-09-30  Bruno Haible  <bruno@clisp.org>
30763
30764         More renaming from 'getdate' to 'get_date'.
30765         * doc/get_date.texi: Renamed from doc/getdate.texi.
30766         * modules/get_date (Files): Update.
30767         * MODULES.html.sh (Date and time <time.h>): Update.
30768         * DEPENDENCIES: Update.
30769         * gnulib-tool: Update comment.
30770         * m4/bison.m4 (gl_BISON): Likewise.
30771         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30772
30773 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30774
30775         bootstrap: support ACLOCAL_FLAGS during aclocal
30776         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30777         can add additional -I dir for third-party .m4 files.
30778
30779 2010-09-30  Eric Blake  <eblake@redhat.com>
30780
30781         bootstrap: use glibtoolize on MacOS
30782         * build-aux/bootstrap (check_versions): Convert libtool into
30783         libtoolize.
30784         (tool search): Move libtool check earlier, and look for
30785         glibtoolize for MacOS.
30786         (gnulib_tool_options): Auto-add --libtool when appropriate.
30787         Reported by Justin Clift.
30788
30789         poll: fix typo that broke test on MacOS
30790         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30791         Reported by Justin Clift.
30792
30793         getdate: rename to get_date
30794         Note: getdate.h is not renamed, to minimize client impact.
30795         * modules/getdate: Mark obsolete.  Move old contents...
30796         * modules/get_date: ...to new module name.
30797         * modules/getdate-tests: Move...
30798         * modules/get_date-tests: ...here.
30799         * m4/getdate.m4: Move...
30800         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30801         * lib/getdate.y: Move...
30802         * lib/get_date.y: ...here.
30803         * tests/test-getdate.c: Move...
30804         * tests/test-get_date.c: ...here.
30805         * doc/posix-functions/getdate.texi (getdate): Update name.
30806         * NEWS: Mention the change.
30807
30808 2010-09-29  Bruno Haible  <bruno@clisp.org>
30809
30810         Separate the module 'waitpid' from the module 'sys_wait'.
30811         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30812         present.
30813         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30814         gl_MODULE_INDICATOR_FOR_TESTS.
30815         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30816         * modules/sys_wait (Depends-on): Remove waitpid.
30817         (Makefile.am): Substitute GNULIB_WAITPID.
30818         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30819         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30820         signature only if the 'waitpid' module is present.
30821         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30822         * NEWS: Mention the change.
30823         * modules/grantpt (Depends-on): Add waitpid.
30824         * modules/wait-process (Depends-on): Likewise.
30825
30826 2010-09-29  Bruno Haible  <bruno@clisp.org>
30827
30828         More tests for module 'sys_wait'.
30829         * modules/sys_wait-c++-tests: New file.
30830         * tests/test-sys_wait-c++.cc: New file.
30831         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30832         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30833
30834 2010-09-29  Bruno Haible  <bruno@clisp.org>
30835
30836         New module 'waitpid'.
30837         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30838         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30839         Don't include <process.h>.
30840         (waitpid): Declare only, using modern idiom.
30841         * m4/waitpid.m4: New file.
30842         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30843         * modules/waitpid: New file.
30844         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30845         (Makefile.am): Update.
30846         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30847
30848 2010-09-28  Bruno Haible  <bruno@clisp.org>
30849
30850         poll: Assume ANSI C.
30851         * lib/poll.c (poll): Use an ANSI C declaration.
30852
30853 2010-09-28  Bruno Haible  <bruno@clisp.org>
30854
30855         poll-h: Create poll.h on all platforms.
30856         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30857         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30858         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30859         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30860         (gl_REPLACE_POLL_H): Don't set POLL_H.
30861         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30862         * modules/poll-h (Depends-on): Add include_next.
30863         (Makefile.am): Create poll.h unconditionally. Substitute also
30864         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30865
30866 2010-09-28  Bruno Haible  <bruno@clisp.org>
30867
30868         Tests for module 'poll-h'.
30869         * modules/poll-h-c++-tests: New file.
30870         * tests/test-poll-h-c++.cc: New file.
30871
30872         Tests for module 'poll-h'.
30873         * modules/poll-h-tests: New file.
30874         * tests/test-poll-h.c: New file.
30875
30876 2010-09-28  Bruno Haible  <bruno@clisp.org>
30877
30878         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30879         * modules/poll-h (Depends-on): Add 'extensions'.
30880
30881 2010-09-28  Bruno Haible  <bruno@clisp.org>
30882
30883         New module 'poll-h'.
30884         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30885         (poll): Use modern idiom.
30886         * modules/poll-h: New file.
30887         * modules/poll (Files): Remove lib/poll.in.h.
30888         (Depends-on): Add poll-h.
30889         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30890         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30891         * m4/poll_h.m4: New file.
30892         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30893         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30894         and invoke gl_REPLACE_POLL_H.
30895         * lib/poll.c: Use common idiom.
30896         * tests/test-poll.c: Likewise.
30897         * doc/posix-headers/poll.texi: Mention the poll-h module.
30898         Suggested by Eric Blake.
30899
30900 2010-09-26  Bruno Haible  <bruno@clisp.org>
30901
30902         sys_wait: Implement WSTOPSIG.
30903         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30904         Reported by Simon Josefsson.
30905
30906 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30907
30908         stdlib, sys_wait: Avoid compilation error on mingw.
30909         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30910
30911 2010-09-26  Bruno Haible  <bruno@clisp.org>
30912
30913         stdlib tests: Avoid code duplication.
30914         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30915         * modules/sys_wait-tests (Files): Likewise.
30916         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30917         * tests/test-stdlib.c: Include test-sys_wait.h.
30918         (main): Invoke test_sys_wait_macros.
30919         * tests/test-sys_wait.c: Include test-sys_wait.h.
30920         (main): Invoke test_sys_wait_macros.
30921
30922 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30923
30924         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30925         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30926         sure Windows sockets are working before calling getaddrinfo.
30927         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30928         * doc/gnulib.texi (Windows sockets): Fix typo.
30929
30930 2010-09-25  Bruno Haible  <bruno@clisp.org>
30931
30932         Tests for module 'regex-quote'.
30933         * modules/regex-quote-tests: New file.
30934         * tests/test-regex-quote.c: New file.
30935
30936         New module 'regex-quote'.
30937         * lib/regex-quote.h: New file.
30938         * lib/regex-quote.c: New file.
30939         * modules/regex-quote: New file.
30940         Suggested by Reuben Thomas <rrt@sc3d.org>.
30941
30942 2010-09-24  Bruno Haible  <bruno@clisp.org>
30943
30944         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30945         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30946
30947 2010-09-23  Bruno Haible  <bruno@clisp.org>
30948
30949         setenv: Relax license.
30950         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30951         Blake.
30952         Requested by Eric Blake.
30953
30954 2010-09-22  Bruno Haible  <bruno@clisp.org>
30955
30956         termios: Relax license.
30957         * modules/termios (License): Change to LGPLv2+.
30958         Requested by Eric Blake.
30959
30960 2010-09-22  Bruno Haible  <bruno@clisp.org>
30961
30962         threadlib: Allow the package to change the default to 'no'.
30963         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30964         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30965         Reported by Paul Eggert.
30966
30967 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30968             Bruno Haible  <bruno@clisp.org>
30969
30970         Fix endless loop in mbmemcasecoll.
30971         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30972         byte.
30973         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30974
30975 2010-09-22  Bruno Haible  <bruno@clisp.org>
30976
30977         Tests for module 'memcoll'.
30978         * modules/memcoll-tests: New file.
30979         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30980
30981         memcoll, xmemcoll: Clarify size vs. length.
30982         * modules/memcoll.c (memcoll0): Clarify specification.
30983         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30984         passed to collate_error.
30985
30986 2010-09-22  Bruno Haible  <bruno@clisp.org>
30987
30988         Tests for module 'memcasecmp'.
30989         * modules/memcasecmp-tests: New file.
30990         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30991
30992 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30993
30994         * lib/pthread.in.h: Add split double-inclusion guard, and include
30995         system <pthread.h> if there is one.  Use @@-style as in other
30996         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30997         pthread.h doesn't.
30998         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30999         (pthread_mutexattr_settype, pthread_mutex_trylock):
31000         New static inline functions, if there's no system <pthread.h>.
31001         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
31002         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
31003         Approximate with mutexes if the system lacks spinlocks, as in
31004         MacOS.
31005         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
31006         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
31007         @@-style.  Check for spinlocks separately.
31008         (gl_PTHREAD_DEFAULTS): New macro.
31009         * modules/pthread: Redo to use a more typical style for in.h files.
31010
31011 2010-09-21  Eric Blake  <eblake@redhat.com>
31012
31013         net_if: enhance tests
31014         * tests/test-net_if.c (main): Move signature checks earlier.
31015         Print failures to stderr.
31016         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
31017         Document the bug that we do not yet fix.
31018
31019 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31020
31021         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
31022         about gnulib, not GSS.
31023
31024 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31025
31026         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
31027         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
31028         for Emacs.
31029         * build-aux/pmccabe2html: Make Makefile.am example code more
31030         cut-and-paste friendly.
31031
31032 2010-09-21  Simon Josefsson  <simon@josefsson.org>
31033
31034         * tests/test-net_if.c: New file.
31035         * modules/net_if-tests: New file.
31036
31037 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31038
31039         pthread: add pthread_spin_destroy
31040         * lib/pthread.in.h (pthread_spin_destroy): New function.
31041
31042 2010-09-19  Bruno Haible  <bruno@clisp.org>
31043
31044         gnulib-tool: Fix --help output.
31045         * gnulib-tool (func_usage): Fix help message.
31046         Reported by Reuben Thomas <rrt@sc3d.org>.
31047
31048 2010-09-18  Jim Meyering  <meyering@redhat.com>
31049
31050         maint.mk: avoid unexpanded \n in two diagnostics
31051         * top/maint.mk (sc_prohibit_always_true_header_tests):
31052         Don't use a literal \n in a halt=... assignment.  It would not be
31053         expanded, and the two \n bytes would appear in the diagnostic output
31054         rather than the desired newline.  Use halt=$$(printf ... instead.
31055         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31056
31057 2010-09-18  Bruno Haible  <bruno@clisp.org>
31058
31059         netinet_in: Doc tweak.
31060         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
31061         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31062
31063 2010-09-18  Jim Meyering  <meyering@redhat.com>
31064
31065         init.sh: correct an outdated comment
31066         * tests/init.sh (create_exe_shims_):  s/function/alias/
31067
31068         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
31069         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
31070         a file named "*.exe" is removed between the glob expansion and the
31071         processing of that oddly named file.
31072
31073 2010-09-17  Eric Blake  <eblake@redhat.com>
31074
31075         mirbsd: add some more support
31076         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
31077         in BSD family.
31078         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
31079         devices as OpenBSD.
31080         * m4/host-os.m4 (mirbsd): Add MirBSD.
31081
31082         tests: fix unportable assumption on sys/wait.h
31083         * tests/test-sys_wait.c (main): Relax test.
31084         * tests/test-stdlib.c (main): Likewise.
31085
31086         init.sh: accommodate directory with no .exes
31087         * tests/init.sh: Accomodate directory containing only scripts.
31088
31089         tests: avoid compiler warning
31090         * tests/test-stdlib.c (main): Use the variable.
31091
31092         fdutimens, fdutimensat: update signature, again
31093         * lib/utimens.h (gl_futimens): Delete, and move signature...
31094         (fdutimens): ...here.
31095         (fdutimensat): Rearrange signature.
31096         (lutimensat): Rename variable for clarity.
31097         * lib/fdutimensat.c (fdutimensat): Update signature.
31098         * lib/utimens.c (fdutimens): Likewise.
31099         (gl_futimens): Delete.
31100         (utimens, lutimens): Update callers.
31101         * lib/futimens.c (futimens): Likewise.
31102         * tests/test-fdutimensat.c: Likewise.
31103         * tests/test-utimens.c: Likewise.
31104         * tests/test-futimens.h: Update comment.
31105         * NEWS: Mention this.
31106         Suggested by Paul Eggert.
31107
31108 2010-09-17  Bruno Haible  <bruno@clisp.org>
31109
31110         Take over the maintenance of some older macros from Autoconf.
31111         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
31112         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
31113         GNU Autoconf.
31114         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
31115         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
31116
31117 2010-09-17  Eric Blake  <eblake@redhat.com>
31118
31119         fdutimensat: drop atflag validation
31120         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
31121         with valid fd, to close a race scenario where futimens is
31122         unsupported and FILE was replaced by a symlink.
31123         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
31124         accordingly.
31125         Suggested by Paul Eggert.
31126
31127 2010-09-16  Bruno Haible  <bruno@clisp.org>
31128
31129         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
31130         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
31131
31132 2010-09-16  Bruno Haible  <bruno@clisp.org>
31133
31134         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
31135         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
31136         login_tty exists.
31137         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31138
31139 2010-09-16  Bruno Haible  <bruno@clisp.org>
31140
31141         login_tty: Make the replacement code work on BSD systems.
31142         * lib/login_tty.c: Include <sys/ioctl.h>.
31143         (login_tty): Use ioctl TIOCSCTTY when available.
31144         * modules/login_tty (Depends-on): Add sys_ioctl.
31145         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31146
31147 2010-09-16  Bruno Haible  <bruno@clisp.org>
31148
31149         login_tty: Stricter unit test.
31150         * modules/login_tty-tests (Depends-on): Add tcgetsid.
31151         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
31152         and tcgetsid() after login_tty.
31153         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31154
31155 2010-09-16  Bruno Haible  <bruno@clisp.org>
31156
31157         New module 'tcgetsid'.
31158         * lib/tcgetsid.c: New file.
31159         * m4/tcgetsid.m4: New file.
31160         * modules/tcgetsid: New file.
31161         * modules/termios (Depends-on): Add c++defs, warn-on-use.
31162         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
31163         GNULIB_TCGETSID, HAVE_TCGETSID.
31164         * lib/termios.in.h: Include <sys/types.h>.
31165         (tcgetsid): New declaration.
31166         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
31167         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
31168         * doc/posix-functions/tcgetsid.texi: Mention the new module.
31169         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
31170
31171 2010-09-16  Bruno Haible  <bruno@clisp.org>
31172
31173         Tests for module 'termios'.
31174         * modules/termios-c++-tests: New file.
31175         * modules/termios-tests: New file.
31176         * tests/test-termios-c++.cc: New file.
31177         * tests/test-termios.c: New file.
31178
31179         New module 'termios'.
31180         * modules/termios: New file.
31181         * lib/termios.in.h: New file.
31182         * m4/termios_h.m4: New file.
31183         * doc/posix-headers/termios.texi: Mention the new module.
31184
31185 2010-09-16  Eric Blake  <eblake@redhat.com>
31186
31187         fdutimensat: add an atflag parameter
31188         * lib/fdutimensat.c (fdutimensat): Add new parameter.
31189         * lib/utimens.h (fdutimensat): Update prototype.
31190         * tests/test-fdutimensat.c: Adjust test to match.
31191         * NEWS: Document the change.
31192         Suggested by Paul Eggert.
31193
31194 2010-09-16  Bruno Haible  <bruno@clisp.org>
31195
31196         Fix typos in comments.
31197         * lib/striconveh.h: Fix typo in comment.
31198         * lib/login_tty.c (login_tty): Likewise.
31199
31200 2010-09-15  Bruno Haible  <bruno@clisp.org>
31201
31202         stdlib: clarify MirBSD WEXITSTATUS bug
31203         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31204         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31205
31206 2010-09-15  Eric Blake  <eblake@redhat.com>
31207
31208         stdlib: work around MirBSD WEXITSTATUS bug
31209         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31210         * modules/stdlib (Depends-on): Add sys_wait.
31211         * tests/test-sys_wait.c (main): Enhance test.
31212         * tests/test-stdlib.c (main): Likewise.
31213         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31214
31215         docs: mention MacOS issue with WEXITSTATUS(constant)
31216         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31217         issue.
31218         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31219
31220         strnlen: add tests
31221         * modules/strnlen-tests: New file.
31222         * tests/test-strnlen.c: Likewise.
31223
31224 2010-09-14  Bruno Haible  <bruno@clisp.org>
31225
31226         unistr/base: Avoid link errors when module 'libunistring' is also used.
31227         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31228         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31229         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31230         Declare also when HAVE_LIBUNISTRING is set.
31231         Reported by Pádraig Brady <P@draigbrady.com>.
31232
31233 2010-09-14  Eric Blake  <eblake@redhat.com>
31234
31235         test-rawmemchr: make more robust
31236         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31237         (Depends-on, configure.ac): Add needed prerequisites to use it.
31238         * modules/memchr-tests (Files, Depends-on, configure.ac):
31239         Likewise, to avoid implicit reliance on memchr module prereqs.
31240         * tests/test-memchr.c (main): Ensure proper masking.
31241         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31242         reads.
31243
31244         memchr: detect glibc Alpha bug
31245         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31246         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31247         Alpha.
31248         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31249         * tests/test-memchr.c (main): Enhance test.
31250         Reported by Nelson H. F. Beebe.
31251
31252 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31253
31254         fts, getcwd, glob: audit for dirfd returning -1
31255         * lib/fts.c (opendir): Remove #define; no longer used.
31256         (opendirat): New arg PDIR_FD.  All callers changed.
31257         (fts_build, _opendir2): Use new opendirat to avoid the need for
31258         dirfd, or for checking whether dirfd returns a negative value.
31259         Don't use opendir; always use openat followed by fdopendir.
31260         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31261         it.
31262         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31263         returns -1 here.
31264         * modules/fts (Depends-on): Remove dirfd.
31265         * modules/getcwd (Depends-on): Likewise.
31266
31267 2010-09-13  Eric Blake  <eblake@redhat.com>
31268
31269         float: fix broken MirBSD header
31270         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31271         * doc/posix-headers/float.texi (float.h): Document it.
31272
31273 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31274
31275         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31276         * lib/fts.c (opendirat): New arg extra_flags.
31277         (__opendir2): Use it to avoid following symlinks when opening
31278         a directory, if symlinks are not supposed to be followed.  See
31279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31280
31281         fdopendir: preserve argument fd before returning
31282         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31283         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31284         (fdopendir): Use them, arranging for FD to be open to the same
31285         directory that it was when it started.  (It might be temporarily
31286         closed while fdopendir is running, so this not thread- or
31287         signal-safe.)  Be careful to do the right thing even when file
31288         descriptors are scarce and dup fails with errno == EMFILE.  See
31289         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31290
31291 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31292
31293         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31294         * NEWS: Document change.
31295         * m4/regex.m4: Disable test for regoff_t size.
31296
31297 2010-09-13  Jim Meyering  <meyering@redhat.com>
31298
31299         fts: don't operate on an invalid file descriptor after failed dup
31300         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31301         negative file descriptor.
31302
31303 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31304
31305         savedir: add streamsavedir, deprecate fdsavedir
31306         * NEWS: Mention deprecation of fdsavedir.
31307         * lib/savedir.c (streamsavedir): New extern function, whose name
31308         ends in "savedir" to be consistent with the others.  This differs
31309         from savedirstream in that it doesn't close its argument.  The
31310         next version of GNU tar will use this instead of fdsavedir, to
31311         avoid some race conditions and conserve file descriptors.
31312         (savedirstream): Reimplement as a wrapper around streamsavedir.
31313         (fdsavedir): Add a comment deprecating this function.  As far as
31314         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31315         * lib/savedir.h (streamsavedir): New decl.
31316         (fdsavedir): Add a comment deprecating this.
31317
31318 2010-09-10  Bruno Haible  <bruno@clisp.org>
31319
31320         langinfo: Fix last commit.
31321         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31322         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31324
31325 2010-09-10  Bruno Haible  <bruno@clisp.org>
31326
31327         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31328         * lib/progreloc.c (O_EXEC): Define fallback.
31329
31330 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31331
31332         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31333         * NEWS: Document recent changes to fcntl-h.
31334         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31335         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31336         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31337         Similarly for O_SEARCH; this last was already true, but not documented.
31338         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31339         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31340         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31341         Likewise.
31342         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31343         is zero, not whether it is defined.
31344         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31345         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31346         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31347
31348 2010-09-10  Bruno Haible  <bruno@clisp.org>
31349
31350         langinfo, nl_langinfo: Fix for IRIX 5.3.
31351         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31352         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31353         HAVE_LANGINFO_YESEXPR.
31354         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31355         HAVE_LANGINFO_YESEXPR.
31356         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31357         HAVE_LANGINFO_T_FMT_AMPM is 0.
31358         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31359         HAVE_LANGINFO_YESEXPR is 0.
31360         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31361         NOEXPR.
31362         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31363         * doc/posix-functions/nl_langinfo.texi: Likewise.
31364         Reported by Eric Blake.
31365
31366 2010-09-10  Bruno Haible  <bruno@clisp.org>
31367
31368         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31369         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31370         on FreeBSD 8.0 and OpenBSD 4.6.
31371         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31372         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31373         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31374         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31375         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31376         ac_includes_default.
31377         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31378
31379 2010-09-09  Eric Blake  <eblake@redhat.com>
31380
31381         strsignal: work around NetBSD bug
31382         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31383         * lib/string.in.h (includes): Likewise.
31384         * doc/posix-functions/strsignal.texi (strsignal): Document the
31385         bug.
31386         Reported by Nelson H. F. Beebe.
31387
31388         gnulib-tool: work with NetBSD /bin/sh
31389         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31390         (func_get_description, func_get_comment, func_get_status)
31391         (func_get_notice, func_get_applicability, func_get_filelist)
31392         (func_get_dependencies, func_get_autoconf_early_snippet)
31393         (func_get_autoconf_snippet, func_get_automake_snippet)
31394         (func_get_include_directive, func_get_link_directive)
31395         (func_get_license, func_get_maintainer, func_import): Avoid
31396         shell syntax errors from parsing syntax extensions.
31397
31398 2010-09-09  Bruno Haible  <bruno@clisp.org>
31399
31400         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31401         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31402         a reliable way to determine whether the 'alias' command works.
31403
31404 2010-09-08  Jim Meyering  <meyering@redhat.com>
31405
31406         init.sh: penalize a set-x-impaired shell; don't disqualify it
31407         * tests/init.sh: Too many shells corrupt application stderr when
31408         you set -x, so we can't afford to disqualify them, since at least
31409         on Irix-6.5, that would disqualify all bourne shells.
31410         Instead, use a two-pass approach.
31411         On the first pass, try to find a shell that meets the stricter
31412         condition that set -x does not corrupt stderr.
31413         If no shell meets the stricter condition, retest each candidate
31414         shell, but without that extra condition.  Finally, when
31415         VERBOSE=yes is requested and set -x might cause trouble, simply
31416         issue a warning and refrain from enabling debug output.
31417
31418 2010-09-08  Eric Blake  <eblake@redhat.com>
31419
31420         unsetenv: fix OpenBSD bug
31421         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31422         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31423         documentation.
31424         Reported by Jim Meyering.
31425
31426         strtod: work around IRIX 6.5 bug
31427         * lib/strtod.c (strtod): Reparse number on shorter string if
31428         exponent parse was invalid.
31429         * tests/test-strtod.c (main): Add check for "0x1p 2".
31430         Reported by Tom G. Christensen.
31431
31432         getopt: optimize previous patch
31433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31434         empty variable.  Speed up awk script.
31435         Reported by Paolo Bonzini.
31436
31437 2010-09-08  Jim Meyering  <meyering@redhat.com>
31438
31439         test.sh: disqualify shells for which set -x corrupts stderr
31440         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31441         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31442         appear in stderr output.  For example, this command:
31443             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31444         prints "P=1" on those two systems:
31445
31446 2010-09-08  Bruno Haible  <bruno@clisp.org>
31447
31448         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31449         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31450         commands, because some shells ignore redirections when there is an
31451         error in the command lookup.
31452         Reported by Eric Blake.
31453
31454 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31455
31456         * lib/regex.h: Fix a mention of `regex_compile' (should be
31457         `re_compile_pattern').
31458         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31459         (re_set_registers): Correct name of parameter in comment.
31460
31461         * doc/regex.texi: Add documentation for missing syntax flags.
31462         Remove commented-out documentation of defunct syntax option
31463         RE_NO_EMPTY_ALTS.
31464         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31465         Add documentation of re_set_registers.
31466         Document trick to re-use a pattern buffer by setting fastmap manually.
31467         Update documentation of struct re_pattern_buffer per public members.
31468         Uncomment documentation of equivalence class operators and
31469         collating symbol operators, since they are now implemented,
31470         Explain leftmost-longest matching in relation to alternatives.
31471         Tidy documentation of substring matching.
31472         Remove POSIX documentation, which is done better in
31473         glibc, and refer the reader there. Keep BSD API documentation, as
31474         that is not readily available elsewhere.
31475
31476 2010-09-07  Eric Blake  <eblake@redhat.com>
31477
31478         getopt: handle POSIXLY_CORRECT set but not exported
31479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31480         export state of POSIXLY_CORRECT, due to bash set -o posix.
31481         Reported by Dustin J. Mitchell.
31482
31483 2010-09-05  Bruno Haible  <bruno@clisp.org>
31484
31485         gnulib-tool: Highlight the changed options.
31486         * gnulib-tool (func_usage): Display the --import, --add-import,
31487         --remove-import explanations in bold font.
31488
31489 2010-09-06  Karl Berry  <karl@gnu.org>
31490
31491         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31492
31493 2010-09-05  Bruno Haible  <bruno@clisp.org>
31494
31495         uniwidth/width: Update comment.
31496         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31497         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31498
31499 2010-09-05  Bruno Haible  <bruno@clisp.org>
31500
31501         isinf, isnan: Relax license.
31502         * modules/isinf (License): Change from GPL to LGPL, with consent from
31503         Ben Pfaff.
31504         * modules/isnan (License): Likewise.
31505         Requested by Ludovic Courtès.
31506
31507 2010-09-04  Bruno Haible  <bruno@clisp.org>
31508
31509         gnulib-tool: Help migration from --import to --add-import or --update.
31510         * gnulib-tool: Emit a verbose error message when --import is used
31511         without any module name.
31512
31513 2010-09-04  Bruno Haible  <bruno@clisp.org>
31514
31515         Update doc about gnulib-tool.
31516         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31517         'gnulib-tool --update' in more detail.
31518         Reported by Eric Blake.
31519
31520 2010-09-04  Bruno Haible  <bruno@clisp.org>
31521
31522         gnulib-tool: Change --import. New options --add/remove-import.
31523         * gnulib-tool: New options --add-import, --remove-import.
31524         (func_usage): Document them.
31525         (have_associative): Define always.
31526         (func_import): In import mode, don't merge the specified settings with
31527         the cached settings. Implement remove-import mode.
31528         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31529         Explain when to use them versus --import.
31530         (Simple update): Use --add-import instead of --import.
31531         * NEWS: Mention the change.
31532
31533 2010-09-04  Bruno Haible  <bruno@clisp.org>
31534
31535         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31536         separate gnulib.mk.
31537
31538 2010-09-04  Bruno Haible  <bruno@clisp.org>
31539
31540         gnulib-tool: Don't talk about CVS any more.
31541         * gnulib-tool (func_usage, func_import): Write "version control"
31542         instead of CVS.
31543
31544 2010-09-04  Jim Meyering  <meyering@redhat.com>
31545
31546         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31547         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31548         false positives (whose names may be ill-chosen) when searching
31549         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31550         would cause a false-positive.
31551
31552         avoid coreutils "make distcheck" failure
31553         Coreutils tests with an absolute build directory name that contains
31554         a space.  Not quoting this directory name caused a failure.
31555         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31556         * tests/test-vc-list-files-cvs.sh: Likewise.
31557
31558 2010-09-04  Bruno Haible  <bruno@clisp.org>
31559
31560         gnulib-tool: Avoid error when run in a package without Makefile.am.
31561         * gnulib-tool: When collecting the m4dirs in a package that does not
31562         have a Makefile.am, eliminate those directories that contain no
31563         gnulib-cache.m4. Fix expression that counts these directories.
31564
31565 2010-09-04  Bruno Haible  <bruno@clisp.org>
31566
31567         update-copyright test: Improve output when perl is missing or too old.
31568         * tests/test-update-copyright.sh: Move test of Perl version down after
31569         the test whether Perl exists. Provide an explanation relating Perl's
31570         error message to Automake's SKIP: message.
31571
31572 2010-09-04  Bruno Haible  <bruno@clisp.org>
31573
31574         Don't augment PATH in TESTS_ENVIRONMENT.
31575         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31576         set abs_aux_dir instead of augmenting PATH.
31577         * modules/vc-list-files-tests (Makefile.am): Likewise.
31578         * tests/test-update-copyright.sh: Augment PATH here.
31579         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31580         path_prepend_.
31581         * tests/test-vc-list-files-git.sh: Likewise.
31582
31583 2010-09-04  Jim Meyering  <meyering@redhat.com>
31584
31585         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31586         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31587
31588 2010-09-04  Bruno Haible  <bruno@clisp.org>
31589
31590         strdup: Fix compilation error in C++ mode.
31591         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31592         the macro.
31593
31594 2010-09-04  Bruno Haible  <bruno@clisp.org>
31595
31596         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31597         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31598         macro into a function.
31599         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31600
31601 2010-09-04  Bruno Haible  <bruno@clisp.org>
31602
31603         Set PATH_SEPARATOR the same way autoconf does.
31604         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31605         the value of PATH_SEPARATOR the same way autoconf-generated configure
31606         scripts do.
31607         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31608         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31609
31610 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31611
31612         Set PATH_SEPARATOR the same way autoconf does.
31613         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31614         the same way autoconf-generated configure scripts do.
31615         * posix-modules: Likewise.
31616
31617 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31618
31619         hash: fix safe_hasher const typo
31620         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31621         const; otherwise, there is a type error later.
31622
31623 2010-09-02  Jim Meyering  <meyering@redhat.com>
31624
31625         test-update-copyright.sh: require perl 5.8.0
31626         * tests/test-update-copyright.sh: Require 5.8.0,
31627         which Tom G. Christensen has confirmed is adequate,
31628         while 5.6.1 is not.
31629
31630 2010-09-02  Eric Blake  <eblake@redhat.com>
31631
31632         tests: init.sh improvements for re-exec'ing with zsh
31633         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31634         -vx through shell re-exec.
31635         Reported by Tom G. Christensen.
31636
31637         wctype: fix typo in previous commit
31638         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31639         Reported by Ludovic Courtès.
31640
31641 2010-09-02  Jim Meyering  <meyering@redhat.com>
31642
31643         test-update-copyright.sh: skip test if Perl is too old
31644         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31645         Reported by Tom G. Christensen.
31646
31647 2010-09-02  Bruno Haible  <bruno@clisp.org>
31648
31649         wctype: Avoid compilation error on IRIX 6.5.30.
31650         * lib/wctype.in.h (iswblank): Declare with a replacement if
31651         REPLACE_ISWBLANK is set.
31652         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31653         declared. Set REPLACE_ISWBLANK.
31654         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31655         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31656         * doc/posix-headers/wctype.texi: Likewise.
31657         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31658
31659 2010-09-01  Bruno Haible  <bruno@clisp.org>
31660
31661         New module 'socketlib'.
31662         * modules/socketlib: New file.
31663         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31664         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31665         * modules/sockets (Depends-on): Add socketlib.
31666         Suggested by Sam Steingold <sds@gnu.org>.
31667
31668 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31669
31670         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31671
31672         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31673         when one needs search access to a directory but not read access.
31674         On systems where it is available, it works in some cases where
31675         O_RDONLY does not, namely on directories that are searchable but
31676         not readable, and which need only to be searchable.  If O_SEARCH
31677         is not available, fall back to the traditional method of using
31678         O_RDONLY.
31679
31680         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31681         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31682         when opening a directory that needs only to be searchable.
31683         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31684         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31685         * lib/openat-proc.c (openat_proc_name): Likewise.
31686         * lib/openat.c (openat_needs_fchdir): Likewise.
31687         * lib/save-cwd.c (save_cwd): Likewise.
31688         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31689
31690 2010-08-28  Bruno Haible  <bruno@clisp.org>
31691
31692         New module 'host-cpu-c-abi'.
31693         * modules/host-cpu-c-abi: New file.
31694         * m4/host-cpu-c-abi.m4: New file, based on part of
31695         clisp/src/m4/general.m4.
31696         Requested by Sam Steingold <sds@gnu.org>.
31697
31698 2010-08-31  Eric Blake  <eblake@redhat.com>
31699         and Jim Meyering  <meyering@redhat.com>
31700
31701         hash: factor, and guard against misbehaving hasher function
31702         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31703         of table->hasher's return value.  Also protect against a hash value
31704         so large that adding it to table->bucket results in a NULL pointer.
31705         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31706         Use it in place of open-coded check-and-abort.
31707
31708 2010-08-30  Bruno Haible  <bruno@clisp.org>
31709
31710         hash: silence spurious clang warning
31711         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31712         Reported by Eric Blake.
31713
31714 2010-08-30  Eric Blake  <eblake@redhat.com>
31715
31716         strstr, memmem, strcasestr: avoid leaked shell message
31717         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31718         FreeBSD.
31719         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31720         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31721
31722         tests: silence clang warning
31723         * tests/test-malloca.c (do_allocation): Avoid dead store.
31724
31725 2010-08-29  Bruno Haible  <bruno@clisp.org>
31726
31727         gettext: Fix recent mistake.
31728         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31729
31730 2010-08-29  Bruno Haible  <bruno@clisp.org>
31731
31732         selinux-h: Offer a --without-selinux option.
31733         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31734         --without-selinux was specified, skip all tests and define
31735         HAVE_SELINUX_SELINUX_H to 0.
31736         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31737         set LIB_SELINUX to empty.
31738         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31739         gl_LIBSELINUX. If --without-selinux was specified, replace
31740         selinux/context.h.
31741         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31742
31743 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31744             Bruno Haible  <bruno@clisp.org>
31745
31746         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31747         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31748         of HAVE_REALLOC.
31749         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31750         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31751         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31752         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31753
31754 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31755             Bruno Haible  <bruno@clisp.org>
31756
31757         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31758         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31759         HAVE_CALLOC.
31760         * lib/xmalloc.c: Update accordingly.
31761         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31762         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31763         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31764
31765 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31766             Bruno Haible  <bruno@clisp.org>
31767
31768         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31769         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31770         HAVE_MALLOC.
31771         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31772         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31773         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31774
31775 2010-08-29  Bruno Haible  <bruno@clisp.org>
31776
31777         Update modules list.
31778         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31779         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31780         (String handling <string.h>): Add astrxfrm.
31781         (File system functions): Add readlinkat.
31782
31783 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31784
31785         Tests for module 'realloc-gnu'.
31786         * modules/realloc-gnu-tests: New file.
31787         * tests/test-realloc-gnu.c: New file.
31788
31789         Tests for module 'calloc-gnu'.
31790         * modules/calloc-gnu-tests: New file.
31791         * tests/test-calloc-gnu.c: New file.
31792
31793         Tests for module 'malloc-gnu'.
31794         * modules/malloc-gnu-tests: New file.
31795         * tests/test-malloc-gnu.c: New file.
31796
31797 2010-08-28  Bruno Haible  <bruno@clisp.org>
31798
31799         Rename module 'realloc' -> 'realloc-gnu'.
31800         * modules/realloc-gnu: New file, copied from modules/realloc.
31801         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31802         obsolete.
31803         * modules/mgetgroups (Depends-on): Update.
31804         * doc/posix-functions/realloc.texi: Update.
31805         * NEWS: Mention the change.
31806
31807         Rename module 'calloc' -> 'calloc-gnu'.
31808         * modules/calloc-gnu: New file, copied from modules/calloc.
31809         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31810         obsolete.
31811         * doc/posix-functions/calloc.texi: Update.
31812         * NEWS: Mention the change.
31813
31814         Rename module 'malloc' -> 'malloc-gnu'.
31815         * modules/malloc-gnu: New file, copied from modules/malloc.
31816         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31817         obsolete.
31818         * modules/argp (Depends-on): Update.
31819         * modules/regex (Depends-on): Update.
31820         * doc/posix-functions/malloc.texi: Update.
31821         * NEWS: Mention the change.
31822
31823 2010-08-28  Eric Blake  <eblake@redhat.com>
31824
31825         pread, pwrite: add missing dependency
31826         * modules/pread (Depends-on): Add extensions.
31827         * modules/pwrite (Depends-on): Likewise.
31828
31829 2010-08-28  Bruno Haible  <bruno@clisp.org>
31830
31831         unistr/u*-strchr: Fix tests dependencies.
31832         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31833         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31834         Reported by Ian Beckwith <ianb@erislabs.net>.
31835
31836 2010-08-28  Bruno Haible  <bruno@clisp.org>
31837
31838         read-file: Don't occupy too much unused memory.
31839         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31840
31841 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31842             Eric Blake  <eblake@redhat.com>
31843             Bruno Haible  <bruno@clisp.org>
31844
31845         read-file: Avoid memory reallocations with regular files.
31846         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31847         (fread_file): With regular files, use the remaining length as the
31848         initial buffer size.  Check against overflow.
31849         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31850         sys_stat.
31851
31852 2010-08-28  Bruno Haible  <bruno@clisp.org>
31853
31854         ftello: Relax license.
31855         * modules/ftello (License): Relax to LGPLv2+.
31856         Reported by Eric Blake.
31857
31858 2010-08-28  Bruno Haible  <bruno@clisp.org>
31859
31860         Avoid relocwrapper link errors due to gnulib replacement functions.
31861         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31862         function.
31863         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31864
31865 2010-08-28  Bruno Haible  <bruno@clisp.org>
31866
31867         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31868         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31869         defined.
31870         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31871         Suggested by Eric Blake.
31872
31873 2010-08-28  Bruno Haible  <bruno@clisp.org>
31874
31875         sys_socket, netdb: Ensure socklen_t gets defined.
31876         * modules/sys_socket (Depends-on): Add socklen.
31877         * modules/netdb (Depends-on): Likewise.
31878         * modules/getaddrinfo (Depends-on): Remove socklen.
31879         * modules/getsockopt (Depends-on): Likewise.
31880         * modules/setsockopt (Depends-on): Likewise.
31881         * tests/test-sys_socket.c: Check that socklen_t is defined.
31882         * tests/test-netdb.c: Likewise.
31883         * m4/socklen.m4: Update comments.
31884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31885
31886 2010-08-27  Eric Blake  <eblake@redhat.com>
31887
31888         login_tty: add missing dependency
31889         * modules/login_tty (Depends-on): Add pty.
31890
31891 2010-08-26  Eric Blake  <eblake@redhat.com>
31892
31893         lib-symbol-versions: fix m4 quoting
31894         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31895         format for AC_LINK_IFELSE.
31896
31897         glob: fix compile test
31898         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31899
31900         btowc: fix missing file
31901         * modules/btowc (Files): Also ship locale-fr.m4.
31902
31903         lseek: fix link test
31904         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31905         AC_LINK_IFELSE.
31906
31907         include_next: silence autoconf 2.68 warning
31908         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31909         AC_COMPILE_IFELSE as special.
31910         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31911         autoconf < 2.68.
31912
31913         acl: fix compilation test
31914         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31915         AC_COMPILE_IFELSE.
31916
31917 2010-08-26  Bruno Haible  <bruno@clisp.org>
31918
31919         Modernize AC_TRY_RUN invocations.
31920         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31921         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31922         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31923         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31924         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31925         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31926         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31927         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31928         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31929         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31930         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31931         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31932         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31933         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31934         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31935         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31936         gl_MBRLEN_NUL_RETVAL): Likewise.
31937         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31938         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31939         Likewise.
31940         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31941         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31942         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31943         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31944         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31945         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31946         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31947         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31948         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31949         Likewise.
31950         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31951         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31953         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31955         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31956         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31957         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31958         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31960
31961 2010-08-26  Bruno Haible  <bruno@clisp.org>
31962
31963         Modernize AC_TRY_LINK invocations.
31964         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31965         AC_TRY_LINK.
31966         * m4/argp.m4 (gl_ARGP): Likewise.
31967         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31968         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31969         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31970         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31971         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31972         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31973         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31974         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31975         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31976         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31977         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31978         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31979         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31980         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31981         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31982         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31983         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31984         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31985         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31986         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31987         Likewise.
31988         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31989         Likewise.
31990         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31991         Likewise.
31992         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31993         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31994         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31995         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31996         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31997         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31998         * m4/servent.m4 (gl_SERVENT): Likewise.
31999         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32000         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32001         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32002         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32003         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32004         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32005         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32006         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32007         * modules/tsearch-tests (configure.ac): Likewise.
32008
32009 2010-08-26  Bruno Haible  <bruno@clisp.org>
32010
32011         Modernize AC_TRY_COMPILE invocations.
32012         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
32013         AC_TRY_COMPILE.
32014         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
32015         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
32016         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32017         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
32018         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32019         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32020         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32021         * m4/lock.m4 (gl_LOCK): Likewise.
32022         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
32023         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32024         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
32025         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32026         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32027         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
32028         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32029         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
32030         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32031         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32032         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32033         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32034         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
32035         extraneous semicolon.
32036
32037 2010-08-26  Jim Meyering  <meyering@redhat.com>
32038
32039         stat-time: relax license LGPL
32040         * modules/stat-time (License): Change from GPL to LGPL,
32041         with consent from all contributors, for use in libguile.
32042         Requested by Ludovic Courtès.
32043
32044 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
32045
32046         poll: return immediately on POLLHUP.
32047         * lib/poll.c (poll): Always set timeout before wait_timeout is
32048         computed.
32049
32050 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32051
32052         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
32053         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
32054         rmdir ("dir/.//"), unlinkat.
32055
32056 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32057
32058         stdbool: avoid spurious failure with modern xlc
32059         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32060
32061 2010-08-24  Bruno Haible  <bruno@clisp.org>
32062
32063         getloadavg: simplify code
32064         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
32065         gl_have_func. Update comments.
32066
32067 2010-08-24  Eric Blake  <eblake@redhat.com>
32068
32069         getloadavg: don't define SVR4 on cygwin
32070         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
32071         only define SVR4 when -lkvm is required.
32072         Reported by Yaakov Selkowitz.
32073
32074 2010-08-24  Bruno Haible  <bruno@clisp.org>
32075
32076         priv-set: fix comment
32077         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
32078
32079 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32080
32081         priv-set: fix comments
32082         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
32083         to match code, as suggested by David Bartley in:
32084         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
32085
32086 2010-08-23  Eric Blake  <eblake@redhat.com>
32087
32088         stdbool: avoid rejecting clang
32089         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32090         * tests/test-stdbool.c: Enable more tests if using the system
32091         <stdbool.h> instead of the gnulib replacement.
32092         (main): Move xlc bug test to a runtime test for all compilers.
32093         Reported by Anders Kaseorg.
32094
32095         argz: fix shell quoting issue
32096         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
32097         Reported by Charles Wilson.
32098
32099 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
32100             Erik Faye-Lund <kusmabite@gmail.com>
32101
32102         poll, select: handle ERROR_BROKEN_PIPE.
32103         * lib/poll.c (win32_compute_revents): Return POLLHUP when
32104         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32105         * lib/select.c (win32_compute_revents): Do not mark a pipe
32106         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32107
32108 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
32109
32110         fts: allow compilation with C++
32111         * lib/fts_.h: Specify extern "C" linkage with C++.
32112
32113 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32114
32115         Fix gnulib-tool sed script de-commentation for AIX sed.
32116         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
32117         sed.
32118
32119 2010-08-17  Eric Blake  <eblake@redhat.com>
32120
32121         test-stddef: test for (some) offsetof bugs
32122         * tests/test-stddef.c: Enhance test to ensure correct type of
32123         offsetof.
32124         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
32125         that we are not fixing at this time.
32126
32127 2010-08-15  Bruno Haible  <bruno@clisp.org>
32128
32129         stpncpy: Allow stpncpy to be defined as a macro.
32130         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
32131         if it's already correctly declared.
32132         * lib/string.in.h (stpncpy): Undefine before redefining.
32133         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
32134
32135 2010-08-14  Bruno Haible  <bruno@clisp.org>
32136
32137         Rename module 'memxfrm' to 'amemxfrm'.
32138         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
32139         (amemxfrm): Renamed from memxfrm.
32140         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
32141         (amemxfrm): Renamed from memxfrm.
32142         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
32143         * NEWS: Mention the change.
32144         * MODULES.html.sh (String handling <string.h>): Update.
32145         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
32146         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
32147         * lib/unicase/u16-casexfrm.c: Likewise.
32148         * lib/unicase/u32-casexfrm.c: Likewise.
32149         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
32150         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
32151         * lib/uninorm/u16-normxfrm.c: Likewise.
32152         * lib/uninorm/u32-normxfrm.c: Likewise.
32153         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
32154         memxfrm.
32155         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
32156         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
32157         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
32158         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
32159         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
32160         Suggested by Paul Eggert.
32161
32162 2010-08-14  Bruno Haible  <bruno@clisp.org>
32163
32164         Tests for module 'astrxfrm'.
32165         * modules/astrxfrm-tests: New file.
32166         * tests/test-astrxfrm.c: New file.
32167
32168         New module 'astrxfrm'.
32169         * lib/astrxfrm.h: New file.
32170         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
32171         * modules/astrxfrm: New file.
32172
32173 2010-08-14  Reuben Thomas <rrt@sc3d.org>
32174
32175         regex: Tweak doc.
32176         * doc/regex.texi (Overview): Don't mention regex.c.
32177         (GNU Regular Expression Compiling): Likewise.
32178         (Match-end-of-line Operator): Mention 'not_eol'.
32179
32180 2010-08-14  Brian Gough  <bjg@gnu.org>
32181             Bruno Haible  <bruno@clisp.org>
32182
32183         git-merge-changelog: add doc relating to use with bzr and hg.
32184         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
32185
32186 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
32187
32188         pthread: fix pthread.h creation for srcdir != builddir
32189         * modules/pthread (Makefile.am): Fix the rule to work also in a
32190         non-srcdir build.
32191
32192 2010-08-13  Karl Berry  <karl@gnu.org>
32193
32194         * doc/regex.texi (Predefined Syntaxes): @smallexample.
32195         * doc/posix-*/*: force line break before @url of POSIX
32196         specifications.
32197         Suggested by Werner Lemberg.
32198
32199 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32200
32201         strtod: fix const diagnostic
32202         * lib/strtod.c (strtod): Don't assign const char * to char *,
32203         as this elicits a warning from GCC when warnings are enabled.
32204
32205 2010-08-10  Pádraig Brady <P@draigbrady.com>
32206         and Eric Blake  <eblake@redhat.com>
32207
32208         copy-acl: ignore ENOTSUP on HP-UX
32209         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32210         so that it is available for HP-UX.
32211         * lib/copy-acl.c (qcopy_acl): Use it.
32212         Reported by Patrick M. Callahan.
32213
32214 2010-08-10  Eric Blake  <eblake@redhat.com>
32215
32216         open, chown: relax license
32217         * modules/open (License): Change to LGPLv2+, with consent by all
32218         authors, for use in augeas.
32219         * modules/chown (License): Likewise.
32220         * modules/lchown (Likewise): Likewise.
32221         Requested by Adam Stokes.
32222
32223 2010-08-09  Karl Berry  <karl@gnu.org>
32224
32225         * build-aux/ar-lib: new file, import from Automake.
32226         * config/srclist.txt: autocheck for updates.
32227
32228 2010-08-09  Eric Blake  <eblake@redhat.com>
32229
32230         readlinkat: adjust client modules
32231         * modules/areadlinkat (Depends-on): Use readlinkat, not
32232         symlinkat.
32233         * modules/areadlinkat-with-size (Depends-on): Likewise.
32234
32235         mknod: be more vocal about danger of running tests as root
32236         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32237         root, since that is just asking for problems.
32238         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32239
32240         readlinkat: split into its own module
32241         * modules/symlinkat: Split readlinkat...
32242         * modules/readlinkat: ...into separate module.
32243         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32244         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32245         * lib/symlinkat.c (readlinkat): Move...
32246         * lib/readlinkat.c: ...into new file.
32247         * modules/symlinkat-tests: Split readlinkat test...
32248         * modules/readlinkat-tests: ...into separate module.
32249         * tests/test-symlinkat.c: Split...
32250         * tests/test-readlinkat.c: ...into new file.
32251         * NEWS: Document the split.
32252         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32253         * lib/unistd.in.h (readlinkat): Likewise.
32254         Suggested by Bruno Haible.
32255
32256 2010-08-08  Bruno Haible  <bruno@clisp.org>
32257
32258         memxfrm: Speed up.
32259         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32260         that usually only one call to strxfrm is necessary for each string
32261         part.
32262         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32263
32264 2010-08-07  Karl Berry  <karl@gnu.org>
32265
32266         * doc/posix-headers/limits.texi,
32267         * doc/posix-functions/malloc.texi,
32268         * doc/posix-functions/strsignal.texi: missing @item.
32269         * doc/ld-version-script.texi: spurious leading i.
32270         * doc/regex.texi (Interval Operators): no commas inside @var.
32271
32272 2010-08-01  Bruno Haible  <bruno@clisp.org>
32273
32274         Integrate the regex documentation.
32275         * doc/gnulib.texi: Define 'cn' index.
32276         (Regular expressions): New a chapter that includes regex.texi and
32277         regexprops-generic.texi.
32278         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32279         syntax.
32280
32281         Whitespace cleanup.
32282         * doc/regex.texi: Remove trailing spaces.
32283
32284         Add regex documentation.
32285         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32286         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32287         Written by Kathy A. Hargreaves and Karl Berry.
32288
32289 2010-08-01  Bruno Haible  <bruno@clisp.org>
32290
32291         link: Update documentation.
32292         * doc/posix-functions/link.texi: Update regarding Solaris.
32293
32294 2010-07-31  Bruno Haible  <bruno@clisp.org>
32295
32296         Update modules list.
32297         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32298         (String handling <string.h>): Add memcmp2, memxfrm.
32299         (Container data structures): Add xlist, xsublist, xoset.
32300         (Core language properties): Add alignof, unused-parameter.
32301         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32302         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32303         (Unibyte characters <ctype.h>): New section.
32304         (String handling <string.h>): New section.
32305         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32306         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32307         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32308         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32309         tan, tanh, tanl, y0, y1, yn.
32310         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32311         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32312         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32313         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32314         unlockpt, vdprintf, vdprintf-posix.
32315         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32316         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32317         xconcat-filename.
32318         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32319         getdtablesize, pipe2, pipe2-safer.
32320         (Security): New section.
32321         (Networking functions): Add accept4.
32322         (Signal handling): Add sigpipe.
32323         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32324         mbmemcasecoll.
32325         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32326         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32327         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32328         pipe-filter-ii.
32329         (Misc): Add argp-version-etc, login_tty, parse-duration.
32330
32331 2010-07-31  Bruno Haible  <bruno@clisp.org>
32332
32333         Improve doc in MODULES.html.
32334         * modules/linkat (Description): Add the word "function".
32335         * modules/mkfifo (Description): Likewise.
32336         * modules/mknod (Description): Likewise.
32337         * modules/remove (Description): Likewise.
32338         * modules/renameat (Description): Likewise.
32339         * modules/stat (Description): Likewise.
32340         * modules/symlink (Description): Likewise.
32341         * modules/unlink (Description): Likewise.
32342
32343 2010-07-31  Bruno Haible  <bruno@clisp.org>
32344
32345         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32346         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32347         option --enable/disable-c++ instead of --enable/disable-cxx.
32348         * NEWS: Mention the change.
32349
32350 2010-07-31  Bruno Haible  <bruno@clisp.org>
32351
32352         readlink, areadlink: Relax test a bit.
32353         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32354         alternative to ENOTDIR.
32355         * tests/test-areadlink.h (test_areadlink): Likewise.
32356         Reported by Rainer Tammer.
32357
32358 2010-07-31  Bruno Haible  <bruno@clisp.org>
32359
32360         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32361         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32362         character, perform the search using U_STRCHR.
32363         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32364         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32365         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32366         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32367         Suggested by Paolo Bonzini.
32368
32369 2010-07-31  Bruno Haible  <bruno@clisp.org>
32370
32371         unistr/u*-strstr: Fix dependencies.
32372         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32373         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32374         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32375
32376 2010-07-31  Bruno Haible  <bruno@clisp.org>
32377
32378         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32379         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32380         the beginning of the loop.
32381         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32382         cases in 'switch' statement.
32383
32384         unistr/u8-strchr: Fix several bugs.
32385         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32386         the string. When not found, return NULL, not a pointer near the end.
32387
32388         More tests for unistr/u8-strchr.
32389         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32390         that the function does not read past the first occurrence of the byte
32391         being searched.
32392         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32393         * tests/unistr/test-u16-strchr.c (main): New function.
32394         * tests/unistr/test-u32-strchr.c (main): New function.
32395
32396 2010-07-31  Bruno Haible  <bruno@clisp.org>
32397
32398         posix-modules: Ignore backup files of documentation files.
32399         * posix-modules: grep only through files named *.texi.
32400
32401 2010-07-31  Bruno Haible  <bruno@clisp.org>
32402
32403         symlinkat: Fix documentation.
32404         * doc/posix-functions/readlinkat.texi: Fix module name.
32405
32406 2010-07-31  Bruno Haible  <bruno@clisp.org>
32407
32408         fchownat: Replace also when chown has the trailing slash bug.
32409         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32410         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32411         introduced on 2010-04-10.
32412         Reported by Rainer Tammer.
32413
32414 2010-07-31  Bruno Haible  <bruno@clisp.org>
32415
32416         linkat: Work around AIX 7.1 bug.
32417         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32418         whether linkat handles trailing slash correctly. If not, replace linkat
32419         and define LINKAT_TRAILING_SLASH_BUG.
32420         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32421         check whether (fd1,file1) points to a directory if file1 or file2 ends
32422         in a slash. Code taken from lib/link.c.
32423         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32424         Reported by Rainer Tammer.
32425
32426 2010-07-31  Bruno Haible  <bruno@clisp.org>
32427
32428         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32429         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32430         This disables an xlc optimization that was causing wrong test results.
32431         Reported by Rainer Tammer.
32432
32433 2010-07-31  Bruno Haible  <bruno@clisp.org>
32434
32435         iconv: Work around AIX 6.1..7.1 bug.
32436         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32437         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32438         cross-compiling, guess no on all versions of AIX.
32439         Reported by Rainer Tammer.
32440
32441 2010-07-31  Bruno Haible  <bruno@clisp.org>
32442
32443         readlink: Relax test a bit.
32444         * tests/test-readlink.h (test_readlink): Allow different errno value
32445         when readlink is called with a file name that ends in / and refers to
32446         a file.
32447         Suggested by Eric Blake.
32448         Reported by Rainer Tammer.
32449
32450 2010-07-31  Bruno Haible  <bruno@clisp.org>
32451
32452         copysign: Does not require -lm on glibc systems.
32453         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32454         gl_COMMON_DOUBLE_MATHFUNC.
32455         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32456
32457 2010-07-31  Bruno Haible  <bruno@clisp.org>
32458
32459         duplocale: Work around AIX 7.1 bug.
32460         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32461         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32462         * lib/duplocale.c (rpl_duplocale): Update comment.
32463         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32464         Reported by Rainer Tammer.
32465
32466 2010-07-30  Bruno Haible  <bruno@clisp.org>
32467
32468         dirfd: Avoid link error on AIX 7.1.
32469         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32470         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32471         exist, set REPLACE_DIRFD.
32472         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32473         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32474         * doc/posix-functions/dirfd.texi: Update.
32475         Reported by Rainer Tammer.
32476
32477 2010-07-30  Eric Blake  <eblake@redhat.com>
32478
32479         strtod: next round of AIX fixes
32480         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32481         exponent.
32482         * tests/test-strtod.c (main): Enhance tests.
32483         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32484         Reported by Rainer Tammer.
32485
32486         futimens: fix configure check
32487         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32488         Reported by Bruno Haible.
32489
32490 2010-07-30  Bruno Haible  <bruno@clisp.org>
32491
32492         getline: Update regarding AIX.
32493         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32494         Reported by Rainer Tammer.
32495
32496 2010-07-30  Bruno Haible  <bruno@clisp.org>
32497
32498         wcwidth: Drop replacement on AIX 7.
32499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32500         AIX 7.
32501         Reported by Rainer Tammer.
32502
32503 2010-07-30  Bruno Haible  <bruno@clisp.org>
32504
32505         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32506         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32507         a 'char *'.
32508         Reported by Rainer Tammer.
32509
32510 2010-07-30  Bruno Haible  <bruno@clisp.org>
32511
32512         unlink: Update regarding AIX.
32513         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32514         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32515         Reported by Rainer Tammer.
32516
32517 2010-07-30  Bruno Haible  <bruno@clisp.org>
32518
32519         symlink: Update regarding AIX.
32520         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32521         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32522         Reported by Rainer Tammer.
32523
32524 2010-07-30  Bruno Haible  <bruno@clisp.org>
32525
32526         strndup: Update regarding AIX.
32527         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32528         AIX 7.
32529         Reported by Rainer Tammer.
32530
32531 2010-07-30  Bruno Haible  <bruno@clisp.org>
32532
32533         stat: Update regarding AIX.
32534         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32535         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32536         Reported by Rainer Tammer.
32537
32538 2010-07-30  Bruno Haible  <bruno@clisp.org>
32539
32540         truncl: Fix autoconf test.
32541         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32542         whether truncl works.
32543         Reported by Rainer Tammer.
32544
32545 2010-07-30  Bruno Haible  <bruno@clisp.org>
32546
32547         round: Update regarding AIX.
32548         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32549         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32550         Reported by Rainer Tammer.
32551
32552 2010-07-30  Bruno Haible  <bruno@clisp.org>
32553
32554         rename: Update regarding AIX.
32555         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32556         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32557         Reported by Rainer Tammer.
32558
32559 2010-07-30  Bruno Haible  <bruno@clisp.org>
32560
32561         printf.m4: Update regarding AIX.
32562         * m4/printf.m4: Update comments regarding AIX.
32563         Reported by Rainer Tammer.
32564
32565 2010-07-30  Bruno Haible  <bruno@clisp.org>
32566
32567         iconv: Update regarding AIX.
32568         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32569         AIX 7.
32570         Reported by Rainer Tammer.
32571
32572 2010-07-30  Bruno Haible  <bruno@clisp.org>
32573
32574         getopt: Update regarding AIX.
32575         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32576         no on AIX.
32577         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32578         Reported by Rainer Tammer.
32579
32580 2010-07-30  Bruno Haible  <bruno@clisp.org>
32581
32582         ldexpl; Update regarding AIX.
32583         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32584         on AIX 7.
32585         Reported by Rainer Tammer.
32586
32587 2010-07-30  Bruno Haible  <bruno@clisp.org>
32588
32589         frexpl: Update regarding AIX.
32590         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32591         on AIX 7.
32592         Reported by Rainer Tammer.
32593
32594 2010-07-30  Bruno Haible  <bruno@clisp.org>
32595
32596         open, fopen: Update regarding AIX.
32597         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32598         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32599         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32600         * doc/posix-functions/fopen.texi: Likewise.
32601         Reported by Rainer Tammer.
32602
32603 2010-07-30  Bruno Haible  <bruno@clisp.org>
32604
32605         chown: Update doc regarding AIX.
32606         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32607         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32608         Reported by Rainer Tammer.
32609
32610 2010-07-30  Eric Blake  <eblake@redhat.com>
32611
32612         strtod: fix bug in replacement function on AIX
32613         * lib/strtod.c (strtod): Special case broken "0x" parse in
32614         underlying strtod.
32615         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32616         * doc/posix-functions/strtod.texi (strtod): Likewise.
32617         Reported by Rainer Tammer.
32618
32619 2010-07-30  Bruno Haible  <bruno@clisp.org>
32620
32621         mbrlen: Fix cross-compilation guess for AIX.
32622         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32623         guess. Leftover from 2008-12-22.
32624
32625 2010-07-30  Bruno Haible  <bruno@clisp.org>
32626
32627         mbrtowc: Fix cross-compilation guess for AIX.
32628         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32629         guess. Leftover from 2008-12-21.
32630
32631 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32632
32633         init.sh: work around trap limitation of some shells
32634         * tests/init.sh (setup_): Move exit trap outside of shell function.
32635
32636 2010-07-29  Eric Blake  <eblake@redhat.com>
32637
32638         strtod: aid debugging
32639         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32640         understanding why strtod is rejected.
32641
32642 2010-07-28  Bruno Haible  <bruno@clisp.org>
32643
32644         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32645         * lib/unistr/u8-chr.c: Include <string.h>.
32646         * tests/unistr/test-u8-chr.c: Likewise.
32647         * tests/unistr/test-u16-chr.c: Likewise.
32648         * tests/unistr/test-u32-chr.c: Likewise.
32649         * tests/unistr/test-u8-strchr.c: Likewise.
32650         * tests/unistr/test-u16-strchr.c: Likewise.
32651         * tests/unistr/test-u32-strchr.c: Likewise.
32652         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32653         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32654         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32655         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32656
32657 2010-07-28  Bruno Haible  <bruno@clisp.org>
32658
32659         Use spaces for indentation, not tabs.
32660         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32661
32662 2010-07-27  Bruno Haible  <bruno@clisp.org>
32663
32664         mbspcasecmp: Fix function specification.
32665         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32666         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32667         Reported by Eric Blake <eblake@redhat.com>.
32668
32669 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32670
32671         timespec: use cast and not conditional, as truncation isn't possible
32672         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32673         instead of a conditional.  Comment about the situation in more detail.
32674         This undoes most of the 2009-10-29 patch.
32675
32676 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32677
32678         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32679         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32680         * lib/unistr/u8-strchr.c: Likewise.
32681         * modules/unistr/u8-chr: Depend on memchr.
32682
32683         unistr/u*-strchr: add tests
32684         * modules/unistr/u8-strchr-tests: New file.
32685         * modules/unistr/u16-strchr-tests: New file.
32686         * modules/unistr/u32-strchr-tests: New file.
32687         * tests/unistr/test-strchr.h: New file.
32688         * tests/unistr/test-u8-strchr.c: New file.
32689         * tests/unistr/test-u16-strchr.c: New file.
32690         * tests/unistr/test-u32-strchr.c: New file.
32691
32692         unistr/u*-chr: test multibyte sequences more
32693         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32694         test vector.
32695         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32696         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32697         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32698
32699         unistr/u*-chr: test multibyte sequences
32700         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32701
32702         unistr/u*-chr: prepare for multibyte tests
32703         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32704         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32705         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32706         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32707         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32708         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32709
32710 2010-07-18  Bruno Haible  <bruno@clisp.org>
32711
32712         unistr/u8-strchr: Optimize non-ASCII argument case.
32713         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32714         because the first byte often matches anyway.
32715         Reported by Pádraig Brady <P@draigbrady.com>.
32716
32717 2010-07-15  Karl Berry  <karl@gnu.org>
32718
32719         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32720
32721 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32722
32723         getcwd: on Solaris, work better if ancestors are inaccessible
32724         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32725         buffer and size, try again with a large buffer.  This works better
32726         on Solaris, since its getcwd succeeds even if the path to the root
32727         is inaccessible, and this is helpful in common cases such as .zfs
32728         hidden directories.  Problem reported by J Chapman Flack in
32729         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32730         Use system getcwd if it's declared, not merely if it's partly
32731         working; use the partly-working test only to avoid needless effort
32732         if the system getcwd fails.
32733         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32734         comment that was already obsolete and is now even more obsolete.
32735         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32736         now might call strdup.
32737
32738 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32739
32740         pthread: Add enough so that coreutils/src/sort.c compiles.
32741         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32742         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32743         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32744         Include <sys/types.h>, in case it defines pthread_t.
32745         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32746         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32747         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32748         (pthread_rwlockattr_t, pthread_spinlock_t):
32749         New typedefs, if HAVE_PTHREAD_T is not defined.
32750         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32751         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32752         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32753         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32754         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32755         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32756         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32757         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32758         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32759         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32760         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32761         New macros.
32762         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32763         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32764         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32765         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32766         (pthread_spin_unlock): New dummy functions.
32767         (pthread_create): Return EAGAIN; don't set errno.
32768         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32769         require AC_C_INLINE.
32770         * modules/pthread (Depends-on): Add sched, time.
32771         (pthread.h): Use AM_V_GEN.
32772
32773 2010-07-13  Bruno Haible  <bruno@clisp.org>
32774
32775         striconveh: Don't malloc memory if the result buffer is sufficient.
32776         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32777         buffer if its size is sufficient.
32778         Reported by Ludovic Courtès <ludo@gnu.org>.
32779
32780 2010-07-13  Bruno Haible  <bruno@clisp.org>
32781
32782         strtod: Add safety check.
32783         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32784
32785 2010-07-12  Bruno Haible  <bruno@clisp.org>
32786
32787         Unify tests that set gl_cv_func_ldexpl_no_libm.
32788         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32789         gl_FUNC_LDEXPL.
32790         (gl_FUNC_LDEXPL): Invoke it.
32791         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32792
32793 2010-07-12  Bruno Haible  <bruno@clisp.org>
32794
32795         Unify tests that set gl_cv_func_ldexp_no_libm.
32796         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32797         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32798         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32799         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32800         * modules/strtod (Files): Add m4/ldexp.m4.
32801
32802 2010-07-12  Bruno Haible  <bruno@clisp.org>
32803
32804         Unify tests that set gl_cv_func_frexpl_no_libm.
32805         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32806         gl_FUNC_FREXPL_NO_LIBM.
32807         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32808         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32809
32810 2010-07-12  Bruno Haible  <bruno@clisp.org>
32811
32812         Unify tests that set gl_cv_func_frexp_no_libm.
32813         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32814         gl_FUNC_FREXP_NO_LIBM.
32815         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32816         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32817
32818 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32819
32820         memcoll: clarify sizes versus lengths, document better, and tweak perf
32821         * lib/memcoll.c (strcoll_loop, memcoll0):
32822         Improve quality of descriptive comments.  Name variables
32823         consistently as to whether they are lengths (which do not include
32824         terminating null) versus sizes (which do).
32825         * lib/xmemcoll.c (xmemcoll0): Likewise.
32826         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32827         returned when s1size == 0; this is easier to compile and saves
32828         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32829
32830 2010-07-12  Bruno Haible  <bruno@clisp.org>
32831
32832         Tests for module '_Exit'.
32833         * modules/_Exit-tests: New file.
32834         * tests/test-_Exit.sh: New file.
32835         * tests/test-_Exit.c: New file.
32836
32837         New module '_Exit'.
32838         * lib/stdlib.in.h (__attribute__): New macro.
32839         (_Exit): New declaration.
32840         * lib/_Exit.c: New file.
32841         * m4/_Exit.m4: New file.
32842         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32843         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32844         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32845         * modules/_Exit: New file.
32846         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32847         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32848
32849 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32850
32851         strtod: make it more-accurate typically, and don't require libm
32852         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32853         Include limits.h.  Don't include string.h.
32854         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32855         (locale_isspace): New function, so that no casts are needed to
32856         check whether *s is a space.
32857         (ldexp): Provide an unused dummy if not available.
32858         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32859         (strtod): Use them.  This implementation prefers to use the
32860         underlying strtod if available, falling back on our own code
32861         only to fix known bugs.  This is more likely to produce an
32862         accurate result.  Also, it avoids the use of libm functions.
32863         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32864         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32865         was absent, but it caused a test failure with coreutils.
32866         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32867         with libm.
32868         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32869         * modules/strtod-tests (Makefile.am): Likewise.
32870
32871 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32872             Bruno Haible  <bruno@clisp.org>
32873
32874         unistr/u8-strchr: Optimize ASCII argument case.
32875         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32876
32877 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32878
32879         (x)memcoll: minor tweaks
32880         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32881         is after the type that it qualifies.
32882         (memcoll0): Likewise.
32883         * lib/memcoll.h (memcoll0): Likewise.
32884         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32885         * lib/xmemcoll.h (xmemcoll0): Likewise.
32886         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32887         differs from memcoll in that the NUL byte is part of the argument.
32888         Omit the abort-checks, as performance is a real issue here.  Plus,
32889         the checks were wrong anyway (an off-by-one error).  Omit local
32890         variable 'diff', as it's a bit clearer that way.
32891         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32892         no longer needed.
32893
32894 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32895
32896         (x)memcoll: speedup when input is known to be NUL delimited
32897         * lib/memcoll.c: Include stdlib.
32898         (memcoll0): New function.
32899         (strcoll_loop): New function, refactored for use in both memcoll
32900         and memcoll0.
32901         * lib/memcoll.h (memcoll0): Add prototype.
32902         * lib/xmemcoll.c (xmemcoll0): New function.
32903         (collate_error): New function, refactored for use in both xmemcoll
32904         and xmemcoll0.
32905         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32906         * m4/memcoll.m4: add inline invocation.
32907
32908 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32909
32910         * build-aux/bootstrap: Remove any local translations
32911         from the translation project synchronization directory,
32912         so that local only translations are not distributed.
32913
32914 2010-07-04  Bruno Haible  <bruno@clisp.org>
32915
32916         fsusage: Clarify which code applies to which platforms.
32917         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32918         platform.
32919         * lib/fsusage.c (get_fs_usage): Likewise.
32920
32921 2010-07-04  Bruno Haible  <bruno@clisp.org>
32922
32923         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32924         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32925         Reported by Martin Lambers <marlam@marlam.de>.
32926
32927 2010-07-04  Jim Meyering  <meyering@redhat.com>
32928
32929         hash: once again explicitly disallow insertion of NULL
32930         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32931         inserting a NULL pointer cannot work with these functions.
32932         Add a comment with details.
32933         This reverts part of the 2010-07-01 commit, 5bef1a35
32934         "hash: extend module to deal with non-pointer keys".
32935
32936 2010-07-01  Bruno Haible  <bruno@clisp.org>
32937
32938         stdbool: Update doc.
32939         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32940         Info from Christian Weisgerber <naddy@mips.inka.de>.
32941
32942 2010-07-01  Jim Meyering  <meyering@redhat.com>
32943
32944         hash: extend module to deal with non-pointer keys
32945         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32946         but that allows insertion of non-pointer entries.
32947         Do not disallow an ENTRY value of NULL.
32948         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32949         * lib/hash.h (hash_insert0): Declare.
32950
32951 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32952
32953         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32954         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32955         not present (i.e. with autoconf 2.59 and when using gettextize, not
32956         gnulib), require AC_GNU_SOURCE instead.
32957
32958 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32959
32960         idpriv-drop: Fix tests.
32961         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32962         not to the test-idpriv-droptemp program.
32963
32964 2010-06-29  Bruno Haible  <bruno@clisp.org>
32965
32966         string: Fix syntax error with g++ 2.96.
32967         * lib/string.in.h (__pure__): Remove definition.
32968         (_GL_ATTRIBUTE_PURE): New macro.
32969         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32970         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32971         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32972
32973 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32974
32975         unitypes: Fix bug introduced on 2010-05-18.
32976         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32977
32978 2010-06-22  Eric Blake  <eblake@redhat.com>
32979
32980         memmem: slight optimization
32981         * lib/str-two-way.h (critical_factorization): Update comments.
32982         Reduce work during factorization phase.
32983         Reported by Carlos Bueno <carlos@bueno.org>.
32984
32985 2010-06-21  Bruno Haible  <bruno@clisp.org>
32986
32987         Fix HAVE_CALLOC_POSIX misnomer.
32988         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32989         !HAVE_CALLOC_POSIX.
32990         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32991         HAVE_CALLOC_POSIX.
32992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32993         instead of HAVE_CALLOC_POSIX.
32994         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32995         HAVE_CALLOC_POSIX.
32996
32997         Use modern idiom for calloc() replacement.
32998         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32999         AC_FUNC_CALLOC.
33000         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
33001         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
33002         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33003         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
33004         (gl_REPLACE_CALLOC): New macro.
33005
33006 2010-06-21  Bruno Haible  <bruno@clisp.org>
33007
33008         Fix HAVE_REALLOC_POSIX misnomer.
33009         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
33010         !HAVE_REALLOC_POSIX.
33011         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
33012         HAVE_REALLOC_POSIX.
33013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
33014         instead of HAVE_REALLOC_POSIX.
33015         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
33016         HAVE_REALLOC_POSIX.
33017
33018         Use modern idiom for realloc() replacement.
33019         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
33020         AC_FUNC_REALLOC.
33021         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
33022         Autoconf's AC_FUNC_REALLOC.
33023         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33024         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
33025         (gl_REPLACE_REALLOC): New macro.
33026         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33027
33028 2010-06-21  Bruno Haible  <bruno@clisp.org>
33029
33030         Fix HAVE_MALLOC_POSIX misnomer.
33031         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
33032         !HAVE_MALLOC_POSIX.
33033         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
33034         HAVE_MALLOC_POSIX.
33035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
33036         instead of HAVE_MALLOC_POSIX.
33037         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
33038         HAVE_MALLOC_POSIX.
33039
33040         Use modern idiom for malloc() replacement.
33041         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
33042         AC_FUNC_MALLOC.
33043         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
33044         Autoconf's AC_FUNC_MALLOC.
33045         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33046         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
33047         (gl_REPLACE_MALLOC): New macro.
33048         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33049
33050 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
33051
33052         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
33053         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
33054         This macro takes 3 arguments, not 4.
33055
33056 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
33057
33058         ipv6: fix detection under mingw
33059         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
33060         in6_addr.
33061
33062 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
33063
33064         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
33065         that strtod() works when cross-compiling to a glibc version known
33066         to work.
33067
33068 2010-06-15  Bruno Haible  <bruno@clisp.org>
33069
33070         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
33071
33072 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
33073
33074         select: Correct timeout.
33075         * lib/select.c (rpl_select): Compute wait_timeout correctly.
33076
33077 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33078
33079         git-version-gen: init shell var to avoid env var influence
33080         * build-aux/git-version-gen (v): Init shell var to empty.
33081
33082 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33083
33084         priv-set: Don't assume that priv.h exists merely because getppriv does.
33085         See Jan Andersen's bug report about AIX 5L in
33086         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
33087         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
33088         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
33089         * lib/priv-set.h: Likewise.
33090         * tests/test-priv-set.c: Likewise.
33091
33092 2010-06-13  Bruno Haible  <bruno@clisp.org>
33093
33094         relocatable: Make it easier to test whether to install wrappers.
33095         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
33096         RELOCATABLE_VIA_WRAPPER.
33097
33098 2010-06-13  Bruno Haible  <bruno@clisp.org>
33099
33100         gnulib-tool: Display specified modules and dependencies differently.
33101         * gnulib-tool (func_show_module_list): New function.
33102         (func_import, func_create_testdir): Invoke it.
33103         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33104
33105 2010-06-13  Bruno Haible  <bruno@clisp.org>
33106
33107         gnulib-tool: Align code of func_import and func_create_testdir.
33108         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
33109         specified_modules.
33110
33111 2010-06-12  Jim Meyering  <meyering@redhat.com>
33112
33113         test-inttostr: avoid spurious failure on Solaris 9
33114         * tests/test-inttostr.c (main): Skip the test when snprintf fails
33115         to accept "%ju".  Reported by Bruno Haible.
33116
33117 2010-06-11  Jim Meyering  <meyering@redhat.com>
33118
33119         test-sys_socket: mark variables as used more readably
33120         * tests/test-sys_socket.c (main): Mark otherwise unused variables
33121         as "used" explicitly via (void) statement casts.  This is more
33122         readable than using them in an artificial return expression.
33123         Suggestion from Bruno Haible.
33124
33125 2010-06-11  Bruno Haible  <bruno@clisp.org>
33126
33127         Avoid some more warnings from "gcc -Wwrite-strings".
33128         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
33129         to 'const char *'.
33130         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
33131         * tests/test-c-strcasestr.c (main): Likewise.
33132         * tests/test-mbscasestr1.c (main): Likewise.
33133         * tests/test-mbscasestr2.c (main): Likewise.
33134         * tests/test-memmem.c (main): Likewise.
33135         * tests/test-strstr.c (main): Likewise.
33136         * tests/test-strcasestr.c (main): Likewise.
33137
33138 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33139
33140         init.sh: change framework_failure_ to fail with status 99, not 1
33141         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
33142         automake's parallel-tests rule that this is an unexpected failure,
33143         even if the test is listed in XFAIL_TESTS.
33144
33145 2010-06-11  Jim Meyering  <meyering@redhat.com>
33146
33147         test-inttostr: avoid warnings about 4-6KB literal strings
33148         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
33149         Include "macros.h", for its definition of ASSERT.
33150         (CK): s/assert/ASSERT/
33151         * modules/inttostr-tests (Files): Add macros.h.
33152
33153         init.sh: don't use $ME_ or skip_ before they are defined
33154         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
33155         their first uses.  Also hoist their companions: warn_, fail_,
33156         framework_failure_, $stderr_fileno.  Prompted by a patch from
33157         Stefano Lattarini.
33158
33159         test-sys_socket: avoid set-but-not-used warnings from gcc
33160         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
33161         avoid warning about set-but-not-used variables.
33162
33163         test-xvasprintf: avoid 'const' discard warnings
33164         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
33165         "const" when assigning from literal strings.
33166         (test_xasprintf): Add "void" in function argument list to placate
33167         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
33168
33169         tests: avoid compilation warnings in argmatch and exclude tests...
33170         in packages that define ARGMATCH_DIE_DECL, like coreutils.
33171         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
33172         Since it always exits, declare with the "noreturn" attribute.
33173         * tests/test-argmatch.c: Likewise.
33174
33175         tests: avoid 'const' discard warnings in mbsstr tests
33176         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
33177         * tests/test-mbsstr2.c (main): Likewise.
33178
33179         test-verify: avoid warning from gcc's -Wmissing-declarations
33180         * tests/test-verify.c (function): Declare to be static.
33181
33182         test-inttostr.c: include <string.h> for use of strcmp
33183         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
33184
33185         test-linkat: avoid failed assertion on "other" architectures
33186         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
33187         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
33188         sparc: https://bugs.launchpad.net/bugs/591968
33189
33190 2010-06-11  Jim Meyering  <meyering@redhat.com>
33191
33192         printf.m4: avoid autoconf's "Expanded Before Required" warning
33193         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
33194         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
33195         autoconf warning.
33196
33197 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
33198
33199         Replacement header templates are now named with ".in", not "_".
33200         * doc/gnulib-intro.texi: Correct.
33201
33202 2010-06-10  Jim Meyering  <meyering@redhat.com>
33203
33204         inttostr-tests: depend on snprintf, not snprintf-posix
33205         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33206         snprintf-posix, to avoid this aclocal failure:
33207           missing file gnulib-tests/vasnprintf.c
33208           configure.ac:45: error: expected source file, required through \
33209           AC_LIBSOURCES, not found
33210
33211 2010-06-10  Jim Meyering  <meyering@redhat.com>
33212
33213         inttostr: add a new function, inttostr, and tests
33214         The namesake function was not available.  The existence of the
33215         template file, inttostr.c makes its addition nontrivial.
33216         * lib/anytostr.c: Rename from inttostr.c.
33217         (anytostr): Rename from inttostr.
33218         * lib/inttostr.c: New file.
33219         * modules/inttostr (Files): Add anytostr.c.
33220         (Makefile.am): Set lib_SOURCES instead of ...
33221         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33222         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33223         * lib/offtostr.c: Likewise.
33224         * lib/uinttostr.c: Likewise.
33225         * lib/umaxtostr.c: Likewise.
33226         * modules/inttostr-tests: New file.
33227         * tests/test-inttostr.c: New file.  Test these functions.
33228
33229 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33230             Bruno Haible  <bruno@clisp.org>
33231
33232         Add "Extending Gnulib" chapter to manual.
33233         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33234         chapter.
33235         (Extending Gnulib): New chapter.
33236         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33237         chapter.
33238
33239 2010-06-09  Bruno Haible  <bruno@clisp.org>
33240
33241         Avoid relocwrapper link errors due to gnulib replacement functions.
33242         * lib/areadlink.c: Use the system's malloc, realloc functions.
33243         (areadlink): Set errno to ENOMEM explicitly.
33244         * modules/areadlink (Depends-on): Remove malloc-posix.
33245         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33246
33247 2010-06-09  Bruno Haible  <bruno@clisp.org>
33248
33249         Avoid relocwrapper link errors due to gnulib replacement functions.
33250         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33251         * lib/malloca.c: Likewise.
33252         * lib/relocatable.c: Likewise.
33253         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33254         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33255         * lib/setenv.c: Use the system's malloc, realloc functions.
33256         * lib/strerror.c: Use the system's sprintf function.
33257         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33258
33259 2010-06-04  Bruno Haible  <bruno@clisp.org>
33260
33261         Prefer documented low-level autoconf macro names.
33262         * m4/lib-link.m4: Use m4_translit instead of translit.
33263         * m4/environ.m4: Likewise.
33264         * m4/mathfunc.m4: Likewise.
33265         * m4/onceonly.m4: Likewise.
33266         * m4/stdint.m4: Likewise.
33267         Suggested by Eric Blake.
33268
33269 2010-06-04  Martin Lambers  <marlam@marlam.de>
33270             Bruno Haible  <bruno@clisp.org>
33271
33272         havelib: Allow library names with '+' characters.
33273         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33274         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33275
33276 2010-06-09  Bruno Haible  <bruno@clisp.org>
33277
33278         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33279         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33280         realloc failed.
33281
33282 2010-06-08  Peter Simons  <simons@cryp.to>
33283
33284         maint.mk: make the news-check rule more configurable
33285         * top/maint.mk (news-check-lines-spec): New variable.
33286         (news-check): Use "sed -n 1,10p" in place of "head".
33287
33288 2010-06-07  Jim Meyering  <meyering@redhat.com>
33289
33290         do-release-commit-and-tag: fix typo in --help
33291         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33292
33293         regex: avoid new dead-code warning with gcc-4.6.0
33294         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33295         if-block containing a while-loop.  It's been unused for at least
33296         5 years.
33297
33298 2010-06-05  Bruno Haible  <bruno@clisp.org>
33299
33300         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33301         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33302
33303 2010-06-04  Bruno Haible  <bruno@clisp.org>
33304
33305         Update to GNU gettext 0.18.1.
33306         * modules/gettext (configure.ac): Require gettext infrastructure from
33307         version 0.18.1.
33308
33309 2010-06-03  Bruno Haible  <bruno@clisp.org>
33310
33311         Don't use AC_LIBOBJ with file names in subdirectories.
33312         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33313         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33314         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33315         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33316         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33317         gl_LIBUNISTRING_LIBSOURCE.
33318         (Makefile.am): Augment lib_SOURCES here, conditionally.
33319         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33320
33321 2010-06-03  Bruno Haible  <bruno@clisp.org>
33322
33323         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33324         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33325         expansion does not end with a newline.
33326         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33327         unnecessary newline.
33328
33329 2010-06-03  Bruno Haible  <bruno@clisp.org>
33330
33331         Reduce dependencies.
33332         * tests/test-quotearg.h: New file, extracted from
33333         tests/test-quotearg.c.
33334         * tests/test-quotearg-simple.c: New file, extracted from
33335         tests/test-quotearg.c.
33336         * tests/test-quotearg.c: Don't include <ctype.h>.
33337         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33338         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33339         use_quote_double_quotes, use_quotearg_colon): Moved to
33340         tests/test-quotearg.h.
33341         (results_g, flag_results, custom_quotes, custom_results): Moved
33342         to tests/test-quotearg-simple.c.
33343         (main): Moved the part that does not depend on gettext to
33344         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33345         performed.
33346         * modules/quotearg-simple: New file.
33347         * modules/quotearg-simple-tests: New file.
33348         * modules/quotearg (Depends-on): Add quotearg-simple.
33349         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33350         (Files): Add tests/test-quotearg.h.
33351         Reported by Paolo Bonzini.
33352
33353 2010-06-03  Bruno Haible  <bruno@clisp.org>
33354
33355         Reduce dependencies.
33356         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33357
33358 2010-06-03  Bruno Haible  <bruno@clisp.org>
33359
33360         time: Undefine more broken macros.
33361         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33362         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33363         Reported by Eric Blake.
33364
33365 2010-06-03  Bruno Haible  <bruno@clisp.org>
33366
33367         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33368         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33369         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33370         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33371         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33372         Reported by Ludovic Courtès <ludo@gnu.org>.
33373
33374 2010-06-02  Eric Blake  <eblake@redhat.com>
33375
33376         time: work with mingw + pthreads-win32 library
33377         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33378         if timespec is defined only in pthread.h.
33379         * modules/time (Makefile.am): Substitute it.
33380         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33381         <pthread.h>, when needed.
33382         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33383         from the library.
33384
33385 2010-05-31  Bruno Haible  <bruno@clisp.org>
33386
33387         Avoid expanding two macros in the wrong order.
33388         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33389         gl_LIBUNISTRING if it is defined.
33390         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33391         autoconf >= 2.64.
33392         Reported by Ludovic Courtès <ludo@gnu.org>.
33393
33394 2010-05-27  Jim Meyering  <meyering@redhat.com>
33395
33396         maint.mk: also prohibit "#undef" of always-defined symbols
33397         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33398         Allow more than one space before the symbol name.
33399         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33400         the regexp uses alternation.
33401
33402 2010-05-26  Eric Blake  <eblake@redhat.com>
33403
33404         maint.mk: avoid echo -e
33405         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33406         Convert all uses of echo -* to printf.
33407         Reported by Matthias Bolte.
33408
33409 2010-05-25  Bruno Haible  <bruno@clisp.org>
33410
33411         Update to GNU gettext 0.18, part 2.
33412         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33413         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33414
33415 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33416
33417         Add missing include in test-pwrite.c.
33418         * tests/test-pwrite.c: Include string.h, for strcmp.
33419
33420 2010-05-24  Bruno Haible  <bruno@clisp.org>
33421
33422         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33423
33424 2010-05-24  Bruno Haible  <bruno@clisp.org>
33425
33426         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33427         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33428         iconveh_error argument.
33429         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33430         U_STRCONV_TO_LOCALE.
33431         * lib/unistr/u16-strcoll.c: Likewise.
33432         * lib/unistr/u32-strcoll.c: Likewise.
33433         * modules/unistr/u8-strcoll (Depends-on): Add
33434         uniconv/u8-strconv-to-enc, localcharset. Remove
33435         uniconv/u8-strconv-to-locale.
33436         (configure.ac): Bump version number.
33437         * modules/unistr/u16-strcoll (Depends-on): Add
33438         uniconv/u16-strconv-to-enc, localcharset. Remove
33439         uniconv/u16-strconv-to-locale.
33440         (configure.ac): Bump version number.
33441         * modules/unistr/u32-strcoll (Depends-on): Add
33442         uniconv/u32-strconv-to-enc, localcharset. Remove
33443         uniconv/u32-strconv-to-locale.
33444         (configure.ac): Bump version number.
33445
33446 2010-05-24  Bruno Haible  <bruno@clisp.org>
33447
33448         Avoid a test failure on NetBSD 5.0.
33449         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33450         an iconv() bug.
33451
33452 2010-05-24  Bruno Haible  <bruno@clisp.org>
33453
33454         Adjust #include directive style.
33455         * modules/regex (Includes): Recommend to write <regex.h>.
33456
33457 2010-05-24  Bruno Haible  <bruno@clisp.org>
33458
33459         regex: Don't require alloca.
33460         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33461         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33462         only inside if (0).
33463
33464 2010-05-23  Jim Meyering  <meyering@redhat.com>
33465
33466         test-renameat.c: include <sys/stat.h>
33467         * tests/test-renameat.c: Include <sys/stat.h>; required for
33468         definition of S_IS* macros.
33469
33470 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33471
33472         Update maintainer documentation for 'relocatable-prog' module.
33473         * doc/relocatable-maint.texi: Update.
33474         Comments by Bruno Haible.
33475
33476 2010-05-23  Bruno Haible  <bruno@clisp.org>
33477
33478         git-merge-changelog: Enable --split-merged-entry by default.
33479         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33480         (usage): Don't mention this option any more.
33481         Reported by Ralf Wildenhues.
33482
33483 2010-05-23  Jim Meyering  <meyering@redhat.com>
33484
33485         test-pwrite: do not leave behind a test file named "out"
33486         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33487         The trivial-looking use of init.sh is really necessary.
33488         It ensures that the temporary file, "out", is created in
33489         a temporary directory, and removed upon termination.
33490         * tests/test-pwrite.sh: Re-add file.
33491         * modules/pwrite-tests: Reference it.
33492
33493 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33494
33495         Fix output redirection buglet in init.sh.
33496         * tests/init.sh: Fix redirection of stderr.
33497
33498 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33499
33500         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33501
33502 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33503
33504         * modules/valgrind-tests: New file.
33505         * m4/valgrind-tests.m4: New file.
33506         * doc/valgrind-tests.texi: New file.
33507         * doc/gnulib.texi (Running self-tests under valgrind): New
33508         section.
33509
33510 2010-05-19  Bruno Haible  <bruno@clisp.org>
33511
33512         Clean up dead code in recent commit.
33513         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33514         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33515         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33516         Suggested by Paolo Bonzini.
33517
33518 2010-05-19  Bruno Haible  <bruno@clisp.org>
33519
33520         Avoid valgrind error reports from libunistring.
33521         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33522         * modules/libunistring (Files): Add it.
33523         * modules/libunistring-optional (Files): Likewise.
33524
33525 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33526             Bruno Haible  <bruno@clisp.org>
33527
33528         New module 'libunistring-optional'.
33529         * modules/libunistring-optional: New file.
33530         * m4/libunistring-base.m4: New file.
33531         * m4/libunistring-optional.m4: New file.
33532         * lib/unicase.in.h: Renamed from lib/unicase.h.
33533         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33534         * lib/unictype.in.h: Renamed from lib/unictype.h.
33535         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33536         * lib/uniname.in.h: Renamed from lib/uniname.h.
33537         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33538         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33539         * lib/unistr.in.h: Renamed from lib/unistr.h.
33540         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33541         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33542         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33543         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33544         gl_LIBUNISTRING. If the library was found, determine the installed
33545         version and set LIBUNISTRING_VERSION.
33546         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33547         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33548         handle a configuration option --with-included-libunistring.
33549         * modules/libunistring (Files): Add m4/absolute-header.m4.
33550         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33551         Add m4/libunistring-base.m4.
33552         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33553         (Makefile.am): Build unicase.h from unicase.in.h.
33554         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33555         Add m4/libunistring-base.m4.
33556         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33557         (Makefile.am): Build uniconv.h from uniconv.in.h.
33558         * modules/unictype/base (Files): Use unictype.in.h instead of
33559         unictype.h. Add m4/libunistring-base.m4.
33560         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33561         (Makefile.am): Build unictype.h from unictype.in.h.
33562         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33563         Add m4/libunistring-base.m4.
33564         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33565         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33566         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33567         Add m4/libunistring-base.m4.
33568         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33569         (Makefile.am): Build uniname.h from uniname.in.h.
33570         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33571         Add m4/libunistring-base.m4.
33572         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33573         (Makefile.am): Build uninorm.h from uninorm.in.h.
33574         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33575         unistdio.h. Add m4/libunistring-base.m4.
33576         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33577         (Makefile.am): Build unistdio.h from unistdio.in.h.
33578         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33579         Add m4/libunistring-base.m4.
33580         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33581         (Makefile.am): Build unistr.h from unistr.in.h.
33582         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33583         Add m4/libunistring-base.m4.
33584         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33585         (Makefile.am): Build unitypes.h from unitypes.in.h.
33586         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33587         Add m4/libunistring-base.m4.
33588         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33589         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33590         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33591         uniwidth.h. Add m4/libunistring-base.m4.
33592         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33593         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33594         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33595         instead of augmenting lib_SOURCES.
33596         * modules/unicase/empty-suffix-context: Likewise.
33597         * modules/unicase/locale-language: Likewise.
33598         * modules/unicase/tolower: Likewise.
33599         * modules/unicase/totitle: Likewise.
33600         * modules/unicase/toupper: Likewise.
33601         * modules/unicase/u8-casecmp: Likewise.
33602         * modules/unicase/u8-casecoll: Likewise.
33603         * modules/unicase/u8-casefold: Likewise.
33604         * modules/unicase/u8-casexfrm: Likewise.
33605         * modules/unicase/u8-ct-casefold: Likewise.
33606         * modules/unicase/u8-ct-tolower: Likewise.
33607         * modules/unicase/u8-ct-totitle: Likewise.
33608         * modules/unicase/u8-ct-toupper: Likewise.
33609         * modules/unicase/u8-is-cased: Likewise.
33610         * modules/unicase/u8-is-casefolded: Likewise.
33611         * modules/unicase/u8-is-lowercase: Likewise.
33612         * modules/unicase/u8-is-titlecase: Likewise.
33613         * modules/unicase/u8-is-uppercase: Likewise.
33614         * modules/unicase/u8-prefix-context: Likewise.
33615         * modules/unicase/u8-suffix-context: Likewise.
33616         * modules/unicase/u8-tolower: Likewise.
33617         * modules/unicase/u8-totitle: Likewise.
33618         * modules/unicase/u8-toupper: Likewise.
33619         * modules/unicase/u16-casecmp: Likewise.
33620         * modules/unicase/u16-casecoll: Likewise.
33621         * modules/unicase/u16-casefold: Likewise.
33622         * modules/unicase/u16-casexfrm: Likewise.
33623         * modules/unicase/u16-ct-casefold: Likewise.
33624         * modules/unicase/u16-ct-tolower: Likewise.
33625         * modules/unicase/u16-ct-totitle: Likewise.
33626         * modules/unicase/u16-ct-toupper: Likewise.
33627         * modules/unicase/u16-is-cased: Likewise.
33628         * modules/unicase/u16-is-casefolded: Likewise.
33629         * modules/unicase/u16-is-lowercase: Likewise.
33630         * modules/unicase/u16-is-titlecase: Likewise.
33631         * modules/unicase/u16-is-uppercase: Likewise.
33632         * modules/unicase/u16-prefix-context: Likewise.
33633         * modules/unicase/u16-suffix-context: Likewise.
33634         * modules/unicase/u16-tolower: Likewise.
33635         * modules/unicase/u16-totitle: Likewise.
33636         * modules/unicase/u16-toupper: Likewise.
33637         * modules/unicase/u32-casecmp: Likewise.
33638         * modules/unicase/u32-casecoll: Likewise.
33639         * modules/unicase/u32-casefold: Likewise.
33640         * modules/unicase/u32-casexfrm: Likewise.
33641         * modules/unicase/u32-ct-casefold: Likewise.
33642         * modules/unicase/u32-ct-tolower: Likewise.
33643         * modules/unicase/u32-ct-totitle: Likewise.
33644         * modules/unicase/u32-ct-toupper: Likewise.
33645         * modules/unicase/u32-is-cased: Likewise.
33646         * modules/unicase/u32-is-casefolded: Likewise.
33647         * modules/unicase/u32-is-lowercase: Likewise.
33648         * modules/unicase/u32-is-titlecase: Likewise.
33649         * modules/unicase/u32-is-uppercase: Likewise.
33650         * modules/unicase/u32-prefix-context: Likewise.
33651         * modules/unicase/u32-suffix-context: Likewise.
33652         * modules/unicase/u32-tolower: Likewise.
33653         * modules/unicase/u32-totitle: Likewise.
33654         * modules/unicase/u32-toupper: Likewise.
33655         * modules/unicase/ulc-casecmp: Likewise.
33656         * modules/unicase/ulc-casecoll: Likewise.
33657         * modules/unicase/ulc-casexfrm: Likewise.
33658         * modules/uniconv/u8-conv-from-enc: Likewise.
33659         * modules/uniconv/u8-conv-to-enc: Likewise.
33660         * modules/uniconv/u8-strconv-from-enc: Likewise.
33661         * modules/uniconv/u8-strconv-from-locale: Likewise.
33662         * modules/uniconv/u8-strconv-to-enc: Likewise.
33663         * modules/uniconv/u8-strconv-to-locale: Likewise.
33664         * modules/uniconv/u16-conv-from-enc: Likewise.
33665         * modules/uniconv/u16-conv-to-enc: Likewise.
33666         * modules/uniconv/u16-strconv-from-enc: Likewise.
33667         * modules/uniconv/u16-strconv-from-locale: Likewise.
33668         * modules/uniconv/u16-strconv-to-enc: Likewise.
33669         * modules/uniconv/u16-strconv-to-locale: Likewise.
33670         * modules/uniconv/u32-conv-from-enc: Likewise.
33671         * modules/uniconv/u32-conv-to-enc: Likewise.
33672         * modules/uniconv/u32-strconv-from-enc: Likewise.
33673         * modules/uniconv/u32-strconv-from-locale: Likewise.
33674         * modules/uniconv/u32-strconv-to-enc: Likewise.
33675         * modules/uniconv/u32-strconv-to-locale: Likewise.
33676         * modules/unictype/bidicategory-byname: Likewise.
33677         * modules/unictype/bidicategory-name: Likewise.
33678         * modules/unictype/bidicategory-of: Likewise.
33679         * modules/unictype/bidicategory-test: Likewise.
33680         * modules/unictype/block-list: Likewise.
33681         * modules/unictype/block-test: Likewise.
33682         * modules/unictype/category-C: Likewise.
33683         * modules/unictype/category-Cc: Likewise.
33684         * modules/unictype/category-Cf: Likewise.
33685         * modules/unictype/category-Cn: Likewise.
33686         * modules/unictype/category-Co: Likewise.
33687         * modules/unictype/category-Cs: Likewise.
33688         * modules/unictype/category-L: Likewise.
33689         * modules/unictype/category-Ll: Likewise.
33690         * modules/unictype/category-Lm: Likewise.
33691         * modules/unictype/category-Lo: Likewise.
33692         * modules/unictype/category-Lt: Likewise.
33693         * modules/unictype/category-Lu: Likewise.
33694         * modules/unictype/category-M: Likewise.
33695         * modules/unictype/category-Mc: Likewise.
33696         * modules/unictype/category-Me: Likewise.
33697         * modules/unictype/category-Mn: Likewise.
33698         * modules/unictype/category-N: Likewise.
33699         * modules/unictype/category-Nd: Likewise.
33700         * modules/unictype/category-Nl: Likewise.
33701         * modules/unictype/category-No: Likewise.
33702         * modules/unictype/category-P: Likewise.
33703         * modules/unictype/category-Pc: Likewise.
33704         * modules/unictype/category-Pd: Likewise.
33705         * modules/unictype/category-Pe: Likewise.
33706         * modules/unictype/category-Pf: Likewise.
33707         * modules/unictype/category-Pi: Likewise.
33708         * modules/unictype/category-Po: Likewise.
33709         * modules/unictype/category-Ps: Likewise.
33710         * modules/unictype/category-S: Likewise.
33711         * modules/unictype/category-Sc: Likewise.
33712         * modules/unictype/category-Sk: Likewise.
33713         * modules/unictype/category-Sm: Likewise.
33714         * modules/unictype/category-So: Likewise.
33715         * modules/unictype/category-Z: Likewise.
33716         * modules/unictype/category-Zl: Likewise.
33717         * modules/unictype/category-Zp: Likewise.
33718         * modules/unictype/category-Zs: Likewise.
33719         * modules/unictype/category-and: Likewise.
33720         * modules/unictype/category-and-not: Likewise.
33721         * modules/unictype/category-byname: Likewise.
33722         * modules/unictype/category-name: Likewise.
33723         * modules/unictype/category-none: Likewise.
33724         * modules/unictype/category-of: Likewise.
33725         * modules/unictype/category-or: Likewise.
33726         * modules/unictype/category-test: Likewise.
33727         * modules/unictype/combining-class: Likewise.
33728         * modules/unictype/ctype-alnum: Likewise.
33729         * modules/unictype/ctype-alpha: Likewise.
33730         * modules/unictype/ctype-blank: Likewise.
33731         * modules/unictype/ctype-cntrl: Likewise.
33732         * modules/unictype/ctype-digit: Likewise.
33733         * modules/unictype/ctype-graph: Likewise.
33734         * modules/unictype/ctype-lower: Likewise.
33735         * modules/unictype/ctype-print: Likewise.
33736         * modules/unictype/ctype-punct: Likewise.
33737         * modules/unictype/ctype-space: Likewise.
33738         * modules/unictype/ctype-upper: Likewise.
33739         * modules/unictype/ctype-xdigit: Likewise.
33740         * modules/unictype/decimal-digit: Likewise.
33741         * modules/unictype/digit: Likewise.
33742         * modules/unictype/mirror: Likewise.
33743         * modules/unictype/numeric: Likewise.
33744         * modules/unictype/property-alphabetic: Likewise.
33745         * modules/unictype/property-ascii-hex-digit: Likewise.
33746         * modules/unictype/property-bidi-arabic-digit: Likewise.
33747         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33748         * modules/unictype/property-bidi-block-separator: Likewise.
33749         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33750         * modules/unictype/property-bidi-common-separator: Likewise.
33751         * modules/unictype/property-bidi-control: Likewise.
33752         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33753         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33754         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33755         * modules/unictype/property-bidi-european-digit: Likewise.
33756         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33757         * modules/unictype/property-bidi-left-to-right: Likewise.
33758         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33759         * modules/unictype/property-bidi-other-neutral: Likewise.
33760         * modules/unictype/property-bidi-pdf: Likewise.
33761         * modules/unictype/property-bidi-segment-separator: Likewise.
33762         * modules/unictype/property-bidi-whitespace: Likewise.
33763         * modules/unictype/property-byname: Likewise.
33764         * modules/unictype/property-combining: Likewise.
33765         * modules/unictype/property-composite: Likewise.
33766         * modules/unictype/property-currency-symbol: Likewise.
33767         * modules/unictype/property-dash: Likewise.
33768         * modules/unictype/property-decimal-digit: Likewise.
33769         * modules/unictype/property-default-ignorable-code-point: Likewise.
33770         * modules/unictype/property-deprecated: Likewise.
33771         * modules/unictype/property-diacritic: Likewise.
33772         * modules/unictype/property-extender: Likewise.
33773         * modules/unictype/property-format-control: Likewise.
33774         * modules/unictype/property-grapheme-base: Likewise.
33775         * modules/unictype/property-grapheme-extend: Likewise.
33776         * modules/unictype/property-grapheme-link: Likewise.
33777         * modules/unictype/property-hex-digit: Likewise.
33778         * modules/unictype/property-hyphen: Likewise.
33779         * modules/unictype/property-id-continue: Likewise.
33780         * modules/unictype/property-id-start: Likewise.
33781         * modules/unictype/property-ideographic: Likewise.
33782         * modules/unictype/property-ids-binary-operator: Likewise.
33783         * modules/unictype/property-ids-trinary-operator: Likewise.
33784         * modules/unictype/property-ignorable-control: Likewise.
33785         * modules/unictype/property-iso-control: Likewise.
33786         * modules/unictype/property-join-control: Likewise.
33787         * modules/unictype/property-left-of-pair: Likewise.
33788         * modules/unictype/property-line-separator: Likewise.
33789         * modules/unictype/property-logical-order-exception: Likewise.
33790         * modules/unictype/property-lowercase: Likewise.
33791         * modules/unictype/property-math: Likewise.
33792         * modules/unictype/property-non-break: Likewise.
33793         * modules/unictype/property-not-a-character: Likewise.
33794         * modules/unictype/property-numeric: Likewise.
33795         * modules/unictype/property-other-alphabetic: Likewise.
33796         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33797         * modules/unictype/property-other-grapheme-extend: Likewise.
33798         * modules/unictype/property-other-id-continue: Likewise.
33799         * modules/unictype/property-other-id-start: Likewise.
33800         * modules/unictype/property-other-lowercase: Likewise.
33801         * modules/unictype/property-other-math: Likewise.
33802         * modules/unictype/property-other-uppercase: Likewise.
33803         * modules/unictype/property-paired-punctuation: Likewise.
33804         * modules/unictype/property-paragraph-separator: Likewise.
33805         * modules/unictype/property-pattern-syntax: Likewise.
33806         * modules/unictype/property-pattern-white-space: Likewise.
33807         * modules/unictype/property-private-use: Likewise.
33808         * modules/unictype/property-punctuation: Likewise.
33809         * modules/unictype/property-quotation-mark: Likewise.
33810         * modules/unictype/property-radical: Likewise.
33811         * modules/unictype/property-sentence-terminal: Likewise.
33812         * modules/unictype/property-soft-dotted: Likewise.
33813         * modules/unictype/property-space: Likewise.
33814         * modules/unictype/property-terminal-punctuation: Likewise.
33815         * modules/unictype/property-test: Likewise.
33816         * modules/unictype/property-titlecase: Likewise.
33817         * modules/unictype/property-unassigned-code-value: Likewise.
33818         * modules/unictype/property-unified-ideograph: Likewise.
33819         * modules/unictype/property-uppercase: Likewise.
33820         * modules/unictype/property-variation-selector: Likewise.
33821         * modules/unictype/property-white-space: Likewise.
33822         * modules/unictype/property-xid-continue: Likewise.
33823         * modules/unictype/property-xid-start: Likewise.
33824         * modules/unictype/property-zero-width: Likewise.
33825         * modules/unictype/scripts: Likewise.
33826         * modules/unictype/syntax-c-ident: Likewise.
33827         * modules/unictype/syntax-c-whitespace: Likewise.
33828         * modules/unictype/syntax-java-ident: Likewise.
33829         * modules/unictype/syntax-java-whitespace: Likewise.
33830         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33831         * modules/unilbrk/u8-width-linebreaks: Likewise.
33832         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33833         * modules/unilbrk/u16-width-linebreaks: Likewise.
33834         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33835         * modules/unilbrk/u32-width-linebreaks: Likewise.
33836         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33837         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33838         * modules/uniname/uniname: Likewise.
33839         * modules/uninorm/canonical-decomposition: Likewise.
33840         * modules/uninorm/composition: Likewise.
33841         * modules/uninorm/decomposing-form: Likewise.
33842         * modules/uninorm/decomposition: Likewise.
33843         * modules/uninorm/filter: Likewise.
33844         * modules/uninorm/nfc: Likewise.
33845         * modules/uninorm/nfd: Likewise.
33846         * modules/uninorm/nfkc: Likewise.
33847         * modules/uninorm/nfkd: Likewise.
33848         * modules/uninorm/u8-normalize: Likewise.
33849         * modules/uninorm/u8-normcmp: Likewise.
33850         * modules/uninorm/u8-normcoll: Likewise.
33851         * modules/uninorm/u8-normxfrm: Likewise.
33852         * modules/uninorm/u16-normalize: Likewise.
33853         * modules/uninorm/u16-normcmp: Likewise.
33854         * modules/uninorm/u16-normcoll: Likewise.
33855         * modules/uninorm/u16-normxfrm: Likewise.
33856         * modules/uninorm/u32-normalize: Likewise.
33857         * modules/uninorm/u32-normcmp: Likewise.
33858         * modules/uninorm/u32-normcoll: Likewise.
33859         * modules/uninorm/u32-normxfrm: Likewise.
33860         * modules/unistdio/u8-asnprintf: Likewise.
33861         * modules/unistdio/u8-asprintf: Likewise.
33862         * modules/unistdio/u8-snprintf: Likewise.
33863         * modules/unistdio/u8-sprintf: Likewise.
33864         * modules/unistdio/u8-u8-asnprintf: Likewise.
33865         * modules/unistdio/u8-u8-asprintf: Likewise.
33866         * modules/unistdio/u8-u8-snprintf: Likewise.
33867         * modules/unistdio/u8-u8-sprintf: Likewise.
33868         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33869         * modules/unistdio/u8-u8-vasprintf: Likewise.
33870         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33871         * modules/unistdio/u8-u8-vsprintf: Likewise.
33872         * modules/unistdio/u8-vasnprintf: Likewise.
33873         * modules/unistdio/u8-vasprintf: Likewise.
33874         * modules/unistdio/u8-vsnprintf: Likewise.
33875         * modules/unistdio/u8-vsprintf: Likewise.
33876         * modules/unistdio/u16-asnprintf: Likewise.
33877         * modules/unistdio/u16-asprintf: Likewise.
33878         * modules/unistdio/u16-snprintf: Likewise.
33879         * modules/unistdio/u16-sprintf: Likewise.
33880         * modules/unistdio/u16-u16-asnprintf: Likewise.
33881         * modules/unistdio/u16-u16-asprintf: Likewise.
33882         * modules/unistdio/u16-u16-snprintf: Likewise.
33883         * modules/unistdio/u16-u16-sprintf: Likewise.
33884         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33885         * modules/unistdio/u16-u16-vasprintf: Likewise.
33886         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33887         * modules/unistdio/u16-u16-vsprintf: Likewise.
33888         * modules/unistdio/u16-vasnprintf: Likewise.
33889         * modules/unistdio/u16-vasprintf: Likewise.
33890         * modules/unistdio/u16-vsnprintf: Likewise.
33891         * modules/unistdio/u16-vsprintf: Likewise.
33892         * modules/unistdio/u32-asnprintf: Likewise.
33893         * modules/unistdio/u32-asprintf: Likewise.
33894         * modules/unistdio/u32-snprintf: Likewise.
33895         * modules/unistdio/u32-sprintf: Likewise.
33896         * modules/unistdio/u32-u32-asnprintf: Likewise.
33897         * modules/unistdio/u32-u32-asprintf: Likewise.
33898         * modules/unistdio/u32-u32-snprintf: Likewise.
33899         * modules/unistdio/u32-u32-sprintf: Likewise.
33900         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33901         * modules/unistdio/u32-u32-vasprintf: Likewise.
33902         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33903         * modules/unistdio/u32-u32-vsprintf: Likewise.
33904         * modules/unistdio/u32-vasnprintf: Likewise.
33905         * modules/unistdio/u32-vasprintf: Likewise.
33906         * modules/unistdio/u32-vsnprintf: Likewise.
33907         * modules/unistdio/u32-vsprintf: Likewise.
33908         * modules/unistdio/ulc-asnprintf: Likewise.
33909         * modules/unistdio/ulc-asprintf: Likewise.
33910         * modules/unistdio/ulc-fprintf: Likewise.
33911         * modules/unistdio/ulc-snprintf: Likewise.
33912         * modules/unistdio/ulc-sprintf: Likewise.
33913         * modules/unistdio/ulc-vasnprintf: Likewise.
33914         * modules/unistdio/ulc-vasprintf: Likewise.
33915         * modules/unistdio/ulc-vfprintf: Likewise.
33916         * modules/unistdio/ulc-vsnprintf: Likewise.
33917         * modules/unistdio/ulc-vsprintf: Likewise.
33918         * modules/unistr/u8-check: Likewise.
33919         * modules/unistr/u8-chr: Likewise.
33920         * modules/unistr/u8-cmp: Likewise.
33921         * modules/unistr/u8-cmp2: Likewise.
33922         * modules/unistr/u8-cpy: Likewise.
33923         * modules/unistr/u8-cpy-alloc: Likewise.
33924         * modules/unistr/u8-endswith: Likewise.
33925         * modules/unistr/u8-mblen: Likewise.
33926         * modules/unistr/u8-mbsnlen: Likewise.
33927         * modules/unistr/u8-mbtouc: Likewise.
33928         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33929         * modules/unistr/u8-mbtoucr: Likewise.
33930         * modules/unistr/u8-move: Likewise.
33931         * modules/unistr/u8-next: Likewise.
33932         * modules/unistr/u8-prev: Likewise.
33933         * modules/unistr/u8-set: Likewise.
33934         * modules/unistr/u8-startswith: Likewise.
33935         * modules/unistr/u8-stpcpy: Likewise.
33936         * modules/unistr/u8-stpncpy: Likewise.
33937         * modules/unistr/u8-strcat: Likewise.
33938         * modules/unistr/u8-strchr: Likewise.
33939         * modules/unistr/u8-strcmp: Likewise.
33940         * modules/unistr/u8-strcoll: Likewise.
33941         * modules/unistr/u8-strcpy: Likewise.
33942         * modules/unistr/u8-strcspn: Likewise.
33943         * modules/unistr/u8-strdup: Likewise.
33944         * modules/unistr/u8-strlen: Likewise.
33945         * modules/unistr/u8-strmblen: Likewise.
33946         * modules/unistr/u8-strmbtouc: Likewise.
33947         * modules/unistr/u8-strncat: Likewise.
33948         * modules/unistr/u8-strncmp: Likewise.
33949         * modules/unistr/u8-strncpy: Likewise.
33950         * modules/unistr/u8-strnlen: Likewise.
33951         * modules/unistr/u8-strpbrk: Likewise.
33952         * modules/unistr/u8-strrchr: Likewise.
33953         * modules/unistr/u8-strspn: Likewise.
33954         * modules/unistr/u8-strstr: Likewise.
33955         * modules/unistr/u8-strtok: Likewise.
33956         * modules/unistr/u8-to-u16: Likewise.
33957         * modules/unistr/u8-to-u32: Likewise.
33958         * modules/unistr/u8-uctomb: Likewise.
33959         * modules/unistr/u16-check: Likewise.
33960         * modules/unistr/u16-chr: Likewise.
33961         * modules/unistr/u16-cmp: Likewise.
33962         * modules/unistr/u16-cmp2: Likewise.
33963         * modules/unistr/u16-cpy: Likewise.
33964         * modules/unistr/u16-cpy-alloc: Likewise.
33965         * modules/unistr/u16-endswith: Likewise.
33966         * modules/unistr/u16-mblen: Likewise.
33967         * modules/unistr/u16-mbsnlen: Likewise.
33968         * modules/unistr/u16-mbtouc: Likewise.
33969         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33970         * modules/unistr/u16-mbtoucr: Likewise.
33971         * modules/unistr/u16-move: Likewise.
33972         * modules/unistr/u16-next: Likewise.
33973         * modules/unistr/u16-prev: Likewise.
33974         * modules/unistr/u16-set: Likewise.
33975         * modules/unistr/u16-startswith: Likewise.
33976         * modules/unistr/u16-stpcpy: Likewise.
33977         * modules/unistr/u16-stpncpy: Likewise.
33978         * modules/unistr/u16-strcat: Likewise.
33979         * modules/unistr/u16-strchr: Likewise.
33980         * modules/unistr/u16-strcmp: Likewise.
33981         * modules/unistr/u16-strcoll: Likewise.
33982         * modules/unistr/u16-strcpy: Likewise.
33983         * modules/unistr/u16-strcspn: Likewise.
33984         * modules/unistr/u16-strdup: Likewise.
33985         * modules/unistr/u16-strlen: Likewise.
33986         * modules/unistr/u16-strmblen: Likewise.
33987         * modules/unistr/u16-strmbtouc: Likewise.
33988         * modules/unistr/u16-strncat: Likewise.
33989         * modules/unistr/u16-strncmp: Likewise.
33990         * modules/unistr/u16-strncpy: Likewise.
33991         * modules/unistr/u16-strnlen: Likewise.
33992         * modules/unistr/u16-strpbrk: Likewise.
33993         * modules/unistr/u16-strrchr: Likewise.
33994         * modules/unistr/u16-strspn: Likewise.
33995         * modules/unistr/u16-strstr: Likewise.
33996         * modules/unistr/u16-strtok: Likewise.
33997         * modules/unistr/u16-to-u32: Likewise.
33998         * modules/unistr/u16-to-u8: Likewise.
33999         * modules/unistr/u16-uctomb: Likewise.
34000         * modules/unistr/u32-check: Likewise.
34001         * modules/unistr/u32-chr: Likewise.
34002         * modules/unistr/u32-cmp: Likewise.
34003         * modules/unistr/u32-cmp2: Likewise.
34004         * modules/unistr/u32-cpy: Likewise.
34005         * modules/unistr/u32-cpy-alloc: Likewise.
34006         * modules/unistr/u32-endswith: Likewise.
34007         * modules/unistr/u32-mblen: Likewise.
34008         * modules/unistr/u32-mbsnlen: Likewise.
34009         * modules/unistr/u32-mbtouc: Likewise.
34010         * modules/unistr/u32-mbtouc-unsafe: Likewise.
34011         * modules/unistr/u32-mbtoucr: Likewise.
34012         * modules/unistr/u32-move: Likewise.
34013         * modules/unistr/u32-next: Likewise.
34014         * modules/unistr/u32-prev: Likewise.
34015         * modules/unistr/u32-set: Likewise.
34016         * modules/unistr/u32-startswith: Likewise.
34017         * modules/unistr/u32-stpcpy: Likewise.
34018         * modules/unistr/u32-stpncpy: Likewise.
34019         * modules/unistr/u32-strcat: Likewise.
34020         * modules/unistr/u32-strchr: Likewise.
34021         * modules/unistr/u32-strcmp: Likewise.
34022         * modules/unistr/u32-strcoll: Likewise.
34023         * modules/unistr/u32-strcpy: Likewise.
34024         * modules/unistr/u32-strcspn: Likewise.
34025         * modules/unistr/u32-strdup: Likewise.
34026         * modules/unistr/u32-strlen: Likewise.
34027         * modules/unistr/u32-strmblen: Likewise.
34028         * modules/unistr/u32-strmbtouc: Likewise.
34029         * modules/unistr/u32-strncat: Likewise.
34030         * modules/unistr/u32-strncmp: Likewise.
34031         * modules/unistr/u32-strncpy: Likewise.
34032         * modules/unistr/u32-strnlen: Likewise.
34033         * modules/unistr/u32-strpbrk: Likewise.
34034         * modules/unistr/u32-strrchr: Likewise.
34035         * modules/unistr/u32-strspn: Likewise.
34036         * modules/unistr/u32-strstr: Likewise.
34037         * modules/unistr/u32-strtok: Likewise.
34038         * modules/unistr/u32-to-u16: Likewise.
34039         * modules/unistr/u32-to-u8: Likewise.
34040         * modules/unistr/u32-uctomb: Likewise.
34041         * modules/uniwbrk/u8-wordbreaks: Likewise.
34042         * modules/uniwbrk/u16-wordbreaks: Likewise.
34043         * modules/uniwbrk/u32-wordbreaks: Likewise.
34044         * modules/uniwbrk/ulc-wordbreaks: Likewise.
34045         * modules/uniwbrk/wordbreak-property: Likewise.
34046         * modules/uniwidth/u8-strwidth: Likewise.
34047         * modules/uniwidth/u8-width: Likewise.
34048         * modules/uniwidth/u16-strwidth: Likewise.
34049         * modules/uniwidth/u16-width: Likewise.
34050         * modules/uniwidth/u32-strwidth: Likewise.
34051         * modules/uniwidth/u32-width: Likewise.
34052         * modules/uniwidth/width: Likewise.
34053         * modules/unicase/cased-tests (Makefile.am): Link all test programs
34054         with $(LIBUNISTRING).
34055         * modules/unicase/ignorable-tests: Likewise.
34056         * modules/unicase/locale-language-tests: Likewise.
34057         * modules/unicase/tolower-tests: Likewise.
34058         * modules/unicase/totitle-tests: Likewise.
34059         * modules/unicase/toupper-tests: Likewise.
34060         * modules/unicase/u8-casecmp-tests: Likewise.
34061         * modules/unicase/u8-casecoll-tests: Likewise.
34062         * modules/unicase/u8-casefold-tests: Likewise.
34063         * modules/unicase/u8-is-cased-tests: Likewise.
34064         * modules/unicase/u8-is-casefolded-tests: Likewise.
34065         * modules/unicase/u8-is-lowercase-tests: Likewise.
34066         * modules/unicase/u8-is-titlecase-tests: Likewise.
34067         * modules/unicase/u8-is-uppercase-tests: Likewise.
34068         * modules/unicase/u8-tolower-tests: Likewise.
34069         * modules/unicase/u8-totitle-tests: Likewise.
34070         * modules/unicase/u8-toupper-tests: Likewise.
34071         * modules/unicase/u16-casecmp-tests: Likewise.
34072         * modules/unicase/u16-casecoll-tests: Likewise.
34073         * modules/unicase/u16-casefold-tests: Likewise.
34074         * modules/unicase/u16-is-cased-tests: Likewise.
34075         * modules/unicase/u16-is-casefolded-tests: Likewise.
34076         * modules/unicase/u16-is-lowercase-tests: Likewise.
34077         * modules/unicase/u16-is-titlecase-tests: Likewise.
34078         * modules/unicase/u16-is-uppercase-tests: Likewise.
34079         * modules/unicase/u16-tolower-tests: Likewise.
34080         * modules/unicase/u16-totitle-tests: Likewise.
34081         * modules/unicase/u16-toupper-tests: Likewise.
34082         * modules/unicase/u32-casecmp-tests: Likewise.
34083         * modules/unicase/u32-casecoll-tests: Likewise.
34084         * modules/unicase/u32-casefold-tests: Likewise.
34085         * modules/unicase/u32-is-cased-tests: Likewise.
34086         * modules/unicase/u32-is-casefolded-tests: Likewise.
34087         * modules/unicase/u32-is-lowercase-tests: Likewise.
34088         * modules/unicase/u32-is-titlecase-tests: Likewise.
34089         * modules/unicase/u32-is-uppercase-tests: Likewise.
34090         * modules/unicase/u32-tolower-tests: Likewise.
34091         * modules/unicase/u32-totitle-tests: Likewise.
34092         * modules/unicase/u32-toupper-tests: Likewise.
34093         * modules/unicase/ulc-casecmp-tests: Likewise.
34094         * modules/unicase/ulc-casecoll-tests: Likewise.
34095         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
34096         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
34097         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
34098         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
34099         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
34100         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
34101         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
34102         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
34103         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
34104         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
34105         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
34106         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
34107         * modules/unictype/bidicategory-byname-tests: Likewise.
34108         * modules/unictype/bidicategory-name-tests: Likewise.
34109         * modules/unictype/bidicategory-of-tests: Likewise.
34110         * modules/unictype/bidicategory-test-tests: Likewise.
34111         * modules/unictype/block-list-tests: Likewise.
34112         * modules/unictype/block-of-tests: Likewise.
34113         * modules/unictype/block-test-tests: Likewise.
34114         * modules/unictype/category-C-tests: Likewise.
34115         * modules/unictype/category-Cc-tests: Likewise.
34116         * modules/unictype/category-Cf-tests: Likewise.
34117         * modules/unictype/category-Cn-tests: Likewise.
34118         * modules/unictype/category-Co-tests: Likewise.
34119         * modules/unictype/category-Cs-tests: Likewise.
34120         * modules/unictype/category-L-tests: Likewise.
34121         * modules/unictype/category-Ll-tests: Likewise.
34122         * modules/unictype/category-Lm-tests: Likewise.
34123         * modules/unictype/category-Lo-tests: Likewise.
34124         * modules/unictype/category-Lt-tests: Likewise.
34125         * modules/unictype/category-Lu-tests: Likewise.
34126         * modules/unictype/category-M-tests: Likewise.
34127         * modules/unictype/category-Mc-tests: Likewise.
34128         * modules/unictype/category-Me-tests: Likewise.
34129         * modules/unictype/category-Mn-tests: Likewise.
34130         * modules/unictype/category-N-tests: Likewise.
34131         * modules/unictype/category-Nd-tests: Likewise.
34132         * modules/unictype/category-Nl-tests: Likewise.
34133         * modules/unictype/category-No-tests: Likewise.
34134         * modules/unictype/category-P-tests: Likewise.
34135         * modules/unictype/category-Pc-tests: Likewise.
34136         * modules/unictype/category-Pd-tests: Likewise.
34137         * modules/unictype/category-Pe-tests: Likewise.
34138         * modules/unictype/category-Pf-tests: Likewise.
34139         * modules/unictype/category-Pi-tests: Likewise.
34140         * modules/unictype/category-Po-tests: Likewise.
34141         * modules/unictype/category-Ps-tests: Likewise.
34142         * modules/unictype/category-S-tests: Likewise.
34143         * modules/unictype/category-Sc-tests: Likewise.
34144         * modules/unictype/category-Sk-tests: Likewise.
34145         * modules/unictype/category-Sm-tests: Likewise.
34146         * modules/unictype/category-So-tests: Likewise.
34147         * modules/unictype/category-Z-tests: Likewise.
34148         * modules/unictype/category-Zl-tests: Likewise.
34149         * modules/unictype/category-Zp-tests: Likewise.
34150         * modules/unictype/category-Zs-tests: Likewise.
34151         * modules/unictype/category-and-not-tests: Likewise.
34152         * modules/unictype/category-and-tests: Likewise.
34153         * modules/unictype/category-byname-tests: Likewise.
34154         * modules/unictype/category-name-tests: Likewise.
34155         * modules/unictype/category-none-tests: Likewise.
34156         * modules/unictype/category-of-tests: Likewise.
34157         * modules/unictype/category-or-tests: Likewise.
34158         * modules/unictype/category-test-withtable-tests: Likewise.
34159         * modules/unictype/combining-class-tests: Likewise.
34160         * modules/unictype/ctype-alnum-tests: Likewise.
34161         * modules/unictype/ctype-alpha-tests: Likewise.
34162         * modules/unictype/ctype-blank-tests: Likewise.
34163         * modules/unictype/ctype-cntrl-tests: Likewise.
34164         * modules/unictype/ctype-digit-tests: Likewise.
34165         * modules/unictype/ctype-graph-tests: Likewise.
34166         * modules/unictype/ctype-lower-tests: Likewise.
34167         * modules/unictype/ctype-print-tests: Likewise.
34168         * modules/unictype/ctype-punct-tests: Likewise.
34169         * modules/unictype/ctype-space-tests: Likewise.
34170         * modules/unictype/ctype-upper-tests: Likewise.
34171         * modules/unictype/ctype-xdigit-tests: Likewise.
34172         * modules/unictype/decimal-digit-tests: Likewise.
34173         * modules/unictype/digit-tests: Likewise.
34174         * modules/unictype/mirror-tests: Likewise.
34175         * modules/unictype/numeric-tests: Likewise.
34176         * modules/unictype/property-alphabetic-tests: Likewise.
34177         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
34178         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
34179         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
34180         * modules/unictype/property-bidi-block-separator-tests: Likewise.
34181         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
34182         * modules/unictype/property-bidi-common-separator-tests: Likewise.
34183         * modules/unictype/property-bidi-control-tests: Likewise.
34184         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
34185         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
34186         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
34187         * modules/unictype/property-bidi-european-digit-tests: Likewise.
34188         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
34189         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
34190         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
34191         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
34192         * modules/unictype/property-bidi-pdf-tests: Likewise.
34193         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
34194         * modules/unictype/property-bidi-whitespace-tests: Likewise.
34195         * modules/unictype/property-byname-tests: Likewise.
34196         * modules/unictype/property-combining-tests: Likewise.
34197         * modules/unictype/property-composite-tests: Likewise.
34198         * modules/unictype/property-currency-symbol-tests: Likewise.
34199         * modules/unictype/property-dash-tests: Likewise.
34200         * modules/unictype/property-decimal-digit-tests: Likewise.
34201         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
34202         * modules/unictype/property-deprecated-tests: Likewise.
34203         * modules/unictype/property-diacritic-tests: Likewise.
34204         * modules/unictype/property-extender-tests: Likewise.
34205         * modules/unictype/property-format-control-tests: Likewise.
34206         * modules/unictype/property-grapheme-base-tests: Likewise.
34207         * modules/unictype/property-grapheme-extend-tests: Likewise.
34208         * modules/unictype/property-grapheme-link-tests: Likewise.
34209         * modules/unictype/property-hex-digit-tests: Likewise.
34210         * modules/unictype/property-hyphen-tests: Likewise.
34211         * modules/unictype/property-id-continue-tests: Likewise.
34212         * modules/unictype/property-id-start-tests: Likewise.
34213         * modules/unictype/property-ideographic-tests: Likewise.
34214         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34215         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34216         * modules/unictype/property-ignorable-control-tests: Likewise.
34217         * modules/unictype/property-iso-control-tests: Likewise.
34218         * modules/unictype/property-join-control-tests: Likewise.
34219         * modules/unictype/property-left-of-pair-tests: Likewise.
34220         * modules/unictype/property-line-separator-tests: Likewise.
34221         * modules/unictype/property-logical-order-exception-tests: Likewise.
34222         * modules/unictype/property-lowercase-tests: Likewise.
34223         * modules/unictype/property-math-tests: Likewise.
34224         * modules/unictype/property-non-break-tests: Likewise.
34225         * modules/unictype/property-not-a-character-tests: Likewise.
34226         * modules/unictype/property-numeric-tests: Likewise.
34227         * modules/unictype/property-other-alphabetic-tests: Likewise.
34228         * modules/unictype/property-other-default-ignorable-code-point-tests:
34229         Likewise.
34230         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34231         * modules/unictype/property-other-id-continue-tests: Likewise.
34232         * modules/unictype/property-other-id-start-tests: Likewise.
34233         * modules/unictype/property-other-lowercase-tests: Likewise.
34234         * modules/unictype/property-other-math-tests: Likewise.
34235         * modules/unictype/property-other-uppercase-tests: Likewise.
34236         * modules/unictype/property-paired-punctuation-tests: Likewise.
34237         * modules/unictype/property-paragraph-separator-tests: Likewise.
34238         * modules/unictype/property-pattern-syntax-tests: Likewise.
34239         * modules/unictype/property-pattern-white-space-tests: Likewise.
34240         * modules/unictype/property-private-use-tests: Likewise.
34241         * modules/unictype/property-punctuation-tests: Likewise.
34242         * modules/unictype/property-quotation-mark-tests: Likewise.
34243         * modules/unictype/property-radical-tests: Likewise.
34244         * modules/unictype/property-sentence-terminal-tests: Likewise.
34245         * modules/unictype/property-soft-dotted-tests: Likewise.
34246         * modules/unictype/property-space-tests: Likewise.
34247         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34248         * modules/unictype/property-test-tests: Likewise.
34249         * modules/unictype/property-titlecase-tests: Likewise.
34250         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34251         * modules/unictype/property-unified-ideograph-tests: Likewise.
34252         * modules/unictype/property-uppercase-tests: Likewise.
34253         * modules/unictype/property-variation-selector-tests: Likewise.
34254         * modules/unictype/property-white-space-tests: Likewise.
34255         * modules/unictype/property-xid-continue-tests: Likewise.
34256         * modules/unictype/property-xid-start-tests: Likewise.
34257         * modules/unictype/property-zero-width-tests: Likewise.
34258         * modules/unictype/scripts-tests: Likewise.
34259         * modules/unictype/syntax-c-ident-tests: Likewise.
34260         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34261         * modules/unictype/syntax-java-ident-tests: Likewise.
34262         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34263         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34264         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34265         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34266         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34267         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34268         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34269         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34270         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34271         * modules/uniname/uniname-tests: Likewise.
34272         * modules/uninorm/canonical-decomposition-tests: Likewise.
34273         * modules/uninorm/compat-decomposition-tests: Likewise.
34274         * modules/uninorm/composition-tests: Likewise.
34275         * modules/uninorm/decomposing-form-tests: Likewise.
34276         * modules/uninorm/decomposition-tests: Likewise.
34277         * modules/uninorm/filter-tests: Likewise.
34278         * modules/uninorm/nfc-tests: Likewise.
34279         * modules/uninorm/nfd-tests: Likewise.
34280         * modules/uninorm/nfkc-tests: Likewise.
34281         * modules/uninorm/nfkd-tests: Likewise.
34282         * modules/uninorm/u8-normcmp-tests: Likewise.
34283         * modules/uninorm/u8-normcoll-tests: Likewise.
34284         * modules/uninorm/u16-normcmp-tests: Likewise.
34285         * modules/uninorm/u16-normcoll-tests: Likewise.
34286         * modules/uninorm/u32-normcmp-tests: Likewise.
34287         * modules/uninorm/u32-normcoll-tests: Likewise.
34288         * modules/unistdio/u8-asnprintf-tests: Likewise.
34289         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34290         * modules/unistdio/u8-vasprintf-tests: Likewise.
34291         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34292         * modules/unistdio/u8-vsprintf-tests: Likewise.
34293         * modules/unistdio/u16-asnprintf-tests: Likewise.
34294         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34295         * modules/unistdio/u16-vasprintf-tests: Likewise.
34296         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34297         * modules/unistdio/u16-vsprintf-tests: Likewise.
34298         * modules/unistdio/u32-asnprintf-tests: Likewise.
34299         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34300         * modules/unistdio/u32-vasprintf-tests: Likewise.
34301         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34302         * modules/unistdio/u32-vsprintf-tests: Likewise.
34303         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34304         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34305         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34306         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34307         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34308         * modules/unistr/u8-check-tests: Likewise.
34309         * modules/unistr/u8-chr-tests: Likewise.
34310         * modules/unistr/u8-cmp-tests: Likewise.
34311         * modules/unistr/u8-cmp2-tests: Likewise.
34312         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34313         * modules/unistr/u8-cpy-tests: Likewise.
34314         * modules/unistr/u8-mblen-tests: Likewise.
34315         * modules/unistr/u8-mbsnlen-tests: Likewise.
34316         * modules/unistr/u8-mbtouc-tests: Likewise.
34317         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34318         * modules/unistr/u8-mbtoucr-tests: Likewise.
34319         * modules/unistr/u8-move-tests: Likewise.
34320         * modules/unistr/u8-next-tests: Likewise.
34321         * modules/unistr/u8-prev-tests: Likewise.
34322         * modules/unistr/u8-set-tests: Likewise.
34323         * modules/unistr/u8-stpcpy-tests: Likewise.
34324         * modules/unistr/u8-stpncpy-tests: Likewise.
34325         * modules/unistr/u8-strcat-tests: Likewise.
34326         * modules/unistr/u8-strcmp-tests: Likewise.
34327         * modules/unistr/u8-strcoll-tests: Likewise.
34328         * modules/unistr/u8-strcpy-tests: Likewise.
34329         * modules/unistr/u8-strdup-tests: Likewise.
34330         * modules/unistr/u8-strlen-tests: Likewise.
34331         * modules/unistr/u8-strmblen-tests: Likewise.
34332         * modules/unistr/u8-strmbtouc-tests: Likewise.
34333         * modules/unistr/u8-strncat-tests: Likewise.
34334         * modules/unistr/u8-strncmp-tests: Likewise.
34335         * modules/unistr/u8-strncpy-tests: Likewise.
34336         * modules/unistr/u8-strnlen-tests: Likewise.
34337         * modules/unistr/u8-to-u16-tests: Likewise.
34338         * modules/unistr/u8-to-u32-tests: Likewise.
34339         * modules/unistr/u8-uctomb-tests: Likewise.
34340         * modules/unistr/u16-check-tests: Likewise.
34341         * modules/unistr/u16-chr-tests: Likewise.
34342         * modules/unistr/u16-cmp-tests: Likewise.
34343         * modules/unistr/u16-cmp2-tests: Likewise.
34344         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34345         * modules/unistr/u16-cpy-tests: Likewise.
34346         * modules/unistr/u16-mblen-tests: Likewise.
34347         * modules/unistr/u16-mbsnlen-tests: Likewise.
34348         * modules/unistr/u16-mbtouc-tests: Likewise.
34349         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34350         * modules/unistr/u16-mbtoucr-tests: Likewise.
34351         * modules/unistr/u16-move-tests: Likewise.
34352         * modules/unistr/u16-next-tests: Likewise.
34353         * modules/unistr/u16-prev-tests: Likewise.
34354         * modules/unistr/u16-set-tests: Likewise.
34355         * modules/unistr/u16-stpcpy-tests: Likewise.
34356         * modules/unistr/u16-stpncpy-tests: Likewise.
34357         * modules/unistr/u16-strcat-tests: Likewise.
34358         * modules/unistr/u16-strcmp-tests: Likewise.
34359         * modules/unistr/u16-strcoll-tests: Likewise.
34360         * modules/unistr/u16-strcpy-tests: Likewise.
34361         * modules/unistr/u16-strdup-tests: Likewise.
34362         * modules/unistr/u16-strlen-tests: Likewise.
34363         * modules/unistr/u16-strmblen-tests: Likewise.
34364         * modules/unistr/u16-strmbtouc-tests: Likewise.
34365         * modules/unistr/u16-strncat-tests: Likewise.
34366         * modules/unistr/u16-strncmp-tests: Likewise.
34367         * modules/unistr/u16-strncpy-tests: Likewise.
34368         * modules/unistr/u16-strnlen-tests: Likewise.
34369         * modules/unistr/u16-to-u32-tests: Likewise.
34370         * modules/unistr/u16-to-u8-tests: Likewise.
34371         * modules/unistr/u16-uctomb-tests: Likewise.
34372         * modules/unistr/u32-check-tests: Likewise.
34373         * modules/unistr/u32-chr-tests: Likewise.
34374         * modules/unistr/u32-cmp-tests: Likewise.
34375         * modules/unistr/u32-cmp2-tests: Likewise.
34376         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34377         * modules/unistr/u32-cpy-tests: Likewise.
34378         * modules/unistr/u32-mblen-tests: Likewise.
34379         * modules/unistr/u32-mbsnlen-tests: Likewise.
34380         * modules/unistr/u32-mbtouc-tests: Likewise.
34381         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34382         * modules/unistr/u32-mbtoucr-tests: Likewise.
34383         * modules/unistr/u32-move-tests: Likewise.
34384         * modules/unistr/u32-next-tests: Likewise.
34385         * modules/unistr/u32-prev-tests: Likewise.
34386         * modules/unistr/u32-set-tests: Likewise.
34387         * modules/unistr/u32-stpcpy-tests: Likewise.
34388         * modules/unistr/u32-stpncpy-tests: Likewise.
34389         * modules/unistr/u32-strcat-tests: Likewise.
34390         * modules/unistr/u32-strcmp-tests: Likewise.
34391         * modules/unistr/u32-strcoll-tests: Likewise.
34392         * modules/unistr/u32-strcpy-tests: Likewise.
34393         * modules/unistr/u32-strdup-tests: Likewise.
34394         * modules/unistr/u32-strlen-tests: Likewise.
34395         * modules/unistr/u32-strmblen-tests: Likewise.
34396         * modules/unistr/u32-strmbtouc-tests: Likewise.
34397         * modules/unistr/u32-strncat-tests: Likewise.
34398         * modules/unistr/u32-strncmp-tests: Likewise.
34399         * modules/unistr/u32-strncpy-tests: Likewise.
34400         * modules/unistr/u32-strnlen-tests: Likewise.
34401         * modules/unistr/u32-to-u16-tests: Likewise.
34402         * modules/unistr/u32-to-u8-tests: Likewise.
34403         * modules/unistr/u32-uctomb-tests: Likewise.
34404         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34405         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34406         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34407         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34408         * modules/uniwidth/u8-strwidth-tests: Likewise.
34409         * modules/uniwidth/u8-width-tests: Likewise.
34410         * modules/uniwidth/u16-strwidth-tests: Likewise.
34411         * modules/uniwidth/u16-width-tests: Likewise.
34412         * modules/uniwidth/u32-strwidth-tests: Likewise.
34413         * modules/uniwidth/u32-width-tests: Likewise.
34414         * modules/uniwidth/width-tests: Likewise.
34415
34416 2010-05-18  Richard Jones  <rjones@redhat.com>
34417
34418         doc: users.txt: list hivex
34419         * users.txt: Add hivex.
34420
34421 2010-05-18  Richard Jones  <rjones@redhat.com>
34422
34423         doc: users.txt: list febootstrap
34424         * users.txt: Add febootstrap.
34425
34426 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34427
34428         bootstrap: fix an error when gnulib is not used as a git submodule
34429         * build-aux/bootstrap (gnulib_path): If its length is zero then
34430         assign "gnulib" to it.
34431         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34432
34433 2010-05-16  Bruno Haible  <bruno@clisp.org>
34434
34435         Avoid autoconf warnings about AM_ICONV.
34436         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34437         2.64.
34438
34439 2010-05-16  Bruno Haible  <bruno@clisp.org>
34440
34441         absolute-header: Make the macro usable in more situations.
34442         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34443         from gl_ABSOLUTE_HEADER.
34444         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34445
34446 2010-05-16  James Youngman  <jay@gnu.org>
34447
34448         doc: update users.txt
34449         * users.txt: Add CSSC.
34450
34451 2010-05-16  Jim Meyering  <meyering@redhat.com>
34452
34453         init.sh: fix an error in the previous change; add more comments
34454         * tests/init.sh: Compare exit code in loop against 9, not 2.
34455         Patch by Bruno Haible.
34456         Make the two tests more similar by adding an empty "then" clause.
34457         Add comments.
34458
34459         init.sh: avoid unnecessary shell re-exec
34460         * tests/init.sh: Improve the re-exec-required check to first test the
34461         current shell.  If it passes the test, do not search for a shell that
34462         does pass, and do not re-exec.  This test is particularly contorted to
34463         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34464         of $(...) evokes a syntax error and causes immediate shell exit with
34465         status 2.  Bruno Haible reported that the re-exec made it impossible
34466         to single-step through any init.sh-using script.
34467
34468 2010-05-16  Bruno Haible  <bruno@clisp.org>
34469
34470         Fix collision between gnulib's and libintl's printf replacements.
34471         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34472         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34473         (printf): When using GNU C, map the __printf__ function to rpl_printf
34474         via __asm__. When not using GNU C, define rpl_printf instead of
34475         __printf__.
34476         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34477         commit.
34478         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34479         commit.
34480         * m4/asm-underscore.m4: New file.
34481         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34482         * modules/stdio (Files): Add m4/asm-underscore.m4.
34483         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34484         Reported by Ben Pfaff.
34485
34486 2010-05-16  Bruno Haible  <bruno@clisp.org>
34487
34488         verify: Avoid skipping the test on openSUSE 11.0.
34489         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34490
34491 2010-05-13  Bruno Haible  <bruno@clisp.org>
34492
34493         Avoid useless warnings from G++.
34494         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34495         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34496         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34497
34498 2010-05-11  Jim Meyering  <meyering@redhat.com>
34499
34500         maint.mk: tweak preceding change
34501         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34502         regexps tighter by anchoring at EOL, and make the new group "shy"
34503         for slightly decreased overhead.
34504
34505 2010-05-11  Eric Blake  <eblake@redhat.com>
34506
34507         maint.mk: gnulib doesn't guarantee NSIG
34508         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34509
34510 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34511
34512         test-pwrite.c: Remove unused variable declaration.
34513         * tests/test-pwrite.c (main): Remove read_buf declaration.
34514
34515         Remove useless test-pwrite.sh file.
34516         * tests/test-pwrite.sh: Delete file.
34517         * modules/pwrite-tests: Remove references.
34518         Reported by Bruno Haible.
34519
34520 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34521
34522         init.sh: fix a typo
34523         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34524
34525 2010-05-10  Jim Meyering  <meyering@redhat.com>
34526
34527         maint.mk: avoid using a temporary file in the always-defined-macros check
34528         * top/maint.mk (.re-defmac): Remove rule.
34529         (gl_trap_): Remove definition.
34530         (sc_prohibit_always-defined_macros): Rewrite not to create and
34531         depend on a temporary file.  Instead, depend on GNU grep's ability
34532         to read a list of regular expressions from stdin when given "-f -".
34533
34534 2010-05-09  Bruno Haible  <bruno@clisp.org>
34535
34536         Update to GNU gettext 0.18, part 1.
34537         * m4/gettext.m4: Update to GNU gettext 0.18.
34538         * m4/intl.m4: Likewise.
34539         * m4/po.m4: Likewise.
34540         * modules/gettext (Files): Add m4/fcntl-o.m4.
34541         (configure.ac): Require gettext infrastructure from version 0.18.
34542
34543 2010-05-09  Jim Meyering  <meyering@redhat.com>
34544
34545         init.sh: enable MALLOC_PERTURB_
34546         * tests/init.sh: Enable glibc's malloc-perturbing option.
34547
34548         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34549         With my recent change in init.sh from the two-line form:
34550             -#   : ${srcdir=.}
34551             -#   . "$srcdir/init.sh"; path_prepend_ .
34552             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34553         I noticed that using the one-line form would cause this test
34554         to fail with a false-positive, or to stop working altogether,
34555         depending on whether help-version changed or all the tests did.
34556         * top/maint.mk (_hv_regex): Remove this definition.
34557         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34558         (_hv_regex_strong): Use a stronger regex to check for conformance.
34559         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34560         Give a separate diagnostic for lack of conforming use.
34561
34562         maint.mk: prohibit definition of symbols defined by gnulib
34563         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34564         definition of symbols defined by gnulib.
34565
34566 2010-05-09  Bruno Haible  <bruno@clisp.org>
34567
34568         acl: Avoid test failure on Cygwin-hosted mingw.
34569         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34570
34571 2010-05-09  Bruno Haible  <bruno@clisp.org>
34572
34573         error: Use system's fcntl function.
34574         * lib/error.c (fcntl): Undefine.
34575
34576 2010-05-09  Jim Meyering  <meyering@redhat.com>
34577
34578         verify: adjust formatting to be more consistent
34579         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34580         argument-list '('s, and after one comma.
34581
34582 2010-05-09  Bruno Haible  <bruno@clisp.org>
34583
34584         error: More reliable output on mingw.
34585         * lib/error.c: Include <windows.h>.
34586         (is_open): New function.
34587         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34588         defined.
34589
34590 2010-05-09  Bruno Haible  <bruno@clisp.org>
34591
34592         vasnprintf: Fix syntax errors in libintl build on mingw.
34593         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34594         pad_ourselves and prec_ourselves after use.
34595
34596 2010-05-08  Bruno Haible  <bruno@clisp.org>
34597
34598         * lib/config.charset: Update comments for Cygwin 1.7.
34599         * lib/localcharset.c: Likewise.
34600
34601 2010-05-07  Jim Meyering  <meyering@redhat.com>
34602
34603         init.sh: improve comments
34604         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34605         . "${srcdir=.}/init.sh"; path_prepend_ .
34606         Add a note about path_prepend_ and the alternative of using
34607         TESTS_ENVIRONMENT.
34608
34609 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34610
34611         exclude: Unescape hashed patterns in wildcard mode.
34612         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34613         to the hash list.
34614         * tests/test-exclude8.sh: New test case.
34615         * modules/exclude-tests: Add new test.
34616
34617 2010-05-05  Eric Blake  <eblake@redhat.com>
34618
34619         verify: automate tests
34620         * modules/verify-tests: New module.
34621         * tests/test-verify.sh: New file.
34622         * tests/test-verify.c: Guard each negative test with a unique id.
34623         Also avoid warning about unused left hand of comma expressions.
34624
34625 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34626
34627         Further improvements to verify.h, suggested by Eric Blake.
34628         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34629         the GL_* versions, to avoid collision with OpenGL.
34630         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34631         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34632         than testing merely whether it's defined.
34633
34634         Modify verify.h to pacify gcc -Wredundant_decls.
34635         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34636         These use the prefix "GL_" since they're likely to be useful elsewhere.
34637         We may need to break them out into a different .h file.
34638         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34639         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34640         of verify_function__.
34641
34642 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34643
34644         Tests for module pwrite.
34645         * modules/pwrite-tests: New file.
34646         * tests/test-pwrite.sh: New file.
34647         * tests/test-pwrite.c: New file.
34648
34649         New module pwrite.
34650         * lib/unistd.in.h (pwrite): New declaration.
34651         * lib/pwrite.c: New file, from glibc with modifications.
34652         * m4/pwrite.m4: New file.
34653         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34654         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34655         REPLACE_PWRITE.
34656         * modules/pwrite: New file.
34657         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34658         REPLACE_PWRITE.
34659         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34660         * doc/posix-functions/pwrite.texi: Mention the new module.
34661
34662 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34663
34664         pread: Update documentation.
34665         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34666
34667 2010-05-04  Eric Blake  <eblake@redhat.com>
34668
34669         docs: update cygwin progress
34670         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34671         this bug.
34672         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34673         Added in cygwin 1.7.2.
34674         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34675         Likewise.
34676         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34677         Likewise.
34678         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34679         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34680         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34681         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34682         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34683         Mention nproc module.
34684         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34685         bug in cygwin 1.7.5 addition.
34686         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34687         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34688         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34689         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34690         1.7.5.
34691         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34692         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34693         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34694         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34695         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34696         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34697         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34698         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34699         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34700         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34701         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34702         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34703         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34704         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34705         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34706         Likewise.
34707         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34708         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34709         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34710         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34711         Likewise.
34712         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34713         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34714         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34715         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34716         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34717         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34718         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34719         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34720         Likewise.
34721         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34722         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34723         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34724         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34725         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34726         Likewise.
34727         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34728         Likewise.
34729         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34730         Likewise.
34731         * doc/glibc-functions/xdrrec_endofrecord.texi
34732         (xdrrec_endofrecord): Likewise.
34733         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34734         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34735         Likewise.
34736         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34737         Likewise.
34738
34739 2010-05-04  Jim Meyering  <meyering@redhat.com>
34740
34741         gendocs.sh: make its "-s FILE" option more useful
34742         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34743         $PACKAGE to reflect the probably-different basename of "FILE".
34744
34745 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34746
34747         bootstrap: don't ignore download_po_files failure
34748         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34749         failure.
34750
34751 2010-05-03  Jim Meyering  <meyering@redhat.com>
34752
34753         maint.mk: allow to pass options to gendocs.sh
34754         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34755         (gendocs_options_): New overridable variable.
34756
34757         gnu-web-doc-update: don't ignore configure or build failure
34758         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34759
34760         announce-gen: backslash-escape '@'s in --help output
34761         * build-aux/announce-gen: Fix syntax errors.
34762
34763         maint.mk, announce-gen: allow project-specific announcement mail headers
34764         * top/maint.mk (translation_project_): Define default.
34765         (announcement_Cc_, announcement_mail_headers_): Likewise.
34766         (announcement): Invoke announce-gen with new --mail-headers option.
34767         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34768
34769         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34770         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34771         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34772         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34773         line in the "err2" output file when running "make check" in verbose
34774         mode (i.e., with set -x enabled).
34775
34776 2010-05-03  Bruno Haible  <bruno@clisp.org>
34777
34778         wctob: Fix for weird platforms.
34779         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34780         argument value.
34781
34782 2010-05-03  Jim Meyering  <meyering@redhat.com>
34783
34784         maint.mk: prohibit unwarranted use of <strings.h>
34785         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34786         strings.h in a file that does not also use strcasecmp, strncasecmp,
34787         ffs or ffsll.
34788
34789         maint.mk: remove obsolete comments
34790         * top/maint.mk: Remove stale, commented-out rules.
34791
34792 2010-05-02  Bruno Haible  <bruno@clisp.org>
34793
34794         wcwidth: Declare also when it's aliased.
34795         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34796         macro.
34797
34798 2010-05-02  Bruno Haible  <bruno@clisp.org>
34799
34800         Fix regression from 2010-04-25.
34801         * gnulib-tool (func_modules_transitive_closure): Check the status of
34802         all modules, not only of the tests that are of the form foo-tests where
34803         foo is a module.
34804
34805 2010-05-02  Bruno Haible  <bruno@clisp.org>
34806
34807         wctob: Work around nasty Cygwin 1.7.2 bug.
34808         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34809         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34810
34811 2010-05-01  Bruno Haible  <bruno@clisp.org>
34812
34813         fpurge: Sharper test.
34814         * tests/test-fpurge.c (main): Add one more ftell check.
34815         * modules/fpurge-tests (Depends-on): Add ftell.
34816         Suggested by Eric Blake.
34817
34818 2010-05-01  Bruno Haible  <bruno@clisp.org>
34819
34820         ftello: Another test.
34821         * tests/test-ftello3.c: New file.
34822         * modules/ftello-tests (Files): Add it.
34823         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34824         MOSTLYCLEANFILES.
34825
34826         ftell: Another test.
34827         * tests/test-ftell3.c: New file.
34828         * modules/ftell-tests (Files): Add it.
34829         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34830         MOSTLYCLEANFILES.
34831
34832 2010-05-01  Bruno Haible  <bruno@clisp.org>
34833
34834         ftell, ftello: Work around Solaris bug.
34835         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34836         * lib/ftello.c: Include stdio-impl.h.
34837         (ftello): On Solaris, when _IOWRT is set, compute the result without
34838         looking at _IOREAD.
34839         * modules/ftello (Files): Add lib/stdio-impl.h.
34840         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34841         * doc/posix-functions/ftello.texi: Likewise.
34842         Reported by Eric Blake.
34843
34844 2010-05-01  Bruno Haible  <bruno@clisp.org>
34845
34846         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34847         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34848         the _IOWRT flag is also set.
34849
34850 2010-05-01  Bruno Haible  <bruno@clisp.org>
34851
34852         Fix doc about a HP-UX stdio bug.
34853         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34854         * doc/posix-functions/ftello.texi: Likewise.
34855
34856 2010-05-01  Bruno Haible  <bruno@clisp.org>
34857
34858         lseek test: Fix failure on Solaris.
34859         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34860         output.
34861
34862 2010-04-30  Jim Meyering  <meyering@redhat.com>
34863
34864         bootstrap: don't ignore failure to generate po*/Makevars
34865         * build-aux/bootstrap (with_gettext): Don't ignore failure
34866         to create po/Makevars or runtime-po/Makevars.
34867
34868 2010-04-29  Eric Blake  <eblake@redhat.com>
34869
34870         headers: relax license to LGPLv2+
34871         * modules/fcntl-h (License): Relax license.
34872         * modules/getopt-posix (License): Likewise.
34873         * modules/locale (License): Likewise.
34874         * modules/math (License): Likewise.
34875         * modules/pty (License): Likewise.
34876         * modules/sched (License): Likewise.
34877         * modules/search (License): Likewise.
34878         * modules/spawn (License): Likewise.
34879         * modules/stdarg (License): Likewise.
34880         * modules/sysexits (License): Likewise.
34881
34882 2010-04-29  Jim Meyering  <meyering@redhat.com>
34883
34884         inttypes: relax license to LGPLv2+
34885         * modules/inttypes (License): Relax license.
34886
34887 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34888
34889         * top/maint.mk (indent): Run twice to produce idempotent results.
34890
34891 2010-04-28  Bruno Haible  <bruno@clisp.org>
34892
34893         getdate: Generate getdate.c in the source directory.
34894         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34895         MOSTLYCLEANFILES.
34896         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34897
34898 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34899
34900         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34901         is not declared as a const *; avoid warnings in that case.
34902
34903 2010-04-28  Eric Blake  <eblake@redhat.com>
34904
34905         canonicalize-lgpl: avoid compiler warning
34906         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34907         declaration' / 'extraneous semicolon' warning with some compilers.
34908         Reported by Andreas Gruenbacher.
34909
34910 2010-04-28  Jim Meyering  <meyering@redhat.com>
34911
34912         init.sh: ensure a more reliable exit status when exiting via trap
34913         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34914         Inspired by patches from Dmitry V. Levin.
34915         Also trap on signal 3 (SIGQUIT).
34916
34917 2010-04-27  Bruno Haible  <bruno@clisp.org>
34918
34919         Update doc about utimes().
34920         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34921         'utimens' module.
34922         Reported by Andreas Gruenbacher <agruen@suse.de>.
34923
34924 2010-04-27  Eric Blake  <eblake@redhat.com>
34925
34926         full-read, full-write: relax license
34927         * modules/full-read (License): Drop to LGPLv2+.
34928         * modules/full-write (License): Likewise.
34929         * modules/safe-read (License): Likewise.
34930         * modules/safe-write (License): Likewise.
34931
34932         pthread: mention library for linking
34933         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34934
34935 2010-04-27  Jim Meyering  <meyering@redhat.com>
34936
34937         maint.mk: fix a bug introduced in last change
34938         * top/maint.mk (gl_assured_headers_): Now that all names are on
34939         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34940         is not anchored to end of word, it should be adequate.
34941
34942         maint.mk: avoid side-effect in latest syntax-check
34943         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34944         to run commands via $(shell...), and hence to incur cost only when
34945         the new rule is actually run.
34946
34947         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34948         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34949         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34950         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34951         (gl_assured_headers_, az_, AZ_): Define.
34952         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34953
34954 2010-04-26  Jim Meyering  <jim@meyering.net>
34955             Bruno Haible  <bruno@clisp.org>
34956
34957         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34958         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34959         Prompted by an exchange with Gilles Espinasse.
34960
34961 2010-04-26  Jim Meyering  <meyering@redhat.com>
34962
34963         git-version-gen: aesthetic tweak
34964         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34965         so that the command remains on a single line.
34966
34967 2010-04-26  Eric Blake  <eblake@redhat.com>
34968
34969         git-version-gen: allow use on EBCDIC hosts
34970         * build-aux/git-version-gen (dirty): Use literal rather than tying
34971         ourselves to ascii.
34972         Reported by Steve Goetze.
34973
34974 2010-04-25  Bruno Haible  <bruno@clisp.org>
34975
34976         netdb: Add support for GNULIB_POSIXCHECK.
34977         * lib/netdb.in.h: Include warn-on-use.h.
34978         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34979         functions are used when GNULIB_POSIXCHECK is defined and the
34980         getaddrinfo module is not in use.
34981         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34982         freeaddrinfo, gai_strerror, getnameinfo are declared.
34983         * modules/netdb (Depends-on): Add warn-on-use.
34984         (Makefile.am): Include warn-on-use.h in netdb.h.
34985
34986 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34987
34988         build: avoid "make check" failure without .git/ directory
34989         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34990         there is no .git/ directory.
34991
34992 2010-04-25  Bruno Haible  <bruno@clisp.org>
34993
34994         ptsname: Fix misuse of ttyname_r.
34995         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34996         of errno.
34997
34998 2010-04-25  Bruno Haible  <bruno@clisp.org>
34999
35000         ttyname_r: Make it work on Solaris 10.
35001         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
35002         if the system function has the POSIX declaration. Test whether the
35003         function fails if the buffer is less than 128 bytes large.
35004         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
35005         system's ttyname_r function. Provide a reasonably large buffer.
35006         * modules/ttyname_r (Depends-on): Add extensions.
35007         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
35008
35009 2010-04-25  Bruno Haible  <bruno@clisp.org>
35010
35011         Use the 'extensions' module for some more functions on Solaris.
35012         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
35013         module.
35014         * doc/posix-functions/ctime_r.texi: Likewise.
35015         * doc/posix-functions/getgrgid_r.texi: Likewise.
35016         * doc/posix-functions/getgrnam_r.texi: Likewise.
35017         * doc/posix-functions/getpwnam_r.texi: Likewise.
35018         * doc/posix-functions/getpwuid_r.texi: Likewise.
35019         * doc/posix-functions/readdir_r.texi: Likewise.
35020         * doc/posix-functions/sigwait.texi: Likewise.
35021         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
35022         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
35023
35024 2010-04-25  Bruno Haible  <bruno@clisp.org>
35025
35026         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
35027         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
35028         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
35029         * lib/ttyname_r.c: Include <limits.h>.
35030         (ttyname_r): Define using the system's ttyname_r function, if it exists
35031         and not on Solaris.
35032         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
35033         set.
35034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
35035         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
35036         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
35037         Reported by Simon Josefsson.
35038
35039 2010-04-25  Bruno Haible  <bruno@clisp.org>
35040
35041         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
35042         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
35043         * doc/posix-functions/ctime_r.texi: Likewise.
35044         * doc/posix-functions/getgrgid_r.texi: Likewise.
35045         * doc/posix-functions/getgrnam_r.texi: Likewise.
35046         * doc/posix-functions/getlogin_r.texi: Likewise.
35047         * doc/posix-functions/getpwnam_r.texi: Likewise.
35048         * doc/posix-functions/getpwuid_r.texi: Likewise.
35049         * doc/posix-functions/readdir_r.texi: Likewise.
35050         * doc/posix-functions/sigwait.texi: Likewise.
35051         * doc/posix-functions/ttyname_r.texi: Likewise.
35052         Reported by Simon Josefsson.
35053
35054 2010-04-25  Bruno Haible  <bruno@clisp.org>
35055
35056         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
35057         * gnulib-tool (func_usage): Document that --with-*-tests options apply
35058         also to --create-testdir.
35059         (func_acceptable): Don't consider the status of *-tests modules here.
35060         (func_modules_transitive_closure): Consider it here, before including a
35061         test module.
35062         (func_import, func_create_testdir): Set inc_all_direct_tests,
35063         inc_all_indirect_tests.
35064         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
35065         --create-testdir and --create-megatestdir.
35066
35067 2010-04-25  Bruno Haible  <bruno@clisp.org>
35068
35069         gnulib-tool: Add --without-*-tests options.
35070         * gnulib-tool (func_usage): Document the --without-*-tests options.
35071         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
35072         excl_unportable_tests): New variables.
35073         Fail if they are specified with --import or --update.
35074         (func_acceptable): Respect the excl_*_tests variables.
35075         (func_import): Set the excl_*_tests variables to empty.
35076
35077 2010-04-25  Simon Josefsson  <simon@josefsson.org>
35078             Bruno Haible  <bruno@clisp.org>
35079
35080         Work around a MacOS X 10.4 bug with openpty.
35081         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
35082         * tests/test-openpty.c (main): Close the master side explicitly.
35083
35084 2010-04-25  Bruno Haible  <bruno@clisp.org>
35085
35086         strnlen: Fix a C++ test error on MacOS X and Solaris.
35087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
35088         the function is not declared.
35089         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
35090         Simon Josefsson.
35091
35092 2010-04-24  Bruno Haible  <bruno@clisp.org>
35093
35094         Avoid a gcc warning.
35095         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
35096         of correct type for %08lx directive.
35097         Reported by Eric Blake.
35098
35099 2010-04-24  Bruno Haible  <bruno@clisp.org>
35100
35101         vasnprintf: Correct errno value in case of out-of-memory.
35102         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
35103         or sprintf. Use the errno value from SNPRINTF or sprintf.
35104         Reported by Ian Beckwith <ianb@erislabs.net>.
35105
35106 2010-04-24  Bruno Haible  <bruno@clisp.org>
35107
35108         ansi-c++-opt: Find correct compiler when cross-compiling.
35109         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
35110         AC_CHECK_PROGS.
35111         Reported by Simon Josefsson.
35112
35113 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
35114
35115         vc-list-files: Add support for subversion
35116         * build-aux/vc-list-files: Use "svn list" to generate the list of
35117         files controlled by subversion.
35118
35119 2010-04-23  Jim Meyering  <meyering@redhat.com>
35120
35121         vc-list-files tests: convert to use init.sh
35122         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
35123         path_prepend_.
35124         Use Exit, not exit.
35125         Use skip_ rather than open coding it.
35126         Remove trap set-up and compare definitions.
35127         * tests/test-vc-list-files-git.sh: Likewise.
35128         * modules/vc-list-files-tests (Files): Add tests/init.sh.
35129
35130 2010-04-22  Simon Josefsson  <simon@josefsson.org>
35131
35132         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
35133         backup files.
35134
35135 2010-04-21  Simon Josefsson  <simon@josefsson.org>
35136
35137         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
35138
35139 2010-04-20  Eric Blake  <eblake@redhat.com>
35140
35141         tests: be robust to ignored SIGPIPE
35142         * tests/test-select-in.sh: Consume all output.
35143         * tests/test-lseek.sh: Check correct exit status, while avoiding
35144         EPIPE.
35145
35146 2010-04-20  Simon Josefsson  <simon@josefsson.org>
35147             Bruno Haible  <bruno@clisp.org>
35148
35149         visibility: Don't use -fvisibility if it leads to a warning.
35150         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
35151         yes, don't pretend that visibility works if it leads to a warning.
35152         Reported by Mike Gran <spk121@yahoo.com>.
35153
35154 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
35155
35156         * build-aux/bootstrap: Use "git -h" for testing for supported options
35157         instead of "git --help".  The short-form option only shows a summary,
35158         and doesn't layout the full man page.  Grep for the full option name
35159         in the summary, too.
35160
35161 2010-04-19  Bruno Haible  <bruno@clisp.org>
35162
35163         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
35164         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
35165         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
35166         mention of RELOCATABLE_STRIP.
35167         Reported by Sylvain Beucler <beuc@beuc.net>.
35168
35169 2010-04-19  Bruno Haible  <bruno@clisp.org>
35170
35171         * lib/diffseq.h: Fix typo in comment.
35172         Reported by Eric Blake.
35173
35174 2010-04-19  Bruno Haible  <bruno@clisp.org>
35175
35176         ioctl: Move autoconf macro to a .m4 file.
35177         * m4/ioctl.m4: New file, extracted from modules/ioctl.
35178         * modules/ioctl (Files): Add it.
35179         (configure.ac): Simply invoke gl_FUNC_IOCTL.
35180         Reported by Ian Beckwith <ianb@erislabs.net>.
35181
35182 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
35183             Bruno Haible  <bruno@clisp.org>
35184
35185         diffseq: Accommodate use-case with abstract arrays.
35186         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
35187         is not defined.
35188         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
35189         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
35190
35191 2010-04-18  Bruno Haible  <bruno@clisp.org>
35192
35193         * doc/posix-headers/stdbool.texi: More precise wording.
35194
35195 2010-04-17  Jim Meyering  <meyering@redhat.com>
35196
35197         maint.mk: use gnu-style indentation in an embedded perl script
35198         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
35199         Rename variable: s/two/last_two_bytes/
35200
35201 2010-04-16  Eric Blake  <eblake@redhat.com>
35202
35203         test-stdbool: skip test that fails with Solaris CC
35204         * tests/test-stdbool.c (f): Skip test that causes compilation
35205         error under buggy C++ compiler.
35206         * lib/stdbool.in.h: Document the limitation.
35207         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35208
35209         setenv: allow compilation with C++
35210         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35211         register keyword.
35212
35213         stdint: allow test to pass with C++
35214         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35215
35216         getopt: allow compilation with C++
35217         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35218         struct.
35219         * lib/getopt.c (_getopt_internal_r): Use correct type.
35220         Reported by Dagobert Michelson, via Joel E. Denny.
35221
35222 2010-04-16  Bruno Haible  <bruno@clisp.org>
35223
35224         Override netdb.h always.
35225         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35226         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35227         Reported by Ludovic Courtès <ludo@gnu.org>.
35228
35229 2010-04-15  Bruno Haible  <bruno@clisp.org>
35230
35231         openpty: Fix mistake from 2010-03-21.
35232         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35233         Reported by Simon Josefsson.
35234
35235 2010-04-15  Eric Blake  <eblake@redhat.com>
35236
35237         test-forkpty: fix expected signature
35238         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35239         Reported by Simon Josefsson.
35240
35241 2010-04-15  Jim Meyering  <meyering@redhat.com>
35242
35243         maint.mk: texinfo_suffix_re_: correct the default regexp
35244         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35245
35246         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35247         make it configurable via texinfo_suffix_re_.
35248
35249 2010-04-14  Eric Blake  <eblake@redhat.com>
35250
35251         strtok_r: relax license to LGPLv2+
35252         * modules/strtok_r (License): Relax license.
35253         Reported by Matthias Bolte.
35254
35255 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35256
35257         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35258         version 1.4.4 by default instead of requiring the libgcrypt
35259         version used during build.  This makes it possible to use the
35260         application with older but still binary compatible libgcrypt
35261         versions.
35262
35263 2010-04-13  Eric Blake  <eblake@redhat.com>
35264
35265         getopt-gnu: match recent glibc fixes and posix ruling
35266         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35267         '+' handling, when requesting extensions.
35268         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35269         'W;' handling.
35270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35271         * doc/posix-functions/getopt.texi (getopt): Document this.
35272         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35273         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35274         Likewise.
35275
35276         getopt: merge bug fixes from glibc
35277         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35278         diagnostics.  Honor '+:' correctly.  Reject ';'.
35279
35280         getopt-posix: detect MacOS bug
35281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35282         optind when missing a required argument.
35283         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35284         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35285         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35286         Likewise.
35287
35288         getopt-posix: avoid spurious failure on Solaris
35289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35290         an indicator that setting optind=1 is sufficient for reset.
35291
35292         getopt-posix: avoid spurious failure on FreeBSD
35293         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35294         in POSIX mode, since the m4 test uses it.
35295
35296         gnulib-tool: silence warning on BSD sh
35297         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35298
35299 2010-04-13  Jim Meyering  <meyering@redhat.com>
35300
35301         doc: users.txt: GNU patch now uses gnulib
35302         * users.txt: Add patch.
35303
35304 2010-04-12  Jim Meyering  <meyering@redhat.com>
35305
35306         maint.mk: generate more concise timing data for syntax-check rules
35307         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35308         " done" from each line that reports a syntax-check test duration.
35309
35310 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35311
35312         git-version-gen: use "git update-index..." rather than "git status"
35313         * build-aux/git-version-gen: Use git update-index --refresh, not
35314         "git status".  With some versions of git, "git status" would fail
35315         to update the index and result in an unwarranted "-dirty" suffix.
35316
35317 2010-04-11  Jim Meyering  <meyering@redhat.com>
35318
35319         openat: correct formatting (no semantic change)
35320         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35321         Suggested by Bruno Haible.
35322
35323 2010-04-11  Bruno Haible  <bruno@clisp.org>
35324
35325         Stricter declaration checking in testdirs.
35326         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35327         If for_tests is true, augment AM_CPPFLAGS to define
35328         GNULIB_STRICT_CHECKING.
35329         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35330         GNULIB_STRICT_CHECKING is defined, verify that the function is
35331         declared.
35332
35333 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35334             Bruno Haible  <bruno@clisp.org>
35335
35336         libunistring: Improve configure output.
35337         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35338         Don't say "consider installing GNU libunistring" when checking again
35339         with libiconv.
35340
35341 2010-04-11  Bruno Haible  <bruno@clisp.org>
35342
35343         libunistring: Correct value of $LTLIBUNISTRING.
35344         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35345         correct the value of $LTLIBUNISTRING.
35346
35347 2010-04-11  Bruno Haible  <bruno@clisp.org>
35348
35349         havelib: Add static libraries to LIBS in the right order.
35350         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35351         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35352
35353 2010-04-11  Bruno Haible  <bruno@clisp.org>
35354
35355         libunistring: Detect libunistring also when it depends on libiconv.
35356         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35357         the second AC_LIB_HAVE_LINKFLAGS invocation.
35358
35359 2010-04-11  James Youngman  <jay@gnu.org>
35360
35361         close-stream: declare local scalars to be "const"
35362         * lib/close-stream.c (close_stream): Make boolean variables const
35363         to document the fact that we set but do not change them.
35364
35365 2010-04-11  Bruno Haible  <bruno@clisp.org>
35366
35367         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35368
35369 2010-04-11  Jim Meyering  <meyering@redhat.com>
35370
35371         maint.mk: don't include dist-check.mk
35372         * top/maint.mk: Remove bogus include directive.
35373
35374         maint.mk: improve empty-line-at-EOF check
35375         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35376         solution, rather than tail+Perl-based one.  The latter would read
35377         a few kilobytes from the end of each file, and did not handle empty
35378         files properly.
35379
35380         maint.mk: print the elapsed time for each syntax-check rule
35381         * top/maint.mk (sc_m_rules_): Save start time in a file.
35382         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35383         (local-check): Interpose the .z rules
35384
35385 2010-04-11  Jim Meyering  <meyering@redhat.com>
35386
35387         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35388         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35389         empty file with one that ends in an empty line.
35390
35391 2010-04-10  Bruno Haible  <bruno@clisp.org>
35392
35393         mkdir: Make it work on mingw64.
35394         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35395         * lib/mkdir.c: Update comment.
35396         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35397
35398 2010-04-10  Bruno Haible  <bruno@clisp.org>
35399
35400         Don't override improved macro from newer autoconf.
35401         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35402         autoconf >= 2.62.
35403         Reported by Joel E. Denny <jdenny@clemson.edu>.
35404
35405 2010-04-10  Jim Meyering  <meyering@redhat.com>
35406
35407         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35408         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35409
35410         maint.mk: correct a diagnostic
35411         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35412         in diagnostic; now use $prohibit.
35413
35414 2010-04-10  Bruno Haible  <address@hidden>
35415
35416         fchownat: Fix a C++ test error on Solaris 8.
35417         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35418         the function does not exist.
35419
35420 2010-04-10  Bruno Haible  <bruno@clisp.org>
35421
35422         vasnprintf: Add more tests.
35423         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35424         (test_function): Test converting an invalid wide string.
35425
35426         vasnprintf: Correct handling of unconvertible wide string arguments.
35427         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35428         VASNPRINTF.
35429         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35430         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35431         smaller than the expected maximum need for the directive. Set errno to
35432         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35433         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35434         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35435         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35436         * modules/vasnprintf (Files): Add m4/printf.m4.
35437         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35438
35439 2010-04-10  Bruno Haible  <bruno@clisp.org>
35440
35441         vasnprintf: Fix crash in %ls directive.
35442         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35443         string is passed as argument to %ls, with no precision and no width.
35444         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35445
35446 2010-04-10  Bruno Haible  <bruno@clisp.org>
35447
35448         vasnprintf: Fix multiple test failures on mingw.
35449         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35450         _snprintf, or snwprintf, not _snwprintf.
35451
35452 2010-04-10  Bruno Haible  <bruno@clisp.org>
35453
35454         write: Fix a C++ test error on mingw.
35455         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35456
35457 2010-04-10  Bruno Haible  <bruno@clisp.org>
35458
35459         vasnprintf test: Reduce code duplication.
35460         * tests/test-vasnprintf.c (test_function): New function, extracted from
35461         test_vasnprintf.
35462         (test_vasnprintf, test_asnprintf): Invoke it.
35463
35464 2010-04-10  Bruno Haible  <bruno@clisp.org>
35465
35466         strnlen: Fix warning in C++ mode on MacOS X.
35467         * lib/string.in.h (strnlen): Use the modern idiom.
35468         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35469         defining strnlen as a macro already in <config.h>.
35470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35471         REPLACE_STRNLEN.
35472         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35473         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35474
35475 2010-04-08  James Youngman  <jay@gnu.org>
35476
35477         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35478         the example.
35479
35480 2010-04-09  Jim Meyering  <meyering@redhat.com>
35481
35482         maint.mk: print better diagnostic when there is no $(_hv_file)
35483         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35484         announce that when $(_hv_file) (aka help-version) does not exist.
35485
35486         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35487         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35488         not try to interpret its random input bytes.  Jarno Rajahalme reported
35489         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35490         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35491         (mktempd_): Likewise, just in case.
35492
35493         ftruncate: add two years to projected module removal date: 2012
35494         * m4/ftruncate.m4: Adjust comments.
35495
35496         ftruncate: mark module as obsolete; even MinGW provides it, now
35497         * modules/ftruncate (Status): Obsolete.
35498         (Notice): Say that.
35499         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35500         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35501
35502 2010-04-08  Bruno Haible  <bruno@clisp.org>
35503
35504         Fix side effects from tests-related modules.
35505         * modules/dprintf-posix (Comment): New section.
35506         * modules/fprintf-posix (Comment): Likewise.
35507         * modules/obstack-printf-posix (Comment): Likewise.
35508         * modules/printf-posix (Comment): Likewise.
35509         * modules/snprintf-posix (Comment): Likewise.
35510         * modules/sprintf-posix (Comment): Likewise.
35511         * modules/vasnprintf-posix (Comment): Likewise.
35512         * modules/vasprintf-posix (Comment): Likewise.
35513         * modules/vdprintf-posix (Comment): Likewise.
35514         * modules/vfprintf-posix (Comment): Likewise.
35515         * modules/vprintf-posix (Comment): Likewise.
35516         * modules/vsnprintf-posix (Comment): Likewise.
35517         * modules/vsprintf-posix (Comment): Likewise.
35518         * modules/xprintf-posix (Comment): Likewise.
35519         * modules/xvasprintf-posix (Comment): Likewise.
35520         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35521         * modules/floorf-tests (Depends-on): Likewise.
35522         * modules/round-tests (Depends-on): Likewise.
35523         * modules/roundf-tests (Depends-on): Likewise.
35524         * modules/trunc-tests (Depends-on): Likewise.
35525         * modules/truncf-tests (Depends-on): Likewise.
35526         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35527         'fprintf-posix' module is not present.
35528         * tests/test-floorf2.c (check): Likewise.
35529         * tests/test-trunc2.c (check): Likewise.
35530         * tests/test-truncf2.c (check): Likewise.
35531         * tests/test-round2.c (equal): Likewise.
35532         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35533
35534 2010-04-07  Karl Berry  <karl@gnu.org>
35535
35536         * config/srclist.txt,
35537         * config/srclistvars.sh,
35538         * config/srclist-update: doc fixes.
35539
35540 2010-04-07  Jim Meyering  <meyering@redhat.com>
35541
35542         maint.mk: add a PATH crosschecking syntax-check rule
35543         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35544         Useful if you use a test like the one in help-version (coreutils,
35545         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35546         printed by prog --version.
35547
35548 2010-04-06  Bruno Haible  <bruno@clisp.org>
35549
35550         Fix link error on mingw.
35551         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35552         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35553
35554 2010-04-06  Bruno Haible  <bruno@clisp.org>
35555
35556         Assume rmdir exists.
35557         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35558
35559 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35560
35561         doc: update users.txt
35562         * users.txt: Add gcal.
35563
35564 2010-04-06  Jim Meyering  <meyering@redhat.com>
35565
35566         init.sh: simply unset TMPDIR rather than risking env -i
35567         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35568         although it probably works fine on all Unix-based systems, some
35569         systems (Cygwin?) cannot tolerate a totally cleared environment.
35570         Suggestion from Eric Blake.
35571
35572 2010-04-06  Jim Meyering  <meyering@redhat.com>
35573
35574         init.sh: portability fix: use env's POSIX-specified -i option not -u
35575         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35576         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35577
35578 2010-04-05  Bruno Haible  <bruno@clisp.org>
35579
35580         btowc: Work around Cygwin 1.7.2 bug.
35581         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35582         does not map NUL to 0.
35583         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35584
35585 2010-04-05  Bruno Haible  <bruno@clisp.org>
35586
35587         Make the multithread modules work on Cygwin 1.7.2.
35588         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35589         imported symbols can be declared weak, so that it returns "no" on
35590         Cygwin 1.7.2.
35591
35592 2010-04-05  Bruno Haible  <bruno@clisp.org>
35593
35594         Use the module 'strncat'.
35595         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35596
35597         Tests for module 'strncat'.
35598         * modules/strncat-tests: New file.
35599         * tests/test-strncat.c: New file.
35600
35601         New module 'strncat'.
35602         * lib/string.in.h (strncat): New declaration.
35603         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35604         * m4/strncat.m4: New file, based on m4/memchr.m4.
35605         * modules/strncat: New file.
35606         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35607         is declared.
35608         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35609         REPLACE_STRNCAT.
35610         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35611         REPLACE_STRNCAT.
35612         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35613         module.
35614         * tests/test-string-c++.cc: Check signature of strncat.
35615
35616 2010-04-05  Jim Meyering  <meyering@redhat.com>
35617
35618         xstrtoumax-tests: convert to use init.sh
35619         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35620         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35621         Use Exit, not exit.
35622         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35623
35624         xstrtoimax-tests: convert to use init.sh
35625         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35626         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35627         Use Exit, not exit.
35628         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35629
35630 2010-04-05  Bruno Haible  <bruno@clisp.org>
35631
35632         sys_socket: Avoid #define replacements in C++ mode.
35633         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35634         warning to the function if possible, rather than #defining the symbol
35635         to a dysfunctional alias.
35636
35637 2010-04-05  Bruno Haible  <bruno@clisp.org>
35638
35639         fseeko: Fix C++ test error on mingw.
35640         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35641         gl_FUNC_FSEEKO.
35642         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35643         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35644         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35645         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35646
35647 2010-04-05  Bruno Haible  <bruno@clisp.org>
35648
35649         duplocale: Improve test output.
35650         * tests/test-duplocale.c (main): Print reason for skipped test.
35651
35652 2010-04-05  Bruno Haible  <bruno@clisp.org>
35653
35654         Assume rmdir exists.
35655         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35656         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35657
35658 2010-04-05  Bruno Haible  <bruno@clisp.org>
35659
35660         Fix link error on Solaris 8 with cc.
35661         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35662
35663 2010-04-05  Bruno Haible  <bruno@clisp.org>
35664
35665         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35666         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35667
35668 2010-04-05  Bruno Haible  <bruno@clisp.org>
35669
35670         vasprintf: Update documentation.
35671         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35672
35673 2010-04-05  Bruno Haible  <bruno@clisp.org>
35674
35675         ptsname: Improve test.
35676         * tests/test-ptsname.c (main): Also try the various master names of BSD
35677         systems.
35678
35679 2010-04-05  Bruno Haible  <bruno@clisp.org>
35680
35681         memchr: Avoid a possible C++ test error.
35682         * lib/string.in.h (memchr): Provide declaration if function is missing.
35683         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35684         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35685         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35686         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35687
35688 2010-04-05  Bruno Haible  <bruno@clisp.org>
35689
35690         strtok_r: Improve idiom.
35691         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35692         AC_LIBOBJ is used.
35693
35694 2010-04-05  Bruno Haible  <bruno@clisp.org>
35695
35696         strdup: Improve idiom.
35697         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35698         AC_LIBOBJ is used.
35699         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35700         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35701         when AC_LIBOBJ is used.
35702
35703 2010-04-05  Bruno Haible  <bruno@clisp.org>
35704
35705         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35706         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35707         don't set REPLACE_MBSINIT to 1.
35708         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35709         don't set REPLACE_MBRTOWC to 1.
35710         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35711         exist, don't set REPLACE_MBSRTOWCS to 1.
35712         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35713         exist, don't set REPLACE_MBSNRTOWCS to 1.
35714         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35715         don't set REPLACE_WCRTOMB to 1.
35716         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35717         exist, don't set REPLACE_WCSRTOMBS to 1.
35718         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35719         exist, don't set REPLACE_WCSNRTOMBS to 1.
35720
35721 2010-04-05  Bruno Haible  <bruno@clisp.org>
35722
35723         ldexpl: Improve idiom.
35724         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35725         make sure to set HAVE_DECL_LDEXPL to 0.
35726
35727 2010-04-05  Jim Meyering  <meyering@redhat.com>
35728
35729         xstrtol-tests: convert to use init.sh
35730         * modules/xstrtol-tests (Files): Add tests/init.sh.
35731         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35732         Use Exit, not exit.
35733         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35734
35735         atexit-tests: convert to use init.sh
35736         * modules/atexit-tests (Files): Add tests/init.sh.
35737         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35738         Use Exit, not exit.
35739         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35740
35741         init.sh: fix typo
35742         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35743
35744         init.sh: make it easier for a test script to write to the tty, ...
35745         when using automake's parallel-tests mode.
35746         * tests/init.sh (stderr_fileno_): Define overridable variable.
35747         (warn_): New function, to use it.
35748         (fail_, skip_, framework_failure_): Use warn_.
35749
35750 2010-04-04  Bruno Haible  <bruno@clisp.org>
35751
35752         btowc: Avoid warning.
35753         * lib/btowc.c: Include <stdlib.h>.
35754         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35755
35756 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35757             Bruno Haible  <bruno@clisp.org>
35758
35759         wchar: Port to NetBSD 1.5.
35760         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35761         * lib/wctype.in.h (WEOF): Likewise.
35762
35763 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35764             Bruno Haible  <bruno@clisp.org>
35765
35766         Port extended stdio to NetBSD 1.5.
35767         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35768         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35769         older.
35770
35771 2010-04-04  Bruno Haible  <bruno@clisp.org>
35772
35773         string: Remove unused substitution.
35774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35775         HAVE_DECL_STRERROR.
35776         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35777
35778 2010-04-04  Bruno Haible  <bruno@clisp.org>
35779
35780         strtod: Avoid a possible C++ test error.
35781         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35782         set REPLACE_STRTOD.
35783
35784 2010-04-04  Bruno Haible  <bruno@clisp.org>
35785
35786         strerror: Update documentation.
35787         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35788
35789 2010-04-04  Bruno Haible  <bruno@clisp.org>
35790
35791         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35792         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35793         _GL_CXXALIAS_SYS_CAST.
35794
35795 2010-04-04  Bruno Haible  <bruno@clisp.org>
35796
35797         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35798         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35799         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35800         REPLACE_FREXPL to 1.
35801         * doc/posix-functions/frexpl.texi: Update documentation.
35802
35803 2010-04-04  Bruno Haible  <bruno@clisp.org>
35804
35805         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35806         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35807
35808 2010-04-04  Bruno Haible  <bruno@clisp.org>
35809
35810         Implement nanosleep for native Windows.
35811         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35812
35813 2010-04-04  Bruno Haible  <bruno@clisp.org>
35814
35815         math: Fix some C++ test errors on Solaris 8.
35816         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35817
35818 2010-04-04  Bruno Haible  <bruno@clisp.org>
35819
35820         math: Fix some C++ test errors on Cygwin.
35821         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35822         truncl): Provide declaration if the system does not have it.
35823         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35824         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35825         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35826         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35827         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35828         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35829         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35830         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35831         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35832         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35833         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35834         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35835         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35836         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35837         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35838         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35840         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35841         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35842         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35843         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35844         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35845
35846 2010-04-04  Bruno Haible  <bruno@clisp.org>
35847
35848         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35849         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35850         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35851         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35852         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35853         * m4/isinf.m4 (gl_ISINF): Likewise.
35854         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35855
35856 2010-04-04  Bruno Haible  <bruno@clisp.org>
35857
35858         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35859         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35860
35861 2010-04-04  Bruno Haible  <bruno@clisp.org>
35862
35863         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35864         * modules/tmpfile (configure.ac): Update.
35865
35866         tmpfile: Fix C++ test error on mingw.
35867         * lib/stdio.in.h (tmpfile): New declaration.
35868         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35869         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35870         * modules/tmpfile (Depends-on): Add stdio.
35871         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35872         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35873         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35874         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35875         REPLACE_TMPFILE.
35876         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35877
35878 2010-04-04  Bruno Haible  <bruno@clisp.org>
35879
35880         ioctl: Fix C++ test error on mingw.
35881         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35882         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35883         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35884
35885 2010-04-03  Bruno Haible  <bruno@clisp.org>
35886
35887         wcwidth: Fix C++ test error on mingw.
35888         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35890         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35891
35892 2010-04-03  Bruno Haible  <bruno@clisp.org>
35893
35894         nanosleep: Fix C++ test error on mingw.
35895         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35896         * lib/time.in.h (nanosleep): Use modern idiom.
35897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35898         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35899         REPLACE_NANOSLEEP to 1.
35900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35901         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35902
35903 2010-04-03  Bruno Haible  <bruno@clisp.org>
35904
35905         strptime: Fix C++ test error on mingw.
35906         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35907         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35908         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35909         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35910         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35911         not REPLACE_STRPTIME.
35912         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35913         REPLACE_STRPTIME.
35914
35915 2010-04-03  Bruno Haible  <bruno@clisp.org>
35916
35917         timegm: Fix C++ test error on mingw.
35918         * lib/time.in.h (timegm): Use modern idiom.
35919         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35920         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35921         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35922         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35923
35924 2010-04-03  Bruno Haible  <bruno@clisp.org>
35925
35926         timegm: Assume declaration if function exists.
35927         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35928         if it exists. Don't clobber ac_cv_func_timegm.
35929
35930 2010-04-03  Bruno Haible  <bruno@clisp.org>
35931
35932         time_r: Fix C++ test error on mingw.
35933         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35934         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35935         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35936         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35937         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35938
35939 2010-04-03  Bruno Haible  <bruno@clisp.org>
35940
35941         time_r: Minor updates.
35942         * modules/time_r (Description): Mention the provided functions.
35943         * lib/time_r.c: Don't include <string.h>.
35944         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35945         * doc/posix-functions/localtime_r.texi: Likewise.
35946
35947 2010-04-03  Bruno Haible  <bruno@clisp.org>
35948
35949         time: Fix regression introduced on 2010-03-08.
35950         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35951         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35952
35953 2010-04-03  Jim Meyering  <meyering@redhat.com>
35954
35955         maint.mk: don't silently disable project-specific syntax-check rules
35956         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35957         that they need to convert their project-specific syntax-check rules
35958         to use the new _sc_search_regexp.
35959
35960 2010-04-03  Bruno Haible  <bruno@clisp.org>
35961
35962         fchdir: Fix regression introduced on 2010-03-08.
35963         * lib/unistd.in.h (fchdir): Fix declaration.
35964         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35966         REPLACE_FCHDIR.
35967         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35968         REPLACE_FCHDIR.
35969
35970 2010-04-03  Bruno Haible  <bruno@clisp.org>
35971
35972         getpagesize: Fix C++ test error on mingw.
35973         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35974         system does not declare the function.
35975         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35976         declared.
35977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35978         HAVE_DECL_GETPAGESIZE.
35979         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35980
35981 2010-04-03  Bruno Haible  <bruno@clisp.org>
35982
35983         stdio: Make C++ tests work on mingw.
35984         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35985         does not declare the function.
35986
35987 2010-04-03  Bruno Haible  <bruno@clisp.org>
35988
35989         ftello: Fix C++ test error on mingw.
35990         * lib/stdio.in.h (ftello): Use modern idiom.
35991         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35992         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35993         is missing and that it needs to be replaced.
35994         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35996         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35997
35998 2010-04-03  Bruno Haible  <bruno@clisp.org>
35999
36000         fseeko: Fix C++ test error on mingw.
36001         * lib/stdio.in.h (fseeko): Use modern idiom.
36002         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
36003         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
36004         is missing and that it needs to be replaced.
36005         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
36006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
36007         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
36008
36009 2010-04-03  Bruno Haible  <bruno@clisp.org>
36010
36011         mkstemp: Fix C++ test error on mingw.
36012         * lib/stdlib.in.h (mkstemp): Use modern idiom.
36013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
36014         function is missing and that it needs to be replaced.
36015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
36016         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
36017
36018 2010-04-03  Bruno Haible  <bruno@clisp.org>
36019
36020         stpncpy: Fix C++ test error on mingw.
36021         * lib/string.in.h (stpncpy): Use modern idiom.
36022         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
36023         function is missing and that it needs to be replaced.
36024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36025         REPLACE_STPNCPY.
36026         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
36027
36028 2010-04-03  Bruno Haible  <bruno@clisp.org>
36029
36030         sys_stat: Fix C++ test error on mingw.
36031         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
36032         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
36033
36034 2010-04-03  Bruno Haible  <bruno@clisp.org>
36035
36036         pty: Update doc.
36037         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
36038
36039 2010-04-03  Bruno Haible  <bruno@clisp.org>
36040
36041         unistd: Fix C++ test error on mingw.
36042         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
36043
36044 2010-04-03  Bruno Haible  <bruno@clisp.org>
36045
36046         Update doc regarding mingw.
36047         * doc/glibc-functions/openpty.texi: Update regarding mingw.
36048         * doc/glibc-functions/login_tty.texi: Likewise.
36049         * doc/glibc-functions/forkpty.texi: Likewise.
36050
36051 2010-04-03  Bruno Haible  <bruno@clisp.org>
36052
36053         stdlib: Avoid compilation failure of c-strtold on mingw.
36054         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
36055
36056 2010-04-03  Bruno Haible  <bruno@clisp.org>
36057
36058         locale: Make C++ tests work on Cygwin and mingw.
36059         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
36060         cannot provide the function.
36061         Reported by Simon Josefsson.
36062
36063 2010-04-03  Bruno Haible  <bruno@clisp.org>
36064
36065         localename: Port to MacOS X 10.6.
36066         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
36067         memory layout of the locales in MacOS X 10.6 as well.
36068         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
36069
36070 2010-04-02  Bruno Haible  <bruno@clisp.org>
36071
36072         gnulib-tool: Ensure that long-running tests are executed last.
36073         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
36074         running tests after the one for the other tests.
36075
36076 2010-04-02  Bruno Haible  <bruno@clisp.org>
36077
36078         gnulib-tool: Ensure the tests in the main directory are executed first.
36079         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
36080         start with the current directory.
36081
36082 2010-04-02  Bruno Haible  <bruno@clisp.org>
36083
36084         Tests for module 'havelib', moved here from GNU gettext.
36085         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
36086         modifications.
36087         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
36088         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
36089         with modifications.
36090         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
36091         modifications.
36092         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
36093         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
36094         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
36095         with modifications.
36096         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
36097         with modifications.
36098         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
36099         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
36100         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
36101         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
36102         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
36103         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
36104         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
36105         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
36106         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
36107         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
36108         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
36109         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
36110         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
36111         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
36112         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
36113         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
36114         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
36115         with modifications.
36116         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
36117         with modifications.
36118         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
36119         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
36120         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
36121         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
36122         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
36123         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
36124         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
36125         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
36126         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
36127         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
36128         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
36129         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
36130         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
36131         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
36132         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
36133         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
36134         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
36135         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
36136         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
36137         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
36138         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
36139         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
36140         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
36141         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
36142         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
36143         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
36144         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
36145         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
36146         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
36147         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
36148         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
36149         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
36150         * tests/havelib/rpathx/rpathx.c: New file, from
36151         gettext/autoconf-lib-link.
36152         * tests/havelib/rpathx/Makefile.am: New file, from
36153         gettext/autoconf-lib-link.
36154         * tests/havelib/rpathx/configure.ac: New file, from
36155         gettext/autoconf-lib-link with modifications.
36156         * tests/havelib/rpathy/rpathy.c: New file, from
36157         gettext/autoconf-lib-link.
36158         * tests/havelib/rpathy/Makefile.am: New file, from
36159         gettext/autoconf-lib-link.
36160         * tests/havelib/rpathy/configure.ac: New file, from
36161         gettext/autoconf-lib-link with modifications.
36162         * tests/havelib/rpathz/rpathz.c: New file, from
36163         gettext/autoconf-lib-link.
36164         * tests/havelib/rpathz/Makefile.am: New file, from
36165         gettext/autoconf-lib-link.
36166         * tests/havelib/rpathz/configure.ac: New file, from
36167         gettext/autoconf-lib-link with modifications.
36168         * tests/havelib/rpathlx/usex.c: New file, from
36169         gettext/autoconf-lib-link.
36170         * tests/havelib/rpathlx/Makefile.am: New file, from
36171         gettext/autoconf-lib-link.
36172         * tests/havelib/rpathlx/configure.ac: New file, from
36173         gettext/autoconf-lib-link with modifications.
36174         * tests/havelib/rpathly/usey.c: New file, from
36175         gettext/autoconf-lib-link.
36176         * tests/havelib/rpathly/Makefile.am: New file, from
36177         gettext/autoconf-lib-link.
36178         * tests/havelib/rpathly/configure.ac: New file, from
36179         gettext/autoconf-lib-link with modifications.
36180         * tests/havelib/rpathlz/usez.c: New file, from
36181         gettext/autoconf-lib-link.
36182         * tests/havelib/rpathlz/Makefile.am: New file, from
36183         gettext/autoconf-lib-link.
36184         * tests/havelib/rpathlz/configure.ac: New file, from
36185         gettext/autoconf-lib-link with modifications.
36186         * tests/havelib/rpathlyx/usey.c: New file, from
36187         gettext/autoconf-lib-link.
36188         * tests/havelib/rpathlyx/Makefile.am: New file, from
36189         gettext/autoconf-lib-link.
36190         * tests/havelib/rpathlyx/configure.ac: New file, from
36191         gettext/autoconf-lib-link with modifications.
36192         * tests/havelib/rpathlzyx/usez.c: New file, from
36193         gettext/autoconf-lib-link.
36194         * tests/havelib/rpathlzyx/Makefile.am: New file, from
36195         gettext/autoconf-lib-link.
36196         * tests/havelib/rpathlzyx/configure.ac: New file, from
36197         gettext/autoconf-lib-link with modifications.
36198         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
36199         with modifications.
36200
36201 2010-04-02  Bruno Haible  <bruno@clisp.org>
36202
36203         gnulib-tool: Create distributed built sources also for the tests.
36204         * gnulib-tool (func_create_testdir): Also generate distributed built
36205         sources in the tests directory.
36206
36207 2010-04-02  Bruno Haible  <bruno@clisp.org>
36208
36209         gnulib-tool: Obey user's environment variables.
36210         * gnulib-tool (func_create_testdir): When creating built sources,
36211         respect the environment variables for autoconf, automake, etc. given by
36212         the user.
36213
36214 2010-04-02  Bruno Haible  <bruno@clisp.org>
36215
36216         gnulib-tool: Provide the value of --m4-base to modules.
36217         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36218         of gl_m4_base.
36219
36220 2010-04-02  Eric Blake  <eblake@redhat.com>
36221
36222         maint.mk: fix some fallout
36223         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36224         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36225
36226 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36227
36228         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36229         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36230         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36231         (sc_cast_of_x_alloc_return_value): Likewise.
36232         (sc_cast_of_alloca_return_value): Likewise.
36233         (sc_space_tab): Likewise.
36234         (sc_prohibit_atoi_atof): Likewise.
36235         (sc_prohibit_magic_number_exit): Likewise.
36236         (sc_error_exit_success): Likewise.
36237         (sc_file_system): Likewise.
36238         (sc_prohibit_have_config_h): Likewise.
36239         (sc_require_config_h): Likewise.
36240         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36241         (sc_obsolete_symbols): Likewise.
36242         (sc_changelog): Likewise.
36243         (sc_program_name): Likewise.
36244         (sc_the_the): Likewise.
36245         (sc_trailing_blank): Likewise.
36246         (sc_two_space_separator_in_usage): Likewise.
36247         (sc_useless_cpp_parens): Likewise.
36248         (sc_GPL_version): Likewise.
36249         (sc_GFDL_version): Likewise.
36250         (sc_texinfo_acronym): Likewise.
36251         (sc_prohibit_cvs_keyword): Likewise.
36252         (sc_prohibit_stat_st_blocks): Likewise.
36253         (sc_prohibit_S_IS_definition): Likewise.
36254         (sc_redundant_const): Likewise.
36255         (sc_makefile_TAB_only_indentation): Likewise.
36256         (sc_m4_quote_check): Likewise.
36257         (sc_makefile_path_separator_check): Likewise.
36258         (sc_copyright_check): Likewise.
36259         (sc_Wundef_boolean): Likewise.
36260         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36261
36262         maint.mk: match 0 or more whitespace-before-function-call '('
36263         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36264         that have zero or two-and-more spaces between the function name
36265         and the open parenthesis.
36266         (sc_error_message_warn_fatal): Likewise.
36267         (sc_error_message_uppercase): Likewise.
36268         (sc_error_message_period): Likewise.
36269
36270 2010-03-31  Eric Blake  <eblake@redhat.com>
36271
36272         maint.mk: check for [ as well as test
36273         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36274         Based on a libvirt report by Matthias Bolte.
36275
36276         gnumakefile: don't squelch _version output
36277         * top/GNUmakefile (_version): Create one-shot dependency rather
36278         than using $(shell) when version must be regenerated.
36279         (_autoreconf): Run verbosely, by default.
36280
36281         sys_time: avoid compiler warnings
36282         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36283         unconditional, fixing regression from 2010-03-29.
36284         Reported by Simon Josefsson.
36285
36286 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36287
36288         maint.mk: s/_header_without_use/_sc_header_without_use/
36289         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36290         (sc_prohibit_assert_without_use): Use the new name.
36291         (sc_prohibit_close_stream_without_use): Likewise.
36292         (sc_prohibit_getopt_without_use): Likewise.
36293         (sc_prohibit_quotearg_without_use): Likewise.
36294         (sc_prohibit_quote_without_use): Likewise.
36295         (sc_prohibit_long_options_without_use): Likewise.
36296         (sc_prohibit_inttostr_without_use): Likewise.
36297         (sc_prohibit_ignore_value_without_use): Likewise.
36298         (sc_prohibit_error_without_use): Likewise.
36299         (sc_prohibit_xalloc_without_use): Likewise.
36300         (sc_prohibit_hash_without_use): Likewise.
36301         (sc_prohibit_hash_pjw_without_use): Likewise.
36302         (sc_prohibit_safe_read_without_use): Likewise.
36303         (sc_prohibit_argmatch_without_use): Likewise.
36304         (sc_prohibit_canonicalize_without_use): Likewise.
36305         (sc_prohibit_root_dev_ino_without_use): Likewise.
36306         (sc_prohibit_openat_without_use): Likewise.
36307         (sc_prohibit_c_ctype_without_use): Likewise.
36308         (sc_prohibit_signal_without_use): Likewise.
36309         (sc_prohibit_intprops_without_use): Likewise.
36310
36311 2010-03-30  Eric Blake  <eblake@redhat.com>
36312
36313         maint: improve module indicators
36314         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36315         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36316         columns, and avoid extra macro expansion.
36317
36318         fdopendir: work around FreeBSD bug
36319         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36320         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36321         * modules/dirent (Makefile.am): Substitute it.
36322         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36323         declaration.
36324         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36325         fix.
36326         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36327
36328 2010-03-29  Bruno Haible  <bruno@clisp.org>
36329
36330         Emit #pragma system_header after the inclusion guard, not before.
36331         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36332         guard that spans the entire file, not before. This enables an
36333         optimization in GCC's preprocessor.
36334         * lib/ctype.in.h: Likewise.
36335         * lib/dirent.in.h: Likewise.
36336         * lib/errno.in.h: Likewise.
36337         * lib/float.in.h: Likewise.
36338         * lib/getopt.in.h: Likewise.
36339         * lib/iconv.in.h: Likewise.
36340         * lib/langinfo.in.h: Likewise.
36341         * lib/locale.in.h: Likewise.
36342         * lib/math.in.h: Likewise.
36343         * lib/netdb.in.h: Likewise.
36344         * lib/netinet_in.in.h: Likewise.
36345         * lib/pty.in.h: Likewise.
36346         * lib/sched.in.h: Likewise.
36347         * lib/se-selinux.in.h: Likewise.
36348         * lib/search.in.h: Likewise.
36349         * lib/spawn.in.h: Likewise.
36350         * lib/stdarg.in.h: Likewise.
36351         * lib/stdint.in.h: Likewise.
36352         * lib/string.in.h: Likewise.
36353         * lib/strings.in.h: Likewise.
36354         * lib/sys_file.in.h: Likewise.
36355         * lib/sys_ioctl.in.h: Likewise.
36356         * lib/sys_time.in.h: Likewise.
36357         * lib/sys_times.in.h: Likewise.
36358         * lib/sys_utsname.in.h: Likewise.
36359         * lib/sys_wait.in.h: Likewise.
36360         * lib/sysexits.in.h: Likewise.
36361         * lib/wctype.in.h: Likewise.
36362
36363 2010-03-28  James Youngman  <jay@gnu.org>
36364
36365         save-cwd: don't leak a file descriptor when the caller execs.
36366         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36367         saved file descriptor.
36368         * modules/save-cwd (Depends-on): Depend on cloexec.
36369
36370 2010-03-29  Bruno Haible  <bruno@clisp.org>
36371
36372         Remove vestiges of fts-lgpl module.
36373         * lib/fts_.h: Assume GNULIB_FTS is 1.
36374         * lib/fts.c: Likewise.
36375         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36376
36377 2010-03-28  Bruno Haible  <bruno@clisp.org>
36378
36379         Fix definition of tests witness macro.
36380         * gnulib-tool (func_import): Fix definition of witness macro.
36381
36382 2010-03-28  Bruno Haible  <bruno@clisp.org>
36383
36384         Fix ioctl's protoype on glibc systems.
36385         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36386         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36387         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36388         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36389         signature. If not, arrange to replace the ioctl function.
36390         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36391         REPLACE_IOCTL.
36392         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36393         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36394         Reported by Ludovic Courtès <ludo@gnu.org>.
36395
36396 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36397
36398         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36399         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36400         made it so grep -r --include=GLOB* ... did not work.
36401
36402 2010-03-26  Jim Meyering  <meyering@redhat.com>
36403             Eric Blake  <eblake@redhat.com>
36404
36405         maint.mk: prohibit use of test's -o and -a operators
36406         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36407
36408 2010-03-28  Bruno Haible  <bruno@clisp.org>
36409
36410         Remove unused GNULIB_XYZ macro definitions.
36411         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36412         invocation.
36413
36414 2010-03-28  Bruno Haible  <bruno@clisp.org>
36415
36416         Mark privileged tests modules.
36417         * modules/idpriv-drop-tests (Status): New section.
36418         * modules/idpriv-droptemp-tests (Status): New section.
36419
36420 2010-03-28  Bruno Haible  <bruno@clisp.org>
36421
36422         Split C++ tests into separate tests modules.
36423         * modules/dirent-c++-tests: New file, extracted from
36424         modules/dirent-tests.
36425         * modules/dirent-tests: Depend on it.
36426         * modules/fcntl-h-c++-tests: New file, extracted from
36427         modules/fcntl-h-tests.
36428         * modules/fcntl-h-tests: Depend on it.
36429         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36430         * modules/glob-tests: Depend on it.
36431         * modules/iconv-h-c++-tests: New file, extracted from
36432         modules/iconv-h-tests.
36433         * modules/iconv-h-tests: Depend on it.
36434         * modules/langinfo-c++-tests: New file, extracted from
36435         modules/langinfo-tests.
36436         * modules/langinfo-tests: Depend on it.
36437         * modules/locale-c++-tests: New file, extracted from
36438         modules/locale-tests.
36439         * modules/locale-tests: Depend on it.
36440         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36441         * modules/math-tests: Depend on it.
36442         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36443         * modules/pty-tests: Depend on it.
36444         * modules/search-c++-tests: New file, extracted from
36445         modules/search-tests.
36446         * modules/search-tests: Depend on it.
36447         * modules/signal-c++-tests: New file, extracted from
36448         modules/signal-tests.
36449         * modules/signal-tests: Depend on it.
36450         * modules/spawn-c++-tests: New file, extracted from
36451         modules/spawn-tests.
36452         * modules/spawn-tests: Depend on it.
36453         * modules/stdio-c++-tests: New file, extracted from
36454         modules/stdio-tests.
36455         * modules/stdio-tests: Depend on it.
36456         * modules/stdlib-c++-tests: New file, extracted from
36457         modules/stdlib-tests.
36458         * modules/stdlib-tests: Depend on it.
36459         * modules/string-c++-tests: New file, extracted from
36460         modules/string-tests.
36461         * modules/string-tests: Depend on it.
36462         * modules/sys_ioctl-c++-tests: New file, extracted from
36463         modules/sys_ioctl-tests.
36464         * modules/sys_ioctl-tests: Depend on it.
36465         * modules/sys_select-c++-tests: New file, extracted from
36466         modules/sys_select-tests.
36467         * modules/sys_select-tests: Depend on it.
36468         * modules/sys_socket-c++-tests: New file, extracted from
36469         modules/sys_socket-tests.
36470         * modules/sys_socket-tests: Depend on it.
36471         * modules/sys_stat-c++-tests: New file, extracted from
36472         modules/sys_stat-tests.
36473         * modules/sys_stat-tests: Depend on it.
36474         * modules/sys_time-c++-tests: New file, extracted from
36475         modules/sys_time-tests.
36476         * modules/sys_time-tests: Depend on it.
36477         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36478         * modules/time-tests: Depend on it.
36479         * modules/unistd-c++-tests: New file, extracted from
36480         modules/unistd-tests.
36481         * modules/unistd-tests: Depend on it.
36482         * modules/wchar-c++-tests: New file, extracted from
36483         modules/wchar-tests.
36484         * modules/wchar-tests: Depend on it.
36485         * modules/wctype-c++-tests: New file, extracted from
36486         modules/wctype-tests.
36487         * modules/wctype-tests: Depend on it.
36488         Reported by Simon Josefsson.
36489
36490 2010-03-28  Bruno Haible  <bruno@clisp.org>
36491
36492         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36493         * gnulib-tool (func_exists_module): New function, extracted from
36494         func_verify_module.
36495         (func_verify_module): Use it.
36496         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36497         'foo' only if 'foo' exists.
36498         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36499         module.
36500
36501 2010-03-28  Bruno Haible  <bruno@clisp.org>
36502
36503         gnulib-tool: Add support for special categories of tests.
36504         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36505         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36506         (func_usage): Document them.
36507         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36508         inc_unportable_tests, inc_all_tests): New variables.
36509         (func_acceptable): Consider these variables.
36510         (func_modules_transitive_closure): Make it work when the 'Status' field
36511         consists of multiple words.
36512         (func_import): Store and restore the values of inc_cxx_tests,
36513         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36514         inc_all_tests in gnulib-comp.m4.
36515         (func_create_testdir): Set inc_all_tests to true.
36516         * doc/gnulib.texi (Extra tests modules): New section.
36517         Suggested by Jim Meyering.
36518
36519 2010-03-28  Bruno Haible  <bruno@clisp.org>
36520
36521         ansi-c++-opt: Allow turning off the C++ build by default.
36522         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36523         gl_CXX_CHOICE_DEFAULT_NO is defined.
36524         Requested by Eric Blake.
36525
36526 2010-03-28  Bruno Haible  <bruno@clisp.org>
36527
36528         unistd: Avoid #define replacements in C++ mode.
36529         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36530         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36531         setsockopt, shutdown, select): In C++, attach a warning to the function
36532         if possible, rather than #defining the symbol to a dysfunctional alias.
36533         Reported by John W. Eaton <jwe@gnu.org>.
36534
36535 2010-03-28  Bruno Haible  <bruno@clisp.org>
36536
36537         Fix link errors on mingw.
36538         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36539         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36540         $(LIBSOCKET).
36541         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36542         $(LIBSOCKET).
36543
36544 2010-03-28  Bruno Haible  <bruno@clisp.org>
36545             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36546
36547         lib-ignore: Determine different options for different compilers.
36548         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36549         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36550         Add comments.
36551         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36552         * NEWS: Mention the change.
36553
36554 2010-03-27  Bruno Haible  <bruno@clisp.org>
36555
36556         Remove unused GNULIB_XYZ macro definitions.
36557         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36558         * modules/fseek (configure.ac): Likewise.
36559         * modules/ioctl (configure.ac): Likewise.
36560         * modules/open (configure.ac): Likewise.
36561         * modules/stdlib-safer (configure.ac): Likewise.
36562
36563 2010-03-27  Bruno Haible  <bruno@clisp.org>
36564
36565         Add a remark about certain modules.
36566         * modules/malloc (Comment): New section.
36567         * modules/realloc (Comment): Likewise.
36568         * modules/sigpipe (Comment): Likewise.
36569
36570 2010-03-27  Bruno Haible  <bruno@clisp.org>
36571
36572         Resolve conflict between the two kinds of module indicators.
36573         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36574         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36575         * modules/canonicalize (configure.ac): Invoke
36576         gl_MODULE_INDICATOR_FOR_TESTS.
36577         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36578         GNULIB_XYZ.
36579         * tests/test-dirent-c++.cc: Likewise.
36580         * tests/test-dirent-safer.c: Likewise.
36581         * tests/test-dup2.c: Likewise.
36582         * tests/test-fchdir.c: Likewise.
36583         * tests/test-fcntl-h-c++.cc: Likewise.
36584         * tests/test-getopt.c: Likewise.
36585         * tests/test-getopt.h: Likewise.
36586         * tests/test-langinfo-c++.cc: Likewise.
36587         * tests/test-locale-c++.cc: Likewise.
36588         * tests/test-math-c++.cc: Likewise.
36589         * tests/test-pty-c++.cc: Likewise.
36590         * tests/test-search-c++.cc: Likewise.
36591         * tests/test-signal-c++.cc: Likewise.
36592         * tests/test-spawn-c++.cc: Likewise.
36593         * tests/test-stdio-c++.cc: Likewise.
36594         * tests/test-stdlib-c++.cc: Likewise.
36595         * tests/test-string-c++.cc: Likewise.
36596         * tests/test-sys_ioctl-c++.cc: Likewise.
36597         * tests/test-sys_select-c++.cc: Likewise.
36598         * tests/test-sys_socket-c++.cc: Likewise.
36599         * tests/test-sys_stat-c++.cc: Likewise.
36600         * tests/test-sys_time-c++.cc: Likewise.
36601         * tests/test-time-c++.cc: Likewise.
36602         * tests/test-unistd-c++.cc: Likewise.
36603         * tests/test-wchar-c++.cc: Likewise.
36604         * tests/uninorm/test-u8-nfc.c: Likewise.
36605         * tests/uninorm/test-u8-nfd.c: Likewise.
36606         * tests/uninorm/test-u8-nfkc.c: Likewise.
36607         * tests/uninorm/test-u8-nfkd.c: Likewise.
36608         * tests/uninorm/test-u16-nfc.c: Likewise.
36609         * tests/uninorm/test-u16-nfd.c: Likewise.
36610         * tests/uninorm/test-u16-nfkc.c: Likewise.
36611         * tests/uninorm/test-u16-nfkd.c: Likewise.
36612         * tests/uninorm/test-u32-nfc.c: Likewise.
36613         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36614         * tests/uninorm/test-u32-nfd.c: Likewise.
36615         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36616         * tests/uninorm/test-u32-nfkc.c: Likewise.
36617         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36618         * tests/uninorm/test-u32-nfkd.c: Likewise.
36619         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36620         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36621
36622 2010-03-27  Bruno Haible  <bruno@clisp.org>
36623
36624         Distinguish two kinds of module indicators.
36625         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36626         gl_MODULE_INDICATOR.
36627         (gl_MODULE_INDICATOR): New macro.
36628         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36629         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36630         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36631         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36632         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36633         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36634         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36635         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36636         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36637         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36638         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36639         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36640         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36641         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36642         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36643         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36644         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36645         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36646         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36647         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36648         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36649         * modules/cloexec (configure.ac): Likewise.
36650         * modules/getopt-gnu (configure.ac): Likewise.
36651         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36652         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36653         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36654         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36655
36656 2010-03-27  Bruno Haible  <bruno@clisp.org>
36657
36658         New module description field 'Comment'.
36659         * gnulib-tool: New option --extract-comment.
36660         (func_usage): Document it.
36661         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36662         (func_get_comment): New function.
36663         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36664
36665 2010-03-27  Bruno Haible  <bruno@clisp.org>
36666
36667         Addendum to 2010-02-07 commit.
36668         * gnulib-tool (func_usage): Document --extract-applicability option.
36669
36670 2010-03-27  Bruno Haible  <bruno@clisp.org>
36671
36672         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36673         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36674         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36675         rather than link errors.
36676
36677 2010-03-27  Bruno Haible  <bruno@clisp.org>
36678
36679         Avoid side effects from tests-related modules on the compilation of lib.
36680         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36681         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36682         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36683         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36684         macro.
36685         (func_import): Define a witness macro. Assign it a value that depends
36686         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36687         tests-related modules.
36688         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36689         Reported by Jim Meyering.
36690
36691 2010-03-27  Bruno Haible  <bruno@clisp.org>
36692
36693         Factorize common .m4 code.
36694         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36695         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36696         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36697         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36698         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36699         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36700         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36701         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36702         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36703         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36704         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36705         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36706         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36707         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36708         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36709         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36710         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36711         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36712         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36713         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36714         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36715         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36716         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36717         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36718         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36719         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36720         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36721         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36722         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36723         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36724         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36725         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36726
36727 2010-03-27  Bruno Haible  <bruno@clisp.org>
36728
36729         Fix a compilation error on Cygwin with g++ >= 4.3.
36730         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36731         if it is undefined or if we alias it to chmod.
36732         (lstat): Don't warn about the use of this function if it is undefined
36733         or if we alias it to stat.
36734         Reported by Simon Josefsson.
36735
36736 2010-03-27  Bruno Haible  <bruno@clisp.org>
36737
36738         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36739         * modules/getlogin (configure.ac): Update.
36740
36741         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36742         * modules/getlogin_r (configure.ac): Update.
36743
36744         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36745         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36746         * modules/inet_ntop (configure.ac): Update.
36747
36748         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36749         * modules/inet_pton (configure.ac): Update.
36750
36751         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36752         * modules/mbslen (configure.ac): Update.
36753
36754         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36755         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36756         * modules/forkpty (configure.ac): Update.
36757         * modules/openpty (configure.ac): Update.
36758
36759 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36760
36761         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36762         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36763
36764 2010-03-25  Eric Blake  <eblake@redhat.com>
36765
36766         maint: use pragma consistently across replacement headers
36767         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36768         * lib/dirent.in.h (system_header): Likewise.
36769         * lib/errno.in.h (system_header): Likewise.
36770         * lib/float.in.h (system_header): Likewise.
36771         * lib/getopt.in.h (system_header): Likewise.
36772         * lib/iconv.in.h (system_header): Likewise.
36773         * lib/inttypes.in.h (system_header): Likewise.
36774         * lib/langinfo.in.h (system_header): Likewise.
36775         * lib/locale.in.h (system_header): Likewise.
36776         * lib/math.in.h (system_header): Likewise.
36777         * lib/netdb.in.h (system_header): Likewise.
36778         * lib/netinet_in.in.h (system_header): Likewise.
36779         * lib/pty.in.h (system_header): Likewise.
36780         * lib/sched.in.h (system_header): Likewise.
36781         * lib/se-selinux.in.h (system_header): Likewise.
36782         * lib/search.in.h (system_header): Likewise.
36783         * lib/spawn.in.h (system_header): Likewise.
36784         * lib/stdarg.in.h (system_header): Likewise.
36785         * lib/stdint.in.h (system_header): Likewise.
36786         * lib/string.in.h (system_header): Likewise.
36787         * lib/strings.in.h (system_header): Likewise.
36788         * lib/sys_file.in.h (system_header): Likewise.
36789         * lib/sys_ioctl.in.h (system_header): Likewise.
36790         * lib/sys_socket.in.h (system_header): Likewise.
36791         * lib/sys_times.in.h (system_header): Likewise.
36792         * lib/sys_utsname.in.h (system_header): Likewise.
36793         * lib/sys_wait.in.h (system_header): Likewise.
36794         * lib/sysexits.in.h (system_header): Likewise.
36795         * lib/unistd.in.h (system_header): Likewise.
36796         * lib/wctype.in.h (system_header): Likewise.
36797
36798         arpa/inet: fix mingw compilation warning
36799         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36800         Reported by Matthew Bolte.
36801
36802 2010-03-25  Bruno Haible  <bruno@clisp.org>
36803
36804         Avoid collision between gnulib wrapper and libintl wrapper.
36805         * lib/printf.c (printf): Don't define if a printf wrapper is already
36806         defined in intl/printf.c.
36807         Reported by Michel Boaventura <michel@michelboaventura.com>.
36808
36809 2010-03-25  Bruno Haible  <bruno@clisp.org>
36810
36811         Use ANSI C.
36812         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36813
36814 2010-03-25  Bruno Haible  <bruno@clisp.org>
36815
36816         Minor formatting changes.
36817         * lib/acosl.c: Insert space before function argument list.
36818         * lib/argz.c: Likewise.
36819         * lib/asinl.c: Likewise.
36820         * lib/expl.c: Likewise.
36821         * lib/gen-uni-tables.c: Likewise.
36822         * lib/gettext.h: Likewise.
36823         * lib/glthread/lock.h: Likewise.
36824         * lib/tanl.c: Likewise.
36825         * lib/uniname/uniname.c: Likewise.
36826         * tests/test-idpriv-drop.c: Likewise.
36827         * tests/test-idpriv-droptemp.c: Likewise.
36828         * tests/test-lock.c: Likewise.
36829         * tests/test-tls.c: Likewise.
36830         * lib/argp-help.c: Insert space before function-like macro argument
36831         list.
36832         * lib/memcmp.c: Likewise.
36833         * tests/test-base64.c: Likewise.
36834         * lib/localename.c: Insert space before sizeof's argument list.
36835         * lib/safe-alloc.h: Likewise.
36836         * lib/file-set.h: Insert space before macro argument list.
36837         * tests/test-argp.c: Likewise.
36838         * lib/argp-namefrob.h: Insert space before function parameter list.
36839         * lib/getaddrinfo.c: Likewise.
36840         * lib/netdb.in.h: Likewise.
36841         * lib/parse-duration.h: Likewise.
36842         * lib/parse-duration.c: Likewise.
36843         * lib/poll.c: Likewise.
36844         * lib/select.c: Likewise.
36845         * lib/trim.h: Likewise.
36846         * tests/test-usleep.c: Likewise.
36847         * lib/ldexpl.c: Insert space before function parameter list and before
36848         function argument list.
36849         * lib/logl.c: Likewise.
36850         * lib/sqrtl.c: Likewise.
36851         * lib/trim.c: Likewise.
36852         * lib/cosl.c: Use GNU style indentation. Insert space before function
36853         argument list.
36854         * lib/sinl.c: Likewise.
36855         * lib/tsearch.c: Insert space after 'for'.
36856         Reported by Jim Meyering.
36857
36858 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36859
36860         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36861         config header before grepping, as it's not present before
36862         autoreconf/configure are run.  Reported by Simon Josefsson.
36863
36864 2010-03-23  Bruno Haible  <bruno@clisp.org>
36865
36866         pt_chown: Make it work with automake < 1.11.
36867         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36868         Reported by Simon Josefsson.
36869
36870 2010-03-23  Bruno Haible  <bruno@clisp.org>
36871
36872         pt_chown: Don't depend on GPLed modules.
36873         * lib/pt_chown.c: Don't include idpriv.h.
36874         (main): Don't drop privileges.
36875         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36876         Reported by Simon Josefsson.
36877
36878 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36879
36880         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36881         suggestions from karl@freefriends.org (Karl Berry).
36882
36883 2010-03-22  Eric Blake  <eblake@redhat.com>
36884
36885         gethostname: further tweaks
36886         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36887         are overriding gethostname.
36888         Suggested by Bruno Haible.
36889
36890 2010-03-21  Bruno Haible  <bruno@clisp.org>
36891
36892         Fix comments.
36893         * lib/forkpty.c (rpl_forkpty): Fix comment.
36894         * lib/openpty.c (rpl_openpty): Likewise.
36895         Reported by Eric Blake.
36896
36897 2010-03-22  Eric Blake  <eblake@redhat.com>
36898
36899         gethostname: fix build on mingw
36900         * lib/unistd.in.h (includes): Work around fact that mingw
36901         <winsock2.h> re-includes <unistd.h>, by avoiding any
36902         redeclarations if we are being included by <winsock2.h>.
36903         Reported by Matthias Bolte.
36904
36905 2010-03-21  Bruno Haible  <bruno@clisp.org>
36906
36907         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36908         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36909         modifications.
36910         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36911         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36912         provide the replacement.
36913         * modules/forkpty (Depends-on): Add openpty, login_tty.
36914         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36915         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36916         * doc/glibc-functions/forkpty.texi: More supported platforms.
36917         * config/srclist.txt: Add forkpty.c (commented).
36918
36919 2010-03-21  Bruno Haible  <bruno@clisp.org>
36920
36921         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36922         (Makefile.am): Verify that PTY_LIB is defined.
36923
36924         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36925
36926 2010-03-21  Bruno Haible  <bruno@clisp.org>
36927
36928         Tests for module 'login_tty'.
36929         * modules/login_tty-tests: New file.
36930         * tests/test-login_tty.c: New file.
36931
36932         New module 'login_tty'.
36933         * lib/login_tty.c: New file.
36934         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36935         * modules/login_tty: New file.
36936         * doc/glibc-functions/login_tty.texi: Mention the new module.
36937
36938 2010-03-21  Bruno Haible  <bruno@clisp.org>
36939
36940         login_tty: Documentation.
36941         * doc/glibc-functions/login_tty.texi: New file.
36942         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36943
36944 2010-03-21  Bruno Haible  <bruno@clisp.org>
36945
36946         pty: Consistent macro naming.
36947         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36948         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36949         * modules/pty (configure.ac): Update.
36950
36951 2010-03-21  Bruno Haible  <bruno@clisp.org>
36952
36953         Tests for openpty: Make stricter.
36954         * tests/test-openpty.c (main): Add test of canonical processing and
36955         erase.
36956         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36957
36958         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36959         * lib/openpty.c (openpty): New replacement function.
36960         * lib/pty.in.h: Include <termios.h>.
36961         (openpty): Update declaration. Add comments.
36962         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36963         is not declared, arrange to provide the replacement. Check for _getpty
36964         and posix_openpt.
36965         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36966         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36967         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36968         * modules/pty-tests (test_pty_c___LDADD): New variable.
36969         * doc/glibc-functions/openpty.texi: More supported platforms.
36970
36971 2010-03-21  Bruno Haible  <bruno@clisp.org>
36972
36973         setenv: Tweaks.
36974         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36975         the test program.
36976         * doc/posix-functions/setenv.texi: Update platforms list.
36977
36978 2010-03-21  Bruno Haible  <bruno@clisp.org>
36979
36980         New module 'unlockpt'.
36981         * lib/unlockpt.c: New file, from glibc with modifications.
36982         * m4/unlockpt.m4: New file.
36983         * modules/unlockpt: New file.
36984         * lib/stdlib.in.h (unlockpt): New declaration.
36985         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36986         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36987         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36988         HAVE_UNLOCKPT.
36989         * doc/posix-functions/unlockpt.texi: Mention the new module.
36990         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36991         * config/srclist.txt: Add unlockpt.c (commented).
36992
36993 2010-03-21  Jim Meyering  <meyering@redhat.com>
36994
36995         maint.mk: prohibit inclusion of "intprops.h" without use
36996         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36997
36998 2010-03-21  Bruno Haible  <bruno@clisp.org>
36999
37000         New module 'grantpt'.
37001         * lib/grantpt.c: New file, from glibc with modifications.
37002         * m4/grantpt.m4: New file.
37003         * modules/grantpt: New file.
37004         * lib/stdlib.in.h (grantpt): New declaration.
37005         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
37006         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
37007         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
37008         HAVE_GRANTPT.
37009         * doc/posix-functions/grantpt.texi: Mention the new module.
37010         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
37011         * config/srclist.txt: Add grantpt.c (commented).
37012
37013 2010-03-21  Bruno Haible  <bruno@clisp.org>
37014
37015         New module 'pt_chown'.
37016         * lib/pt_chown.c: New file, from glibc with modifications.
37017         * lib/pty-private.h: New file, from glibc with modifications.
37018         * modules/pt_chown: New file.
37019         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
37020
37021 2010-03-21  Bruno Haible  <bruno@clisp.org>
37022
37023         Tests for module 'ptsname'.
37024         * modules/ptsname-tests: New file.
37025         * tests/test-ptsname.c: New file.
37026
37027         New module 'ptsname'.
37028         * lib/ptsname.c: New file, from glibc with modifications.
37029         * m4/ptsname.m4: New file.
37030         * modules/ptsname: New file.
37031         * lib/stdlib.in.h (ptsname): New declaration.
37032         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
37033         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
37034         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
37035         HAVE_PTSNAME.
37036         * doc/posix-functions/ptsname.texi: Mention the new module.
37037         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
37038         * config/srclist.txt: Add ptsname.c (commented).
37039
37040 2010-03-21  Bruno Haible  <bruno@clisp.org>
37041
37042         Tests for module 'ttyname_r'.
37043         * modules/ttyname_r-tests: New file.
37044         * tests/test-ttyname_r.c: New file.
37045
37046         New module 'ttyname_r'.
37047         * lib/ttyname_r.c: New file.
37048         * m4/ttyname_r.m4: New file.
37049         * modules/ttyname_r: New file.
37050         * lib/unistd.in.h (ttyname_r): New declaration.
37051         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
37052         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
37053         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
37054         HAVE_TTYNAME_R.
37055         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
37056         * doc/posix-functions/ttyname_r.texi: Mention the new module.
37057
37058 2010-03-20  Bruno Haible  <bruno@clisp.org>
37059
37060         signal: Undefine macro definitions in C++ mode.
37061         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
37062         sigfillset): Undefine macro definitions from the system header in C++
37063         mode.
37064         Reported by John W. Eaton <jwe@gnu.org>.
37065
37066 2010-03-20  Bruno Haible  <bruno@clisp.org>
37067
37068         Ensure no #include statements inside extern "C" { ... }.
37069         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
37070         contain #include statements.
37071         * lib/time.in.h: Likewise.
37072
37073 2010-03-20  Bruno Haible  <bruno@clisp.org>
37074
37075         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
37076         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
37077         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
37078         Reported by John W. Eaton <jwe@gnu.org>.
37079
37080 2010-03-20  Bruno Haible  <bruno@clisp.org>
37081
37082         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
37083         Reported by Jim Meyering.
37084
37085 2010-03-20  Bruno Haible  <bruno@clisp.org>
37086
37087         pipe: Set errno upon failure.
37088         * lib/pipe.h: Specify that when -1 is returned, errno is set.
37089         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
37090         errno value in error message.
37091
37092 2010-03-20  Bruno Haible  <bruno@clisp.org>
37093             Jim Meyering  <meyering@redhat.com>
37094
37095         lchown: Avoid "unused variable" warning.
37096         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
37097
37098 2010-03-20  Bruno Haible  <bruno@clisp.org>
37099
37100         Work around unlink() bug on MacOS X 10.5.6.
37101         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
37102         attempting to unlink a parent directory.
37103         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
37104         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
37105         activate for the replacement function.
37106         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
37107
37108 2010-03-20  Bruno Haible  <bruno@clisp.org>
37109
37110         Fix link errors on Solaris 8.
37111         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
37112         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
37113
37114 2010-03-19  Jim Meyering  <meyering@redhat.com>
37115
37116         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
37117         The _LIBC implementation of build_range_exp correctly honors the
37118         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
37119         However, the non-_LIBC implementation would ignore that syntax-bit
37120         flag and return REG_ERANGE unconditionally.
37121         This change makes it honor that flag.
37122         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
37123         Make two pointer parameters "const".
37124         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
37125         (parse_bracket_exp): Update caller.
37126
37127         regex.m4: correct the reversed range endpoint ([b-a]) test
37128         * m4/regex.m4: When requiring that [b-a] evoke failure,
37129         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
37130         test pass once again for x86-based systems.
37131
37132 2010-03-19  Bruno Haible  <bruno@clisp.org>
37133
37134         scandir: Fix link error on Solaris 8.
37135         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
37136         macros.
37137
37138 2010-03-19  Bruno Haible  <bruno@clisp.org>
37139
37140         getusershell: Fix documentation.
37141         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
37142         module.
37143         * doc/glibc-functions/setusershell.texi: Likewise.
37144
37145         getusershell: Provide declaration, missing on Solaris 9.
37146         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
37147         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
37148         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
37149         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
37150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37151         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
37152         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
37153         HAVE_GETUSERSHELL.
37154         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
37155
37156 2010-03-19  Bruno Haible  <bruno@clisp.org>
37157
37158         wctype: Provide iswblank function.
37159         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
37160         exists and is fine.
37161         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
37162         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
37163         * tests/test-wctype.c (main): Re-enable the iswblank tests.
37164         * doc/posix-functions/iswblank.texi: Update.
37165
37166 2010-03-19  Bruno Haible  <bruno@clisp.org>
37167
37168         Tests of module 'pty' in C++ mode.
37169         * modules/pty-tests: New file.
37170         * tests/test-pty-c++.cc: New file.
37171         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37172
37173 2010-03-19  Eric Blake  <eblake@redhat.com>
37174
37175         logb: fix documentation
37176         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
37177         1.5 declaration bug.
37178
37179         forkpty, openpty: prefer glibc's const-safe prototype
37180         * lib/forkpty.c (rpl_forkpty): New file.
37181         * lib/openpty.c (rpl_openpty): Likewise.
37182         * modules/forkpty (Files): Distribute it.
37183         * modules/openpty (Files): Likewise.
37184         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
37185         check...
37186         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
37187         replacement for for non-const BSD signature.
37188         * modules/pty (Makefile.am): Substitute witnesses.
37189         * lib/pty.in.h (forkpty, openpty): Declare replacements.
37190         * tests/test-forkpty.c: Update signature check.
37191         * tests/test-openpty.c: Likewise.
37192         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
37193         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37194
37195         forkpty, openpty: split functions into new modules
37196         * modules/pty (Makefile.am): Substitute new witnesses.
37197         (Libraries): Move library detection...
37198         * modules/forkpty: ...into new module.
37199         * modules/openpty: Another new module.
37200         * modules/pty-tests: Rename and split...
37201         * modules/forkpty-tests: ...to this...
37202         * modules/openpty-tests: ...and this.
37203         * tests/test-pty.c: Rename and split...
37204         * tests/test-forkpty.c: ...to this...
37205         * tests/test-openpty.c: ...and this.
37206         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37207         (gl_PTY): Split library searching...
37208         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37209         (gl_FORKPTY, gl_OPENPTY): New macros.
37210         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37211         * NEWS: Mention the split.
37212         * MODULES.html.sh (Misc): Document the modules.
37213         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37214         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37215
37216         pty: improve replacement header
37217         * lib/pty.in.h: New file.
37218         * modules/pty (Files): Ship it.
37219         (Makefile.am): Always build replacement.
37220         * m4/pty.m4: Rename...
37221         * m4/pty_h.m4: ...to this.
37222         (gl_PTY): Modernize setting of witness macros; update check of
37223         forkpty to take proper advantage of cache.
37224         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37225
37226         getopt: avoid compiler warning
37227         * lib/getopt.c (attribute_hidden): Remove unused macro.
37228
37229 2010-03-18  Bruno Haible  <bruno@clisp.org>
37230
37231         Fix link errors on Solaris 8.
37232         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37233         * modules/search-tests (test_search_c___LDADD): Likewise.
37234         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37235         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37236         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37237         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37238         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37239         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37240         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37241
37242 2010-03-18  Bruno Haible  <bruno@clisp.org>
37243
37244         Fix bug introduced on 2010-03-14.
37245         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37246         (gl_SPAWN_H): Require it.
37247         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37248         Reported by Simon Josefsson.
37249
37250 2010-03-18  Bruno Haible  <bruno@clisp.org>
37251
37252         Fix typo introduced on 2009-12-31.
37253         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37254         posix_spawn_file_actions_adddup2.
37255
37256 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37257         and Eric Blake  <eblake@redhat.com>
37258
37259         test-vc-list-files-git: make more robust
37260         * tests/test-vc-list-files-git.sh: Unset problematic environment
37261         variables.  Chain commands together.
37262
37263 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37264
37265         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37266         `AC_CHECK_DECL' invocation.
37267
37268 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37269
37270         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37271         appears before executable statements. Suggested by Petr Sumbera
37272         <Petr.Sumbera@Sun.COM>.
37273
37274 2010-03-14  Bruno Haible  <bruno@clisp.org>
37275
37276         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37277         portability problems. Instead use a simpler test.
37278         (main): Check that invalid arguments are rejected only on Linux.
37279
37280 2010-03-14  Bruno Haible  <bruno@clisp.org>
37281
37282         Fix bug introduced on 2009-12-31.
37283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37284         gl_PREREQ_SYS_H_WINSOCK2 always.
37285         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37286         SYS_SOCKET_H variable.
37287         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37288         Update comments.
37289         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37290         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37291         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37292         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37293         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37294
37295 2010-03-14  Bruno Haible  <bruno@clisp.org>
37296
37297         Fix values returned by sinl, cosl.
37298         * lib/trigl.h: Add specification comments.
37299         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37300         that combines the values from the precomputed table with the values of
37301         the Chebyshev polynomials.
37302
37303 2010-03-14  Bruno Haible  <bruno@clisp.org>
37304
37305         Fix compilation error when modules 'posix_spawn[p]' are not used.
37306         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37307         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37308
37309 2010-03-14  Bruno Haible  <bruno@clisp.org>
37310
37311         Fix compilation error on mingw when module 'time_r' is not used.
37312         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37313         is 1.
37314         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37315         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37316         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37317         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37318
37319 2010-03-14  Bruno Haible  <bruno@clisp.org>
37320
37321         Fix compilation error with Sun C.
37322         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37323         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37324         instead of GCC specific ULONG_LONG_MAX.
37325         * lib/xstrtoll.c: Likewise.
37326         * lib/xstrtoull.c: Likewise.
37327
37328 2010-03-13  Bruno Haible  <bruno@clisp.org>
37329
37330         Allow the user to disable C++ code and tests.
37331         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37332         (gl_PROG_ANSI_CXX): Require it.
37333
37334 2010-03-13  Bruno Haible  <bruno@clisp.org>
37335
37336         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37337         cases.
37338
37339 2010-03-13  Bruno Haible  <bruno@clisp.org>
37340
37341         Test that gnulib does not break the standard C++ headers.
37342         * tests/test-locale-c++2.cc: New file.
37343         * modules/locale-tests (Files): Add it.
37344         (Makefile.am): Compile it for test-locale-c++.
37345         * tests/test-math-c++2.cc: New file.
37346         * modules/math-tests (Files): Add it.
37347         (Makefile.am): Compile it for test-math-c++.
37348         * tests/test-signal-c++2.cc: New file.
37349         * modules/signal-tests (Files): Add it.
37350         (Makefile.am): Compile it for test-signal-c++.
37351         * tests/test-stdio-c++2.cc: New file.
37352         * modules/stdio-tests (Files): Add it.
37353         (Makefile.am): Compile it for test-stdio-c++.
37354         * tests/test-stdlib-c++2.cc: New file.
37355         * modules/stdlib-tests (Files): Add it.
37356         (Makefile.am): Compile it for test-stdlib-c++.
37357         * tests/test-string-c++2.cc: New file.
37358         * modules/string-tests (Files): Add it.
37359         (Makefile.am): Compile it for test-string-c++.
37360         * tests/test-time-c++2.cc: New file.
37361         * modules/time-tests (Files): Add it.
37362         (Makefile.am): Compile it for test-time-c++.
37363         Reported by John W. Eaton <jwe@gnu.org>.
37364
37365 2010-03-13  Bruno Haible  <bruno@clisp.org>
37366
37367         * gnulib-tool (func_usage): Clarify which options are available for
37368         --create-testdir and --create-megatestdir.
37369
37370 2010-03-13  Bruno Haible  <bruno@clisp.org>
37371
37372         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37373         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37374         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37375         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37376         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37377         when appropriate.
37378         Reported by Jim Meyering.
37379
37380 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37381
37382         * gnulib-tool (func_import): Explain origin of code.
37383
37384 2010-03-12  Bruno Haible  <bruno@clisp.org>
37385
37386         Fix problem with automake's definition of CXXLINK.
37387         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37388         Reported by Simon Josefsson and Ludovic Courtès.
37389
37390 2010-03-12  Bruno Haible  <bruno@clisp.org>
37391
37392         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37393         stable releases.
37394
37395 2010-03-11  Bruno Haible  <bruno@clisp.org>
37396
37397         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37398         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37399         whether the system provides one variant or multiple variants of the
37400         function.
37401         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37402         C++ compilers.
37403         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37404         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37405         Reported by Jim Meyering.
37406
37407 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37408
37409         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37410
37411 2010-03-08  Bruno Haible  <bruno@clisp.org>
37412
37413         gnulib-tool: Add support for --libtool in --create-testdir.
37414         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37415         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37416
37417 2010-03-08  Eric Blake  <eblake@redhat.com>
37418
37419         gnulib-tool.texi: mention possibility of git submodule
37420         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37421         submodules.
37422         * doc/.gitignore: Ignore another generated file.
37423
37424 2010-03-08  Karl Berry  <karl@gnu.org>
37425
37426         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37427         of committing gnulib files while skipping others.
37428
37429 2010-03-07  Bruno Haible  <bruno@clisp.org>
37430
37431         Tests of module 'wctype' in C++ mode.
37432         * tests/test-wctype-c++.cc: New file.
37433         * modules/wctype-tests (Files): Add it and tests/signature.h.
37434         (Depends-on): Add ansi-c++-opt.
37435         (Makefile.am): Arrange to compile and run test-wctype-c++.
37436
37437         Tests of module 'wchar' in C++ mode.
37438         * tests/test-wchar-c++.cc: New file.
37439         * modules/wchar-tests (Files): Add it and tests/signature.h.
37440         (Depends-on): Add ansi-c++-opt.
37441         (Makefile.am): Arrange to compile and run test-wchar-c++.
37442         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37443         gl_MODULE_INDICATOR.
37444
37445         Tests of module 'unistd' in C++ mode.
37446         * tests/test-unistd-c++.cc: New file.
37447         * modules/unistd-tests (Files): Add it and tests/signature.h.
37448         (Depends-on): Add ansi-c++-opt.
37449         (Makefile.am): Arrange to compile and run test-unistd-c++.
37450         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37451         gl_MODULE_INDICATOR.
37452
37453         Tests of module 'time' in C++ mode.
37454         * tests/test-time-c++.cc: New file.
37455         * modules/time-tests (Files): Add it and tests/signature.h.
37456         (Depends-on): Add ansi-c++-opt.
37457         (Makefile.am): Arrange to compile and run test-time-c++.
37458         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37459
37460         Tests of module 'sys_time' in C++ mode.
37461         * tests/test-sys_time-c++.cc: New file.
37462         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37463         (Depends-on): Add ansi-c++-opt.
37464         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37465         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37466         gl_MODULE_INDICATOR.
37467
37468         Tests of module 'sys_stat' in C++ mode.
37469         * tests/test-sys_stat-c++.cc: New file.
37470         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37471         (Depends-on): Add ansi-c++-opt.
37472         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37473         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37474         gl_MODULE_INDICATOR.
37475
37476         Tests of module 'sys_socket' in C++ mode.
37477         * tests/test-sys_socket-c++.cc: New file.
37478         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37479         (Depends-on): Add ansi-c++-opt.
37480         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37481         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37482         gl_MODULE_INDICATOR.
37483
37484         Tests of module 'sys_select' in C++ mode.
37485         * tests/test-sys_select-c++.cc: New file.
37486         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37487         (Depends-on): Add ansi-c++-opt.
37488         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37489         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37490         gl_MODULE_INDICATOR.
37491
37492         Tests of module 'sys_ioctl' in C++ mode.
37493         * tests/test-sys_ioctl-c++.cc: New file.
37494         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37495         (Depends-on): Add ansi-c++-opt.
37496         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37497         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37498         gl_MODULE_INDICATOR.
37499
37500         Tests of module 'string' in C++ mode.
37501         * tests/test-string-c++.cc: New file.
37502         * modules/string-tests (Files): Add it and tests/signature.h.
37503         (Depends-on): Add ansi-c++-opt.
37504         (Makefile.am): Arrange to compile and run test-string-c++.
37505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37506         gl_MODULE_INDICATOR.
37507
37508         Tests of module 'stdlib' in C++ mode.
37509         * tests/test-stdlib-c++.cc: New file.
37510         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37511         (Depends-on): Add ansi-c++-opt.
37512         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37513         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37514         gl_MODULE_INDICATOR.
37515
37516         Tests of module 'stdio' in C++ mode.
37517         * tests/test-stdio-c++.cc: New file.
37518         * modules/stdio-tests (Files): Add it and tests/signature.h.
37519         (Depends-on): Add ansi-c++-opt.
37520         (Makefile.am): Arrange to compile and run test-stdio-c++.
37521         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37522         gl_MODULE_INDICATOR.
37523
37524         Tests of module 'spawn' in C++ mode.
37525         * tests/test-spawn-c++.cc: New file.
37526         * modules/spawn-tests (Files): Add it and tests/signature.h.
37527         (Depends-on): Add ansi-c++-opt.
37528         (Makefile.am): Arrange to compile and run test-spawn-c++.
37529         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37530         gl_MODULE_INDICATOR.
37531
37532         Tests of module 'signal' in C++ mode.
37533         * tests/test-signal-c++.cc: New file.
37534         * modules/signal-tests (Files): Add it and tests/signature.h.
37535         (Depends-on): Add ansi-c++-opt.
37536         (Makefile.am): Arrange to compile and run test-signal-c++.
37537         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37538         gl_MODULE_INDICATOR.
37539
37540         Tests of module 'search' in C++ mode.
37541         * tests/test-search-c++.cc: New file.
37542         * modules/search-tests (Files): Add it and tests/signature.h.
37543         (Depends-on): Add ansi-c++-opt.
37544         (Makefile.am): Arrange to compile and run test-search-c++.
37545         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37546         gl_MODULE_INDICATOR.
37547
37548         Tests of module 'math' in C++ mode.
37549         * tests/test-math-c++.cc: New file.
37550         * modules/math-tests (Files): Add it and tests/signature.h.
37551         (Depends-on): Add ansi-c++-opt.
37552         (Makefile.am): Arrange to compile and run test-math-c++.
37553         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37554
37555         Tests of module 'locale' in C++ mode.
37556         * tests/test-locale-c++.cc: New file.
37557         * modules/locale-tests (Files): Add it and tests/signature.h.
37558         (Depends-on): Add ansi-c++-opt.
37559         (Makefile.am): Arrange to compile and run test-locale-c++.
37560         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37561         gl_MODULE_INDICATOR.
37562
37563         Tests of module 'langinfo' in C++ mode.
37564         * tests/test-langinfo-c++.cc: New file.
37565         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37566         (Depends-on): Add ansi-c++-opt.
37567         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37568         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37569         gl_MODULE_INDICATOR.
37570
37571         Tests of module 'iconv-h' in C++ mode.
37572         * tests/test-iconv-h-c++.cc: New file.
37573         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37574         (Depends-on): Add ansi-c++-opt.
37575         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37576
37577         Tests of module 'glob' in C++ mode.
37578         * tests/test-glob-c++.cc: New file.
37579         * modules/glob-tests (Files): Add it.
37580         (Depends-on): Add ansi-c++-opt.
37581         (Makefile.am): Arrange to compile and run test-glob-c++.
37582
37583         Tests of module 'fcntl-h' in C++ mode.
37584         * tests/test-fcntl-h-c++.cc: New file.
37585         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37586         (Depends-on): Add ansi-c++-opt.
37587         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37588         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37589         gl_MODULE_INDICATOR.
37590
37591         Tests of module 'dirent' in C++ mode.
37592         * tests/test-dirent-c++.cc: New file.
37593         * modules/dirent-tests (Files): Add it and tests/signature.h.
37594         (Depends-on): Add ansi-c++-opt.
37595         (Makefile.am): Arrange to compile and run test-dirent-c++.
37596         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37597         gl_MODULE_INDICATOR.
37598
37599         New module 'ansi-c++-opt'.
37600         * modules/ansi-c++-opt: New file.
37601         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37602
37603         Document C++ namespace mode.
37604         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37605
37606         wctype: Avoid #define replacements in C++ mode.
37607         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37608         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37609         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37610         In C++, define a namespaced alias symbol.
37611         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37612         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37613         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37614         rule.
37615
37616         wchar: Avoid #define replacements in C++ mode.
37617         * lib/wchar.in.h: Include c++defs.h.
37618         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37619         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37620         symbol.
37621         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37622         * modules/wchar (Depends-on): Add c++defs.
37623         (Makefile.am): Update wchar.h rule.
37624
37625         unistd: Avoid #define replacements in C++ mode.
37626         * lib/unistd.in.h: Include c++defs.h.
37627         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37628         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37629         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37630         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37631         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37632         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37633         symbol.
37634         (environ): Update.
37635         * modules/unistd (Depends-on): Add c++defs.
37636         (Makefile.am): Update unistd.h rule.
37637
37638         time: Avoid #define replacements in C++ mode.
37639         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37640         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37641         define a namespaced alias symbol.
37642         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37643         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37644         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37645         * modules/time (Depends-on): Add c++defs, warn-on-use.
37646         (Makefile.am): Update time.h rule.
37647         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37648         * modules/nanosleep (configure.ac): Likewise.
37649         * modules/strptime (configure.ac): Likewise.
37650         * modules/timegm (configure.ac): Likewise.
37651
37652         sys_time: Avoid #define replacements in C++ mode.
37653         * lib/sys_time.in.h: Include c++defs.h.
37654         (gettimeofday): In C++, define a namespaced alias symbol.
37655         * modules/sys_time (Depends-on): Add c++defs.
37656         (Makefile.am): Update sys/time.h rule.
37657
37658         sys_stat: Avoid #define replacements in C++ mode.
37659         * lib/sys_stat.in.h: Include c++defs.h.
37660         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37661         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37662         namespaced alias symbol.
37663         In C++, define a namespaced alias symbol.
37664         * modules/sys_stat (Depends-on): Add c++defs.
37665         (Makefile.am): Update sys/stat.h rule.
37666
37667         sys_socket: Avoid #define replacements in C++ mode.
37668         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37669         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37670         definitions also when the system has a <sys/socket.h>.
37671         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37672         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37673         In C++, define a namespaced alias symbol.
37674         * modules/sys_socket (Depends-on): Add c++defs.
37675         (Makefile.am): Update sys/socket.h rule.
37676
37677         sys_select: Avoid #define replacements in C++ mode.
37678         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37679         definitions also when the system has a <sys/select.h>.
37680         (select): In C++, define a namespaced alias symbol.
37681         * modules/sys_select (Depends-on): Add c++defs.
37682         (Makefile.am): Update sys/select.h rule.
37683
37684         sys_ioctl: Avoid #define replacements in C++ mode.
37685         * lib/sys_ioctl.in.h: Include c++defs.h.
37686         (ioctl): In C++, define a namespaced alias symbol.
37687         * modules/sys_ioctl (Depends-on): Add c++defs.
37688         (Makefile.am): Update sys/ioctl.h rule.
37689
37690         string: Avoid #define replacements in C++ mode.
37691         * lib/string.in.h: Include c++defs.h.
37692         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37693         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37694         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37695         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37696         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37697         * modules/string (Depends-on): Add c++defs.
37698         (Makefile.am): Update string.h rule.
37699
37700         stdlib: Avoid #define replacements in C++ mode.
37701         * lib/stdlib.in.h: Include c++defs.h.
37702         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37703         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37704         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37705         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37706         symbol.
37707         * modules/stdlib (Depends-on): Add c++defs.
37708         (Makefile.am): Update stdlib.h rule.
37709
37710         stdio: Avoid #define replacements in C++ mode.
37711         * lib/stdio.in.h: Include c++defs.h.
37712         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37713         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37714         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37715         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37716         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37717         namespaced alias symbol.
37718         * modules/stdio (Depends-on): Add c++defs.
37719         (Makefile.am): Update stdio.h rule.
37720
37721         spawn: Avoid #define replacements in C++ mode.
37722         * lib/spawn.in.h: Include c++defs.h.
37723         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37724         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37725         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37726         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37727         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37728         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37729         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37730         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37731         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37732         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37733         In C++, define a namespaced alias symbol.
37734         * modules/spawn (Depends-on): Add c++defs.
37735         (Makefile.am): Update spawn.h rule.
37736
37737         signal: Avoid #define replacements in C++ mode.
37738         * lib/signal.in.h: Include c++defs.h.
37739         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37740         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37741         namespaced alias symbol.
37742         * modules/signal (Depends-on): Add c++defs.
37743         (Makefile.am): Update signal.h rule.
37744
37745         search: Avoid #define replacements in C++ mode.
37746         * lib/search.in.h: Include c++defs.h.
37747         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37748         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37749         symbol.
37750         * modules/search (Depends-on): Add c++defs.
37751         (Makefile.am): Update search.h rule.
37752
37753         math: Avoid #define replacements in C++ mode.
37754         * lib/math.in.h: Include c++defs.h.
37755         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37756         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37757         trunc, truncl): In C++, define a namespaced alias symbol.
37758         * modules/math (Depends-on): Add c++defs.
37759         (Makefile.am): Update math.h rule.
37760
37761         locale: Avoid #define replacements in C++ mode.
37762         * lib/locale.in.h: Include c++defs.h.
37763         (duplocale): In C++, define a namespaced alias symbol.
37764         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37765         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37766         * modules/locale (Depends-on): Add c++defs.
37767         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37768
37769         langinfo: Avoid #define replacements in C++ mode.
37770         * lib/langinfo.in.h: Include c++defs.h.
37771         (nl_langinfo): In C++, define a namespaced alias symbol.
37772         * modules/langinfo (Depends-on): Add c++defs.
37773         (Makefile.am): Update langinfo.h rule.
37774
37775         iconv-h: Avoid #define replacements in C++ mode.
37776         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37777         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37778         symbol.
37779         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37780         whenever iconv is present.
37781         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37782         (Makefile.am): Update iconv.h rule.
37783
37784         glob: Avoid #define replacements in C++ mode.
37785         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37786         (_gl_glob_errfunc_fn): New type.
37787         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37788         symbol.
37789         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37790         (Makefile.am): Update glob.h rule.
37791
37792         fcntl-h: Avoid #define replacements in C++ mode.
37793         * lib/fcntl.in.h: Include c++defs.h.
37794         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37795         * modules/fcntl-h (Depends-on): Add c++defs.
37796         (Makefile.am): Update fcntl.h rule.
37797
37798         dirent: Avoid #define replacements in C++ mode.
37799         * lib/dirent.in.h: Include c++defs.h.
37800         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37801         namespaced alias symbol.
37802         (dirfd): Update declaration.
37803         * modules/dirent (Depends-on): Add c++defs.
37804         (Makefile.am): Update dirent.h rule.
37805
37806         ctype: Make it usable in C++ code.
37807         * lib/ctype.in.h: Include c++defs.h.
37808         (isblank): Declare as extern "C".
37809         * modules/ctype (Depends-on): Add c++defs.
37810         (Makefile.am): Update ctype.h rule.
37811
37812         New module 'c++defs'.
37813         * modules/c++defs: New file.
37814         * build-aux/c++defs.h: New file.
37815         Reported by John W. Eaton <jwe@gnu.org>.
37816
37817 2010-03-07  Bruno Haible  <bruno@clisp.org>
37818
37819         logb: Provide missing declaration for Cygwin.
37820         * lib/math.in.h (logb): New declaration.
37821         * m4/logb.m4: New file.
37822         * modules/logb (Files): Add m4/logb.m4.
37823         (Depends-on): Add math.
37824         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37825         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37827         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37828         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37829
37830 2010-03-07  Bruno Haible  <bruno@clisp.org>
37831
37832         Fix test-cond link error.
37833         * tests/test-cond.c: Include <stdio.h>.
37834
37835 2010-03-07  Bruno Haible  <bruno@clisp.org>
37836
37837         Fix test-dirent-safer link error.
37838         * modules/dirent-safer-tests (Makefile.am): Define
37839         test_dirent_safer_LDADD.
37840
37841 2010-03-07  Bruno Haible  <bruno@clisp.org>
37842
37843         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37844         among default module list.
37845
37846 2010-03-07  Bruno Haible  <bruno@clisp.org>
37847
37848         Fix link error on platforms with GNU libiconv.
37849         * modules/unistr/u8-strcoll-tests (Makefile): Define
37850         test_u8_strcoll_LDADD.
37851         * modules/unistr/u16-strcoll-tests (Makefile): Define
37852         test_u16_strcoll_LDADD.
37853         * modules/unistr/u32-strcoll-tests (Makefile): Define
37854         test_u32_strcoll_LDADD.
37855
37856 2010-03-07  Bruno Haible  <bruno@clisp.org>
37857
37858         Use POSIX declarations for socket functions.
37859         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37860         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37861         rpl_sendto): Change declaration to match POSIX.
37862         * lib/connect.c (rpl_connect): Likewise.
37863         * lib/accept.c (rpl_accept): Likewise.
37864         * lib/bind.c (rpl_bind): Likewise.
37865         * lib/getpeername.c (rpl_getpeername): Likewise.
37866         * lib/getsockname.c (rpl_getsockname): Likewise.
37867         * lib/recv.c (rpl_recv): Likewise.
37868         * lib/send.c (rpl_send): Likewise.
37869         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37870         * lib/sendto.c (rpl_sendto): Likewise.
37871
37872 2010-03-06  Bruno Haible  <bruno@clisp.org>
37873
37874         Clarify access, euidaccess, faccessat.
37875         * doc/posix-functions/faccessat.texi: Mention security problem under
37876         "Other problems", not "Portability problems".
37877         * doc/posix-functions/access.texi: Likewise. Mention a related security
37878         problem.
37879         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37880         * lib/euidaccess.c: Add comments about platforms.
37881         * lib/unistd.in.h (access, euidaccess): Add warnings.
37882
37883 2010-03-07  Bruno Haible  <bruno@clisp.org>
37884
37885         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37886         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37887         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37888         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37889         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37890         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37891         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37892         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37893         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37894         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37895         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37896         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37897         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37898         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37899         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37900         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37901         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37902         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37903         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37904         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37905         Likewise.
37906         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37907         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37908         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37909         Likewise.
37910         * tests/test-spawn.c (main): Make it work when
37911         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37912
37913 2010-03-07  Bruno Haible  <bruno@clisp.org>
37914
37915         Fix incorrect Makefile.am generation in German locale.
37916         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37917         Execute sed command with character range in C locale.
37918
37919 2010-03-06  Bruno Haible  <bruno@clisp.org>
37920
37921         Tests for module 'iconv-h'.
37922         * modules/iconv-h-tests: New file.
37923         * tests/test-iconv-h.c: New file.
37924
37925         New module 'iconv-h'.
37926         * modules/iconv-h: New file.
37927         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37928         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37929         (configure.ac): Remove gl_ICONV_H.
37930         (Makefile.am): Remove rule for iconv.h.
37931
37932 2010-03-06  Bruno Haible  <bruno@clisp.org>
37933
37934         More consistent naming of *.m4 files.
37935         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37936         * modules/wctype (Files): Update.
37937
37938         More consistent naming of *.m4 files.
37939         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37940         * modules/wchar (Files): Update.
37941
37942 2010-03-06  Jim Meyering  <meyering@redhat.com>
37943
37944         euidaccess: relax license to LGPLv2+
37945         * modules/euidaccess (License): Relax to LGPLv2+.
37946
37947 2010-03-06  Bruno Haible  <bruno@clisp.org>
37948
37949         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37950         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37951         (Makefile.am): Augment lib_SOURCES instead.
37952
37953 2010-03-04  Jim Meyering  <meyering@redhat.com>
37954
37955         utime: remove obsolete module
37956         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37957         unnecessary for years, and has been marked as obsolete for 10 months.
37958         * modules/utime: Remove file.
37959         * lib/utime.c: Remove file.
37960         * m4/utime.m4: Remove file.
37961         * m4/utimes-null.m4: Remove file.
37962         * doc/posix-functions/utime.texi (utime): Remove reference to
37963         the module.  Move the sole "fixed by gnulib" item into the
37964         "problems not fixed by Gnulib" list.
37965         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37966
37967 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37968
37969         * modules/exit (License): Relax license to LGPLv2+.
37970         (Status): Mark as obsolete.
37971         * NEWS: Mention deprecated 'exit' module.
37972         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37973         of now obsolete 'exit'.
37974
37975 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37976
37977         fts-lgpl: remove unused module
37978         * modules/fts-lgpl: Remove.
37979         * MODULES.html.sh (func_all_modules): Adjust.
37980         * check-module (find_included_lib_files): Adjust.
37981         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37982
37983 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37984
37985         copy-acl: enhance Solaris ACL error handling
37986         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37987         * lib/set-mode-acl.c (qset_acl): Likewise.
37988
37989 2010-03-02  Bruno Haible  <bruno@clisp.org>
37990
37991         spawn: Don't override the system defined values on FreeBSD 8.
37992         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37993         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37994         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37995         if HAVE_POSIX_SPAWN is 1.
37996         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37997
37998 2010-03-01  Bruno Haible  <bruno@clisp.org>
37999
38000         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
38001         regarding Automake.
38002
38003 2010-02-25  Bruno Haible  <bruno@clisp.org>
38004
38005         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
38006         * gnulib-tool: Define 'echo' as a function only before the ksh alias
38007         setting, not afterwards.
38008         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
38009
38010 2010-02-24  Eric Blake  <eblake@redhat.com>
38011
38012         bootstrap, git-version-gen: use timestamp
38013         * build-aux/git-version-gen (scriptversion): Force UTC.
38014         * build-aux/bootstrap (scriptversion): New variable.
38015
38016         bootstrap: allow older git
38017         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
38018         older than 1.6.4.  Requested by the libvirt project.
38019
38020 2010-02-23  Eric Blake  <eblake@redhat.com>
38021
38022         warn-on-use: work with old autoconf
38023         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
38024         AS_VAR semantics of autoconf 2.60.
38025         Reported by Bruno Haible.
38026
38027         bootstrap: improve some comments
38028         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
38029         clarification comments.
38030
38031         gettimeofday: provide correct function
38032         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
38033         when replacement is declared, otherwise provide gettimeofday.
38034         Reported by Michael Goffioul.
38035
38036 2010-02-23  Jim Meyering  <meyering@redhat.com>
38037
38038         lib-ignore: relax license to "unlimited", not LGPLv2+
38039         * modules/lib-ignore (License): Relax to "unlimited".
38040
38041 2010-02-23  Jim Meyering  <meyering@redhat.com>
38042
38043         lib-ignore: relax license to LGPLv2+
38044         * modules/lib-ignore (License): Relax to LGPLv2+.
38045
38046 2010-02-22  Eric Blake  <eblake@redhat.com>
38047
38048         lseek: avoid bash 3.2 broken pipe bug
38049         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
38050         warning from bash 3.2.
38051         Reported by Ben Pfaff, with analysis from Bruno Haible.
38052
38053         bootstrap: support non-FSF copyright holder
38054         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
38055         bootstrap.conf override of COPYRIGHT_HOLDER.
38056         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
38057
38058         bootstrap: interoperate with gettext 0.14.1
38059         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
38060
38061         bootstrap: allow for alternate submodule location
38062         * build-aux/bootstrap (gnulib_path): New variable; use instead of
38063         hardcoding submodule location.
38064         (gnulib_mk): Allow direct use of Makefile.am.
38065
38066         bootstrap: use GNULIB_SRCDIR to reduce disk usage
38067         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
38068         rather than reconfiguring where the submodule points.
38069
38070         gettimeofday: restore support for platforms that lack function
38071         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
38072         replacement if function is missing.
38073         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
38074         * modules/sys_time (Makefile.am): Substitute it.
38075         * lib/sys_time.in.h (gettimeofday): Check it.
38076         Reported by Michael Goffioul.
38077
38078 2010-02-21  Bruno Haible  <bruno@clisp.org>
38079
38080         * lib/stdio.in.h (obstack_printf): Fix typo.
38081
38082 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
38083
38084         vc-list-files: use bzr ls's -R option
38085         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
38086         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
38087
38088 2010-02-21  Jim Meyering  <meyering@redhat.com>
38089
38090         init.sh: fix EXEEXT shims to work also for names like test-prog
38091         * tests/init.sh: Re-exec a better shell, when needed.
38092         If the current shell lacks support for posix $(...), an init.sh-using
38093         test will now try to find a shell that supports that.  If EXEEXT is
38094         nonempty, we also require support for hyphen-in-alias-name and shell
38095         substitutions like ${var#glob}.  Failure to find such a shell results
38096         in a skipped test.
38097
38098 2010-02-21  Bruno Haible  <bruno@clisp.org>
38099
38100         Really work around around "broken pipe" error message from bash 3.2.
38101         * gnulib-tool (func_reset_sigpipe): Remove function.
38102         (echo): In bash 3.2, define to a function that uses printf.
38103         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
38104
38105 2010-02-20  Bruno Haible  <bruno@clisp.org>
38106
38107         Restore support for automake 1.9.6 with autoconf 2.61.
38108         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
38109         Reported by James Youngman <jay@gnu.org>.
38110
38111 2010-02-20  Bruno Haible  <bruno@clisp.org>
38112
38113         Improve *printf warning condition.
38114         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
38115         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
38116         and the function is overridden due to SIGPIPE emulation.
38117
38118 2010-02-20  Bruno Haible  <bruno@clisp.org>
38119
38120         * lib/stdio.in.h: Tweak comments.
38121
38122 2010-02-19  Bruno Haible  <bruno@clisp.org>
38123
38124         Make it easier to find modules. New gnulib-tool option '--find'.
38125         * gnulib-tool: New option --find.
38126         (func_usage): Document it.
38127         (func_sanitize_modulelist): New function, extracted from
38128         func_all_modules.
38129         (func_all_modules): Invoke it.
38130         * doc/gnulib-tool.texi (Which modules?): New node.
38131
38132 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
38133
38134         * lib/sys_select.in.h: Provide select replacement even if
38135         sys/select.h exists on a system, for Interix.
38136
38137 2010-02-18  Jim Meyering  <meyering@redhat.com>
38138
38139         init.sh: don't use $(...) just yet
38140         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
38141         to accommodate e.g., Solaris' /bin/sh.
38142
38143 2010-02-17  Bruno Haible  <bruno@clisp.org>
38144
38145         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
38146         Reported by Ludovic Courtès <ludo@gnu.org>.
38147
38148 2010-02-16  Simon Josefsson  <simon@josefsson.org>
38149
38150         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
38151         linking with -lintl.
38152
38153 2010-02-17  Simon Josefsson  <simon@josefsson.org>
38154
38155         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
38156         if not provided by the system's netdb.h.  Reported by
38157         ludo@gnu.org (Ludovic Courtès).
38158
38159 2010-02-15  Jim Meyering  <meyering@redhat.com>
38160
38161         init.sh: improve portability and efficiency
38162         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
38163         "dummy" in a for loop.
38164         Use '!', not '^' to select the complement of a character set used
38165         in a "case" statement.
38166         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
38167         Suggestions from Eric Blake.
38168
38169         init.sh: automatically accommodate programs with the .exe suffix
38170         Automatically arrange for an invocation of "prog" to execute the
38171         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
38172         may use the simpler "prog", yet still work when built on a system
38173         that requires specifying the added suffix.
38174         Do this by constructing a function named "prog" that invokes
38175         "prog.exe" for each .exe file in selected directories.
38176         * tests/init.sh (find_exe_basenames_): New function.
38177         (create_exe_shim_functions_): New function.
38178         (path_prepend_): Use it.
38179
38180         maint.mk: mark syntax-check sc_*.m rules as .PHONY
38181         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
38182         "make -t syntax-check" doesn't create a ton of sc_*.m files.
38183
38184 2010-02-14  Jim Meyering  <meyering@redhat.com>
38185
38186         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
38187         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
38188         (sc_prohibit_hash_pjw_without_use): New rule.
38189
38190         maint.mk: allow the default upload destination dir to be overridden
38191         * top/maint.mk (upload_dest_dir_): Define with a default that
38192         preserves the status quo.
38193         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
38194         Reported by Peter Simons.
38195
38196         maint.mk: prohibit inclusion of "hash.h" without_use
38197         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
38198
38199 2010-02-10  Jim Meyering  <meyering@redhat.com>
38200
38201         maint.mk: prohibit inclusion of "ignore-value.h" without_use
38202         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
38203
38204 2010-02-09  Eric Blake  <ebb9@byu.net>
38205         and Bruno Haible  <bruno@clisp.org>
38206
38207         obstack-printf-posix: ensure declaration
38208         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38209         extracted from gl_FUNC_OBSTACK_PRINTF.
38210         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38211         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38212         Likewise.
38213         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38214         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38215         0.
38216
38217 2010-02-08  Bruno Haible  <bruno@clisp.org>
38218
38219         gnulib-tool: Fix typo in 2010-02-07 commit.
38220         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38221         Reported by Eric Blake.
38222
38223 2010-02-07  Bruno Haible  <bruno@clisp.org>
38224
38225         gnulib-tool: Fix up caching patches.
38226         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38227         option --no-cache. Use associative arrays when supported by the shell.
38228         (sed_comments): New variable.
38229         (modcache): Renamed from do_cache.
38230         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38231         abbreviate unnecessarily.
38232         (have_associative): New variable.
38233         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38234         way also for ksh and zsh.
38235         (func_init_sed_convert_to_cache_statements): New function, extracted
38236         from func_cache_lookup_module. Add support for associative arrays.
38237         Don't set the c_MODULE_cached variable here. Ignore all lines before
38238         the first field header. Remove only the final newline, not all trailing
38239         newlines. Support empty fields correctly. Limit the use of 'eval' to
38240         assignments.
38241         (func_get_description, func_get_status, func_get_notice,
38242         func_get_applicability, func_get_filelist, func_get_dependencies,
38243         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38244         func_get_automake_snippet, func_get_include_directive,
38245         func_get_link_directive, func_get_license, func_get_maintainer):
38246         Update documentation. List the unoptimized code first. Add support for
38247         associative arrays. Limit the use of 'eval' to assignments.
38248         (func_get_applicability): Undo stylistic pessimisations.
38249         (func_get_automake_snippet, func_get_include_directive): Reduce code
38250         duplication.
38251         (func_modules_transitive_closure, func_modules_add_dummy,
38252         func_modules_notice, func_modules_to_filelist, func_add_file,
38253         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38254         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38255         func_create_testdir, func_create_megatestdir): Update documentation.
38256
38257 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38258
38259         * gnulib-tool (func_cache_lookup_module): Store the module name
38260         belonging to the cache variable; error out if two different
38261         module names map to the same cache variable name.
38262
38263 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38264
38265         gnulib-tool: Make caching optional.
38266         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38267         Update matching short versions of --no-changelog.
38268         (func_usage): Update.
38269         (sed_extract_cache_prog): Renamed from ...
38270         (sed_extract_prog): ... this; revert to old extraction script.
38271         (func_get_description, func_get_status)
38272         (func_get_notice, func_get_applicability, func_get_filelist)
38273         (func_get_dependencies, func_get_autoconf_early_snippet)
38274         (func_get_autoconf_snippet, func_get_automake_snippet)
38275         (func_get_include_directive, func_get_link_directive)
38276         (func_get_license, func_get_maintainer): If $do_cache is false,
38277         use old, non-caching extraction scripts.
38278         Suggestion by Bruno Haible.
38279
38280 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38281
38282         gnulib-tool: cache module metainformation.
38283         * gnulib-tool (sed_extract_prog): Match newline before each
38284         header, and rewrite header to a shell variable suffix.
38285         (func_cache_var, func_cache_lookup_module): New functions,
38286         to turn a module name into a cache variable prefix, and to
38287         look up and cache module metainformation.
38288         (func_get_description, func_get_status)
38289         (func_get_notice, func_get_applicability, func_get_filelist)
38290         (func_get_dependencies, func_get_autoconf_early_snippet)
38291         (func_get_autoconf_snippet, func_get_automake_snippet)
38292         (func_get_include_directive, func_get_link_directive)
38293         (func_get_license, func_get_maintainer): Use
38294         func_cache_lookup_module.
38295
38296 2010-02-07  Bruno Haible  <bruno@clisp.org>
38297
38298         fnctl: Fix missing dependency.
38299         * modules/fcntl (Depends-on): Add getdtablesize.
38300         Reported by John W. Eaton <jwe@gnu.org>.
38301
38302 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38303
38304         Argp: fix recognition of short alias options.
38305
38306         * lib/argp-parse.c (convert_options): Fix improper use of
38307         `|' between character values.
38308         * tests/test-argp.c (group1_option): New alias option
38309         --read (-r).
38310         (group1_parser): Special handling for 'r'.
38311         (test15): New test case.
38312         (test_fun): Add test15.
38313         * tests/test-argp-2.sh: Update expected --help and --usage
38314         outputs.
38315
38316 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38317
38318         * tests/test-argp.c: Fix indentation.
38319
38320 2010-02-04  Eric Blake  <ebb9@byu.net>
38321
38322         gettimeofday: expose type of second argument
38323         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38324         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38325         * tests/test-gettimeofday.c: Use it to silence warning.
38326         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38327         the issue.
38328
38329 2010-02-03  Jim Meyering  <meyering@redhat.com>
38330
38331         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38332         * lib/regcomp.c (TYPE_SIGNED): Define.
38333         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38334
38335         regcomp.c: avoid a new -Wshadow warning
38336         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38337
38338 2010-02-01  Jim Meyering  <meyering@redhat.com>
38339
38340         removing useless parentheses in cpp #define directives
38341         For motivation, see commit c0221df4, "define STREQ(a,b)
38342         consistently, removing useless parentheses"
38343         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38344         * lib/mountlist.c (MNT_IGNORE): Likewise.
38345         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38346
38347 2010-02-01  Eric Blake  <ebb9@byu.net>
38348
38349         sys_time: use link-warning
38350         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38351         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38352         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38353         * modules/sys_time (Depends-on): Add warn-on-use.
38354         (Makefile.am): Always build replacement.
38355         (configure.ac): Update substitutions.
38356         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38357         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38358         bother with SYS_TIME_H.
38359         * modules/gettimeofday (configure.ac): Declare indicator.
38360         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38361         in use.
38362
38363         closein-tests: silence compiler warning
38364         * tests/test-closein.c (main): Ignore fread result.
38365         * modules/closein-tests (Depends-on): Add ignore-value.
38366
38367         tests: silence warning about system return
38368         * tests/test-areadlink-with-size.c (main): Ignore system result.
38369         * tests/test-areadlink.c (main): Likewise.
38370         * tests/test-areadlinkat-with-size.c (main): Likewise.
38371         * tests/test-areadlinkat.c (main): Likewise.
38372         * tests/test-canonicalize-lgpl.c (main): Likewise.
38373         * tests/test-canonicalize.c (main): Likewise.
38374         * tests/test-chown.c (main): Likewise.
38375         * tests/test-fchownat.c (main): Likewise.
38376         * tests/test-fdutimensat.c (main): Likewise.
38377         * tests/test-fstatat.c (main): Likewise.
38378         * tests/test-futimens.c (main): Likewise.
38379         * tests/test-lchown.c (main): Likewise.
38380         * tests/test-link.c (main): Likewise.
38381         * tests/test-linkat.c (main): Likewise.
38382         * tests/test-lstat.c (main): Likewise.
38383         * tests/test-mkdir.c (main): Likewise.
38384         * tests/test-mkdirat.c (main): Likewise.
38385         * tests/test-mkfifo.c (main): Likewise.
38386         * tests/test-mkfifoat.c (main): Likewise.
38387         * tests/test-mknod.c (main): Likewise.
38388         * tests/test-readlink.c (main): Likewise.
38389         * tests/test-remove.c (main): Likewise.
38390         * tests/test-rename.c (main): Likewise.
38391         * tests/test-renameat.c (main): Likewise.
38392         * tests/test-rmdir.c (main): Likewise.
38393         * tests/test-symlink.c (main): Likewise.
38394         * tests/test-symlinkat.c (main): Likewise.
38395         * tests/test-unlink.c (main): Likewise.
38396         * tests/test-unlinkat.c (main): Likewise.
38397         * tests/test-utimens.c (main): Likewise.
38398         * tests/test-utimensat.c (main): Likewise.
38399         * modules/areadlink-tests (Depends-on): Add ignore-value.
38400         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38401         * modules/areadlinkat-tests (Depends-on): Likewise.
38402         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38403         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38404         * modules/canonicalize-tests (Depends-on): Likewise.
38405         * modules/chown-tests (Depends-on): Likewise.
38406         * modules/fdutimensat-tests (Depends-on): Likewise.
38407         * modules/futimens-tests (Depends-on): Likewise.
38408         * modules/lchown-tests (Depends-on): Likewise.
38409         * modules/link-tests (Depends-on): Likewise.
38410         * modules/linkat-tests (Depends-on): Likewise.
38411         * modules/lstat-tests (Depends-on): Likewise.
38412         * modules/mkdir-tests (Depends-on): Likewise.
38413         * modules/mkfifo-tests (Depends-on): Likewise.
38414         * modules/mkfifoat-tests (Depends-on): Likewise.
38415         * modules/mknod-tests (Depends-on): Likewise.
38416         * modules/openat-tests (Depends-on): Likewise.
38417         * modules/readlink-tests (Depends-on): Likewise.
38418         * modules/remove-tests (Depends-on): Likewise.
38419         * modules/rename-tests (Depends-on): Likewise.
38420         * modules/renameat-tests (Depends-on): Likewise.
38421         * modules/rmdir-tests (Depends-on): Likewise.
38422         * modules/symlink-tests (Depends-on): Likewise.
38423         * modules/symlinkat-tests (Depends-on): Likewise.
38424         * modules/unlink-tests (Depends-on): Likewise.
38425         * modules/utimens-tests (Depends-on): Likewise.
38426         * modules/utimensat-tests (Depends-on): Likewise.
38427
38428 2010-01-31  Bruno Haible  <bruno@clisp.org>
38429
38430         Perform the same test for many <math.h> functions.
38431         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38432         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38433         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38434         of gl_MATHFUNC.
38435         * modules/acos (configure.ac): Likewise.
38436         * modules/asin (configure.ac): Likewise.
38437         * modules/atan (configure.ac): Likewise.
38438         * modules/atan2 (configure.ac): Likewise.
38439         * modules/cbrt (configure.ac): Likewise.
38440         * modules/copysign (configure.ac): Likewise.
38441         * modules/cos (configure.ac): Likewise.
38442         * modules/cosh (configure.ac): Likewise.
38443         * modules/erf (configure.ac): Likewise.
38444         * modules/erfc (configure.ac): Likewise.
38445         * modules/exp (configure.ac): Likewise.
38446         * modules/fmod (configure.ac): Likewise.
38447         * modules/hypot (configure.ac): Likewise.
38448         * modules/j0 (configure.ac): Likewise.
38449         * modules/j1 (configure.ac): Likewise.
38450         * modules/jn (configure.ac): Likewise.
38451         * modules/lgamma (configure.ac): Likewise.
38452         * modules/log (configure.ac): Likewise.
38453         * modules/log10 (configure.ac): Likewise.
38454         * modules/log1p (configure.ac): Likewise.
38455         * modules/pow (configure.ac): Likewise.
38456         * modules/remainder (configure.ac): Likewise.
38457         * modules/sin (configure.ac): Likewise.
38458         * modules/sinh (configure.ac): Likewise.
38459         * modules/tan (configure.ac): Likewise.
38460         * modules/tanh (configure.ac): Likewise.
38461         * modules/y0 (configure.ac): Likewise.
38462         * modules/y1 (configure.ac): Likewise.
38463         * modules/yn (configure.ac): Likewise.
38464         Suggested by Paolo Bonzini.
38465
38466 2010-01-31  Bruno Haible  <bruno@clisp.org>
38467
38468         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38469
38470 2010-01-31  Bruno Haible  <bruno@clisp.org>
38471
38472         Work around getdelim() bug on FreeBSD 8.0.
38473         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38474         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38475         not work.
38476         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38477         is 1.
38478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38479         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38480         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38481         a non-zero size.
38482         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38483
38484 2010-01-31  Bruno Haible  <bruno@clisp.org>
38485
38486         Work around getline() bug on FreeBSD 8.0.
38487         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38488         and a non-zero size.
38489         * tests/test-getline.c (main): Likewise.
38490         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38491         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38492
38493 2010-01-28  Eric Blake  <ebb9@byu.net>
38494
38495         regex: fix build failure
38496         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38497         platforms.
38498
38499 2010-01-28  Jim Meyering  <meyering@redhat.com>
38500
38501         regex: do not ignore memory allocation failure
38502         * lib/regex_internal.c (create_cd_newstate): Detect
38503         re_node_set_init_copy failure.   Extracted from glibc commit
38504         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38505
38506         regex: sync more white-space changes from libc
38507         * lib/regex_internal.c: White-space only changes.
38508         * lib/regexec.c: Likewise.
38509
38510         regex: add many uses of __attribute_warn_unused_result__
38511         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38512         * lib/regexec.c: Likewise.
38513         Extracted from a messy glibc commit.
38514
38515         regcomp.c: spelling and merge-artifact from glibc
38516         * lib/regcomp.c: Merge remainder of glibc's
38517         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38518
38519         regcomp.c: sync white-space changes from glibc
38520         * lib/regcomp.c: Merge to accommodate white space
38521         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38522
38523         regcomp.c: do not ignore internal return values
38524         * lib/regcomp.c: Do not ignore internal return values.
38525         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38526         but without its white-space changes and spelling fixes.
38527
38528         regex_internal.h: define __attribute_warn_unused_result__
38529         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38530
38531         maint: add a syntax-check rule to check for vulnerable Makefile.in
38532         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38533
38534 2010-01-27  Jim Meyering  <meyering@redhat.com>
38535
38536         ncftpput-ftp: clean up spaces
38537         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38538         Remove trailing blanks.
38539
38540 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38541
38542         * build-aux/git-version-gen: Fix copyright statement.
38543         * build-aux/gnupload: Likewise.
38544         * tests/test-arcfour.c: Likewise.
38545         * tests/test-arctwo.c: Likewise.
38546         * tests/test-count-one-bits.c: Likewise.
38547         * tests/test-crc.c: Likewise.
38548         * tests/test-des.c: Likewise.
38549         * tests/test-gc-arcfour.c: Likewise.
38550         * tests/test-gc-arctwo.c: Likewise.
38551         * tests/test-gc-des.c: Likewise.
38552         * tests/test-gc-hmac-md5.c: Likewise.
38553         * tests/test-gc-hmac-sha1.c: Likewise.
38554         * tests/test-gc-md2.c: Likewise.
38555         * tests/test-gc-md4.c: Likewise.
38556         * tests/test-gc-md5.c: Likewise.
38557         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38558         * tests/test-gc-rijndael.c: Likewise.
38559         * tests/test-gc-sha1.c: Likewise.
38560         * tests/test-gc.c: Likewise.
38561         * tests/test-gethostname.c: Likewise.
38562         * tests/test-gettimeofday.c: Likewise.
38563         * tests/test-hash.c: Likewise.
38564         * tests/test-hmac-md5.c: Likewise.
38565         * tests/test-hmac-sha1.c: Likewise.
38566         * tests/test-md2.c: Likewise.
38567         * tests/test-md4.c: Likewise.
38568         * tests/test-md5.c: Likewise.
38569         * tests/test-memchr.c: Likewise.
38570         * tests/test-memchr2.c: Likewise.
38571         * tests/test-memcmp.c: Likewise.
38572         * tests/test-memmem.c: Likewise.
38573         * tests/test-memrchr.c: Likewise.
38574         * tests/test-rawmemchr.c: Likewise.
38575         * tests/test-read-file.c: Likewise.
38576         * tests/test-rijndael.c: Likewise.
38577         * tests/test-sockets.c: Likewise.
38578         * tests/test-strchrnul.c: Likewise.
38579         * tests/test-strstr.c: Likewise.
38580         * tests/test-strtod.c: Likewise.
38581         * build-aux/ncftpput-ftp: Likewise.
38582
38583 2010-01-26  Eric Blake  <ebb9@byu.net>
38584
38585         ignore-value: update recommended header name
38586         * modules/ignore-value (Include): Only use <> for headers that
38587         exist in glibc.
38588
38589 2010-01-26  Jim Meyering  <meyering@redhat.com>
38590
38591         test-userspec.c: avoid compiler warnings
38592         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38593         and "initialization discards qualifiers..." warnings.
38594         Put the first "uid" in its own scope, and make char* members "const".
38595
38596 2010-01-25  Bruno Haible  <bruno@clisp.org>
38597
38598         gnulib-tool: Make warning diagnostics consistent.
38599         * gnulib-tool (func_warning): New function.
38600         Use it everywhere where gnulib-tool produces output to stderr and it is
38601         not a fatal error.
38602
38603 2010-01-25  Bruno Haible  <bruno@clisp.org>
38604
38605         Fix test dependencies.
38606         * modules/xstrtol-tests (Depends-on): Add inttypes.
38607         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38608
38609 2010-01-25 Pádraig Brady <P@draigBrady.com>
38610
38611         syntax-check: detect incorrect boolean macro values in config.h
38612         * modules/maintainer-makefile (configure.ac): Parameterize the location
38613         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38614         The logic is from Eric Blake and the location indicated by Jim Meyering.
38615         Note the more natural CONFIG_HEADER name is prohibited by automake
38616         for backwards compatibility reasons.
38617         * top/maint.mk (sc_Wundef_boolean): New rule.
38618
38619 2010-01-25  Jim Meyering  <meyering@redhat.com>
38620
38621         bootstrap: detect MacOS 10.6's shasum, too
38622         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38623         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38624
38625 2010-01-23  Jim Meyering  <meyering@redhat.com>
38626
38627         xstrtoll: new module
38628         * modules/xstrtoll: New file.
38629         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38630         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38631         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38632         ./configure fails if you use this module and lack "long long".
38633         * modules/xstrtoll-tests: New module.
38634         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38635         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38636         new init.sh-based test framework.
38637
38638 2010-01-24  Bruno Haible  <bruno@clisp.org>
38639
38640         Tests for module 'yn'.
38641         * modules/yn-tests: New file.
38642         * tests/test-yn.c: New file.
38643
38644         Tests for module 'y1'.
38645         * modules/y1-tests: New file.
38646         * tests/test-y1.c: New file.
38647
38648         Tests for module 'y0'.
38649         * modules/y0-tests: New file.
38650         * tests/test-y0.c: New file.
38651
38652         Tests for module 'tanh'.
38653         * modules/tanh-tests: New file.
38654         * tests/test-tanh.c: New file.
38655
38656         Tests for module 'tan'.
38657         * modules/tan-tests: New file.
38658         * tests/test-tan.c: New file.
38659
38660         Tests for module 'sqrt'.
38661         * modules/sqrt-tests: New file.
38662         * tests/test-sqrt.c: New file.
38663
38664         Tests for module 'sinh'.
38665         * modules/sinh-tests: New file.
38666         * tests/test-sinh.c: New file.
38667
38668         Tests for module 'sin'.
38669         * modules/sin-tests: New file.
38670         * tests/test-sin.c: New file.
38671
38672         Tests for module 'rint'.
38673         * modules/rint-tests: New file.
38674         * tests/test-rint.c: New file.
38675
38676         Tests for module 'remainder'.
38677         * modules/remainder-tests: New file.
38678         * tests/test-remainder.c: New file.
38679
38680         Tests for module 'pow'.
38681         * modules/pow-tests: New file.
38682         * tests/test-pow.c: New file.
38683
38684         Tests for module 'nextafter'.
38685         * modules/nextafter-tests: New file.
38686         * tests/test-nextafter.c: New file.
38687
38688         Tests for module 'modf'.
38689         * modules/modf-tests: New file.
38690         * tests/test-modf.c: New file.
38691
38692         Tests for module 'logb'.
38693         * modules/logb-tests: New file.
38694         * tests/test-logb.c: New file.
38695
38696         Tests for module 'log1p'.
38697         * modules/log1p-tests: New file.
38698         * tests/test-log1p.c: New file.
38699
38700         Tests for module 'log10'.
38701         * modules/log10-tests: New file.
38702         * tests/test-log10.c: New file.
38703
38704         Tests for module 'log'.
38705         * modules/log-tests: New file.
38706         * tests/test-log.c: New file.
38707
38708         Tests for module 'lgamma'.
38709         * modules/lgamma-tests: New file.
38710         * tests/test-lgamma.c: New file.
38711
38712         Tests for module 'ldexp'.
38713         * modules/ldexp-tests: New file.
38714         * tests/test-ldexp.c: New file.
38715
38716         Tests for module 'jn'.
38717         * modules/jn-tests: New file.
38718         * tests/test-jn.c: New file.
38719
38720         Tests for module 'j1'.
38721         * modules/j1-tests: New file.
38722         * tests/test-j1.c: New file.
38723
38724         Tests for module 'j0'.
38725         * modules/j0-tests: New file.
38726         * tests/test-j0.c: New file.
38727
38728         Tests for module 'hypot'.
38729         * modules/hypot-tests: New file.
38730         * tests/test-hypot.c: New file.
38731
38732         Tests for module 'fmod'.
38733         * modules/fmod-tests: New file.
38734         * tests/test-fmod.c: New file.
38735
38736         Tests for module 'fabs'.
38737         * modules/fabs-tests: New file.
38738         * tests/test-fabs.c: New file.
38739
38740         Tests for module 'exp'.
38741         * modules/exp-tests: New file.
38742         * tests/test-exp.c: New file.
38743
38744         Tests for module 'erfc'.
38745         * modules/erfc-tests: New file.
38746         * tests/test-erfc.c: New file.
38747
38748         Tests for module 'erf'.
38749         * modules/erf-tests: New file.
38750         * tests/test-erf.c: New file.
38751
38752         Tests for module 'cosh'.
38753         * modules/cosh-tests: New file.
38754         * tests/test-cosh.c: New file.
38755
38756         Tests for module 'cos'.
38757         * modules/cos-tests: New file.
38758         * tests/test-cos.c: New file.
38759
38760         Tests for module 'copysign'.
38761         * modules/copysign-tests: New file.
38762         * tests/test-copysign.c: New file.
38763
38764         Tests for module 'cbrt'.
38765         * modules/cbrt-tests: New file.
38766         * tests/test-cbrt.c: New file.
38767
38768         Tests for module 'atan2'.
38769         * modules/atan2-tests: New file.
38770         * tests/test-atan2.c: New file.
38771
38772         Tests for module 'atan'.
38773         * modules/atan-tests: New file.
38774         * tests/test-atan.c: New file.
38775
38776         Tests for module 'asin'.
38777         * modules/asin-tests: New file.
38778         * tests/test-asin.c: New file.
38779
38780         Tests for module 'acos'.
38781         * modules/acos-tests: New file.
38782         * tests/test-acos.c: New file.
38783
38784 2010-01-24  Bruno Haible  <bruno@clisp.org>
38785
38786         Fix tests for common <math.h> functions.
38787         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38788         code snippet that references the function pointer, rather than merely
38789         calling the function. Substitute the FUNC_LIBM variable.
38790         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38791         * modules/acos (configure.ac): Likewise.
38792         * modules/asin (configure.ac): Likewise.
38793         * modules/atan (configure.ac): Likewise.
38794         * modules/atan2 (configure.ac): Likewise.
38795         * modules/cbrt (configure.ac): Likewise.
38796         * modules/copysign (configure.ac): Likewise.
38797         * modules/cos (configure.ac): Likewise.
38798         * modules/cosh (configure.ac): Likewise.
38799         * modules/erf (configure.ac): Likewise.
38800         * modules/erfc (configure.ac): Likewise.
38801         * modules/exp (configure.ac): Likewise.
38802         * modules/fabs (configure.ac): Likewise.
38803         * modules/fmod (configure.ac): Likewise.
38804         * modules/hypot (configure.ac): Likewise.
38805         * modules/j0 (configure.ac): Likewise.
38806         * modules/j1 (configure.ac): Likewise.
38807         * modules/jn (configure.ac): Likewise.
38808         * modules/ldexp (configure.ac): Likewise.
38809         * modules/lgamma (configure.ac): Likewise.
38810         * modules/log (configure.ac): Likewise.
38811         * modules/log10 (configure.ac): Likewise.
38812         * modules/log1p (configure.ac): Likewise.
38813         * modules/logb (configure.ac): Likewise.
38814         * modules/modf (configure.ac): Likewise.
38815         * modules/nextafter (configure.ac): Likewise.
38816         * modules/pow (configure.ac): Likewise.
38817         * modules/remainder (configure.ac): Likewise.
38818         * modules/rint (configure.ac): Likewise.
38819         * modules/sin (configure.ac): Likewise.
38820         * modules/sinh (configure.ac): Likewise.
38821         * modules/tan (configure.ac): Likewise.
38822         * modules/tanh (configure.ac): Likewise.
38823         * modules/y0 (configure.ac): Likewise.
38824         * modules/y1 (configure.ac): Likewise.
38825         * modules/yn (configure.ac): Likewise.
38826
38827 2010-01-24  Bruno Haible  <bruno@clisp.org>
38828
38829         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38830         * tests/test-acosl.c (x): New variable.
38831         (main): Store argument in x and fetch it from x.
38832         * tests/test-asinl.c (x): New variable.
38833         (main): Store argument in x and fetch it from x.
38834         * tests/test-atanl.c (x): New variable.
38835         (main): Store argument in x and fetch it from x.
38836         * tests/test-cosl.c (x): New variable.
38837         (main): Store argument in x and fetch it from x.
38838         * tests/test-expl.c (x): New variable.
38839         (main): Store argument in x and fetch it from x.
38840         * tests/test-logl.c (x): New variable.
38841         (main): Store argument in x and fetch it from x.
38842         * tests/test-sinl.c (x): New variable.
38843         (main): Store argument in x and fetch it from x.
38844         * tests/test-sqrtl.c (x): New variable.
38845         (main): Store argument in x and fetch it from x.
38846         * tests/test-tanl.c (x): New variable.
38847         (main): Store argument in x and fetch it from x.
38848
38849 2010-01-24  Bruno Haible  <bruno@clisp.org>
38850
38851         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38852         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38853         assignments to the initial TESTS_ENVIRONMENT.
38854         * doc/gnulib.texi (Unit test modules): Document it.
38855         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38856         TESTS_ENVIRONMENT.
38857         * modules/btowc-tests (Makefile.am): Likewise.
38858         * modules/c-stack-tests (Makefile.am): Likewise.
38859         * modules/c-strcase-tests (Makefile.am): Likewise.
38860         * modules/copy-file-tests (Makefile.am): Likewise.
38861         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38862         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38863         * modules/mbrtowc-tests (Makefile.am): Likewise.
38864         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38865         * modules/mbscasestr-tests (Makefile.am): Likewise.
38866         * modules/mbschr-tests (Makefile.am): Likewise.
38867         * modules/mbscspn-tests (Makefile.am): Likewise.
38868         * modules/mbsinit-tests (Makefile.am): Likewise.
38869         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38870         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38871         * modules/mbspbrk-tests (Makefile.am): Likewise.
38872         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38873         * modules/mbsrchr-tests (Makefile.am): Likewise.
38874         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38875         * modules/mbsspn-tests (Makefile.am): Likewise.
38876         * modules/mbsstr-tests (Makefile.am): Likewise.
38877         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38878         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38879         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38880         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38881         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38882         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38883         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38884         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38885         * modules/wcrtomb-tests (Makefile.am): Likewise.
38886         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38887         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38888         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38889         assignments from TESTS_ENVIRONMENT.
38890         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38891         augmentation.
38892         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38893         * modules/atexit-tests (Makefile.am): Likewise.
38894         * modules/binary-io-tests (Makefile.am): Likewise.
38895         * modules/closein-tests (Makefile.am): Likewise.
38896         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38897         * modules/exclude-tests (Makefile.am): Likewise.
38898         * modules/fflush-tests (Makefile.am): Likewise.
38899         * modules/fpending-tests (Makefile.am): Likewise.
38900         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38901         * modules/freadahead-tests (Makefile.am): Likewise.
38902         * modules/freadptr-tests (Makefile.am): Likewise.
38903         * modules/freadseek-tests (Makefile.am): Likewise.
38904         * modules/fseek-tests (Makefile.am): Likewise.
38905         * modules/fseeko-tests (Makefile.am): Likewise.
38906         * modules/ftell-tests (Makefile.am): Likewise.
38907         * modules/ftello-tests (Makefile.am): Likewise.
38908         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38909         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38910         * modules/lseek-tests (Makefile.am): Likewise.
38911         * modules/parse-duration-tests (Makefile.am): Likewise.
38912         * modules/perror-tests (Makefile.am): Likewise.
38913         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38914         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38915         * modules/pipe-tests (Makefile.am): Likewise.
38916         * modules/pread-tests (Makefile.am): Likewise.
38917         * modules/printf-posix-tests (Makefile.am): Likewise.
38918         * modules/select-tests (Makefile.am): Likewise.
38919         * modules/sigpipe-tests (Makefile.am): Likewise.
38920         * modules/tsearch-tests (Makefile.am): Likewise.
38921         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38922         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38923         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38924         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38925         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38926         * modules/version-etc-tests (Makefile.am): Likewise.
38927         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38928         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38929         * modules/xalloc-die-tests (Makefile.am): Likewise.
38930         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38931         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38932         * modules/xstrtol-tests (Makefile.am): Likewise.
38933         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38934         * modules/yesno-tests (Makefile.am): Likewise.
38935         Suggested by Jim Meyering.
38936
38937 2010-01-24  Bruno Haible  <bruno@clisp.org>
38938
38939         More documentation.
38940         * doc/gnulib.texi (Writing modules): New chapter.
38941         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38942         the new chapter.
38943
38944 2010-01-24  Jim Meyering  <meyering@redhat.com>
38945
38946         maint.mk: do not prepend "./" after filtering
38947         * top/maint.mk (_prepend_srcdir_prefix): New variable
38948         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38949         "./" when $(srcdir) is ".".
38950
38951         define STREQ(a,b) consistently, removing useless parentheses
38952         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38953         since the only risk is that "a" or "b" contains an unparenthesized
38954         comma, but if either did that, STREQ would have 3 or more arguments.
38955         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38956         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38957         * lib/hash-triple.c (STREQ): Likewise.
38958         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38959         * lib/getugroups.c (STREQ): Likewise.
38960
38961 2010-01-23  Jim Meyering  <meyering@redhat.com>
38962
38963         maint.mk: fix syntax-check in a non-srcdir build directory
38964         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38965         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38966
38967 2010-01-22  Jim Meyering  <meyering@redhat.com>
38968
38969         userspec: add unit tests
38970         * tests/test-userspec.c: New file.
38971         * modules/userspec-tests: Likewise.
38972
38973 2010-01-21  Jim Meyering  <meyering@redhat.com>
38974
38975         maint.mk: handle source file names containing "." robustly
38976         * top/maint.mk (_dot_escaped_srcdir): Define.
38977         (VC_LIST): Use it in LHS of sed substitution.
38978
38979 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38980
38981         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38982         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38983         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38984         from a non-srcdir build.
38985
38986 2010-01-20  Eric Blake  <ebb9@byu.net>
38987
38988         warn-on-use: use instead of link-warning
38989         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38990         * modules/unistd (Depends-on, Makefile.am): Likewise.
38991         * modules/arpa_inet (Depends-on): Replace link-warning with
38992         warn-on-use.
38993         (Makefile.am): Update rules accordingly.
38994         * modules/ctype (Depends-on, Makefile.am): Likewise.
38995         * modules/dirent (Depends-on, Makefile.am): Likewise.
38996         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38997         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38998         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38999         * modules/locale (Depends-on, Makefile.am): Likewise.
39000         * modules/math (Depends-on, Makefile.am): Likewise.
39001         * modules/search (Depends-on, Makefile.am): Likewise.
39002         * modules/signal (Depends-on, Makefile.am): Likewise.
39003         * modules/spawn (Depends-on, Makefile.am): Likewise.
39004         * modules/stdlib (Depends-on, Makefile.am): Likewise.
39005         * modules/string (Depends-on, Makefile.am): Likewise.
39006         * modules/strings (Depends-on, Makefile.am): Likewise.
39007         * modules/sys_file (Depends-on, Makefile.am): Likewise.
39008         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
39009         * modules/sys_select (Depends-on, Makefile.am): Likewise.
39010         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
39011         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
39012         * modules/sys_times (Depends-on, Makefile.am): Likewise.
39013         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39014         * modules/wchar (Depends-on, Makefile.am): Likewise.
39015         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
39016         should be poisoned.
39017         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
39018         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
39019         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
39020         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39021         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39022         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39023         * m4/math_h.m4 (gl_MATH_H): Likewise.
39024         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39025         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39026         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39027         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39028         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39029         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39030         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
39031         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
39032         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39034         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39035         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39036         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39037         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39038         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39039         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39040         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
39041         GL_LINK_WARNING.
39042         * lib/ctype.in.h: Likewise.
39043         * lib/dirent.in.h: Likewise.
39044         * lib/fcntl.in.h: Likewise.
39045         * lib/inttypes.in.h: Likewise.
39046         * lib/langinfo.in.h: Likewise.
39047         * lib/locale.in.h: Likewise.
39048         * lib/math.in.h: Likewise.
39049         * lib/search.in.h: Likewise.
39050         * lib/signal.in.h: Likewise.
39051         * lib/spawn.in.h: Likewise.
39052         * lib/stdio.in.h: Likewise.
39053         * lib/stdlib.in.h: Likewise.
39054         * lib/string.in.h: Likewise.
39055         * lib/strings.in.h: Likewise.
39056         * lib/sys_file.in.h: Likewise.
39057         * lib/sys_ioctl.in.h: Likewise.
39058         * lib/sys_select.in.h: Likewise.
39059         * lib/sys_socket.in.h: Likewise.
39060         * lib/sys_stat.in.h: Likewise.
39061         * lib/sys_times.in.h: Likewise.
39062         * lib/sys_utsname.in.h: Likewise.
39063         * lib/unistd.in.h: Likewise.
39064         * lib/wchar.in.h: Likewise.
39065
39066 2010-01-20  Bruno Haible  <bruno@clisp.org>
39067
39068         Avoid duplicate -lm.
39069         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
39070         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
39071         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
39072         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
39073         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
39074         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
39075         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
39076         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
39077         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
39078         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
39079         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
39080         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
39081         Reported by Paolo Bonzini.
39082
39083 2010-01-19  Bruno Haible  <bruno@clisp.org>
39084
39085         langinfo, nl_langinfo: Relicense under LGPLv2+.
39086         * modules/langinfo (License): Change to LGPLv2+.
39087         * modules/nl_langinfo (License): Likewise.
39088         Patch by David Lutterkort <lutter@redhat.com>.
39089
39090 2010-01-19  Bruno Haible  <bruno@clisp.org>
39091
39092         Avoid compilation error with cc on OSF/1 5.1.
39093         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
39094         statement, not before.
39095         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39096
39097 2010-01-18  Bruno Haible  <bruno@clisp.org>
39098
39099         Avoid a link error due to the __printf__ symbol.
39100         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
39101         and 2.6.x.
39102         (__format__, __printf__): Remove definitions.
39103         * lib/argp-fmtstream.h: Likewise.
39104         * lib/argp.h: Likewise.
39105         * lib/error.h: Likewise.
39106         * lib/vasnprintf.h: Likewise.
39107         * lib/xprintf.h: Likewise.
39108         * lib/xvasprintf.h: Likewise.
39109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39110
39111 2010-01-18  Bruno Haible  <bruno@clisp.org>
39112
39113         Tests for module 'tanl'.
39114         * modules/tanl-tests: New file.
39115         * tests/test-tanl.c: New file.
39116
39117         Tests for module 'sqrtl'.
39118         * modules/sqrtl-tests: New file.
39119         * tests/test-sqrtl.c: New file.
39120
39121         Tests for module 'sinl'.
39122         * modules/sinl-tests: New file.
39123         * tests/test-sinl.c: New file.
39124
39125         Tests for module 'logl'.
39126         * modules/logl-tests: New file.
39127         * tests/test-logl.c: New file.
39128
39129         Tests for module 'expl'.
39130         * modules/expl-tests: New file.
39131         * tests/test-expl.c: New file.
39132
39133         Tests for module 'cosl'.
39134         * modules/cosl-tests: New file.
39135         * tests/test-cosl.c: New file.
39136
39137         Tests for module 'atanl'.
39138         * modules/atanl-tests: New file.
39139         * tests/test-atanl.c: New file.
39140
39141         Tests for module 'asinl'.
39142         * modules/asinl-tests: New file.
39143         * tests/test-asinl.c: New file.
39144
39145         Tests for module 'acosl'.
39146         * modules/acosl-tests: New file.
39147         * tests/test-acosl.c: New file.
39148
39149         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39150         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39151         tanl): Use the standard gnulib idiom.
39152         * lib/cosl.c: Don't include trigl.c and sincosl.c.
39153         * lib/sinl.c: Likewise.
39154         * lib/tanl.c: Don't include trigl.c.
39155         (kernel_tanl): Make static.
39156         * lib/sincosl.c: Include trigl.h first.
39157         * lib/trigl.c: Likewise.
39158         * m4/acosl.m4: New file.
39159         * m4/asinl.m4: New file.
39160         * m4/atanl.m4: New file.
39161         * m4/cosl.m4: New file.
39162         * m4/expl.m4: New file.
39163         * m4/logl.m4: New file.
39164         * m4/sinl.m4: New file.
39165         * m4/sqrtl.m4: New file.
39166         * m4/tanl.m4: New file.
39167         * m4/mathl.m4: Remove file.
39168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
39169         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39170         Don't initialize GNULIB_MATHL.
39171         * modules/acosl: New file.
39172         * modules/asinl: New file.
39173         * modules/atanl: New file.
39174         * modules/cosl: New file.
39175         * modules/expl: New file.
39176         * modules/logl: New file.
39177         * modules/sinl: New file.
39178         * modules/sqrtl: New file.
39179         * modules/tanl: New file.
39180         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
39181         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
39182         substitute GNULIB_MATHL.
39183         * modules/mathl: Rewritten.
39184         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
39185         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
39186         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
39187         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
39188         * doc/posix-functions/expl.texi: Mention the 'expl' module.
39189         * doc/posix-functions/logl.texi: Mention the 'logl' module.
39190         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
39191         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
39192         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
39193
39194 2010-01-18  Bruno Haible  <bruno@clisp.org>
39195
39196         sqrt: Make gl_FUNC_SQRT requirable.
39197         * m4/sqrt.m4: New file.
39198         * modules/sqrt (Files): Add it.
39199         (configure.ac): Invoke gl_FUNC_SQRT.
39200
39201 2010-01-18  Bruno Haible  <bruno@clisp.org>
39202
39203         New modules for common <math.h> functions.
39204         * m4/mathfunc.m4: New file.
39205         * modules/acos: New file.
39206         * modules/asin: New file.
39207         * modules/atan: New file.
39208         * modules/atan2: New file.
39209         * modules/cbrt: New file.
39210         * modules/copysign: New file.
39211         * modules/cos: New file.
39212         * modules/cosh: New file.
39213         * modules/erf: New file.
39214         * modules/erfc: New file.
39215         * modules/exp: New file.
39216         * modules/fabs: New file.
39217         * modules/fmod: New file.
39218         * modules/hypot: New file.
39219         * modules/j0: New file.
39220         * modules/j1: New file.
39221         * modules/jn: New file.
39222         * modules/ldexp: New file.
39223         * modules/lgamma: New file.
39224         * modules/log: New file.
39225         * modules/log10: New file.
39226         * modules/log1p: New file.
39227         * modules/logb: New file.
39228         * modules/modf: New file.
39229         * modules/nextafter: New file.
39230         * modules/pow: New file.
39231         * modules/remainder: New file.
39232         * modules/rint: New file.
39233         * modules/sin: New file.
39234         * modules/sinh: New file.
39235         * modules/sqrt: New file.
39236         * modules/tan: New file.
39237         * modules/tanh: New file.
39238         * modules/y0: New file.
39239         * modules/y1: New file.
39240         * modules/yn: New file.
39241         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39242         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39243         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39244         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39245         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39246         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39247         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39248         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39249         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39250         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39251         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39252         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39253         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39254         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39255         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39256         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39257         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39258         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39259         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39260         * doc/posix-functions/log.texi: Mention the 'log' module.
39261         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39262         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39263         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39264         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39265         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39266         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39267         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39268         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39269         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39270         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39271         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39272         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39273         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39274         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39275         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39276         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39277
39278 2010-01-18  Jim Meyering  <meyering@redhat.com>
39279
39280         ignore-value: relax license to LGPLv2+
39281         * modules/ignore-value (License): Relax to LGPLv2+.
39282
39283         getdate: don't leak when TZ contains two or more '"'s
39284         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39285         double quote in TZ after the first one.
39286
39287         readtokens: do not leak internal token_lengths buffer
39288         * lib/readtokens.c (readtokens): Free the local, lengths,
39289         when the supplied "token_lengths" parameter is NULL.
39290
39291 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39292
39293         Fix a couple of missing LIBTHREAD link failures on AIX.
39294         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39295         $(LIBTHREAD).
39296         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39297
39298         Link test-poll against INET_PTON_LIB.
39299         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39300         for inet_pton on Solaris 10.
39301
39302 2010-01-17  Bruno Haible  <bruno@clisp.org>
39303
39304         unistdio/*-sprintf: Fix typo in module description.
39305         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39306         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39307         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39308         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39309         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39310         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39311         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39312         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39313
39314 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39315
39316         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39317         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39318         variables in shell case patterns, for AIX and HP-UX ksh.
39319
39320         Split large sed scripts, for HP-UX sed.
39321         * modules/stdio: Split sed scripts around 50 sed commands,
39322         to avoid HP-UX limit of 99 commands, in the near future.
39323         * modules/string: Likewise.
39324         * modules/unistd: Likewise.
39325
39326         gnulib-tool: avoid writing in the current directory.
39327         * gnulib-tool (func_emit_lib_Makefile_am)
39328         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39329         not in the current directory, so concurrent gnulib-tool
39330         instances do not interfere.
39331
39332 2010-01-16  Jim Meyering  <meyering@redhat.com>
39333
39334         doc: update users.txt
39335         * users.txt: Add grep.
39336         (diffutils, gzip): Update URLs.
39337
39338 2010-01-12  Bruno Haible  <bruno@clisp.org>
39339
39340         posix_spawn: Avoid test failure on Cygwin.
39341         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39342         characters.
39343         Reported by Simon Josefsson.
39344
39345 2010-01-12  Bruno Haible  <bruno@clisp.org>
39346
39347         * tests/test-cond.c (main): When skipping the test, show the reason.
39348
39349 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39350
39351         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39352
39353 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39354
39355         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39356         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39357
39358 2010-01-12  Eric Blake  <ebb9@byu.net>
39359
39360         build: guarantee AS_VAR_IF
39361         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39362         (gl_AS_VAR_IF): Move...
39363         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39364         Reported by Simon Josefsson.
39365
39366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39367
39368         * lib/stdio.in.h: Fix typo.
39369
39370 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39371
39372         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39373         libgpg-error.
39374
39375 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39376
39377         * tests/test-xalloc-die.sh: Use $EXEEXT.
39378
39379 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39380             Bruno Haible  <bruno@clisp.org>
39381
39382         getlogin, getlogin_r: Avoid test failure.
39383         * tests/test-getlogin.c: Include <stdio.h>.
39384         (main): Skip the test when the function fails because stdin is not a
39385         tty.
39386         * tests/test-getlogin_r.c: Include <stdio.h>.
39387         (main): Skip the test when the function fails because stdin is not a
39388         tty.
39389
39390 2010-01-11  Eric Blake  <ebb9@byu.net>
39391
39392         tests: avoid more large file warnings
39393         * tests/test-fflush.c: Avoid warning about ftell use.
39394         * tests/test-fseek.c: Avoid warning about fseek use.
39395
39396 2010-01-10  Bruno Haible  <bruno@clisp.org>
39397
39398         nproc: Work better on Linux when /proc and /sys are not mounted.
39399         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39400         as lower bound when, on glibc/Linux systems,
39401         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39402         Suggested by Pádraig Brady <P@draigbrady.com>.
39403         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39404
39405         nproc: Refactor.
39406         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39407         extracted from num_processors.
39408         (num_processors): Call it.
39409
39410 2010-01-11  Jim Meyering  <meyering@redhat.com>
39411
39412         utimecmp: avoid new warning from upcoming gcc-4.5.0
39413         * lib/utimecmp.c (BILLION): Define using #define rather than an
39414         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39415
39416 2010-01-11  Eric Blake  <ebb9@byu.net>
39417
39418         math: add portability warnings for classification macros
39419         * modules/math (Depends-on): Add warn-on-use.
39420         (Makefile.am): Provide new substitutions.
39421         * m4/math_h.m4 (gl_MATH_H): Require inline.
39422         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39423         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39424         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39425         implement warnings.
39426
39427         unistd: warn on use of environ without module
39428         * modules/unistd (Depends-on): Add warn-on-use.
39429         (Makefile.am): Provide new substitutions.
39430         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39431         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39432
39433         stdio: warn on suspicious uses
39434         * modules/stdio (Depends-on): Add warn-on-use.
39435         (Makefile.am): Provide new substitutions.
39436         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39437         fseeko.
39438         * lib/stdio.in.h (gets): Always warn on use.
39439         (fseek, ftell): Adjust when warnings are issued, and honor
39440         _GL_NO_LARGE_FILES as a way to silence the warning.
39441         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39442         any warning about large file offsets.
39443         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39444         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39445         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39446         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39447         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39448         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39449         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39450         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39451
39452         warn-on-use: new module
39453         * modules/warn-on-use: New file.
39454         * build-aux/warn-on-use.h: Likewise.
39455         * m4/warn-on-use.m4: Likewise.
39456         * MODULES.html.sh (Support for building): Mention it.
39457
39458 2010-01-10  Bruno Haible  <bruno@clisp.org>
39459
39460         Tests for module 'unistr/u32-strdup'.
39461         * modules/unistr/u32-strdup-tests: New file.
39462         * tests/unistr/test-u32-strdup.c: New file.
39463
39464         Tests for module 'unistr/u16-strdup'.
39465         * modules/unistr/u16-strdup-tests: New file.
39466         * tests/unistr/test-u16-strdup.c: New file.
39467
39468         Tests for module 'unistr/u8-strdup'.
39469         * modules/unistr/u8-strdup-tests: New file.
39470         * tests/unistr/test-u8-strdup.c: New file.
39471         * tests/unistr/test-strdup.h: New file.
39472
39473         Tests for module 'unistr/u32-strncmp'.
39474         * modules/unistr/u32-strncmp-tests: New file.
39475         * tests/unistr/test-u32-strncmp.c: New file.
39476
39477         Tests for module 'unistr/u16-strncmp'.
39478         * modules/unistr/u16-strncmp-tests: New file.
39479         * tests/unistr/test-u16-strncmp.c: New file.
39480
39481         Tests for module 'unistr/u8-strncmp'.
39482         * modules/unistr/u8-strncmp-tests: New file.
39483         * tests/unistr/test-u8-strncmp.c: New file.
39484         * tests/unistr/test-strncmp.h: New file.
39485
39486         Tests for module 'unistr/u32-strcoll'.
39487         * modules/unistr/u32-strcoll-tests: New file.
39488         * tests/unistr/test-u32-strcoll.c: New file.
39489
39490         Tests for module 'unistr/u16-strcoll'.
39491         * modules/unistr/u16-strcoll-tests: New file.
39492         * tests/unistr/test-u16-strcoll.c: New file.
39493
39494         Tests for module 'unistr/u8-strcoll'.
39495         * modules/unistr/u8-strcoll-tests: New file.
39496         * tests/unistr/test-u8-strcoll.c: New file.
39497
39498         Tests for module 'unistr/u32-strcmp'.
39499         * modules/unistr/u32-strcmp-tests: New file.
39500         * tests/unistr/test-u32-strcmp.c: New file.
39501         * tests/unistr/test-u32-strcmp.h: New file.
39502
39503         Tests for module 'unistr/u16-strcmp'.
39504         * modules/unistr/u16-strcmp-tests: New file.
39505         * tests/unistr/test-u16-strcmp.c: New file.
39506         * tests/unistr/test-u16-strcmp.h: New file.
39507
39508         Tests for module 'unistr/u8-strcmp'.
39509         * modules/unistr/u8-strcmp-tests: New file.
39510         * tests/unistr/test-u8-strcmp.c: New file.
39511         * tests/unistr/test-u8-strcmp.h: New file.
39512         * tests/unistr/test-strcmp.h: New file.
39513
39514         Tests for module 'unistr/u32-strncat'.
39515         * modules/unistr/u32-strncat-tests: New file.
39516         * tests/unistr/test-u32-strncat.c: New file.
39517
39518         Tests for module 'unistr/u16-strncat'.
39519         * modules/unistr/u16-strncat-tests: New file.
39520         * tests/unistr/test-u16-strncat.c: New file.
39521
39522         Tests for module 'unistr/u8-strncat'.
39523         * modules/unistr/u8-strncat-tests: New file.
39524         * tests/unistr/test-u8-strncat.c: New file.
39525         * tests/unistr/test-strncat.h: New file.
39526
39527         Tests for module 'unistr/u32-strcat'.
39528         * modules/unistr/u32-strcat-tests: New file.
39529         * tests/unistr/test-u32-strcat.c: New file.
39530
39531         Tests for module 'unistr/u16-strcat'.
39532         * modules/unistr/u16-strcat-tests: New file.
39533         * tests/unistr/test-u16-strcat.c: New file.
39534
39535         Tests for module 'unistr/u8-strcat'.
39536         * modules/unistr/u8-strcat-tests: New file.
39537         * tests/unistr/test-u8-strcat.c: New file.
39538         * tests/unistr/test-strcat.h: New file.
39539
39540         Tests for module 'unistr/u32-stpncpy'.
39541         * modules/unistr/u32-stpncpy-tests: New file.
39542         * tests/unistr/test-u32-stpncpy.c: New file.
39543
39544         Tests for module 'unistr/u16-stpncpy'.
39545         * modules/unistr/u16-stpncpy-tests: New file.
39546         * tests/unistr/test-u16-stpncpy.c: New file.
39547
39548         Tests for module 'unistr/u8-stpncpy'.
39549         * modules/unistr/u8-stpncpy-tests: New file.
39550         * tests/unistr/test-u8-stpncpy.c: New file.
39551         * tests/unistr/test-stpncpy.h: New file.
39552
39553         Tests for module 'unistr/u32-strncpy'.
39554         * modules/unistr/u32-strncpy-tests: New file.
39555         * tests/unistr/test-u32-strncpy.c: New file.
39556
39557         Tests for module 'unistr/u16-strncpy'.
39558         * modules/unistr/u16-strncpy-tests: New file.
39559         * tests/unistr/test-u16-strncpy.c: New file.
39560
39561         Tests for module 'unistr/u8-strncpy'.
39562         * modules/unistr/u8-strncpy-tests: New file.
39563         * tests/unistr/test-u8-strncpy.c: New file.
39564         * tests/unistr/test-strncpy.h: New file.
39565
39566         Tests for module 'unistr/u32-stpcpy'.
39567         * modules/unistr/u32-stpcpy-tests: New file.
39568         * tests/unistr/test-u32-stpcpy.c: New file.
39569
39570         Tests for module 'unistr/u16-stpcpy'.
39571         * modules/unistr/u16-stpcpy-tests: New file.
39572         * tests/unistr/test-u16-stpcpy.c: New file.
39573
39574         Tests for module 'unistr/u8-stpcpy'.
39575         * modules/unistr/u8-stpcpy-tests: New file.
39576         * tests/unistr/test-u8-stpcpy.c: New file.
39577         * tests/unistr/test-stpcpy.h: New file.
39578
39579         Tests for module 'unistr/u32-strcpy'.
39580         * modules/unistr/u32-strcpy-tests: New file.
39581         * tests/unistr/test-u32-strcpy.c: New file.
39582
39583         Tests for module 'unistr/u16-strcpy'.
39584         * modules/unistr/u16-strcpy-tests: New file.
39585         * tests/unistr/test-u16-strcpy.c: New file.
39586
39587         Tests for module 'unistr/u8-strcpy'.
39588         * modules/unistr/u8-strcpy-tests: New file.
39589         * tests/unistr/test-u8-strcpy.c: New file.
39590         * tests/unistr/test-strcpy.h: New file.
39591
39592         Tests for module 'unistr/u32-strnlen'.
39593         * modules/unistr/u32-strnlen-tests: New file.
39594         * tests/unistr/test-u32-strnlen.c: New file.
39595
39596         Tests for module 'unistr/u16-strnlen'.
39597         * modules/unistr/u16-strnlen-tests: New file.
39598         * tests/unistr/test-u16-strnlen.c: New file.
39599
39600         Tests for module 'unistr/u8-strnlen'.
39601         * modules/unistr/u8-strnlen-tests: New file.
39602         * tests/unistr/test-u8-strnlen.c: New file.
39603         * tests/unistr/test-strnlen.h: New file.
39604
39605         Tests for module 'unistr/u32-strlen'.
39606         * modules/unistr/u32-strlen-tests: New file.
39607         * tests/unistr/test-u32-strlen.c: New file.
39608
39609         Tests for module 'unistr/u16-strlen'.
39610         * modules/unistr/u16-strlen-tests: New file.
39611         * tests/unistr/test-u16-strlen.c: New file.
39612
39613         Tests for module 'unistr/u8-strlen'.
39614         * modules/unistr/u8-strlen-tests: New file.
39615         * tests/unistr/test-u8-strlen.c: New file.
39616
39617         Tests for module 'unistr/u32-prev'.
39618         * modules/unistr/u32-prev-tests: New file.
39619         * tests/unistr/test-u32-prev.c: New file.
39620
39621         Tests for module 'unistr/u16-prev'.
39622         * modules/unistr/u16-prev-tests: New file.
39623         * tests/unistr/test-u16-prev.c: New file.
39624
39625         Tests for module 'unistr/u8-prev'.
39626         * modules/unistr/u8-prev-tests: New file.
39627         * tests/unistr/test-u8-prev.c: New file.
39628
39629         Tests for module 'unistr/u32-next'.
39630         * modules/unistr/u32-next-tests: New file.
39631         * tests/unistr/test-u32-next.c: New file.
39632
39633         Tests for module 'unistr/u16-next'.
39634         * modules/unistr/u16-next-tests: New file.
39635         * tests/unistr/test-u16-next.c: New file.
39636
39637         Tests for module 'unistr/u8-next'.
39638         * modules/unistr/u8-next-tests: New file.
39639         * tests/unistr/test-u8-next.c: New file.
39640
39641         Tests for module 'unistr/u32-strmbtouc'.
39642         * modules/unistr/u32-strmbtouc-tests: New file.
39643         * tests/unistr/test-u32-strmbtouc.c: New file.
39644
39645         Tests for module 'unistr/u16-strmbtouc'.
39646         * modules/unistr/u16-strmbtouc-tests: New file.
39647         * tests/unistr/test-u16-strmbtouc.c: New file.
39648
39649         Tests for module 'unistr/u8-strmbtouc'.
39650         * modules/unistr/u8-strmbtouc-tests: New file.
39651         * tests/unistr/test-u8-strmbtouc.c: New file.
39652
39653         Tests for module 'unistr/u32-strmblen'.
39654         * modules/unistr/u32-strmblen-tests: New file.
39655         * tests/unistr/test-u32-strmblen.c: New file.
39656
39657         Tests for module 'unistr/u16-strmblen'.
39658         * modules/unistr/u16-strmblen-tests: New file.
39659         * tests/unistr/test-u16-strmblen.c: New file.
39660
39661         Tests for module 'unistr/u8-strmblen'.
39662         * modules/unistr/u8-strmblen-tests: New file.
39663         * tests/unistr/test-u8-strmblen.c: New file.
39664
39665         Tests for module 'unistr/u32-cpy-alloc'.
39666         * modules/unistr/u32-cpy-alloc-tests: New file.
39667         * tests/unistr/test-u32-cpy-alloc.c: New file.
39668
39669         Tests for module 'unistr/u16-cpy-alloc'.
39670         * modules/unistr/u16-cpy-alloc-tests: New file.
39671         * tests/unistr/test-u16-cpy-alloc.c: New file.
39672
39673         Tests for module 'unistr/u8-cpy-alloc'.
39674         * modules/unistr/u8-cpy-alloc-tests: New file.
39675         * tests/unistr/test-u8-cpy-alloc.c: New file.
39676         * tests/unistr/test-cpy-alloc.h: New file.
39677
39678         Tests for module 'unistr/u32-mbsnlen'.
39679         * modules/unistr/u32-mbsnlen-tests: New file.
39680         * tests/unistr/test-u32-mbsnlen.c: New file.
39681
39682         Tests for module 'unistr/u16-mbsnlen'.
39683         * modules/unistr/u16-mbsnlen-tests: New file.
39684         * tests/unistr/test-u16-mbsnlen.c: New file.
39685
39686         Tests for module 'unistr/u8-mbsnlen'.
39687         * modules/unistr/u8-mbsnlen-tests: New file.
39688         * tests/unistr/test-u8-mbsnlen.c: New file.
39689
39690         Tests for module 'unistr/u32-chr'.
39691         * modules/unistr/u32-chr-tests: New file.
39692         * tests/unistr/test-u32-chr.c: New file.
39693
39694         Tests for module 'unistr/u16-chr'.
39695         * modules/unistr/u16-chr-tests: New file.
39696         * tests/unistr/test-u16-chr.c: New file.
39697
39698         Tests for module 'unistr/u8-chr'.
39699         * modules/unistr/u8-chr-tests: New file.
39700         * tests/unistr/test-u8-chr.c: New file.
39701         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39702
39703         Tests for module 'unistr/u32-cmp2'.
39704         * modules/unistr/u32-cmp2-tests: New file.
39705         * tests/unistr/test-u32-cmp2.c: New file.
39706
39707         Tests for module 'unistr/u16-cmp2'.
39708         * modules/unistr/u16-cmp2-tests: New file.
39709         * tests/unistr/test-u16-cmp2.c: New file.
39710
39711         Tests for module 'unistr/u8-cmp2'.
39712         * modules/unistr/u8-cmp2-tests: New file.
39713         * tests/unistr/test-u8-cmp2.c: New file.
39714         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39715
39716         Tests for module 'unistr/u32-cmp'.
39717         * modules/unistr/u32-cmp-tests: New file.
39718         * tests/unistr/test-u32-cmp.c: New file.
39719
39720         Tests for module 'unistr/u16-cmp'.
39721         * modules/unistr/u16-cmp-tests: New file.
39722         * tests/unistr/test-u16-cmp.c: New file.
39723
39724         Tests for module 'unistr/u8-cmp'.
39725         * modules/unistr/u8-cmp-tests: New file.
39726         * tests/unistr/test-u8-cmp.c: New file.
39727         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39728
39729         Tests for module 'unistr/u32-set'.
39730         * modules/unistr/u32-set-tests: New file.
39731         * tests/unistr/test-u32-set.c: New file.
39732
39733         Tests for module 'unistr/u16-set'.
39734         * modules/unistr/u16-set-tests: New file.
39735         * tests/unistr/test-u16-set.c: New file.
39736
39737         Tests for module 'unistr/u8-set'.
39738         * modules/unistr/u8-set-tests: New file.
39739         * tests/unistr/test-u8-set.c: New file.
39740         * tests/unistr/test-set.h: New file.
39741
39742         Tests for module 'unistr/u32-move'.
39743         * modules/unistr/u32-move-tests: New file.
39744         * tests/unistr/test-u32-move.c: New file.
39745
39746         Tests for module 'unistr/u16-move'.
39747         * modules/unistr/u16-move-tests: New file.
39748         * tests/unistr/test-u16-move.c: New file.
39749
39750         Tests for module 'unistr/u8-move'.
39751         * modules/unistr/u8-move-tests: New file.
39752         * tests/unistr/test-u8-move.c: New file.
39753         * tests/unistr/test-move.h: New file.
39754
39755         Tests for module 'unistr/u32-cpy'.
39756         * modules/unistr/u32-cpy-tests: New file.
39757         * tests/unistr/test-u32-cpy.c: New file.
39758
39759         Tests for module 'unistr/u16-cpy'.
39760         * modules/unistr/u16-cpy-tests: New file.
39761         * tests/unistr/test-u16-cpy.c: New file.
39762
39763         Tests for module 'unistr/u8-cpy'.
39764         * modules/unistr/u8-cpy-tests: New file.
39765         * tests/unistr/test-u8-cpy.c: New file.
39766         * tests/unistr/test-cpy.h: New file.
39767
39768 2010-01-09  Bruno Haible  <bruno@clisp.org>
39769
39770         Tests for module 'unistr/u32-uctomb'.
39771         * modules/unistr/u32-uctomb-tests: New file.
39772         * tests/unistr/test-u32-uctomb.c: New file.
39773
39774         Tests for module 'unistr/u16-uctomb'.
39775         * modules/unistr/u16-uctomb-tests: New file.
39776         * tests/unistr/test-u16-uctomb.c: New file.
39777
39778         Tests for module 'unistr/u8-uctomb'.
39779         * modules/unistr/u8-uctomb-tests: New file.
39780         * tests/unistr/test-u8-uctomb.c: New file.
39781
39782         Tests for module 'unistr/u32-mbtoucr'.
39783         * modules/unistr/u32-mbtoucr-tests: New file.
39784         * tests/unistr/test-u32-mbtoucr.c: New file.
39785
39786         Tests for module 'unistr/u16-mbtoucr'.
39787         * modules/unistr/u16-mbtoucr-tests: New file.
39788         * tests/unistr/test-u16-mbtoucr.c: New file.
39789
39790         Tests for module 'unistr/u8-mbtoucr'.
39791         * modules/unistr/u8-mbtoucr-tests: New file.
39792         * tests/unistr/test-u8-mbtoucr.c: New file.
39793
39794         Tests for module 'unistr/u32-mbtouc'.
39795         * modules/unistr/u32-mbtouc-tests: New file.
39796         * tests/unistr/test-u32-mbtouc.c: New file.
39797
39798         Tests for module 'unistr/u16-mbtouc'.
39799         * modules/unistr/u16-mbtouc-tests: New file.
39800         * tests/unistr/test-u16-mbtouc.c: New file.
39801
39802         Tests for module 'unistr/u8-mbtouc'.
39803         * modules/unistr/u8-mbtouc-tests: New file.
39804         * tests/unistr/test-u8-mbtouc.c: New file.
39805
39806         Tests for module 'unistr/u32-mbtouc-unsafe'.
39807         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39808         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39809         * tests/unistr/test-u32-mbtouc.h: New file.
39810
39811         Tests for module 'unistr/u16-mbtouc-unsafe'.
39812         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39813         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39814         * tests/unistr/test-u16-mbtouc.h: New file.
39815
39816         Tests for module 'unistr/u8-mbtouc-unsafe'.
39817         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39818         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39819         * tests/unistr/test-u8-mbtouc.h: New file.
39820
39821         Tests for module 'unistr/u32-mblen'.
39822         * modules/unistr/u32-mblen-tests: New file.
39823         * tests/unistr/test-u32-mblen.c: New file.
39824
39825         Tests for module 'unistr/u16-mblen'.
39826         * modules/unistr/u16-mblen-tests: New file.
39827         * tests/unistr/test-u16-mblen.c: New file.
39828
39829         Tests for module 'unistr/u8-mblen'.
39830         * modules/unistr/u8-mblen-tests: New file.
39831         * tests/unistr/test-u8-mblen.c: New file.
39832
39833         Tests for module 'unistr/u32-to-u16'.
39834         * modules/unistr/u32-to-u16-tests: New file.
39835         * tests/unistr/test-u32-to-u16.c: New file.
39836
39837         Tests for module 'unistr/u32-to-u8'.
39838         * modules/unistr/u32-to-u8-tests: New file.
39839         * tests/unistr/test-u32-to-u8.c: New file.
39840
39841         Tests for module 'unistr/u16-to-u32'.
39842         * modules/unistr/u16-to-u32-tests: New file.
39843         * tests/unistr/test-u16-to-u32.c: New file.
39844
39845         Tests for module 'unistr/u16-to-u8'.
39846         * modules/unistr/u16-to-u8-tests: New file.
39847         * tests/unistr/test-u16-to-u8.c: New file.
39848
39849         Tests for module 'unistr/u8-to-u32'.
39850         * modules/unistr/u8-to-u32-tests: New file.
39851         * tests/unistr/test-u8-to-u32.c: New file.
39852
39853         Tests for module 'unistr/u8-to-u16'.
39854         * modules/unistr/u8-to-u16-tests: New file.
39855         * tests/unistr/test-u8-to-u16.c: New file.
39856
39857         Tests for module 'unistr/u32-check'.
39858         * modules/unistr/u32-check-tests: New file.
39859         * tests/unistr/test-u32-check.c: New file.
39860
39861         Tests for module 'unistr/u16-check'.
39862         * modules/unistr/u16-check-tests: New file.
39863         * tests/unistr/test-u16-check.c: New file.
39864
39865         Tests for module 'unistr/u8-check'.
39866         * modules/unistr/u8-check-tests: New file.
39867         * tests/unistr/test-u8-check.c: New file.
39868
39869         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39870         (category_equals): New function.
39871         (main): Add more tests.
39872         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39873
39874         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39875
39876 2010-01-10  Bruno Haible  <bruno@clisp.org>
39877
39878         unistr/u*-strcoll: Try harder to distinguish different strings.
39879         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39880         compare s1 and s2 to see if they are different.
39881
39882 2010-01-10  Bruno Haible  <bruno@clisp.org>
39883
39884         unistr/u*-stpncpy: Fix the return value.
39885         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39886         description of the return value consistent with stpncpy in glibc.
39887         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39888         written non-NUL unit.
39889
39890 2010-01-10  Bruno Haible  <bruno@clisp.org>
39891
39892         unistr/u*-next: Add missing dependencies.
39893         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39894         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39895         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39896
39897 2010-01-10  Bruno Haible  <bruno@clisp.org>
39898
39899         unistr/u8-mbsnlen: Fix return value for incomplete character.
39900         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39901         u8_mblen.
39902         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39903         Remove unistr/u8-mblen.
39904         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39905         u16_mblen.
39906         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39907         Remove unistr/u16-mblen.
39908
39909 2010-01-10  Bruno Haible  <bruno@clisp.org>
39910
39911         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39912         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39913         Reported by Brian Gough <bjg@gnu.org> and
39914         Chris Clayton <chris2553@googlemail.com> via
39915         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39916
39917 2010-01-09  Bruno Haible  <bruno@clisp.org>
39918
39919         unistr/u16-to-u32: Reject invalid input.
39920         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39921         u16_mbtouc.
39922         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39923         Remove unistr/u16-mbtouc.
39924
39925         unistr/u16-to-u8: Reject invalid input.
39926         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39927         u16_mbtouc.
39928         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39929         Remove unistr/u16-mbtouc.
39930
39931         unistr/u8-to-u32: Reject invalid input.
39932         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39933         u8_mbtouc.
39934         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39935         Remove unistr/u8-mbtouc.
39936
39937         unistr/u8-to-u16: Reject invalid input.
39938         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39939         u8_mbtouc.
39940         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39941         Remove unistr/u8-mbtouc.
39942
39943 2010-01-09  Bruno Haible  <bruno@clisp.org>
39944
39945         Tests for module 'getlogin'.
39946         * modules/getlogin-tests: New file.
39947         * tests/test-getlogin.c: New file.
39948
39949         New module 'getlogin'.
39950         * lib/unistd.in.h (getlogin): New declaration.
39951         * lib/getlogin.c: New file.
39952         * m4/getlogin.m4: New file.
39953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39954         HAVE_GETLOGIN.
39955         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39956         HAVE_GETLOGIN.
39957         * modules/getlogin: New file.
39958         * doc/posix-functions/getlogin.texi: Mention the new module.
39959         Reported by John W. Eaton <jwe@gnu.org>.
39960
39961 2010-01-09  Bruno Haible  <bruno@clisp.org>
39962
39963         getlogin_r: Support for native Windows.
39964         * lib/getlogin_r.c: Include <windows.h>
39965         (getlogin_r): Implement for native Windows.
39966         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39967         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39968         via John W. Eaton <jwe@gnu.org>.
39969
39970 2010-01-09  Bruno Haible  <bruno@clisp.org>
39971
39972         getlogin_r: Small fixes.
39973         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39974         succeeds.
39975         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39976         before testing whether getlogin_r is declared. No need to set
39977         HAVE_DECL_GETLOGIN_R to 1.
39978         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39979
39980 2010-01-09  Bruno Haible  <bruno@clisp.org>
39981
39982         * lib/unistd.in.h (getlogin_r): Add comment.
39983
39984 2010-01-09  Bruno Haible  <bruno@clisp.org>
39985
39986         Tests for module 'getlogin_r'.
39987         * modules/getlogin_r-tests: New file.
39988         * tests/test-getlogin_r.c: New file.
39989
39990 2010-01-09  Jim Meyering  <meyering@redhat.com>
39991
39992         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39993         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39994         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39995
39996 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39997
39998         * lib/dup2.c (rpl_dup2): Improve comment.
39999
40000 2010-01-08  Eric Blake  <ebb9@byu.net>
40001
40002         maint.mk: allow packages to add makefile @@ exceptions
40003         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
40004         (sc_makefile_check): Rename...
40005         (sc_makefile_at_at_check): ...to this, and use hook.
40006
40007         dup2: work around mingw bug
40008         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
40009         Reported by Simon Josefsson.
40010
40011 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
40012
40013         glob: Fix C++ compilation.
40014         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
40015         C++.
40016
40017 2010-01-07  Bruno Haible  <bruno@clisp.org>
40018
40019         Fix indentation of wctype.in.h, broken since 2007-01-06.
40020         * lib/wctype.in.h: Fix indentation of preprocessor directives.
40021
40022 2010-01-07  Bruno Haible  <bruno@clisp.org>
40023
40024         mbslen: Avoid collision with system function.
40025         * lib/string.in.h [MirBSD]: Include <wchar.h>.
40026         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
40027         * m4/mbslen.m4: New file.
40028         * modules/mbslen (Files): Add it.
40029         (configure.ac): Invoke gl_MBSLEN.
40030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
40031         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
40032         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
40033         via Ian Beckwith <ianb@erislabs.net>.
40034
40035 2010-01-07  Bruno Haible  <bruno@clisp.org>
40036
40037         dirent: Document the last fix.
40038         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
40039
40040 2010-01-07  Bruno Haible  <bruno@clisp.org>
40041
40042         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
40043         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
40044         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
40045         va_list are defined.
40046         * doc/posix-headers/stdio.texi: Document the bug of missing types.
40047         Reported by Eric Blake.
40048
40049 2010-01-07  Bruno Haible  <bruno@clisp.org>
40050
40051         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
40052         * modules/xlist (Depends-on): Add 'list',
40053         * modules/xoset (Depends-on): Add 'oset'.
40054         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40055
40056 2010-01-07  Bruno Haible  <bruno@clisp.org>
40057
40058         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
40059         * doc/posix-functions/strncasecmp.texi: Likewise.
40060
40061 2010-01-07  Bruno Haible  <bruno@clisp.org>
40062
40063         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
40064
40065 2010-01-07  John W. Eaton  <jwe@octave.org>
40066
40067         wctype: allow C++ use
40068         * lib/wctype.in.h: Add extern "C" block for C++.
40069
40070 2010-01-06  Eric Blake  <ebb9@byu.net>
40071
40072         maint.mk: detect incorrect GFDL usage
40073         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
40074
40075 2010-01-06  Jim Meyering  <meyering@redhat.com>
40076         and Eric Blake  <ebb9@byu.net>
40077
40078         maint.mk: ignore multi-line copyright in NEWS
40079         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
40080
40081 2010-01-06  Eric Blake  <ebb9@byu.net>
40082
40083         select: add missing dependency
40084         * modules/select-tests (Depends-on): Move sockets dependency...
40085         * modules/select (Depends-on): ...here.
40086         Reported by Ian Beckwith.
40087
40088         doc: regenerate INSTALL
40089         * doc/INSTALL: Reflect recent autoconf update.
40090         * doc/INSTALL.ISO: Likewise.
40091         * doc/INSTALL.UTF-8: Likewise.
40092
40093         pread: fix compilation on glibc
40094         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
40095         Reported by Ralf Wildenhues.
40096
40097         dirent: fix test failure
40098         * lib/dirent.in.h (includes): Guarantee ino_t.
40099         Reported by Ralf Wildenhues.
40100
40101 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
40102
40103         linkat, renameat: avoid bad free
40104         * lib/at-func2.c (at_func2): Fix typo.
40105         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
40106
40107 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40108
40109         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
40110         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
40111         to avoid failure of symlink test later.
40112
40113 2010-01-06  Eric Blake  <ebb9@byu.net>
40114
40115         stdio, unistd: guarantee ssize_t
40116         * lib/unistd.in.h (includes): Ensure that types required by POSIX
40117         2008 are exposed when needed.
40118         * lib/stdio.in.h (includes): Likewise.
40119         Reported by Ralf Wildenhues.
40120
40121 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
40122
40123         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
40124         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
40125         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
40126
40127 2010-01-06  Jim Meyering  <meyering@redhat.com>
40128
40129         readtokens: this module *does* require xalloc.h
40130         It uses only functions that were omitted by the old syntax-check rule.
40131         * lib/readtokens.c: Include "xalloc.h" once again.
40132         * modules/readtokens (Depends-on): Add xalloc.
40133         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
40134
40135 2010-01-05  Eric Blake  <ebb9@byu.net>
40136
40137         maint: support 'make announcement' from a VPATH build
40138         * top/maint.mk (announcement): Look for correct NEWS file.
40139
40140 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
40141
40142         utimens (fdutimens): ignore a negative FD, per contract
40143         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
40144         when we have a valid file descriptor.  Otherwise, using a brand
40145         new glibc (with just-patched futimens that now fails with EBADF)
40146         would cause this function to fail with ENOSYS.
40147         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
40148         See also http://bugzilla.redhat.com/552320.
40149
40150 2010-01-05  Eric Blake  <ebb9@byu.net>
40151
40152         strcase: document what it provides
40153         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
40154         gnulib module.
40155         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
40156         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
40157
40158 2010-01-05  Jim Meyering  <meyering@redhat.com>
40159
40160         maint: remove useless inclusions of "xalloc.h"
40161         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
40162         * lib/readtokens.c: Likewise.
40163         * lib/same.c: Likewise.
40164         * modules/getloadavg (Depends-on): Remove xalloc.
40165         * modules/readtokens: Likewise.
40166         * modules/same: Likewise.
40167
40168         maint.mk: include 4 more function names in alloca.h-checking regexp
40169         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
40170         regexp.  Before, we would give a false-positive (saying alloca.h
40171         is included unnecessarily) when the only uses involved omitted symbols.
40172
40173         xalloc.h: use consistent formatting
40174         * lib/xalloc.h: Move declarations to start in the first column.
40175
40176 2010-01-05  Eric Blake  <ebb9@byu.net>
40177
40178         mkdir: avoid xalloc
40179         * lib/mkdir.c (includes): Drop unused header.
40180         Reported by John W. Eaton.
40181
40182 2010-01-04  Jim Meyering  <meyering@redhat.com>
40183
40184         nl_langinfo: avoid configure-time syntax error
40185         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
40186         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
40187         the empty string.  Don't let that provoke a shell syntax error.
40188
40189         regcomp, regexec, fnmatch: avoid array bounds read error
40190         * lib/regcomp.c (build_equiv_class): From glibc:
40191         Use only the low 24 bits of a findidx return value as an index
40192         into the weights array.  Patch by Ulrich Drepper:
40193         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
40194         * lib/regexec.c (check_node_accept_bytes): Likewise.
40195         * lib/fnmatch_loop.c (FCT): Likewise.
40196
40197         regcomp: skip collseq lookup when there are no rules
40198         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
40199         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
40200
40201         regcomp: recognize ill-formed { } expressions
40202         * lib/regcomp.c (parse_dup_op): From glibc:
40203         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40204
40205         regcomp: fix typo in comment
40206         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40207         s/satisfy/satisfies/.
40208
40209         regcomp: sync from glibc: remove dead store
40210         * lib/regcomp.c (duplicate_node_closure): Remove useless
40211         search_duplicated_node call and dead store.
40212
40213         regcomp: sync from glibc; always use nl_langinfo
40214         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40215         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40216         * modules/regex (Depends-on): Add nl_langinfo.
40217
40218 2010-01-04  Eric Blake  <ebb9@byu.net>
40219
40220         fdopendir: fix configure test
40221         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40222
40223 2010-01-01  Bruno Haible  <bruno@clisp.org>
40224
40225         wchar: Remove unused configure check.
40226         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40227
40228 2010-01-01  Eric Blake  <ebb9@byu.net>
40229
40230         headers: make check of system header explicit
40231         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40232         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40233         ourselves.
40234         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40235         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40236         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40237         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40238         internals.
40239         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40240         missing.
40241         Suggested by Bruno Haible.
40242
40243 2010-01-01  Jim Meyering  <meyering@redhat.com>
40244
40245         ChangeLog: tweak to eliminate unnecessary copyright line
40246         * ChangeLog: Remove a copyright line that was mistakenly updated
40247         by today's update-copyright run.  Reported by Eric Blake.
40248
40249         test-update-copyright: don't let envvar setting cause test failure
40250         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40251
40252 2010-01-01  Bruno Haible  <bruno@clisp.org>
40253
40254         localename: Avoid gcc warning.
40255         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40256         function if it is not used.
40257
40258 2010-01-01  Jim Meyering  <meyering@redhat.com>
40259
40260         update nearly all FSF copyright year lists to include 2010
40261         Use the same procedure as for 2009, outlined in
40262         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40263
40264         version-etc: set COPYRIGHT_YEAR to 2010
40265         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40266
40267 2009-12-31  Eric Blake  <ebb9@byu.net>
40268
40269         doc: correct availability of cygwin 1.5.x getopt
40270         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40271         variables.
40272         * doc/posix-functions/opterr.texi (opterr): Likewise.
40273         * doc/posix-functions/optind.texi (optind): Likewise.
40274         * doc/posix-functions/optopt.texi (optopt): Likewise.
40275         * doc/posix-functions/tzname.texi (tzname): Likewise.
40276
40277         openat: update maintainer
40278         * modules/openat (Maintainer): Add myself.
40279
40280         utimens: avoid shadowing warning
40281         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40282         buffers into one, to avoid shadowing, as well as avoiding a
40283         redundant stat.
40284         Reported by Jim Meyering.
40285
40286         test-dup2: avoid compiler warning
40287         * tests/test-dup2.c (is_inheritable): Only define if used.
40288
40289 2010-01-01  Bruno Haible  <bruno@clisp.org>
40290
40291         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40292         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40293         defined, use wctomb instead of wcrtomb.
40294
40295 2010-01-01  Bruno Haible  <bruno@clisp.org>
40296
40297         iconv: Reject native Solaris iconv.
40298         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40299         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40300
40301 2009-12-31  Bruno Haible  <bruno@clisp.org>
40302
40303         * tests/test-signal.c (main): Remove test of 'SIG'.
40304
40305 2009-12-31  Bruno Haible  <bruno@clisp.org>
40306
40307         spawn: Fix incomplete fix.
40308         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40309         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40310         warnings for GNULIB_POSIXCHECK again.
40311         Reported by Eric Blake.
40312
40313 2009-12-31  Bruno Haible  <bruno@clisp.org>
40314
40315         Avoid namespace pollution on glibc systems.
40316         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40317         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40318         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40319         glibc systems.
40320
40321 2009-12-31  Bruno Haible  <bruno@clisp.org>
40322
40323         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40324         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40325         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40326         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40327         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40328         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40329         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40330
40331 2009-12-31  Bruno Haible  <bruno@clisp.org>
40332
40333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40334         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40335         afterwards.
40336
40337 2009-12-31  Bruno Haible  <bruno@clisp.org>
40338
40339         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40340         SYS_UTSNAME_H.
40341
40342 2009-12-31  Bruno Haible  <bruno@clisp.org>
40343
40344         spawn: Fix misapplied patch.
40345         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40346         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40347         warnings for GNULIB_POSIXCHECK.
40348
40349 2009-12-31  Bruno Haible  <bruno@clisp.org>
40350
40351         times: Update after sys_times changed.
40352         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40353         * modules/times (Files): Add it.
40354         (configure.ac): Invoke gl_FUNC_TIMES.
40355
40356 2009-12-31  Bruno Haible  <bruno@clisp.org>
40357
40358         Use AC_C_INLINE where necessary.
40359         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40360         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40361         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40362         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40363         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40364         * m4/mbiter.m4 (gl_MBITER): Likewise.
40365         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40366         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40367         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40368         * modules/u64 (configure.ac): Likewise.
40369
40370 2009-12-31  Bruno Haible  <bruno@clisp.org>
40371
40372         Use AC_C_INLINE instead of module 'inline' where possible.
40373         * modules/inline (Description): Clarify purpose.
40374         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40375         * modules/count-one-bits (Depends-on): Remove inline.
40376         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40377         * modules/openat (Depends-on): Remove inline.
40378         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40379         instead of depending on module 'inline'.
40380         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40381         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40382         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40383         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40384         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40385         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40386         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40387         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40388         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40389         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40390         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40391         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40392         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40393         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40394         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40395         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40396         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40397         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40398         Likewise.
40399         * modules/unictype/property-ascii-hex-digit (Depends-on,
40400         configure.ac): Likewise.
40401         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40402         configure.ac): Likewise.
40403         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40404         configure.ac): Likewise.
40405         * modules/unictype/property-bidi-block-separator (Depends-on,
40406         configure.ac): Likewise.
40407         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40408         configure.ac): Likewise.
40409         * modules/unictype/property-bidi-common-separator (Depends-on,
40410         configure.ac): Likewise.
40411         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40412         Likewise.
40413         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40414         configure.ac): Likewise.
40415         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40416         configure.ac): Likewise.
40417         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40418         configure.ac): Likewise.
40419         * modules/unictype/property-bidi-european-digit (Depends-on,
40420         configure.ac): Likewise.
40421         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40422         configure.ac): Likewise.
40423         * modules/unictype/property-bidi-left-to-right (Depends-on,
40424         configure.ac): Likewise.
40425         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40426         configure.ac): Likewise.
40427         * modules/unictype/property-bidi-other-neutral (Depends-on,
40428         configure.ac): Likewise.
40429         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40430         Likewise.
40431         * modules/unictype/property-bidi-segment-separator (Depends-on,
40432         configure.ac): Likewise.
40433         * modules/unictype/property-bidi-whitespace (Depends-on,
40434         configure.ac): Likewise.
40435         * modules/unictype/property-combining (Depends-on, configure.ac):
40436         Likewise.
40437         * modules/unictype/property-composite (Depends-on, configure.ac):
40438         Likewise.
40439         * modules/unictype/property-currency-symbol (Depends-on,
40440         configure.ac): Likewise.
40441         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40442         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40443         Likewise.
40444         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40445         configure.ac): Likewise.
40446         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40447         Likewise.
40448         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40449         Likewise.
40450         * modules/unictype/property-extender (Depends-on, configure.ac):
40451         Likewise.
40452         * modules/unictype/property-format-control (Depends-on, configure.ac):
40453         Likewise.
40454         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40455         Likewise.
40456         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40457         Likewise.
40458         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40459         Likewise.
40460         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40461         Likewise.
40462         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40463         Likewise.
40464         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40465         Likewise.
40466         * modules/unictype/property-id-start (Depends-on, configure.ac):
40467         Likewise.
40468         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40469         Likewise.
40470         * modules/unictype/property-ids-binary-operator (Depends-on,
40471         configure.ac): Likewise.
40472         * modules/unictype/property-ids-trinary-operator (Depends-on,
40473         configure.ac): Likewise.
40474         * modules/unictype/property-ignorable-control (Depends-on,
40475         configure.ac): Likewise.
40476         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40477         Likewise.
40478         * modules/unictype/property-join-control (Depends-on, configure.ac):
40479         Likewise.
40480         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40481         Likewise.
40482         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40483         Likewise.
40484         * modules/unictype/property-logical-order-exception (Depends-on,
40485         configure.ac): Likewise.
40486         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40487         Likewise.
40488         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40489         * modules/unictype/property-non-break (Depends-on, configure.ac):
40490         Likewise.
40491         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40492         Likewise.
40493         * modules/unictype/property-numeric (Depends-on, configure.ac):
40494         Likewise.
40495         * modules/unictype/property-other-alphabetic (Depends-on,
40496         configure.ac): Likewise.
40497         * modules/unictype/property-other-default-ignorable-code-point
40498         (Depends-on, configure.ac): Likewise.
40499         * modules/unictype/property-other-grapheme-extend (Depends-on,
40500         configure.ac): Likewise.
40501         * modules/unictype/property-other-id-continue (Depends-on,
40502         configure.ac): Likewise.
40503         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40504         Likewise.
40505         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40506         Likewise.
40507         * modules/unictype/property-other-math (Depends-on, configure.ac):
40508         Likewise.
40509         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40510         Likewise.
40511         * modules/unictype/property-paired-punctuation (Depends-on,
40512         configure.ac): Likewise.
40513         * modules/unictype/property-paragraph-separator (Depends-on,
40514         configure.ac): Likewise.
40515         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40516         Likewise.
40517         * modules/unictype/property-pattern-white-space (Depends-on,
40518         configure.ac): Likewise.
40519         * modules/unictype/property-private-use (Depends-on, configure.ac):
40520         Likewise.
40521         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40522         Likewise.
40523         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40524         Likewise.
40525         * modules/unictype/property-radical (Depends-on, configure.ac):
40526         Likewise.
40527         * modules/unictype/property-sentence-terminal (Depends-on,
40528         configure.ac): Likewise.
40529         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40530         Likewise.
40531         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40532         * modules/unictype/property-terminal-punctuation (Depends-on,
40533         configure.ac): Likewise.
40534         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40535         Likewise.
40536         * modules/unictype/property-unassigned-code-value (Depends-on,
40537         configure.ac): Likewise.
40538         * modules/unictype/property-unified-ideograph (Depends-on,
40539         configure.ac): Likewise.
40540         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40541         Likewise.
40542         * modules/unictype/property-variation-selector (Depends-on,
40543         configure.ac): Likewise.
40544         * modules/unictype/property-white-space (Depends-on, configure.ac):
40545         Likewise.
40546         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40547         Likewise.
40548         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40549         Likewise.
40550         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40551         Likewise.
40552         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40553         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40554         Likewise.
40555
40556 2009-12-31  Bruno Haible  <bruno@clisp.org>
40557
40558         Remove unnecessary AC_C_INLINE invocation.
40559         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40560         since 2009-08-21.
40561
40562 2009-12-31  Jim Meyering  <meyering@redhat.com>
40563
40564         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40565         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40566         With this change, we can all remove the gpg_key_ID = ... definition
40567         from our respective cfg.mk files.
40568
40569         maint.mk: create announcement template in ~/, not in /tmp
40570         * top/maint.mk (emit_upload_commands): Adjust.
40571         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40572         Remove temporary file, .ci-msg.
40573
40574 2009-12-31  Eric Blake  <ebb9@byu.net>
40575
40576         link-warning: always build headers with link warnings
40577         * modules/arpa_inet (Makefile.am): Always build replacement
40578         header.
40579         * modules/ctype (Makefile.am): Likewise.
40580         * modules/dirent (Makefile.am): Likewise.
40581         * modules/inttypes (Makefile.am): Likewise.
40582         * modules/langinfo (Makefile.am): Likewise.
40583         * modules/locale (Makefile.am): Likewise.
40584         * modules/spawn (Makefile.am): Likewise.
40585         * modules/sys_file (Makefile.am): Likewise.
40586         * modules/sys_ioctl (Makefile.am): Likewise.
40587         * modules/sys_select (Makefile.am): Likewise.
40588         * modules/sys_socket (Makefile.am): Likewise.
40589         * modules/sys_times (Makefile.am): Likewise.
40590         * modules/sys_utsname (Makefile.am): Likewise.
40591         * modules/sys_wait (Makefile.am): Likewise.
40592         * modules/wchar (Makefile.am): Likewise.
40593         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40594         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40595         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40596         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40597         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40598         Likewise.
40599         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40600         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40601         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40602         Likewise.
40603         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40604         Likewise.
40605         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40606         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40607         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40608         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40609         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40610         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40611         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40612         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40613         (gl_WCHAR_H_DEFAULTS): Likewise.
40614
40615 2009-12-31  Eric Blake  <ebb9@byu.net>
40616
40617         signal, spawn: use link warnings
40618         * lib/signal.in.h (sigset_t): Make unconditional.
40619         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40620         (sigpending, sigprocmask, sigaction): Add link warnings.
40621         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40622         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40623         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40624         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40625         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40626         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40627         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40628         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40629         (posix_spawn_file_actions_destroy)
40630         (posix_spawn_file_actions_addopen)
40631         (posix_spawn_file_actions_addclose)
40632         (posix_spawn_file_actions_adddup2): Likewise.
40633         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40634         * tests/test-signal.c (main): Enhance test.
40635
40636         spawn: improve wrapper support
40637         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40638         (gl_SPAWN_H_DEFAULTS): New defaults.
40639         * modules/spawn (Makefile.am): Substitute them.
40640         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40641         Only declare if missing or broken.
40642
40643         sys_times, sys_utsname: use include_next
40644         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40645         header.
40646         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40647         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40648         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40649         * modules/sys_times (Depends-on): Add include_next.
40650         (Makefile.am): Substitute additional values.
40651         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40652         * lib/sys_times.in.h (includes): Include native header, if
40653         available.
40654         * lib/sys_utsname.in.h (includes): Likewise.
40655         * tests/test-sys_times.c (main): Enhance test.
40656
40657         fdutimensat: revert prior patch
40658         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40659         utimens.h.
40660         Reported by Bruno Haible.
40661
40662 2009-12-30  Eric Blake  <ebb9@byu.net>
40663
40664         sys_wait: drop link-warning dependency
40665         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40666         link-warning efforts.
40667         * lib/sys_wait.in.h: Likewise.
40668
40669         fdutimensat: remove bogus dependency
40670         * modules/fdutimensat (Depends-on): Drop inline.
40671
40672         unistd: fix typo
40673         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40674
40675 2009-12-30  Bruno Haible  <bruno@clisp.org>
40676
40677         Fix compilation error with Solaris cc.
40678         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40679         * lib/unicase/u16-is-invariant.c: Likewise.
40680         * lib/unicase/u32-is-invariant.c: Likewise.
40681         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40682
40683 2009-12-30  Bruno Haible  <bruno@clisp.org>
40684
40685         Fix test crash.
40686         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40687         locales.
40688         Reported by Simon Josefsson <simon@josefsson.org>.
40689
40690 2009-12-30  Bruno Haible  <bruno@clisp.org>
40691
40692         Fix compilation error on most platforms.
40693         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40694         Reported by Simon Josefsson <simon@josefsson.org>
40695         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40696
40697 2009-12-30  Eric Blake  <ebb9@byu.net>
40698
40699         futimens, utimensat: work around ntfs-3g bug
40700         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40701         a ctime bug is present, and expand workaround to cover ntfs-3g.
40702         * lib/utimens.c (fdutimens, lutimens): Likewise.
40703         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40704         (validate_timespec): Adjust return value.
40705         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40706         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40707         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40708
40709 2009-12-29  Eric Blake  <ebb9@byu.net>
40710
40711         link-warning: make usage consistent
40712         * modules/ctype (Depends-on): Add link-warning.
40713         (Makefile.am): Update rules accordingly.
40714         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40715         * modules/locale (Depends-on, Makefile.am): Likewise.
40716         * modules/sys_file (Makefile.am): Likewise.
40717         * modules/getopt-posix (Makefile.am): Delete unused link warning
40718         efforts.
40719         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40720         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40721         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40722         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40723
40724         stdio: remove unused variables
40725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40726         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40727         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40728
40729         tests: test more substitute headers
40730         * modules/ctype-tests: New file.
40731         * modules/dirent-tests: Likewise.
40732         * modules/spawn-tests: Likewise.
40733         * modules/sys_file-tests: Likewise.
40734         * modules/sys_ioctl-tests: Likewise.
40735         * modules/sys_wait-tests: Likewise.
40736         * tests/test-ctype.c: Likewise.
40737         * tests/test-dirent.c: Likewise.
40738         * tests/test-spawn.c: Likewise.
40739         * tests/test-sys_file.c: Likewise.
40740         * tests/test-sys_ioctl.c: Likewise.
40741         * tests/test-sys_wait.c: Likewise.
40742         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40743         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40744         whether or not flock is in use.
40745
40746         tests: remove License section from module
40747         * modules/arpa_inet-tests: Remove unneeded section.
40748         * modules/byteswap-tests: Likewise.
40749         * modules/ceilf-tests: Likewise.
40750         * modules/ceill-tests: Likewise.
40751         * modules/crypto/des-tests: Likewise.
40752         * modules/crypto/gc-arcfour-tests: Likewise.
40753         * modules/crypto/gc-arctwo-tests: Likewise.
40754         * modules/crypto/gc-des-tests: Likewise.
40755         * modules/crypto/gc-hmac-md5-tests: Likewise.
40756         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40757         * modules/crypto/gc-md2-tests: Likewise.
40758         * modules/crypto/gc-md4-tests: Likewise.
40759         * modules/crypto/gc-md5-tests: Likewise.
40760         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40761         * modules/crypto/gc-rijndael-tests: Likewise.
40762         * modules/crypto/gc-sha1-tests: Likewise.
40763         * modules/crypto/gc-tests: Likewise.
40764         * modules/crypto/md2-tests: Likewise.
40765         * modules/crypto/md4-tests: Likewise.
40766         * modules/fcntl-h-tests: Likewise.
40767         * modules/floorf-tests: Likewise.
40768         * modules/floorl-tests: Likewise.
40769         * modules/frexp-nolibm-tests: Likewise.
40770         * modules/frexp-tests: Likewise.
40771         * modules/frexpl-nolibm-tests: Likewise.
40772         * modules/frexpl-tests: Likewise.
40773         * modules/getaddrinfo-tests: Likewise.
40774         * modules/inttypes-tests: Likewise.
40775         * modules/isfinite-tests: Likewise.
40776         * modules/isinf-tests: Likewise.
40777         * modules/ldexpl-tests: Likewise.
40778         * modules/locale-tests: Likewise.
40779         * modules/math-tests: Likewise.
40780         * modules/netdb-tests: Likewise.
40781         * modules/netinet_in-tests: Likewise.
40782         * modules/printf-frexp-tests: Likewise.
40783         * modules/printf-frexpl-tests: Likewise.
40784         * modules/priv-set-tests: Likewise.
40785         * modules/random_r-tests: Likewise.
40786         * modules/round-tests: Likewise.
40787         * modules/roundf-tests: Likewise.
40788         * modules/roundl-tests: Likewise.
40789         * modules/search-tests: Likewise.
40790         * modules/select-tests: Likewise.
40791         * modules/signal-tests: Likewise.
40792         * modules/stdbool-tests: Likewise.
40793         * modules/stddef-tests: Likewise.
40794         * modules/stdint-tests: Likewise.
40795         * modules/stdio-tests: Likewise.
40796         * modules/stdlib-tests: Likewise.
40797         * modules/string-tests: Likewise.
40798         * modules/strings-tests: Likewise.
40799         * modules/sys_select-tests: Likewise.
40800         * modules/sys_socket-tests: Likewise.
40801         * modules/sys_stat-tests: Likewise.
40802         * modules/sys_time-tests: Likewise.
40803         * modules/sys_utsname-tests: Likewise.
40804         * modules/sysexits-tests: Likewise.
40805         * modules/time-tests: Likewise.
40806         * modules/trunc-tests: Likewise.
40807         * modules/truncf-tests: Likewise.
40808         * modules/truncl-tests: Likewise.
40809         * modules/tsearch-tests: Likewise.
40810         * modules/unistd-tests: Likewise.
40811         * modules/wchar-tests: Likewise.
40812         * modules/wctype-tests: Likewise.
40813
40814         tests: fix license on several tests
40815         * tests/test-des.c: Update to GPLv3+.
40816         * tests/test-flock.c: Likewise.
40817         * tests/test-fsync.c: Likewise.
40818         * tests/test-futimens.h: Likewise.
40819         * tests/test-gc-arcfour.c: Likewise.
40820         * tests/test-gc-arctwo.c: Likewise.
40821         * tests/test-gc-des.c: Likewise.
40822         * tests/test-gc-hmac-md5.c: Likewise.
40823         * tests/test-gc-hmac-sha1.c: Likewise.
40824         * tests/test-gc-md2.c: Likewise.
40825         * tests/test-gc-md4.c: Likewise.
40826         * tests/test-gc-md5.c: Likewise.
40827         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40828         * tests/test-gc-rijndael.c: Likewise.
40829         * tests/test-gc-sha1.c: Likewise.
40830         * tests/test-gc.c: Likewise.
40831         * tests/test-getcwd.c: Likewise.
40832         * tests/test-link.c: Likewise.
40833         * tests/test-link.h: Likewise.
40834         * tests/test-lutimens.h: Likewise.
40835         * tests/test-md2.c: Likewise.
40836         * tests/test-md4.c: Likewise.
40837         * tests/test-mkdir.h: Likewise.
40838         * tests/test-rename.c: Likewise.
40839         * tests/test-rename.h: Likewise.
40840         * tests/test-safe-alloc.c: Likewise.
40841         * tests/test-utimens-common.h: Likewise.
40842         * tests/test-utimens.h: Likewise.
40843
40844         maint: sync license texts
40845         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40846         * doc/gpl-3.0.texi: Revert copyright year update.
40847         * doc/lgpl-3.0.texi: Likewise.
40848
40849 2009-12-29  Jim Meyering  <meyering@redhat.com>
40850
40851         update nearly all FSF copyright year lists to include 2009
40852         The files named by the following are exempted:
40853             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40854               test -f "$dst" && { echo "$dst"; continue; }
40855               test -d "$dst" || continue
40856               echo "$dst"/$(basename "$src")
40857             done > exempt
40858             git ls-files tests/unictype >> exempt
40859         In the remaining files, convert to all-interval notation if
40860         - there is already at least one year interval like 2000-2003
40861         - the file is maintained by me
40862         - the file is in lib/uni*/, where that style already prevails
40863         Otherwise, use update-copyright's default.
40864
40865 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40866         and Eric Blake  <ebb9@byu.net>
40867
40868         tests: don't require debug system() to pass
40869         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40870         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40871         * tests/test-unlink.h (test_unlink_func): Likewise.
40872         * tests/test-fstatat.c (main): ...into callers.
40873         * tests/test-lstat.c (main): Likewise.
40874         * tests/test-rmdir.c (main): Likewise.
40875         * tests/test-unlink.c (main): Likewise.
40876         * tests/test-unlinkat.c (main): Likewise.
40877         * tests/test-areadlink-with-size.c (main): Don't require a
40878         debug-only system call to pass, aiding cross-testing to mingw.
40879         * tests/test-areadlink.c (main): Likewise.
40880         * tests/test-areadlinkat-with-size.c (main): Likewise.
40881         * tests/test-areadlinkat.c (main): Likewise.
40882         * tests/test-canonicalize-lgpl.c (main): Likewise.
40883         * tests/test-canonicalize.c (main): Likewise.
40884         * tests/test-chown.c (main): Likewise.
40885         * tests/test-fchownat.c (main): Likewise.
40886         * tests/test-lchown.c (main): Likewise.
40887         * tests/test-fdutimensat.c (main): Likewise.
40888         * tests/test-futimens.c (main): Likewise.
40889         * tests/test-link.c (main): Likewise.
40890         * tests/test-linkat.c (main): Likewise.
40891         * tests/test-mkdir.c (main): Likewise.
40892         * tests/test-mkdirat.c (main): Likewise.
40893         * tests/test-mkfifo.c (main): Likewise.
40894         * tests/test-mkfifoat.c (main): Likewise.
40895         * tests/test-mknod.c (main): Likewise.
40896         * tests/test-readlink.c (main): Likewise.
40897         * tests/test-remove.c (main): Likewise.
40898         * tests/test-rename.c (main): Likewise.
40899         * tests/test-renameat.c (main): Likewise.
40900         * tests/test-symlink.c (main): Likewise.
40901         * tests/test-symlinkat.c (main): Likewise.
40902         * tests/test-utimens.c (main): Likewise.
40903         * tests/test-utimensat.c (main): Likewise.
40904
40905 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40906
40907         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40908         on $(UNUSED_PARAMETER_H) to avoid build failure.
40909
40910 2009-12-28  Jim Meyering  <meyering@redhat.com>
40911
40912         update-copyright: you may specify a max. line length other than 72
40913         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40914
40915         maint: use consistent FSF copyright line syntax
40916         * lib/posixtm.c: Add missing comma in FSF copyright line.
40917         * lib/posixtm.h: Likewise.
40918         * lib/getugroups.c: Add missing ", Inc.".
40919
40920         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40921         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40922         FSF copyright line.  Remove trailing blanks.
40923
40924 2009-12-28  Eric Blake  <ebb9@byu.net>
40925
40926         test-dup2: reduce dependencies
40927         * modules/cloexec (Configure.ac): Set witness.
40928         * modules/dup2-tests (Depends-on): Drop cloexec.
40929         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40930         not present.
40931         Suggested by Bruno Haible.
40932
40933 2009-12-26  Bruno Haible  <bruno@clisp.org>
40934
40935         Remove an unneeded dependency.
40936         * modules/fseterr (Depends-on): Remove dup2.
40937
40938 2009-12-26  Eric Blake  <ebb9@byu.net>
40939
40940         tests: use macros.h in more places
40941         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40942         (ASSERT_STREAM): Provide default of stderr.
40943         * tests/test-dirent-safer.c: Include macros.h, using alternate
40944         stream for assertions.
40945         * tests/test-dup-safer.c: Likewise.
40946         * tests/test-freopen-safer.c: Likewise.
40947         * tests/test-getopt.c: Likewise.
40948         * tests/test-openat-safer.c: Likewise.
40949         * tests/test-pipe.c: Likewise.
40950         * tests/test-popen-safer.c: Likewise.
40951         * modules/dirent-safer-tests (Files): Include macros.h.
40952         * modules/unistd-safer-tests (Files): Likewise.
40953         * modules/freopen-safer-tests (Files): Likewise.
40954         * modules/getopt-posix-tests (Files): Likewise.
40955         * modules/openat-safer-tests (Files): Likewise.
40956         * modules/pipe-tests (Files): Likewise.
40957
40958 2009-12-26  Bruno Haible  <bruno@clisp.org>
40959
40960         javacomp: Portability fix.
40961         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40962         that it also works on Solaris.
40963
40964 2009-12-26  Bruno Haible  <bruno@clisp.org>
40965
40966         localename: Fix storage allocation of gl_locale_name_thread's result.
40967         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40968         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40969         all platforms that have 'uselocale'.
40970         (gl_locale_name_thread_unsafe): New function, extracted from
40971         gl_locale_name_thread.
40972         (gl_locale_name_thread): Call struniq on all platforms that have
40973         'uselocale'.
40974         * tests/test-localename.c (test_locale_name_thread): Check that the
40975         resulting strings are permanently allocated.
40976         * modules/localename-tests (Depends-on): Add strdup.
40977
40978 2009-12-26  Bruno Haible  <bruno@clisp.org>
40979
40980         * tests/test-localename.c (categories): Fill in the strings.
40981
40982 2009-12-26  Jim Meyering  <meyering@redhat.com>
40983
40984         isdir: complete the removal of m4/isdir.m4
40985         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40986
40987         isdir: clean up, since at least grep still uses it
40988         * lib/isdir.c: Include "isdir.h".
40989         (S_ISDIR): Remove now-unneeded definition.
40990         * modules/isdir (Files): Add lib/isdir.h.
40991         * lib/isdir.h: New file, with declaration.
40992         * m4/isdir.m4: Remove file -- unneeded.
40993
40994 2009-12-25  Bruno Haible  <bruno@clisp.org>
40995
40996         selinux-h: Make generated .h files standalone.
40997         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40998         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40999         * lib/se-selinux.in.h: Likewise.
41000         * modules/selinux-h (Depends-on): Add unused-parameter.
41001         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
41002         selinux/selinux.h and selinux/context.h.
41003         Suggested by Eric Blake.
41004
41005 2009-12-25  Bruno Haible  <bruno@clisp.org>
41006
41007         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
41008         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
41009         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
41010         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
41011         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
41012
41013 2009-12-24  Bruno Haible  <bruno@clisp.org>
41014
41015         openat: Fix warning.
41016         * lib/openat-proc.c: Include <unistd.h>.
41017
41018 2009-12-24  Bruno Haible  <bruno@clisp.org>
41019
41020         New module 'unused-parameter'.
41021         * build-aux/unused-parameter.h: New file, extracted from earlier
41022         gnulib-common.m4.
41023         * modules/unused-parameter: New file.
41024         * lib/unistr.h: Include unused-parameter.h.
41025         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
41026         _GL_UNUSED.
41027         * modules/unistr/base (Depends-on): Add unused-parameter.
41028
41029 2009-12-24  Bruno Haible  <bruno@clisp.org>
41030
41031         Add missing dependencies to 'extensions' module.
41032         * m4/extensions.m4: Add comment.
41033         * modules/accept4 (Depends-on): Add extensions.
41034         * modules/dup3 (Depends-on): Likewise.
41035         * modules/fcntl (Depends-on): Likewise.
41036         * modules/futimens (Depends-on): Likewise.
41037         * modules/mknod (Depends-on): Likewise.
41038         * modules/pipe2 (Depends-on): Likewise.
41039         * modules/stat-time (Depends-on): Likewise.
41040         * modules/strcasestr-simple (Depends-on): Likewise.
41041         * modules/strsignal (Depends-on): Likewise.
41042         * modules/utimensat (Depends-on): Likewise.
41043         * modules/localcharset (Depends-on): Likewise. Needed because of
41044         gl_FCNTL_O_FLAGS.
41045         * modules/wcrtomb (Depends-on): Likewise. Needed because of
41046         AC_TYPE_MBSTATE_T.
41047         * modules/wcsnrtombs (Depends-on): Likewise.
41048         * modules/wcsrtombs (Depends-on): Likewise.
41049
41050 2009-12-24  Bruno Haible  <bruno@clisp.org>
41051
41052         binary-io: Avoid gcc warning due to SET_BINARY.
41053         * lib/binary-io.h (SET_BINARY): Cast the result to void.
41054         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
41055
41056 2009-12-24  Bruno Haible  <bruno@clisp.org>
41057
41058         Avoid future namespace pollution on glibc systems.
41059         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
41060         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
41061         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
41062         glibc systems.
41063
41064 2009-12-24  Bruno Haible  <bruno@clisp.org>
41065
41066         Refactor common macros used in tests.
41067         * tests/macros.h: New file.
41068         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
41069         and/or <stdlib.h>, if appropriate.
41070         (ASSERT, SIZEOF): Remove macros.
41071         * tests/test-areadlink-with-size.c: Likewise.
41072         * tests/test-areadlinkat.c: Likewise.
41073         * tests/test-areadlinkat-with-size.c: Likewise.
41074         * tests/test-argmatch.c: Likewise.
41075         * tests/test-argv-iter.c: Likewise.
41076         * tests/test-array-mergesort.c: Likewise.
41077         * tests/test-array_list.c: Likewise.
41078         * tests/test-array_oset.c: Likewise.
41079         * tests/test-avltree_list.c: Likewise.
41080         * tests/test-avltree_oset.c: Likewise.
41081         * tests/test-avltreehash_list.c: Likewise.
41082         * tests/test-base64.c: Likewise.
41083         * tests/test-binary-io.c: Likewise.
41084         * tests/test-bitrotate.c: Likewise.
41085         * tests/test-btowc.c: Likewise.
41086         * tests/test-byteswap.c: Likewise.
41087         * tests/test-c-ctype.c: Likewise.
41088         * tests/test-c-stack.c: Likewise.
41089         * tests/test-c-strcasecmp.c: Likewise.
41090         * tests/test-c-strcasestr.c: Likewise.
41091         * tests/test-c-strncasecmp.c: Likewise.
41092         * tests/test-c-strstr.c: Likewise.
41093         * tests/test-canonicalize-lgpl.c: Likewise.
41094         * tests/test-canonicalize.c: Likewise.
41095         * tests/test-carray_list.c: Likewise.
41096         * tests/test-ceilf1.c: Likewise.
41097         * tests/test-ceilf2.c: Likewise.
41098         * tests/test-ceill.c: Likewise.
41099         * tests/test-chown.c: Likewise.
41100         * tests/test-cloexec.c: Likewise.
41101         * tests/test-copy-acl.c: Likewise.
41102         * tests/test-copy-file.c: Likewise.
41103         * tests/test-count-one-bits.c: Likewise.
41104         * tests/test-dprintf-posix.c: Likewise.
41105         * tests/test-dup2.c: Likewise.
41106         * tests/test-dup3.c: Likewise.
41107         * tests/test-duplocale.c: Likewise.
41108         * tests/test-fbufmode.c: Likewise.
41109         * tests/test-fchdir.c: Likewise.
41110         * tests/test-fchownat.c: Likewise.
41111         * tests/test-fcntl-safer.c: Likewise.
41112         * tests/test-fcntl.c: Likewise.
41113         * tests/test-fdopendir.c: Likewise.
41114         * tests/test-fdutimensat.c: Likewise.
41115         * tests/test-fflush2.c: Likewise.
41116         * tests/test-file-has-acl.c: Likewise.
41117         * tests/test-filevercmp.c: Likewise.
41118         * tests/test-flock.c: Likewise.
41119         * tests/test-floorf1.c: Likewise.
41120         * tests/test-floorf2.c: Likewise.
41121         * tests/test-floorl.c: Likewise.
41122         * tests/test-fnmatch.c: Likewise.
41123         * tests/test-fopen.h: Likewise.
41124         * tests/test-fpending.c: Likewise.
41125         * tests/test-fprintf-posix.c: Likewise.
41126         * tests/test-fpurge.c: Likewise.
41127         * tests/test-freadable.c: Likewise.
41128         * tests/test-freadahead.c: Likewise.
41129         * tests/test-freading.c: Likewise.
41130         * tests/test-freadptr.c: Likewise.
41131         * tests/test-freadptr2.c: Likewise.
41132         * tests/test-freadseek.c: Likewise.
41133         * tests/test-freopen.c: Likewise.
41134         * tests/test-frexp.c: Likewise.
41135         * tests/test-frexpl.c: Likewise.
41136         * tests/test-fseek.c: Likewise.
41137         * tests/test-fseeko.c: Likewise.
41138         * tests/test-fstatat.c: Likewise.
41139         * tests/test-fstrcmp.c: Likewise.
41140         * tests/test-fsync.c: Likewise.
41141         * tests/test-ftell.c: Likewise.
41142         * tests/test-ftello.c: Likewise.
41143         * tests/test-func.c: Likewise.
41144         * tests/test-futimens.c: Likewise.
41145         * tests/test-fwritable.c: Likewise.
41146         * tests/test-fwriting.c: Likewise.
41147         * tests/test-getcwd.c: Likewise.
41148         * tests/test-getdate.c: Likewise.
41149         * tests/test-getdelim.c: Likewise.
41150         * tests/test-getdtablesize.c: Likewise.
41151         * tests/test-getgroups.c: Likewise.
41152         * tests/test-getline.c: Likewise.
41153         * tests/test-getndelim2.c: Likewise.
41154         * tests/test-glob.c: Likewise.
41155         * tests/test-hash.c: Likewise.
41156         * tests/test-i-ring.c: Likewise.
41157         * tests/test-iconv-utf.c: Likewise.
41158         * tests/test-iconv.c: Likewise.
41159         * tests/test-idpriv-drop.c: Likewise.
41160         * tests/test-idpriv-droptemp.c: Likewise.
41161         * tests/test-inet_ntop.c: Likewise.
41162         * tests/test-inet_pton.c: Likewise.
41163         * tests/test-isblank.c: Likewise.
41164         * tests/test-isfinite.c: Likewise.
41165         * tests/test-isinf.c: Likewise.
41166         * tests/test-isnan.c: Likewise.
41167         * tests/test-isnand.h: Likewise.
41168         * tests/test-isnanf.h: Likewise.
41169         * tests/test-isnanl.h: Likewise.
41170         * tests/test-lchown.c: Likewise.
41171         * tests/test-ldexpl.c: Likewise.
41172         * tests/test-link.c: Likewise.
41173         * tests/test-linkat.c: Likewise.
41174         * tests/test-linked_list.c: Likewise.
41175         * tests/test-linkedhash_list.c: Likewise.
41176         * tests/test-localename.c: Likewise.
41177         * tests/test-lseek.c: Likewise.
41178         * tests/test-lstat.c: Likewise.
41179         * tests/test-mbmemcasecmp.c: Likewise.
41180         * tests/test-mbmemcasecoll.c: Likewise.
41181         * tests/test-mbrtowc.c: Likewise.
41182         * tests/test-mbscasecmp.c: Likewise.
41183         * tests/test-mbscasestr1.c: Likewise.
41184         * tests/test-mbscasestr2.c: Likewise.
41185         * tests/test-mbscasestr3.c: Likewise.
41186         * tests/test-mbscasestr4.c: Likewise.
41187         * tests/test-mbschr.c: Likewise.
41188         * tests/test-mbscspn.c: Likewise.
41189         * tests/test-mbsinit.c: Likewise.
41190         * tests/test-mbsncasecmp.c: Likewise.
41191         * tests/test-mbsnrtowcs.c: Likewise.
41192         * tests/test-mbspbrk.c: Likewise.
41193         * tests/test-mbspcasecmp.c: Likewise.
41194         * tests/test-mbsrchr.c: Likewise.
41195         * tests/test-mbsrtowcs.c: Likewise.
41196         * tests/test-mbsspn.c: Likewise.
41197         * tests/test-mbsstr1.c: Likewise.
41198         * tests/test-mbsstr2.c: Likewise.
41199         * tests/test-mbsstr3.c: Likewise.
41200         * tests/test-memchr.c: Likewise.
41201         * tests/test-memchr2.c: Likewise.
41202         * tests/test-memcmp.c: Likewise.
41203         * tests/test-memmem.c: Likewise.
41204         * tests/test-memrchr.c: Likewise.
41205         * tests/test-mkdir.c: Likewise.
41206         * tests/test-mkdirat.c: Likewise.
41207         * tests/test-mkfifo.c: Likewise.
41208         * tests/test-mkfifoat.c: Likewise.
41209         * tests/test-mknod.c: Likewise.
41210         * tests/test-nanosleep.c: Likewise.
41211         * tests/test-nl_langinfo.c: Likewise.
41212         * tests/test-obstack-printf.c: Likewise.
41213         * tests/test-open.c: Likewise.
41214         * tests/test-openat.c: Likewise.
41215         * tests/test-pipe-filter-gi1.c: Likewise.
41216         * tests/test-pipe-filter-gi2-main.c: Likewise.
41217         * tests/test-pipe-filter-ii1.c: Likewise.
41218         * tests/test-pipe-filter-ii2-main.c: Likewise.
41219         * tests/test-pipe2.c: Likewise.
41220         * tests/test-popen.h: Likewise.
41221         * tests/test-posixtm.c: Likewise.
41222         * tests/test-pread.c: Likewise.
41223         * tests/test-printf-frexp.c: Likewise.
41224         * tests/test-printf-frexpl.c: Likewise.
41225         * tests/test-printf-posix.c: Likewise.
41226         * tests/test-priv-set.c: Likewise.
41227         * tests/test-quotearg.c: Likewise.
41228         * tests/test-random_r.c: Likewise.
41229         * tests/test-rawmemchr.c: Likewise.
41230         * tests/test-rbtree_list.c: Likewise.
41231         * tests/test-rbtree_oset.c: Likewise.
41232         * tests/test-rbtreehash_list.c: Likewise.
41233         * tests/test-readlink.c: Likewise.
41234         * tests/test-remove.c: Likewise.
41235         * tests/test-rename.c: Likewise.
41236         * tests/test-renameat.c: Likewise.
41237         * tests/test-rmdir.c: Likewise.
41238         * tests/test-round1.c: Likewise.
41239         * tests/test-roundf1.c: Likewise.
41240         * tests/test-roundl.c: Likewise.
41241         * tests/test-safe-alloc.c: Likewise.
41242         * tests/test-sameacls.c: Likewise.
41243         * tests/test-set-mode-acl.c: Likewise.
41244         * tests/test-setenv.c: Likewise.
41245         * tests/test-sigaction.c: Likewise.
41246         * tests/test-signbit.c: Likewise.
41247         * tests/test-sleep.c: Likewise.
41248         * tests/test-snprintf-posix.c: Likewise.
41249         * tests/test-snprintf.c: Likewise.
41250         * tests/test-sprintf-posix.c: Likewise.
41251         * tests/test-stat-time.c: Likewise.
41252         * tests/test-stat.c: Likewise.
41253         * tests/test-strcasestr.c: Likewise.
41254         * tests/test-strchrnul.c: Likewise.
41255         * tests/test-strerror.c: Likewise.
41256         * tests/test-striconv.c: Likewise.
41257         * tests/test-striconveh.c: Likewise.
41258         * tests/test-striconveha.c: Likewise.
41259         * tests/test-strsignal.c: Likewise.
41260         * tests/test-strstr.c: Likewise.
41261         * tests/test-strtod.c: Likewise.
41262         * tests/test-strverscmp.c: Likewise.
41263         * tests/test-symlink.c: Likewise.
41264         * tests/test-symlinkat.c: Likewise.
41265         * tests/test-trunc1.c: Likewise.
41266         * tests/test-trunc2.c: Likewise.
41267         * tests/test-truncf1.c: Likewise.
41268         * tests/test-truncf2.c: Likewise.
41269         * tests/test-truncl.c: Likewise.
41270         * tests/test-uname.c: Likewise.
41271         * tests/test-unlink.c: Likewise.
41272         * tests/test-unlinkat.c: Likewise.
41273         * tests/test-unsetenv.c: Likewise.
41274         * tests/test-usleep.c: Likewise.
41275         * tests/test-utimens.c: Likewise.
41276         * tests/test-utimensat.c: Likewise.
41277         * tests/test-vasnprintf-posix.c: Likewise.
41278         * tests/test-vasnprintf-posix2.c: Likewise.
41279         * tests/test-vasnprintf.c: Likewise.
41280         * tests/test-vasprintf-posix.c: Likewise.
41281         * tests/test-vasprintf.c: Likewise.
41282         * tests/test-vdprintf-posix.c: Likewise.
41283         * tests/test-vfprintf-posix.c: Likewise.
41284         * tests/test-vprintf-posix.c: Likewise.
41285         * tests/test-vsnprintf-posix.c: Likewise.
41286         * tests/test-vsnprintf.c: Likewise.
41287         * tests/test-vsprintf-posix.c: Likewise.
41288         * tests/test-wcrtomb.c: Likewise.
41289         * tests/test-wcsnrtombs.c: Likewise.
41290         * tests/test-wcsrtombs.c: Likewise.
41291         * tests/test-wctype.c: Likewise.
41292         * tests/test-wcwidth.c: Likewise.
41293         * tests/test-xfprintf-posix.c: Likewise.
41294         * tests/test-xmemdup0.c: Likewise.
41295         * tests/test-xprintf-posix.c: Likewise.
41296         * tests/test-xvasprintf.c: Likewise.
41297         * tests/unicase/test-locale-language.c: Likewise.
41298         * tests/unicase/test-mapping-part1.h: Likewise.
41299         * tests/unicase/test-predicate-part1.h: Likewise.
41300         * tests/unicase/test-u8-casecmp.c: Likewise.
41301         * tests/unicase/test-u8-casecoll.c: Likewise.
41302         * tests/unicase/test-u8-casefold.c: Likewise.
41303         * tests/unicase/test-u8-is-cased.c: Likewise.
41304         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41305         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41306         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41307         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41308         * tests/unicase/test-u8-tolower.c: Likewise.
41309         * tests/unicase/test-u8-totitle.c: Likewise.
41310         * tests/unicase/test-u8-toupper.c: Likewise.
41311         * tests/unicase/test-u16-casecmp.c: Likewise.
41312         * tests/unicase/test-u16-casecoll.c: Likewise.
41313         * tests/unicase/test-u16-casefold.c: Likewise.
41314         * tests/unicase/test-u16-is-cased.c: Likewise.
41315         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41316         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41317         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41318         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41319         * tests/unicase/test-u16-tolower.c: Likewise.
41320         * tests/unicase/test-u16-totitle.c: Likewise.
41321         * tests/unicase/test-u16-toupper.c: Likewise.
41322         * tests/unicase/test-u32-casecmp.c: Likewise.
41323         * tests/unicase/test-u32-casecoll.c: Likewise.
41324         * tests/unicase/test-u32-casefold.c: Likewise.
41325         * tests/unicase/test-u32-is-cased.c: Likewise.
41326         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41327         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41328         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41329         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41330         * tests/unicase/test-u32-tolower.c: Likewise.
41331         * tests/unicase/test-u32-totitle.c: Likewise.
41332         * tests/unicase/test-u32-toupper.c: Likewise.
41333         * tests/unicase/test-ulc-casecmp.c: Likewise.
41334         * tests/unicase/test-ulc-casecoll.c: Likewise.
41335         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41336         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41337         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41338         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41339         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41340         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41341         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41342         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41343         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41344         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41345         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41346         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41347         * tests/unictype/test-bidi_byname.c: Likewise.
41348         * tests/unictype/test-bidi_name.c: Likewise.
41349         * tests/unictype/test-bidi_of.c: Likewise.
41350         * tests/unictype/test-bidi_test.c: Likewise.
41351         * tests/unictype/test-block_list.c: Likewise.
41352         * tests/unictype/test-block_of.c: Likewise.
41353         * tests/unictype/test-block_test.c: Likewise.
41354         * tests/unictype/test-categ_and.c: Likewise.
41355         * tests/unictype/test-categ_and_not.c: Likewise.
41356         * tests/unictype/test-categ_byname.c: Likewise.
41357         * tests/unictype/test-categ_name.c: Likewise.
41358         * tests/unictype/test-categ_none.c: Likewise.
41359         * tests/unictype/test-categ_of.c: Likewise.
41360         * tests/unictype/test-categ_or.c: Likewise.
41361         * tests/unictype/test-categ_test_withtable.c: Likewise.
41362         * tests/unictype/test-combining.c: Likewise.
41363         * tests/unictype/test-decdigit.c: Likewise.
41364         * tests/unictype/test-digit.c: Likewise.
41365         * tests/unictype/test-mirror.c: Likewise.
41366         * tests/unictype/test-numeric.c: Likewise.
41367         * tests/unictype/test-pr_byname.c: Likewise.
41368         * tests/unictype/test-pr_test.c: Likewise.
41369         * tests/unictype/test-predicate-part1.h: Likewise.
41370         * tests/unictype/test-scripts.c: Likewise.
41371         * tests/unictype/test-sy_c_ident.c: Likewise.
41372         * tests/unictype/test-sy_java_ident.c: Likewise.
41373         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41374         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41375         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41376         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41377         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41378         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41379         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41380         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41381         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41382         * tests/uninorm/test-compat-decomposition.c: Likewise.
41383         * tests/uninorm/test-composition.c: Likewise.
41384         * tests/uninorm/test-decomposing-form.c: Likewise.
41385         * tests/uninorm/test-decomposition.c: Likewise.
41386         * tests/uninorm/test-u8-nfc.c: Likewise.
41387         * tests/uninorm/test-u8-nfd.c: Likewise.
41388         * tests/uninorm/test-u8-nfkc.c: Likewise.
41389         * tests/uninorm/test-u8-nfkd.c: Likewise.
41390         * tests/uninorm/test-u8-normcmp.c: Likewise.
41391         * tests/uninorm/test-u8-normcoll.c: Likewise.
41392         * tests/uninorm/test-u16-nfc.c: Likewise.
41393         * tests/uninorm/test-u16-nfd.c: Likewise.
41394         * tests/uninorm/test-u16-nfkc.c: Likewise.
41395         * tests/uninorm/test-u16-nfkd.c: Likewise.
41396         * tests/uninorm/test-u16-normcmp.c: Likewise.
41397         * tests/uninorm/test-u16-normcoll.c: Likewise.
41398         * tests/uninorm/test-u32-nfc.c: Likewise.
41399         * tests/uninorm/test-u32-nfd.c: Likewise.
41400         * tests/uninorm/test-u32-nfkc.c: Likewise.
41401         * tests/uninorm/test-u32-nfkd.c: Likewise.
41402         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41403         * tests/uninorm/test-u32-normcmp.c: Likewise.
41404         * tests/uninorm/test-u32-normcoll.c: Likewise.
41405         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41406         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41407         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41408         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41409         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41410         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41411         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41412         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41413         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41414         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41415         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41416         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41417         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41418         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41419         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41420         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41421         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41422         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41423         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41424         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41425         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41426         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41427         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41428         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41429         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41430         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41431         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41432         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41433         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41434         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41435         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41436         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41437         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41438         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41439         * tests/uniwidth/test-u8-width.c: Likewise.
41440         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41441         * tests/uniwidth/test-u16-width.c: Likewise.
41442         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41443         * tests/uniwidth/test-u32-width.c: Likewise.
41444         * tests/uniwidth/test-uc_width.c: Likewise.
41445         * tests/uniwidth/test-uc_width2.c: Likewise.
41446         * modules/acl-tests (Files): Add tests/macros.h.
41447         * modules/areadlink-tests (Files): Likewise.
41448         * modules/areadlink-with-size-tests (Files): Likewise.
41449         * modules/areadlinkat-tests (Files): Likewise.
41450         * modules/areadlinkat-with-size-tests (Files): Likewise.
41451         * modules/argmatch-tests (Files): Likewise.
41452         * modules/argv-iter-tests (Files): Likewise.
41453         * modules/array-list-tests (Files): Likewise.
41454         * modules/array-mergesort-tests (Files): Likewise.
41455         * modules/array-oset-tests (Files): Likewise.
41456         * modules/avltree-list-tests (Files): Likewise.
41457         * modules/avltree-oset-tests (Files): Likewise.
41458         * modules/avltreehash-list-tests (Files): Likewise.
41459         * modules/base64-tests (Files): Likewise.
41460         * modules/binary-io-tests (Files): Likewise.
41461         * modules/bitrotate-tests (Files): Likewise.
41462         * modules/btowc-tests (Files): Likewise.
41463         * modules/byteswap-tests (Files): Likewise.
41464         * modules/c-ctype-tests (Files): Likewise.
41465         * modules/c-stack-tests (Files): Likewise.
41466         * modules/c-strcase-tests (Files): Likewise.
41467         * modules/c-strcasestr-tests (Files): Likewise.
41468         * modules/c-strstr-tests (Files): Likewise.
41469         * modules/canonicalize-lgpl-tests (Files): Likewise.
41470         * modules/canonicalize-tests (Files): Likewise.
41471         * modules/carray-list-tests (Files): Likewise.
41472         * modules/ceilf-tests (Files): Likewise.
41473         * modules/ceill-tests (Files): Likewise.
41474         * modules/chown-tests (Files): Likewise.
41475         * modules/cloexec-tests (Files): Likewise.
41476         * modules/copy-file-tests (Files): Likewise.
41477         * modules/count-one-bits-tests (Files): Likewise.
41478         * modules/dprintf-posix-tests (Files): Likewise.
41479         * modules/dup2-tests (Files): Likewise.
41480         * modules/dup3-tests (Files): Likewise.
41481         * modules/duplocale-tests (Files): Likewise.
41482         * modules/fbufmode-tests (Files): Likewise.
41483         * modules/fchdir-tests (Files): Likewise.
41484         * modules/fcntl-safer-tests (Files): Likewise.
41485         * modules/fcntl-tests (Files): Likewise.
41486         * modules/fdopendir-tests (Files): Likewise.
41487         * modules/fdutimensat-tests (Files): Likewise.
41488         * modules/fflush-tests (Files): Likewise.
41489         * modules/filevercmp-tests (Files): Likewise.
41490         * modules/flock-tests (Files): Likewise.
41491         * modules/floorf-tests (Files): Likewise.
41492         * modules/floorl-tests (Files): Likewise.
41493         * modules/fnmatch-tests (Files): Likewise.
41494         * modules/fopen-safer-tests (Files): Likewise.
41495         * modules/fopen-tests (Files): Likewise.
41496         * modules/fpending-tests (Files): Likewise.
41497         * modules/fprintf-posix-tests (Files): Likewise.
41498         * modules/fpurge-tests (Files): Likewise.
41499         * modules/freadable-tests (Files): Likewise.
41500         * modules/freadahead-tests (Files): Likewise.
41501         * modules/freading-tests (Files): Likewise.
41502         * modules/freadptr-tests (Files): Likewise.
41503         * modules/freadseek-tests (Files): Likewise.
41504         * modules/freopen-tests (Files): Likewise.
41505         * modules/frexp-nolibm-tests (Files): Likewise.
41506         * modules/frexp-tests (Files): Likewise.
41507         * modules/frexpl-nolibm-tests (Files): Likewise.
41508         * modules/frexpl-tests (Files): Likewise.
41509         * modules/fseek-tests (Files): Likewise.
41510         * modules/fseeko-tests (Files): Likewise.
41511         * modules/fstrcmp-tests (Files): Likewise.
41512         * modules/fsync-tests (Files): Likewise.
41513         * modules/ftell-tests (Files): Likewise.
41514         * modules/ftello-tests (Files): Likewise.
41515         * modules/func-tests (Files): Likewise.
41516         * modules/futimens-tests (Files): Likewise.
41517         * modules/fwritable-tests (Files): Likewise.
41518         * modules/fwriting-tests (Files): Likewise.
41519         * modules/getcwd-tests (Files): Likewise.
41520         * modules/getdate-tests (Files): Likewise.
41521         * modules/getdelim-tests (Files): Likewise.
41522         * modules/getdtablesize-tests (Files): Likewise.
41523         * modules/getgroups-tests (Files): Likewise.
41524         * modules/getline-tests (Files): Likewise.
41525         * modules/getndelim2-tests (Files): Likewise.
41526         * modules/glob-tests (Files): Likewise.
41527         * modules/hash-tests (Files): Likewise.
41528         * modules/i-ring-tests (Files): Likewise.
41529         * modules/iconv-tests (Files): Likewise.
41530         * modules/iconv_open-utf-tests (Files): Likewise.
41531         * modules/idpriv-drop-tests (Files): Likewise.
41532         * modules/idpriv-droptemp-tests (Files): Likewise.
41533         * modules/inet_ntop-tests (Files): Likewise.
41534         * modules/inet_pton-tests (Files): Likewise.
41535         * modules/isblank-tests (Files): Likewise.
41536         * modules/isfinite-tests (Files): Likewise.
41537         * modules/isinf-tests (Files): Likewise.
41538         * modules/isnan-tests (Files): Likewise.
41539         * modules/isnand-nolibm-tests (Files): Likewise.
41540         * modules/isnand-tests (Files): Likewise.
41541         * modules/isnanf-nolibm-tests (Files): Likewise.
41542         * modules/isnanf-tests (Files): Likewise.
41543         * modules/isnanl-nolibm-tests (Files): Likewise.
41544         * modules/isnanl-tests (Files): Likewise.
41545         * modules/lchown-tests (Files): Likewise.
41546         * modules/ldexpl-tests (Files): Likewise.
41547         * modules/link-tests (Files): Likewise.
41548         * modules/linkat-tests (Files): Likewise.
41549         * modules/linked-list-tests (Files): Likewise.
41550         * modules/linkedhash-list-tests (Files): Likewise.
41551         * modules/localename-tests (Files): Likewise.
41552         * modules/lseek-tests (Files): Likewise.
41553         * modules/lstat-tests (Files): Likewise.
41554         * modules/mbmemcasecmp-tests (Files): Likewise.
41555         * modules/mbmemcasecoll-tests (Files): Likewise.
41556         * modules/mbrtowc-tests (Files): Likewise.
41557         * modules/mbscasecmp-tests (Files): Likewise.
41558         * modules/mbscasestr-tests (Files): Likewise.
41559         * modules/mbschr-tests (Files): Likewise.
41560         * modules/mbscspn-tests (Files): Likewise.
41561         * modules/mbsinit-tests (Files): Likewise.
41562         * modules/mbsncasecmp-tests (Files): Likewise.
41563         * modules/mbsnrtowcs-tests (Files): Likewise.
41564         * modules/mbspbrk-tests (Files): Likewise.
41565         * modules/mbspcasecmp-tests (Files): Likewise.
41566         * modules/mbsrchr-tests (Files): Likewise.
41567         * modules/mbsrtowcs-tests (Files): Likewise.
41568         * modules/mbsspn-tests (Files): Likewise.
41569         * modules/mbsstr-tests (Files): Likewise.
41570         * modules/memchr-tests (Files): Likewise.
41571         * modules/memchr2-tests (Files): Likewise.
41572         * modules/memcmp-tests (Files): Likewise.
41573         * modules/memmem-tests (Files): Likewise.
41574         * modules/memrchr-tests (Files): Likewise.
41575         * modules/mkdir-tests (Files): Likewise.
41576         * modules/mkfifo-tests (Files): Likewise.
41577         * modules/mkfifoat-tests (Files): Likewise.
41578         * modules/mknod-tests (Files): Likewise.
41579         * modules/nanosleep-tests (Files): Likewise.
41580         * modules/nl_langinfo-tests (Files): Likewise.
41581         * modules/obstack-printf-tests (Files): Likewise.
41582         * modules/open-tests (Files): Likewise.
41583         * modules/openat-tests (Files): Likewise.
41584         * modules/pipe-filter-gi-tests (Files): Likewise.
41585         * modules/pipe-filter-ii-tests (Files): Likewise.
41586         * modules/pipe2-tests (Files): Likewise.
41587         * modules/popen-safer-tests (Files): Likewise.
41588         * modules/popen-tests (Files): Likewise.
41589         * modules/posixtm-tests (Files): Likewise.
41590         * modules/pread-tests (Files): Likewise.
41591         * modules/printf-frexp-tests (Files): Likewise.
41592         * modules/printf-frexpl-tests (Files): Likewise.
41593         * modules/printf-posix-tests (Files): Likewise.
41594         * modules/priv-set-tests (Files): Likewise.
41595         * modules/quotearg-tests (Files): Likewise.
41596         * modules/random_r-tests (Files): Likewise.
41597         * modules/rawmemchr-tests (Files): Likewise.
41598         * modules/rbtree-list-tests (Files): Likewise.
41599         * modules/rbtree-oset-tests (Files): Likewise.
41600         * modules/rbtreehash-list-tests (Files): Likewise.
41601         * modules/readlink-tests (Files): Likewise.
41602         * modules/remove-tests (Files): Likewise.
41603         * modules/rename-tests (Files): Likewise.
41604         * modules/renameat-tests (Files): Likewise.
41605         * modules/rmdir-tests (Files): Likewise.
41606         * modules/round-tests (Files): Likewise.
41607         * modules/roundf-tests (Files): Likewise.
41608         * modules/roundl-tests (Files): Likewise.
41609         * modules/safe-alloc-tests (Files): Likewise.
41610         * modules/setenv-tests (Files): Likewise.
41611         * modules/sigaction-tests (Files): Likewise.
41612         * modules/signbit-tests (Files): Likewise.
41613         * modules/sleep-tests (Files): Likewise.
41614         * modules/snprintf-posix-tests (Files): Likewise.
41615         * modules/snprintf-tests (Files): Likewise.
41616         * modules/sprintf-posix-tests (Files): Likewise.
41617         * modules/stat-tests (Files): Likewise.
41618         * modules/stat-time-tests (Files): Likewise.
41619         * modules/strcasestr-tests (Files): Likewise.
41620         * modules/strchrnul-tests (Files): Likewise.
41621         * modules/strerror-tests (Files): Likewise.
41622         * modules/striconv-tests (Files): Likewise.
41623         * modules/striconveh-tests (Files): Likewise.
41624         * modules/striconveha-tests (Files): Likewise.
41625         * modules/strsignal-tests (Files): Likewise.
41626         * modules/strstr-tests (Files): Likewise.
41627         * modules/strtod-tests (Files): Likewise.
41628         * modules/strverscmp-tests (Files): Likewise.
41629         * modules/symlink-tests (Files): Likewise.
41630         * modules/symlinkat-tests (Files): Likewise.
41631         * modules/trunc-tests (Files): Likewise.
41632         * modules/truncf-tests (Files): Likewise.
41633         * modules/truncl-tests (Files): Likewise.
41634         * modules/uname-tests (Files): Likewise.
41635         * modules/unicase/cased-tests (Files): Likewise.
41636         * modules/unicase/ignorable-tests (Files): Likewise.
41637         * modules/unicase/locale-language-tests (Files): Likewise.
41638         * modules/unicase/tolower-tests (Files): Likewise.
41639         * modules/unicase/totitle-tests (Files): Likewise.
41640         * modules/unicase/toupper-tests (Files): Likewise.
41641         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41642         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41643         * modules/unicase/u8-casefold-tests (Files): Likewise.
41644         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41645         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41646         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41647         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41648         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41649         * modules/unicase/u8-tolower-tests (Files): Likewise.
41650         * modules/unicase/u8-totitle-tests (Files): Likewise.
41651         * modules/unicase/u8-toupper-tests (Files): Likewise.
41652         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41653         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41654         * modules/unicase/u16-casefold-tests (Files): Likewise.
41655         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41656         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41657         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41658         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41659         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41660         * modules/unicase/u16-tolower-tests (Files): Likewise.
41661         * modules/unicase/u16-totitle-tests (Files): Likewise.
41662         * modules/unicase/u16-toupper-tests (Files): Likewise.
41663         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41664         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41665         * modules/unicase/u32-casefold-tests (Files): Likewise.
41666         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41667         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41668         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41669         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41670         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41671         * modules/unicase/u32-tolower-tests (Files): Likewise.
41672         * modules/unicase/u32-totitle-tests (Files): Likewise.
41673         * modules/unicase/u32-toupper-tests (Files): Likewise.
41674         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41675         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41676         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41677         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41678         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41679         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41680         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41681         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41682         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41683         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41684         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41685         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41686         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41687         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41688         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41689         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41690         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41691         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41692         * modules/unictype/block-list-tests (Files): Likewise.
41693         * modules/unictype/block-of-tests (Files): Likewise.
41694         * modules/unictype/block-test-tests (Files): Likewise.
41695         * modules/unictype/category-C-tests (Files): Likewise.
41696         * modules/unictype/category-Cc-tests (Files): Likewise.
41697         * modules/unictype/category-Cf-tests (Files): Likewise.
41698         * modules/unictype/category-Cn-tests (Files): Likewise.
41699         * modules/unictype/category-Co-tests (Files): Likewise.
41700         * modules/unictype/category-Cs-tests (Files): Likewise.
41701         * modules/unictype/category-L-tests (Files): Likewise.
41702         * modules/unictype/category-Ll-tests (Files): Likewise.
41703         * modules/unictype/category-Lm-tests (Files): Likewise.
41704         * modules/unictype/category-Lo-tests (Files): Likewise.
41705         * modules/unictype/category-Lt-tests (Files): Likewise.
41706         * modules/unictype/category-Lu-tests (Files): Likewise.
41707         * modules/unictype/category-M-tests (Files): Likewise.
41708         * modules/unictype/category-Mc-tests (Files): Likewise.
41709         * modules/unictype/category-Me-tests (Files): Likewise.
41710         * modules/unictype/category-Mn-tests (Files): Likewise.
41711         * modules/unictype/category-N-tests (Files): Likewise.
41712         * modules/unictype/category-Nd-tests (Files): Likewise.
41713         * modules/unictype/category-Nl-tests (Files): Likewise.
41714         * modules/unictype/category-No-tests (Files): Likewise.
41715         * modules/unictype/category-P-tests (Files): Likewise.
41716         * modules/unictype/category-Pc-tests (Files): Likewise.
41717         * modules/unictype/category-Pd-tests (Files): Likewise.
41718         * modules/unictype/category-Pe-tests (Files): Likewise.
41719         * modules/unictype/category-Pf-tests (Files): Likewise.
41720         * modules/unictype/category-Pi-tests (Files): Likewise.
41721         * modules/unictype/category-Po-tests (Files): Likewise.
41722         * modules/unictype/category-Ps-tests (Files): Likewise.
41723         * modules/unictype/category-S-tests (Files): Likewise.
41724         * modules/unictype/category-Sc-tests (Files): Likewise.
41725         * modules/unictype/category-Sk-tests (Files): Likewise.
41726         * modules/unictype/category-Sm-tests (Files): Likewise.
41727         * modules/unictype/category-So-tests (Files): Likewise.
41728         * modules/unictype/category-Z-tests (Files): Likewise.
41729         * modules/unictype/category-Zl-tests (Files): Likewise.
41730         * modules/unictype/category-Zp-tests (Files): Likewise.
41731         * modules/unictype/category-Zs-tests (Files): Likewise.
41732         * modules/unictype/category-and-not-tests (Files): Likewise.
41733         * modules/unictype/category-and-tests (Files): Likewise.
41734         * modules/unictype/category-byname-tests (Files): Likewise.
41735         * modules/unictype/category-name-tests (Files): Likewise.
41736         * modules/unictype/category-none-tests (Files): Likewise.
41737         * modules/unictype/category-of-tests (Files): Likewise.
41738         * modules/unictype/category-or-tests (Files): Likewise.
41739         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41740         * modules/unictype/combining-class-tests (Files): Likewise.
41741         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41742         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41743         * modules/unictype/ctype-blank-tests (Files): Likewise.
41744         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41745         * modules/unictype/ctype-digit-tests (Files): Likewise.
41746         * modules/unictype/ctype-graph-tests (Files): Likewise.
41747         * modules/unictype/ctype-lower-tests (Files): Likewise.
41748         * modules/unictype/ctype-print-tests (Files): Likewise.
41749         * modules/unictype/ctype-punct-tests (Files): Likewise.
41750         * modules/unictype/ctype-space-tests (Files): Likewise.
41751         * modules/unictype/ctype-upper-tests (Files): Likewise.
41752         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41753         * modules/unictype/decimal-digit-tests (Files): Likewise.
41754         * modules/unictype/digit-tests (Files): Likewise.
41755         * modules/unictype/mirror-tests (Files): Likewise.
41756         * modules/unictype/numeric-tests (Files): Likewise.
41757         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41758         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41759         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41760         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41761         Likewise.
41762         * modules/unictype/property-bidi-block-separator-tests (Files):
41763         Likewise.
41764         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41765         Likewise.
41766         * modules/unictype/property-bidi-common-separator-tests (Files):
41767         Likewise.
41768         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41769         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41770         Likewise.
41771         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41772         Likewise.
41773         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41774         Likewise.
41775         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41776         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41777         Likewise.
41778         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41779         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41780         Likewise.
41781         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41782         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41783         * modules/unictype/property-bidi-segment-separator-tests (Files):
41784         Likewise.
41785         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41786         * modules/unictype/property-byname-tests (Files): Likewise.
41787         * modules/unictype/property-combining-tests (Files): Likewise.
41788         * modules/unictype/property-composite-tests (Files): Likewise.
41789         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41790         * modules/unictype/property-dash-tests (Files): Likewise.
41791         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41792         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41793         Likewise.
41794         * modules/unictype/property-deprecated-tests (Files): Likewise.
41795         * modules/unictype/property-diacritic-tests (Files): Likewise.
41796         * modules/unictype/property-extender-tests (Files): Likewise.
41797         * modules/unictype/property-format-control-tests (Files): Likewise.
41798         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41799         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41800         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41801         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41802         * modules/unictype/property-hyphen-tests (Files): Likewise.
41803         * modules/unictype/property-id-continue-tests (Files): Likewise.
41804         * modules/unictype/property-id-start-tests (Files): Likewise.
41805         * modules/unictype/property-ideographic-tests (Files): Likewise.
41806         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41807         * modules/unictype/property-ids-trinary-operator-tests (Files):
41808         Likewise.
41809         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41810         * modules/unictype/property-iso-control-tests (Files): Likewise.
41811         * modules/unictype/property-join-control-tests (Files): Likewise.
41812         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41813         * modules/unictype/property-line-separator-tests (Files): Likewise.
41814         * modules/unictype/property-logical-order-exception-tests (Files):
41815         Likewise.
41816         * modules/unictype/property-lowercase-tests (Files): Likewise.
41817         * modules/unictype/property-math-tests (Files): Likewise.
41818         * modules/unictype/property-non-break-tests (Files): Likewise.
41819         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41820         * modules/unictype/property-numeric-tests (Files): Likewise.
41821         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41822         * modules/unictype/property-other-default-ignorable-code-point-tests
41823         (Files): Likewise.
41824         * modules/unictype/property-other-grapheme-extend-tests (Files):
41825         Likewise.
41826         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41827         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41828         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41829         * modules/unictype/property-other-math-tests (Files): Likewise.
41830         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41831         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41832         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41833         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41834         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41835         * modules/unictype/property-private-use-tests (Files): Likewise.
41836         * modules/unictype/property-punctuation-tests (Files): Likewise.
41837         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41838         * modules/unictype/property-radical-tests (Files): Likewise.
41839         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41840         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41841         * modules/unictype/property-space-tests (Files): Likewise.
41842         * modules/unictype/property-terminal-punctuation-tests (Files):
41843         Likewise.
41844         * modules/unictype/property-test-tests (Files): Likewise.
41845         * modules/unictype/property-titlecase-tests (Files): Likewise.
41846         * modules/unictype/property-unassigned-code-value-tests (Files):
41847         Likewise.
41848         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41849         * modules/unictype/property-uppercase-tests (Files): Likewise.
41850         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41851         * modules/unictype/property-white-space-tests (Files): Likewise.
41852         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41853         * modules/unictype/property-xid-start-tests (Files): Likewise.
41854         * modules/unictype/property-zero-width-tests (Files): Likewise.
41855         * modules/unictype/scripts-tests (Files): Likewise.
41856         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41857         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41858         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41859         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41860         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41861         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41862         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41863         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41864         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41865         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41866         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41867         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41868         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41869         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41870         * modules/uninorm/composition-tests (Files): Likewise.
41871         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41872         * modules/uninorm/decomposition-tests (Files): Likewise.
41873         * modules/uninorm/filter-tests (Files): Likewise.
41874         * modules/uninorm/nfc-tests (Files): Likewise.
41875         * modules/uninorm/nfd-tests (Files): Likewise.
41876         * modules/uninorm/nfkc-tests (Files): Likewise.
41877         * modules/uninorm/nfkd-tests (Files): Likewise.
41878         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41879         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41880         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41881         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41882         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41883         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41884         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41885         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41886         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41887         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41888         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41889         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41890         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41891         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41892         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41893         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41894         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41895         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41896         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41897         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41898         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41899         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41900         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41901         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41902         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41903         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41904         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41905         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41906         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41907         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41908         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41909         * modules/uniwidth/u8-width-tests (Files): Likewise.
41910         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41911         * modules/uniwidth/u16-width-tests (Files): Likewise.
41912         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41913         * modules/uniwidth/u32-width-tests (Files): Likewise.
41914         * modules/uniwidth/width-tests (Files): Likewise.
41915         * modules/unlink-tests (Files): Likewise.
41916         * modules/unsetenv-tests (Files): Likewise.
41917         * modules/usleep-tests (Files): Likewise.
41918         * modules/utimens-tests (Files): Likewise.
41919         * modules/utimensat-tests (Files): Likewise.
41920         * modules/vasnprintf-posix-tests (Files): Likewise.
41921         * modules/vasnprintf-tests (Files): Likewise.
41922         * modules/vasprintf-posix-tests (Files): Likewise.
41923         * modules/vasprintf-tests (Files): Likewise.
41924         * modules/vdprintf-posix-tests (Files): Likewise.
41925         * modules/vfprintf-posix-tests (Files): Likewise.
41926         * modules/vprintf-posix-tests (Files): Likewise.
41927         * modules/vsnprintf-posix-tests (Files): Likewise.
41928         * modules/vsnprintf-tests (Files): Likewise.
41929         * modules/vsprintf-posix-tests (Files): Likewise.
41930         * modules/wcrtomb-tests (Files): Likewise.
41931         * modules/wcsnrtombs-tests (Files): Likewise.
41932         * modules/wcsrtombs-tests (Files): Likewise.
41933         * modules/wctype-tests (Files): Likewise.
41934         * modules/wcwidth-tests (Files): Likewise.
41935         * modules/xmemdup0-tests (Files): Likewise.
41936         * modules/xprintf-posix-tests (Files): Likewise.
41937         * modules/xvasprintf-tests (Files): Likewise.
41938
41939 2009-12-24  Eric Blake  <ebb9@byu.net>
41940
41941         test-nanosleep: fix typo
41942         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41943         patch.
41944         Reported by Bruno Haible.
41945
41946 2009-12-24  Bruno Haible  <bruno@clisp.org>
41947
41948         Reduce namespace pollution on glibc systems.
41949         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41950         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41951         systems.
41952         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41953         <getopt.h> on glibc systems.
41954         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41955         systems.
41956         * lib/fcntl.c: Include <unistd.h> here instead.
41957
41958 2009-12-24  Bruno Haible  <bruno@clisp.org>
41959
41960         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41961
41962 2009-12-24  Eric Blake  <ebb9@byu.net>
41963
41964         tests: add signature checks
41965         * tests/signature.h (SIGNATURE_CHECK): New file.
41966         * modules/atexit-tests (Files): Use it.
41967         * modules/btowc-tests (Files): Likewise.
41968         * modules/canonicalize-lgpl-tests (Files): Likewise.
41969         * modules/ceilf-tests (Files): Likewise.
41970         * modules/ceill-tests (Files): Likewise.
41971         * modules/chown-tests (Files): Likewise.
41972         * modules/dprintf-posix-tests (Files): Likewise.
41973         * modules/dup2-tests (Files): Likewise.
41974         * modules/dup3-tests (Files): Likewise.
41975         * modules/duplocale-tests (Files): Likewise.
41976         * modules/fchdir-tests (Files): Likewise.
41977         * modules/fcntl-tests (Files): Likewise.
41978         * modules/fdopendir-tests (Files): Likewise.
41979         * modules/fflush-tests (Files): Likewise.
41980         * modules/flock-tests (Files): Likewise.
41981         * modules/floorf-tests (Files): Likewise.
41982         * modules/floorl-tests (Files): Likewise.
41983         * modules/fnmatch-tests (Files): Likewise.
41984         * modules/fopen-tests (Files): Likewise.
41985         * modules/fprintf-posix-tests (Files): Likewise.
41986         * modules/freopen-tests (Files): Likewise.
41987         * modules/frexp-nolibm-tests (Files): Likewise.
41988         * modules/frexp-tests (Files): Likewise.
41989         * modules/frexpl-nolibm-tests (Files): Likewise.
41990         * modules/frexpl-tests (Files): Likewise.
41991         * modules/fseek-tests (Files): Likewise.
41992         * modules/fseeko-tests (Files): Likewise.
41993         * modules/fsync-tests (Files): Likewise.
41994         * modules/ftell-tests (Files): Likewise.
41995         * modules/ftello-tests (Files): Likewise.
41996         * modules/futimens-tests (Files): Likewise.
41997         * modules/getaddrinfo-tests (Files): Likewise.
41998         * modules/getcwd-tests (Files): Likewise.
41999         * modules/getdelim-tests (Files): Likewise.
42000         * modules/getdtablesize-tests (Files): Likewise.
42001         * modules/getgroups-tests (Files): Likewise.
42002         * modules/gethostname-tests (Files): Likewise.
42003         * modules/getline-tests (Files): Likewise.
42004         * modules/getopt-posix-tests (Files): Likewise.
42005         * modules/gettimeofday-tests (Files): Likewise.
42006         * modules/glob-tests (Files): Likewise.
42007         * modules/iconv-tests (Files): Likewise.
42008         * modules/inet_ntop-tests (Files): Likewise.
42009         * modules/inet_pton-tests (Files): Likewise.
42010         * modules/isblank-tests (Files): Likewise.
42011         * modules/lchown-tests (Files): Likewise.
42012         * modules/ldexpl-tests (Files): Likewise.
42013         * modules/link-tests (Files): Likewise.
42014         * modules/linkat-tests (Files): Likewise.
42015         * modules/lseek-tests (Files): Likewise.
42016         * modules/lstat-tests (Files): Likewise.
42017         * modules/mbrtowc-tests (Files): Likewise.
42018         * modules/mbsinit-tests (Files): Likewise.
42019         * modules/mbsnrtowcs-tests (Files): Likewise.
42020         * modules/mbsrtowcs-tests (Files): Likewise.
42021         * modules/memchr-tests (Files): Likewise.
42022         * modules/memcmp-tests (Files): Likewise.
42023         * modules/memmem-tests (Files): Likewise.
42024         * modules/memrchr-tests (Files): Likewise.
42025         * modules/mkdir-tests (Files): Likewise.
42026         * modules/mkfifo-tests (Files): Likewise.
42027         * modules/mkfifoat-tests (Files): Likewise.
42028         * modules/mknod-tests (Files): Likewise.
42029         * modules/nanosleep-tests (Files): Likewise.
42030         * modules/nl_langinfo-tests (Files): Likewise.
42031         * modules/obstack-printf-tests (Files): Likewise.
42032         * modules/open-tests (Files): Likewise.
42033         * modules/openat-tests (Files): Likewise.
42034         * modules/perror-tests (Files): Likewise.
42035         * modules/pipe2-tests (Files): Likewise.
42036         * modules/poll-tests (Files): Likewise.
42037         * modules/popen-tests (Files): Likewise.
42038         * modules/posix_spawn-tests (Files): Likewise.
42039         * modules/posix_spawnp-tests (Files): Likewise.
42040         * modules/pread-tests (Files): Likewise.
42041         * modules/printf-posix-tests (Files): Likewise.
42042         * modules/pty-tests (Files): Likewise.
42043         * modules/random_r-tests (Files): Likewise.
42044         * modules/rawmemchr-tests (Files): Likewise.
42045         * modules/readlink-tests (Files): Likewise.
42046         * modules/remove-tests (Files): Likewise.
42047         * modules/rename-tests (Files): Likewise.
42048         * modules/renameat-tests (Files): Likewise.
42049         * modules/rmdir-tests (Files): Likewise.
42050         * modules/round-tests (Files): Likewise.
42051         * modules/roundf-tests (Files): Likewise.
42052         * modules/roundl-tests (Files): Likewise.
42053         * modules/select-tests (Files): Likewise.
42054         * modules/setenv-tests (Files): Likewise.
42055         * modules/sigaction-tests (Files): Likewise.
42056         * modules/sleep-tests (Files): Likewise.
42057         * modules/snprintf-posix-tests (Files): Likewise.
42058         * modules/snprintf-tests (Files): Likewise.
42059         * modules/sprintf-posix-tests (Files): Likewise.
42060         * modules/stat-tests (Files): Likewise.
42061         * modules/strcasestr-tests (Files): Likewise.
42062         * modules/strchrnul-tests (Files): Likewise.
42063         * modules/strerror-tests (Files): Likewise.
42064         * modules/strsignal-tests (Files): Likewise.
42065         * modules/strstr-tests (Files): Likewise.
42066         * modules/strtod-tests (Files): Likewise.
42067         * modules/strverscmp-tests (Files): Likewise.
42068         * modules/symlink-tests (Files): Likewise.
42069         * modules/symlinkat-tests (Files): Likewise.
42070         * modules/times-tests (Files): Likewise.
42071         * modules/trunc-tests (Files): Likewise.
42072         * modules/truncf-tests (Files): Likewise.
42073         * modules/truncl-tests (Files): Likewise.
42074         * modules/tsearch-tests (Files): Likewise.
42075         * modules/uname-tests (Files): Likewise.
42076         * modules/unlink-tests (Files): Likewise.
42077         * modules/unsetenv-tests (Files): Likewise.
42078         * modules/usleep-tests (Files): Likewise.
42079         * modules/utimensat-tests (Files): Likewise.
42080         * modules/vasprintf-tests (Files): Likewise.
42081         * modules/vdprintf-posix-tests (Files): Likewise.
42082         * modules/vfprintf-posix-tests (Files): Likewise.
42083         * modules/vprintf-posix-tests (Files): Likewise.
42084         * modules/vsnprintf-posix-tests (Files): Likewise.
42085         * modules/vsnprintf-tests (Files): Likewise.
42086         * modules/vsprintf-posix-tests (Files): Likewise.
42087         * modules/wcrtomb-tests (Files): Likewise.
42088         * modules/wcsnrtombs-tests (Files): Likewise.
42089         * modules/wcsrtombs-tests (Files): Likewise.
42090         * modules/wcwidth-tests (Files): Likewise.
42091         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
42092         * tests/test-isinf.c (isinf): Likewise.
42093         * tests/test-isnan.c (isnan): Likewise.
42094         * tests/test-signbit.c (signbit): Likewise.
42095         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
42096         declaration, either as macro or with correct signature.
42097         (select): Ensure function under test is declared with correct
42098         signature in correct header.
42099         * tests/test-atexit.c (atexit): Likewise.
42100         * tests/test-btowc.c (btowc): Likewise.
42101         * tests/test-canonicalize-lgpl.c (realpath)
42102         (canonicalize_file_name): Likewise.
42103         * tests/test-ceilf1.c (ceilf): Likewise.
42104         * tests/test-ceill.c (ceill): Likewise.
42105         * tests/test-chown.c (chown): Likewise.
42106         * tests/test-dprintf-posix.c (dprintf): Likewise.
42107         * tests/test-dup2.c (dup2): Likewise.
42108         * tests/test-dup3.c (dup3): Likewise.
42109         * tests/test-duplocale.c (duplocale): Likewise.
42110         * tests/test-fchdir.c (fchdir): Likewise.
42111         * tests/test-fchownat.c (fchownat): Likewise.
42112         * tests/test-fcntl.c (fcntl): Likewise.
42113         * tests/test-fdopendir.c (fdopendir): Likewise.
42114         * tests/test-fflush.c (fflush): Likewise.
42115         * tests/test-flock.c (flock): Likewise.
42116         * tests/test-floorf1.c (floorf): Likewise.
42117         * tests/test-floorl.c (floorl): Likewise.
42118         * tests/test-fnmatch.c (fnmatch): Likewise.
42119         * tests/test-fopen.c (fopen): Likewise.
42120         * tests/test-fprintf-posix.c (fprintf): Likewise.
42121         * tests/test-freopen.c (freopen): Likewise.
42122         * tests/test-frexp.c (frexp): Likewise.
42123         * tests/test-frexpl.c (frexpl): Likewise.
42124         * tests/test-fseek.c (fseek): Likewise.
42125         * tests/test-fseeko.c (fseeko): Likewise.
42126         * tests/test-fstatat.c (fstatat): Likewise.
42127         * tests/test-fsync.c (fsync): Likewise.
42128         * tests/test-ftell.c (ftell): Likewise.
42129         * tests/test-ftello.c (ftello): Likewise.
42130         * tests/test-futimens.c (futimens): Likewise.
42131         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
42132         (gai_strerror): Likewise.
42133         * tests/test-getcwd.c (getcwd): Likewise.
42134         * tests/test-getdelim.c (getdelim): Likewise.
42135         * tests/test-getdtablesize.c (getdtablesize): Likewise.
42136         * tests/test-getgroups.c (getgroups): Likewise.
42137         * tests/test-gethostname.c (gethostname): Likewise.
42138         * tests/test-getline.c (getline): Likewise.
42139         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
42140         Likewise.
42141         * tests/test-gettimeofday.c (gettimeofday): Likewise.
42142         * tests/test-glob.c (glob, globfree): Likewise.
42143         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
42144         * tests/test-inet_ntop.c (inet_ntop): Likewise.
42145         * tests/test-inet_pton.c (inet_pton): Likewise.
42146         * tests/test-isblank.c (isblank): Likewise.
42147         * tests/test-lchown.c (lchown): Likewise.
42148         * tests/test-ldexpl.c (ldexpl): Likewise.
42149         * tests/test-link.c (link): Likewise.
42150         * tests/test-linkat.c (linkat): Likewise.
42151         * tests/test-lseek.c (lseek): Likewise.
42152         * tests/test-lstat.c (lstat): Likewise.
42153         * tests/test-mbrtowc.c (mbrtowc): Likewise.
42154         * tests/test-mbsinit.c (mbsinit): Likewise.
42155         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
42156         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
42157         * tests/test-memchr.c (memchr): Likewise.
42158         * tests/test-memcmp.c (memcmp): Likewise.
42159         * tests/test-memmem.c (memmem): Likewise.
42160         * tests/test-memrchr.c (memrchr): Likewise.
42161         * tests/test-mkdir.c (mkdir): Likewise.
42162         * tests/test-mkdirat.c (mkdirat): Likewise.
42163         * tests/test-mkfifo.c (mkfifo): Likewise.
42164         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
42165         * tests/test-mknod.c (mknod): Likewise.
42166         * tests/test-nanosleep.c (nanosleep): Likewise.
42167         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
42168         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
42169         Likewise.
42170         * tests/test-open.c (open): Likewise.
42171         * tests/test-openat.c (openat): Likewise.
42172         * tests/test-perror.c (perror): Likewise.
42173         * tests/test-pipe2.c (pipe2): Likewise.
42174         * tests/test-poll.c (poll): Likewise.
42175         * tests/test-popen.c (popen, pclose): Likewise.
42176         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
42177         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
42178         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
42179         (posix_spawn_file_actions_destroy)
42180         (posix_spawn_file_actions_addclose)
42181         (posix_spawn_file_actions_addopen)
42182         (posix_spawn_file_actions_adddup2): Likewise.
42183         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
42184         * tests/test-pread.c (pread): Likewise.
42185         * tests/test-printf-posix.c (printf): Likewise.
42186         * tests/test-pty.c (openpty, forkpty): Likewise.
42187         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
42188         (random_r): Likewise.
42189         * tests/test-rawmemchr.c (rawmemchr): Likewise.
42190         * tests/test-readlink.c (readlink): Likewise.
42191         * tests/test-remove.c (remove): Likewise.
42192         * tests/test-rename.c (rename): Likewise.
42193         * tests/test-renameat.c (renameat): Likewise.
42194         * tests/test-rmdir.c (rmdir): Likewise.
42195         * tests/test-round1.c (round): Likewise.
42196         * tests/test-roundf1.c (roundf): Likewise.
42197         * tests/test-roundl.c (roundl): Likewise.
42198         * tests/test-setenv.c (setenv): Likewise.
42199         * tests/test-sigaction.c (sigaction): Likewise.
42200         * tests/test-sleep.c (sleep): Likewise.
42201         * tests/test-snprintf.c (snprintf): Likewise.
42202         * tests/test-sprintf-posix.c (sprintf): Likewise.
42203         * tests/test-stat.c (stat): Likewise.
42204         * tests/test-stpncpy.c (stpncpy): Likewise.
42205         * tests/test-strcasestr.c (strcasestr): Likewise.
42206         * tests/test-strchrnul.c (strchrnul): Likewise.
42207         * tests/test-strerror.c (strerror): Likewise.
42208         * tests/test-strsignal.c (strsignal): Likewise.
42209         * tests/test-strstr.c (strstr): Likewise.
42210         * tests/test-strtod.c (strtod): Likewise.
42211         * tests/test-strverscmp.c (strverscmp): Likewise.
42212         * tests/test-symlink.c (symlink): Likewise.
42213         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42214         * tests/test-times.c (times): Likewise.
42215         * tests/test-trunc1.c (trunc): Likewise.
42216         * tests/test-truncf1.c (truncf): Likewise.
42217         * tests/test-truncl.c (truncl): Likewise.
42218         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42219         Likewise.
42220         * tests/test-uname.c (uname): Likewise.
42221         * tests/test-unlink.c (unlink): Likewise.
42222         * tests/test-unlinkat.c (unlinkat): Likewise.
42223         * tests/test-unsetenv.c (unsetenv): Likewise.
42224         * tests/test-usleep.c (usleep): Likewise.
42225         * tests/test-utimensat.c (utimensat): Likewise.
42226         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42227         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42228         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42229         * tests/test-vprintf-posix.c (vprintf): Likewise.
42230         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42231         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42232         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42233         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42234         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42235         * tests/test-wcwidth.c (wcwidth): Likewise.
42236
42237         build: pull in conditional headers during GNULIB_POSIXCHECK
42238         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42239         definitions from any conditionally-included headers.
42240         * lib/stdlib.in.h (includes): Likewise.
42241         * lib/unistd.in.h (includes): Likewise.
42242
42243 2009-12-24  Bruno Haible  <bruno@clisp.org>
42244
42245         * tests/test-argv-iter.c: Include header file being tested immediately
42246         after config.h.
42247         * tests/test-base64.c: Likewise.
42248         * tests/test-flock.c: Likewise.
42249         * tests/test-fsync.c: Likewise.
42250         * tests/test-getdate.c: Likewise.
42251         * tests/test-getndelim2.c: Likewise.
42252         * tests/test-isfinite.c: Likewise.
42253         * tests/test-isinf.c: Likewise.
42254         * tests/test-strerror.c: Likewise.
42255         * tests/test-strsignal.c: Likewise.
42256
42257 2009-12-23  Eric Blake  <ebb9@byu.net>
42258
42259         unistd: work around cygwin bug
42260         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42261         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42262         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42263
42264 2009-12-23  Bruno Haible  <bruno@clisp.org>
42265
42266         localename: More tests.
42267         * tests/test-localename.c (SIZEOF): New macro.
42268         (categories): New variable.
42269         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42270         test_locale_name_default): Add test w.r.t. thread locale.
42271         (test_locale_name_thread): New function.
42272         (main): Invoke it.
42273
42274         localename: Make aware of thread locale.
42275         * lib/localename.h (gl_locale_name_thread): New declaration.
42276         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42277         behaviour with respect to thread locale.
42278         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42279         <langinfo.h>, glthread/lock.h.
42280         (SIZE_BITS): New macro.
42281         (string_hash): New function.
42282         (struct hash_node): New type.
42283         (HASH_TABLE_SIZE): New macro.
42284         (struniq_hash_table, struniq_lock): New variables.
42285         (struniq): New function.
42286         (gl_locale_name_thread): New function.
42287         (gl_locale_name): Invoke it.
42288         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42289         * modules/localename (Depends-on): Add lock.
42290         Reported by Mike Gran <spk121@yahoo.com>.
42291
42292 2009-12-23  Eric Blake  <ebb9@byu.net>
42293
42294         va-args: new module
42295         * modules/va-args: New file.
42296         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42297         * MODULES.html.sh (Core language properties): Mention it.
42298
42299         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42300         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42301         named alias for __attribute__((__unused__)).
42302         * lib/chown.c: Update client.
42303         * lib/fchmodat.c: Likewise.
42304         * lib/fts.c: Likewise.
42305         * lib/getdate.y: Likewise.
42306         * lib/getgroups.c: Likewise.
42307         * lib/getopt.c: Likewise.
42308         * lib/getugroups.c: Likewise.
42309         * lib/mkdir.c: Likewise.
42310         * lib/mkfifo.c: Likewise.
42311         * lib/mkfifoat.c: Likewise.
42312         * lib/mknod.c: Likewise.
42313         * lib/mknodat.c: Likewise.
42314         * lib/readlink.c: Likewise.
42315         * lib/se-context.in.h: Likewise.
42316         * lib/se-selinux.in.h: Likewise.
42317         * lib/sockets.c: Likewise.
42318         * lib/symlink.c: Likewise.
42319         * lib/symlinkat.c: Likewise.
42320         * lib/unicodeio.c: Likewise.
42321         * lib/unistr.h: Likewise.
42322         * tests/test-areadlink.c: Likewise.
42323         * tests/test-areadlinkat.c: Likewise.
42324         * tests/test-filenamecat.c: Likewise.
42325         * tests/test-fseeko.c: Likewise.
42326         * tests/test-ftello.c: Likewise.
42327         * tests/test-getdate.c: Likewise.
42328         * tests/test-getgroups.c: Likewise.
42329         * tests/test-gethostname.c: Likewise.
42330         * tests/test-quotearg.c: Likewise.
42331         * tests/test-version-etc.c: Likewise.
42332         * tests/test-xalloc-die.c: Likewise.
42333         * tests/test-xfprintf-posix.c: Likewise.
42334         * tests/test-xprintf-posix.c: Likewise.
42335         * tests/test-xvasprintf.c: Likewise.
42336
42337         tests: avoid compiler warnings
42338         * tests/test-fcntl.c (main): Delete unused parameters.
42339         * tests/test-freopen-safer.c (main): Likewise.
42340         * tests/test-xalloc-die.c (main): Mark unused parameters.
42341         * tests/test-fseeko.c (main): Likewise.
42342         * tests/test-ftello.c (main): Likewise.
42343         * tests/test-nanosleep.c (main): Avoid declaration warning.
42344         * tests/test-sleep.c (main): Likewise.
42345         * tests/test-unsetenv.c (main): Silence warning about string
42346         literal.
42347         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42348
42349 2009-12-23  Bruno Haible  <bruno@clisp.org>
42350
42351         * tests/test-localename.c (test_locale_name): New function, extracted
42352         from main. Also test mixed situations.
42353         (test_locale_name_posix, test_locale_name_environ,
42354         test_locale_name_default): New functions.
42355         (main): Invoke them all.
42356         * modules/localename-tests (configure.ac): Test for newlocale.
42357
42358 2009-12-23  Bruno Haible  <bruno@clisp.org>
42359
42360         unistd: Ensure getcwd gets declared before being overridden.
42361         * lib/unistd.in.h: Conditionally include <io.h>.
42362
42363 2009-12-22  Bruno Haible  <bruno@clisp.org>
42364
42365         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42366         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42367         (gl_WCHAR_H): Invoke it.
42368         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42369         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42370         Reported by Karl Berry <karl@freefriends.org>.
42371
42372 2009-12-22  Eric Blake  <ebb9@byu.net>
42373
42374         math, unistd: avoid redundant includes
42375         * lib/math.in.h (isnan): No need to re-include <math.h>.
42376         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42377
42378         getsubopt: work around cygwin bug
42379         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42380         avoid conflicting with system getsubopt.
42381         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42382         bug.
42383
42384         getopt: synchronize from glibc
42385         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42386         parameter order.  Adjust all callers.
42387         (_getopt_internal_r, main): Adjust quoting in error messages.
42388         Drop considerations for outdated POSIX 1003.2 error message.
42389         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42390         callers.
42391         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42392
42393         test-getopt: test stderr behavior
42394         * modules/getopt-posix-tests (Depends-on): Add dup2.
42395         * tests/test-getopt.c (ASSERT): Avoid stderr.
42396         (main): Move stderr to a temporary file.
42397         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42398         Instead, add parameter to inform caller if output occurred.
42399         (test_getopt): Adjust all existing tests to expect silence, and
42400         add new tests of leading ":".
42401         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42402         glibc shortcomings with leading "-:" or "+:" in optstring.
42403         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42404         Likewise.
42405         * doc/posix-functions/getopt.texi (getopt): Likewise.
42406
42407         test-getopt: enhance test
42408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42409         supports optind=0.
42410         * tests/test-getopt.c (OPTIND_MIN): Move...
42411         * tests/test-getopt.h (OPTIND_MIN): ...here.
42412         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42413         Require that optind=0 works, since modern BSD supports it in
42414         addition to optreset, and since coreutils expects it.
42415         (test_getopt_long_only): New test.
42416         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42417         glibc shortcomings with 'W;', and enforcement of optind=0.
42418         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42419         Likewise.
42420
42421 2009-12-21  Bruno Haible  <bruno@clisp.org>
42422
42423         localename: Improvements for MacOS X and Cygwin.
42424         * lib/localename.h (gl_locale_name_environ): New declaration.
42425         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42426         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42427         (gl_locale_name_posix): Invoke it.
42428         (gl_locale_name_default): Add comments. Use Windows native API also on
42429         Cygwin.
42430
42431 2009-12-21  Bruno Haible  <bruno@clisp.org>
42432
42433         Update list of Win32 locale ids.
42434         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42435         (LANG_SAMI): Renamed from LANG_SAAMI.
42436         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42437         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42438         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42439         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42440         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42441         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42442         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42443         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42444         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42445         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42446         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42447         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42448         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42449         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42450         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42451         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42452         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42453         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42454         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42455         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42456         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42457         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42458         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42459         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42460         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42461         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42462         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42463         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42464         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42465         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42466         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42467         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42468         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42469         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42470         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42471         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42472         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42473         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42474         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42475         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42476         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42477         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42478         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42479         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42480         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42481         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42482         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42483         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42484         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42485         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42486         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42487         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42488         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42489         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42490         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42491         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42492         Add more languages and countries for Sami, Sorbian. Add more countries
42493         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42494         for Pashto. Change country for Syriac, Tswana.
42495
42496 2009-12-21  Eric Blake  <ebb9@byu.net>
42497
42498         test-utimens: avoid spurious failure
42499         * tests/test-chown.h (nap): Factor...
42500         * tests/nap.h: ...into new file.
42501         * tests/test-lchown.h (nap): Avoid duplication.
42502         * tests/test-utimens-common.h (nap): Use shared implementation,
42503         necessary on file systems with 1-second resolution.
42504         * modules/chown-tests (Files): Include new file.
42505         * modules/fdutimensat-tests (Files): Likewise.
42506         * modules/futimens-tests (Files): Likewise.
42507         * modules/lchown-tests (Files): Likewise.
42508         * modules/openat-tests (Files): Likewise.
42509         * modules/utimens-tests (Files): Likewise.
42510         * modules/utimensat-tests (Files): Likewise.
42511
42512 2009-12-19  Eric Blake  <ebb9@byu.net>
42513
42514         futimens, utimensat: work around Linux bug
42515         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42516         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42517         * lib/utimensat.c (rpl_utimensat): Work around it.
42518         * lib/futimens.c (rpl_futimens): Adjust comment.
42519
42520         utimens: work around Linux ctime bug
42521         * lib/utimens.c (detect_ctime_bug): New helper function.
42522         (update_timespec): Differentiate between workaround needed for
42523         this bug vs. what is needed for systems that lack utimensat.
42524         (fdutimens, lutimens): Work around bug.
42525
42526         utimens: check for ctime update
42527         * tests/test-utimens-common.h (check_ctime): Define.
42528         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42529         * tests/test-futimens.h (test_futimens): Likewise.
42530         * tests/test-lutimens.h (test_lutimens): Likewise.
42531         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42532         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42533
42534 2009-12-19  Bruno Haible  <bruno@clisp.org>
42535
42536         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42537         * tests/test-dprintf-posix2.sh: New file.
42538         * tests/test-dprintf-posix2.c: New file.
42539         * modules/dprintf-posix-tests (Files): Add them.
42540         (configure.ac): Check for getrlimit and setrlimit.
42541         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42542
42543 2009-12-19  Bruno Haible  <bruno@clisp.org>
42544
42545         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42546         * tests/test-fprintf-posix3.sh: New file.
42547         * tests/test-fprintf-posix3.c: New file.
42548         * modules/fprintf-posix-tests (Files): Add them.
42549         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42550
42551 2009-12-19  Eric Blake  <ebb9@byu.net>
42552
42553         dirfd: fix prototype
42554         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42555         * lib/dirfd.c (dirfd): Likewise.
42556
42557         canonicalize: reduce memory usage
42558         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42559         allocation to size.
42560         Reported by Solar Designer <solar@openwall.com>.
42561
42562 2009-12-19  Bruno Haible  <bruno@clisp.org>
42563
42564         New module attribute 'Applicability'.
42565         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42566         * gnulib-tool: New option --extract-applicability.
42567         (func_usage): Document it.
42568         (sed_extract_prog): Recognize it.
42569         (func_get_applicability): New function.
42570         (func_import): Generalize handling of 'link-warning' module.
42571         * modules/link-warning (Applicability): New section.
42572         * modules/arg-nonnull (Applicability): New section.
42573         Repoted by Simon Josefsson <simon@josefsson.org>.
42574
42575 2009-12-19  Bruno Haible  <bruno@clisp.org>
42576
42577         fflush: tweak
42578         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42579         * lib/fseeko.c (rpl_fseeko): Likewise.
42580
42581 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42582
42583         * lib/gl_list.h: Fix typo in comment.
42584
42585 2009-12-16  Eric Blake  <ebb9@byu.net>
42586
42587         fcntl: use to simplify other modules
42588         * modules/cloexec (Depends-on): Add fcntl.
42589         * modules/fchdir (Depends-on): Likewise.
42590         * modules/fd-safer-flag (Depends-on): Likewise.
42591         * modules/unistd-safer (Depends-on): Likewise.
42592         * modules/dup3 (configure.ac): Set module indicator.
42593         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42594         missing.
42595         * lib/fchdir.c (_gl_register_dup): Fix comment.
42596         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42597         * lib/dup-safer.c (dup_safer): Likewise.
42598         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42599         * lib/dup3.c (dup3): Likewise.
42600         * tests/test-fchdir.c (main): Enhance test.
42601         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42602
42603         fcntl: port portions of fcntl to mingw
42604         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42605         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42606         replacement for mingw.
42607         * modules/fcntl (Description): Update.
42608         (Depends-on): Add dup2.
42609         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42610         * modules/fcntl-h (Makefile.am): Substitute it.
42611         * lib/fcntl.in.h (fcntl): Update declaration.
42612         (F_DUPFD, F_GETFD): New macros, when needed.
42613         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42614         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42615         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42616         we now guarantee.
42617
42618         fcntl: work around cygwin bug in F_DUPFD
42619         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42620         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42621         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42622         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42623         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42624
42625         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42626         * modules/fcntl (Files): List new files.
42627         (configure.ac): Run a test.
42628         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42629         * lib/fcntl.c (rpl_fcntl): Likewise.
42630         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42631         (gl_FCNTL_H): Always replace fcntl.h.
42632         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42633         * lib/fcntl.in.h (fcntl): Declare replacement.
42634         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42635         needed, plus a witness.
42636         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42637         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42638         * tests/test-fcntl.c: New file.
42639         * modules/fcntl-tests: Likewise.
42640
42641         binary-io: avoid potential compilation warning
42642         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42643         directives.
42644
42645         fflush: avoid compilation error on NetBSD
42646         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42647         between off_t and fpos_t, since the latter is sometimes a struct.
42648         * lib/fseeko.c (rpl_fseeko): Likewise.
42649         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42650
42651 2009-12-15  Eric Blake  <ebb9@byu.net>
42652
42653         fcntl-h, stdio, sys_ioctl: fix declarations
42654         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42655         function must not take arguments.
42656         * lib/sys_ioctl.in.h (ioctl): Likewise.
42657         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42658         (open): Add a link warning.
42659
42660 2009-12-15  Jim Meyering  <meyering@redhat.com>
42661
42662         areadlink, areadlink-with-size: relax license to LGPLv2+
42663         * modules/areadlink (License): Relax to LGPLv2+.
42664         * modules/areadlink-with-size (License): Likewise.
42665
42666 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42667             Bruno Haible  <bruno@clisp.org>
42668
42669         *printf: Fix memory leak.
42670         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42671         * lib/vfprintf.c (vfprintf): Likewise.
42672         * lib/dprintf.c (dprintf): Likewise.
42673         * lib/vdprintf.c (vdprintf): Likewise.
42674
42675 2009-12-14  Eric Blake  <ebb9@byu.net>
42676
42677         accept4: adjust module dependencies
42678         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42679
42680         utimens: one more try at avoiding compiler warning
42681         * lib/utimens.c (lutimens): Lower scope of result.
42682
42683 2009-12-13  Bruno Haible  <bruno@clisp.org>
42684
42685         Move the malloc checking from module 'list' to new module 'xlist'.
42686         * modules/xlist: New file.
42687         * lib/gl_xlist.h: New file.
42688         * lib/gl_xlist.c: New file.
42689         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42690         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42691         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42692         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42693         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42694         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42695         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42696         gl_sortedlist_nx_add): New declarations.
42697         (struct gl_list_implementation): Rename and change methods accordingly.
42698         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42699         (gl_list_nx_create): Renamed from gl_list_create.
42700         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42701         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42702         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42703         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42704         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42705         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42706         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42707         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42708         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42709         gl_list_create_empty.
42710         (gl_list_nx_create): Renamed from gl_list_create.
42711         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42712         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42713         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42714         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42715         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42716         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42717         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42718         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42719         * lib/gl_array_list.c: Don't include xalloc.h.
42720         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42721         NULL upon out-of-memory.
42722         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42723         out-of-memory.
42724         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42725         Change return type to 'int'.
42726         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42727         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42728         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42729         upon out-of-memory.
42730         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42731         upon out-of-memory.
42732         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42733         upon out-of-memory.
42734         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42735         upon out-of-memory.
42736         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42737         out-of-memory.
42738         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42739         Update.
42740         (gl_array_list_implementation): Update.
42741         * lib/gl_carray_list.c: Don't include xalloc.h.
42742         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42743         Return NULL upon out-of-memory.
42744         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42745         out-of-memory.
42746         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42747         Change return type to 'int'.
42748         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42749         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42750         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42751         upon out-of-memory.
42752         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42753         upon out-of-memory.
42754         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42755         out-of-memory.
42756         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42757         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42758         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42759         Update.
42760         (gl_carray_list_implementation): Update.
42761         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42762         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42763         gl_linked_create_empty. Return NULL upon out-of-memory.
42764         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42765         out-of-memory.
42766         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42767         Change return type to 'int'. Return -1 upon out-of-memory.
42768         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42769         out-of-memory.
42770         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42771         upon out-of-memory.
42772         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42773         upon out-of-memory.
42774         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42775         NULL upon out-of-memory.
42776         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42777         upon out-of-memory.
42778         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42779         out-of-memory.
42780         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42781         Update.
42782         * lib/gl_linked_list.c: Don't include xalloc.h.
42783         (gl_linked_list_implementation): Update.
42784         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42785         (add_to_bucket): Change return type to 'int'.
42786         (gl_linkedhash_list_implementation): Update.
42787         * lib/gl_anytree_list1.h (free_subtree): New function.
42788         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42789         gl_tree_create_empty. Return NULL upon out-of-memory.
42790         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42791         Change return type to 'int'. Return -1 upon out-of-memory.
42792         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42793         out-of-memory.
42794         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42795         (gl_tree_remove_node): New function, moved here from
42796         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42797         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42798         Update.
42799         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42800         malloc, not xmalloc. Return NULL upon out-of-memory.
42801         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42802         out-of-memory.
42803         (gl_tree_remove_node_from_tree): New function, extracted from
42804         gl_tree_remove_node.
42805         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42806         upon out-of-memory.
42807         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42808         out-of-memory.
42809         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42810         upon out-of-memory.
42811         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42812         upon out-of-memory.
42813         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42814         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42815         not xmalloc. Return NULL upon out-of-memory.
42816         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42817         out-of-memory.
42818         (gl_tree_remove_node_from_tree): New function, extracted from
42819         gl_tree_remove_node.
42820         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42821         upon out-of-memory.
42822         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42823         out-of-memory.
42824         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42825         upon out-of-memory.
42826         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42827         upon out-of-memory.
42828         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42829         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42830         gl_anytree_list1.h before gl_anyavltree_list2.h.
42831         (gl_avltree_list_implementation): Update.
42832         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42833         gl_anytree_list1.h before gl_anyavltree_list2.h.
42834         (gl_rbtree_list_implementation): Update.
42835         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42836         Change return type to 'int'. Return -1 upon out-of-memory. Use
42837         __builtin_expect.
42838         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42839         (gl_avltreehash_list_implementation): Update.
42840         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42841         (gl_rbtreehash_list_implementation): Update.
42842         * modules/array-list (Depends-on): Remove xalloc.
42843         * modules/carray-list (Depends-on): Likewise.
42844         * modules/linked-list (Depends-on): Likewise.
42845         * modules/linkedhash-list (Depends-on): Likewise.
42846         * modules/avltree-list (Depends-on): Likewise.
42847         * modules/rbtree-list (Depends-on): Likewise.
42848         * modules/avltreehash-list (Depends-on): Likewise.
42849         * modules/rbtreehash-list (Depends-on): Likewise.
42850
42851         * modules/xsublist: New file.
42852         * lib/gl_xsublist.h: New file.
42853         * lib/gl_xsublist.c: New file.
42854         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42855         (gl_sublist_nx_create): New declaration.
42856         * lib/gl_sublist.c: Don't include xalloc.h.
42857         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42858         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42859         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42860         Change return type to 'int'. Return -1 upon out-of-memory.
42861         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42862         upon out-of-memory.
42863         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42864         NULL upon out-of-memory.
42865         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42866         upon out-of-memory.
42867         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42868         NULL upon out-of-memory.
42869         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42870         NULL upon out-of-memory.
42871         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42872         upon out-of-memory.
42873         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42874         (gl_sublist_list_implementation): Update.
42875         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42876         upon out-of-memory.
42877         * modules/sublist (Depends-on): Remove xalloc.
42878
42879         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42880         * tests/test-carray_list.c: Likewise.
42881         * tests/test-linked_list.c: Likewise.
42882         * tests/test-linkedhash_list.c: Likewise.
42883         * tests/test-avltree_list.c: Likewise.
42884         * tests/test-rbtree_list.c: Likewise.
42885         * tests/test-avltreehash_list.c: Likewise.
42886         * tests/test-rbtreehash_list.c: Likewise.
42887         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42888         * modules/carray-list-tests (Makefile.am): Likewise.
42889         * modules/linked-list-tests (Makefile.am): Likewise.
42890         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42891         * modules/avltree-list-tests (Makefile.am): Likewise.
42892         * modules/rbtree-list-tests (Makefile.am): Likewise.
42893         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42894         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42895
42896         * NEWS: Mention the changes.
42897
42898         * lib/clean-temp.c: Include gl_xlist.h.
42899         * modules/clean-temp (Depends-on): Add xlist.
42900
42901         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42902         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42903
42904         * tests/test-array_oset.c: Include gl_xlist.h.
42905         * modules/array-oset-tests (Depends-on): Add xlist.
42906
42907         Reported by José E. Marchesi <jemarch@gnu.org>.
42908
42909 2009-12-13  Bruno Haible  <bruno@clisp.org>
42910
42911         Move the malloc checking from module 'oset' to new module 'xoset'.
42912         * modules/xoset: New file.
42913         * lib/gl_xoset.h: New file.
42914         * lib/gl_xoset.c: New file.
42915         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42916         declarations.
42917         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42918         (struct gl_oset_implementation): Rename and change methods accordingly.
42919         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42920         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42921         'int'. Mark as __warn_unused_result__.
42922         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42923         gl_oset_create_empty.
42924         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42925         'int'.
42926         * lib/gl_array_oset.c: Don't include xalloc.h.
42927         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42928         malloc, not xmalloc.
42929         (grow): Change return type to 'int'. Don't call xalloc_die.
42930         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42931         to 'int'.
42932         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42933         'int'.
42934         (gl_array_oset_implementation): Update.
42935         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42936         gl_tree_create_empty.
42937         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42938         'int'.
42939         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42940         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42941         xmalloc.
42942         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42943         not xmalloc.
42944         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42945         xmalloc.
42946         (gl_avltree_oset_implementation): Update.
42947         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42948         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42949         xmalloc.
42950         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42951         not xmalloc.
42952         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42953         xmalloc.
42954         (gl_rbtree_oset_implementation): Update.
42955         * modules/array-oset (Depends-on): Remove xalloc.
42956         * modules/avltree-oset (Depends-on): Likewise.
42957         * modules/rbtree-oset (Depends-on): Likewise.
42958         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42959         * tests/test-avltree_oset.c: Likewise.
42960         * tests/test-rbtree_oset.c: Likewise.
42961         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42962         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42963         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42964         * NEWS: Mention the change.
42965
42966 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42967
42968         maint.mk: allow a project to override release-prep commands
42969         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42970         commands into a new rule.
42971         (release-prep): New rule.
42972         (release-prep-hook): New overridable variable.
42973
42974 2009-12-13  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42977
42978 2009-12-13  Jim Meyering  <meyering@redhat.com>
42979
42980         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42981         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42982
42983 2009-12-12  Bruno Haible  <bruno@clisp.org>
42984
42985         duplocale: Tweak.
42986         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42987
42988 2009-12-12  Karl Berry  <karl@gnu.org>
42989
42990         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42991
42992 2009-12-12  Bruno Haible  <bruno@clisp.org>
42993
42994         * m4/po.m4: Undo incorrect untabification.
42995
42996 2009-12-12  Bruno Haible  <bruno@clisp.org>
42997
42998         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42999         * modules/c-strtod (Depends-on): Add locale.
43000         * modules/c-strtold (Depends-on): Likewise.
43001
43002 2009-12-12  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
43005
43006 2009-12-11  Eric Blake  <ebb9@byu.net>
43007
43008         setenv: relax requirement in light of POSIX ruling
43009         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
43010         not NULL.
43011         * tests/test-setenv.c (main): Relax test.
43012         * tests/test-unsetenv.c (main): Likewise.
43013         * doc/posix-functions/setenv.texi (setenv): Document this.
43014         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43015
43016 2009-12-11  Bruno Haible  <bruno@clisp.org>
43017
43018         New module 'fd-safer-flag'.
43019         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
43020         * lib/dup-safer.c (dup_safer_flag): Remove function.
43021         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
43022         * lib/fd-safer.c (fd_safer_flag): Remove function.
43023         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
43024         * modules/cloexec (configure.ac): Drop indicator macro.
43025         * modules/fd-safer-flag: New file.
43026         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
43027         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
43028         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
43029
43030 2009-12-11  Bruno Haible  <bruno@clisp.org>
43031
43032         Tests for module 'nl_langinfo'.
43033         * modules/nl_langinfo-tests: New file.
43034         * tests/test-nl_langinfo.sh: New file.
43035         * tests/test-nl_langinfo.c: New file.
43036
43037         New module 'nl_langinfo'.
43038         * lib/nl_langinfo.c: New file.
43039         * m4/nl_langinfo.m4: New file.
43040         * modules/nl_langinfo: New file.
43041         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
43042
43043 2009-12-11  Bruno Haible  <bruno@clisp.org>
43044
43045         Tests for module 'langinfo'.
43046         * modules/langinfo-tests: New file.
43047         * tests/test-langinfo.c: New file.
43048
43049         New module 'langinfo'.
43050         * lib/langinfo.in.h: New file.
43051         * m4/langinfo_h.m4: New file.
43052         * modules/langinfo: New file.
43053         * doc/posix-headers/langinfo.texi: Mention the new module.
43054
43055 2009-12-11  Bruno Haible  <bruno@clisp.org>
43056
43057         * lib/config.charset: Untabify.
43058
43059 2009-12-11  Bruno Haible  <bruno@clisp.org>
43060
43061         * modules/unistd-safer (configure.ac): Drop indicator macro.
43062
43063 2009-12-11  Bruno Haible  <bruno@clisp.org>
43064
43065         Move pipe2-safer code to its own file.
43066         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
43067         * lib/pipe-safer.c (pipe2_safer): Remove function.
43068         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
43069         (Makefile.am): Add it to lib_SOURCES.
43070
43071 2009-12-10  Bruno Haible  <bruno@clisp.org>
43072
43073         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
43074
43075 2009-12-10  Bruno Haible  <bruno@clisp.org>
43076
43077         Declare which arguments expect non-NULL values, for GCC and clang.
43078         * build-aux/arg-nonnull.h: New file.
43079         * modules/arg-nonnull: New file.
43080         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
43081         (inet_ntop, inet_pton): Use it.
43082         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
43083         (closedir, dirfd, opendir, scandir, alphasort): Use it.
43084         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
43085         (open, openat): Use it.
43086         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
43087         (fnmatch): Use it.
43088         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
43089         (getopt, getopt_long, getopt_long_only): Use it.
43090         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
43091         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
43092         Use it.
43093         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
43094         (iconv_open): Use it.
43095         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
43096         (strtoimax, strtoumax): Use it.
43097         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
43098         (duplocale): Use it.
43099         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
43100         (frexp, frexpl): Use it.
43101         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
43102         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
43103         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
43104         (tsearch, tfind, tdelete, twalk): Use it.
43105         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
43106         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
43107         sigpending): Use it.
43108         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
43109         (posix_spawn, posix_spawnp, posix_spawnattr_init,
43110         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
43111         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
43112         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
43113         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
43114         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
43115         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
43116         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
43117         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
43118         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
43119         Use it.
43120         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
43121         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
43122         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
43123         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
43124         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
43125         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
43126         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
43127         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
43128         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
43129         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
43130         strtoull, unsetenv): Use it.
43131         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
43132         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
43133         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
43134         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
43135         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
43136         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
43137         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
43138         (strcasecmp, strncasecmp): Use it.
43139         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
43140         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
43141         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
43142         rpl_setsockopt): Use it.
43143         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
43144         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
43145         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
43146         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
43147         (gettimeofday): Use it.
43148         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
43149         (times): Use it.
43150         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
43151         (uname): Use it.
43152         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
43153         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
43154         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
43155         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
43156         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
43157         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
43158         unlinkat, write): Use it.
43159         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
43160         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
43161         * lib/argv-iter.h: Include arg-nonnull.h.
43162         (_ATTRIBUTE_NONNULL_): Remove macro.
43163         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
43164         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
43165         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
43166         optimization.
43167         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
43168         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
43169         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
43170         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
43171         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
43172         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
43173         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
43174         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
43175         * modules/arpa_inet (Depends-on): Add arg-nonnull.
43176         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
43177         * modules/dirent (Depends-on): Add arg-nonnull.
43178         (Makefile.am): Insert arg-nonnull.h into dirent.h.
43179         * modules/fcntl-h (Depends-on): Add arg-nonnull.
43180         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
43181         * modules/fnmatch (Depends-on): Add arg-nonnull.
43182         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
43183         * modules/getopt-posix (Depends-on): Add arg-nonnull.
43184         (Makefile.am): Insert arg-nonnull.h into getopt.h.
43185         * modules/glob (Depends-on): Add arg-nonnull.
43186         (Makefile.am): Insert arg-nonnull.h into glob.h.
43187         * modules/iconv_open (Depends-on): Add arg-nonnull.
43188         (Makefile.am): Insert arg-nonnull.h into iconv.h.
43189         * modules/inttypes (Depends-on): Add arg-nonnull.
43190         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
43191         * modules/locale (Depends-on): Add arg-nonnull.
43192         (Makefile.am): Insert arg-nonnull.h into locale.h.
43193         * modules/math (Depends-on): Add arg-nonnull.
43194         (Makefile.am): Insert arg-nonnull.h into math.h.
43195         * modules/netdb (Depends-on): Add arg-nonnull.
43196         (Makefile.am): Insert arg-nonnull.h into netdb.h.
43197         * modules/search (Depends-on): Add arg-nonnull.
43198         (Makefile.am): Insert arg-nonnull.h into search.h.
43199         * modules/signal (Depends-on): Add arg-nonnull.
43200         (Makefile.am): Insert arg-nonnull.h into signal.h.
43201         * modules/spawn (Depends-on): Add arg-nonnull.
43202         (Makefile.am): Insert arg-nonnull.h into spawn.h.
43203         * modules/stdio (Depends-on): Add arg-nonnull.
43204         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43205         * modules/stdlib (Depends-on): Add arg-nonnull.
43206         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43207         * modules/string (Depends-on): Add arg-nonnull.
43208         (Makefile.am): Insert arg-nonnull.h into string.h.
43209         * modules/strings (Depends-on): Add arg-nonnull.
43210         (Makefile.am): Insert arg-nonnull.h into strings.h.
43211         * modules/sys_socket (Depends-on): Add arg-nonnull.
43212         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43213         * modules/sys_stat (Depends-on): Add arg-nonnull.
43214         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43215         * modules/sys_time (Depends-on): Add arg-nonnull.
43216         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43217         * modules/sys_times (Depends-on): Add arg-nonnull.
43218         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43219         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43220         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43221         * modules/time (Depends-on): Add arg-nonnull.
43222         (Makefile.am): Insert arg-nonnull.h into time.h.
43223         * modules/unistd (Depends-on): Add arg-nonnull.
43224         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43225         * modules/wchar (Depends-on): Add arg-nonnull.
43226         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43227         * modules/argv-iter (Depends-on): Add arg-nonnull.
43228         * tests/test-canonicalize.c (null_ptr): New function.
43229         (main): Use it.
43230         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43231         (main): Use it.
43232         * tests/test-memmem.c (null_ptr): New function.
43233         (main): Use it.
43234         Reported by Jim Meyering.
43235
43236 2009-12-10  Bruno Haible  <bruno@clisp.org>
43237
43238         Use spaces for indentation, not tabs.
43239         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43240         * m4/*.m4: Untabify.
43241         * build-aux/*.h: Untabify.
43242         * tests/**/*.[hc]: Untabify.
43243         * README: New section "Indent with spaces, not TABs", based on
43244         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43245         * NEWS: Mention the change.
43246
43247 2009-12-10  Bruno Haible  <bruno@clisp.org>
43248
43249         pty test: Fix link error.
43250         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43251         test_pty_LDADD.
43252
43253 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43254
43255         * modules/pty: New file.
43256         * modules/pty-tests: New file.
43257         * m4/pty.m4: New file.
43258         * tests/test-pty.c: New file.
43259         * doc/glibc-headers/pty.texi: Modified.
43260         * doc/glibc-functions/forkpty.texi: Modified.
43261         * doc/glibc-functions/openpty.texi: Modified.
43262
43263 2009-12-10  Bruno Haible  <bruno@clisp.org>
43264
43265         Avoid syntax error in C++ mode.
43266         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43267
43268 2009-12-10  Bruno Haible  <bruno@clisp.org>
43269
43270         Use sed with option -e.
43271         * gnulib-tool (func_version, func_emit_copyright_notice,
43272         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43273         option -e to sed.
43274         * modules/link-warning (Makefile.am): Likewise.
43275
43276 2009-12-10  Jim Meyering  <meyering@redhat.com>
43277
43278         mgetgroups: do not write bytes beyond end of malloc'd buffer
43279         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43280         username, we call getgroups with a one-element-shorter buffer,
43281         but still told it the length was original, max_n_groups.
43282
43283 2009-12-09  Eric Blake  <ebb9@byu.net>
43284
43285         cloexec: relax license
43286         * modules/cloexec (Maintainer): Add myself.
43287         (License): Use LGPL, not GPL.
43288
43289         link-warning: optimize generation
43290         * modules/link-warning (Makefile.am): Reduce process usage.
43291
43292 2009-12-09  Bruno Haible  <bruno@clisp.org>
43293
43294         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43295         workaround was added on 2009-11-17.
43296
43297 2009-12-09  Jim Meyering  <meyering@redhat.com>
43298             Bruno Haible  <bruno@clisp.org>
43299
43300         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43301         * modules/link-warning (Makefile.am): Make the comment-removing sed
43302         command more robust in the face of bootstrap-prepended comment lines.
43303
43304 2009-12-09  Bruno Haible  <bruno@clisp.org>
43305
43306         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43307         most one group.
43308
43309 2009-12-09  Simon Josefsson <simon@josefsson.org>
43310             Bruno Haible  <bruno@clisp.org>
43311
43312         * build-aux/link-warning.h: Add copyright notice.
43313         * modules/link-warning (Makefile.am): Generate link-warning.h from
43314         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43315         * NEWS: Mention change in link-warning module.
43316         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43317         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43318         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43319         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43320         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43321         * modules/math (Makefile.am): Add dependency to math.h.
43322         * modules/search (Makefile.am): Add dependency to search.h.
43323         * modules/signal (Makefile.am): Add dependency to signal.h.
43324         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43325         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43326         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43327         * modules/string (Makefile.am): Add dependency to string.h.
43328         * modules/strings (Makefile.am): Add dependency to strings.h.
43329         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43330         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43331         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43332         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43333         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43334         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43335         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43336         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43337         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43338
43339 2009-12-09  Bruno Haible  <bruno@clisp.org>
43340
43341         fchdir: Optimize away rpl_fstat when possible.
43342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43343         REPLACE_OPEN_DIRECTORY.
43344         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43345
43346 2009-12-09  Bruno Haible  <bruno@clisp.org>
43347
43348         * lib/fchdir.c: Update comment.
43349
43350 2009-12-09  Bruno Haible  <bruno@clisp.org>
43351
43352         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43353
43354 2009-12-08  Eric Blake  <ebb9@byu.net>
43355
43356         fchdir: avoid memory leak on re-registration.
43357         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43358
43359 2009-12-08  Jim Meyering  <meyering@redhat.com>
43360
43361         init.sh: avoid Solaris 10 /bin/sh portability problem
43362         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43363         sourced script:
43364           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43365           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43366           bar
43367         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43368         and two tests used that idiom.
43369         * tests/init.sh: Update suggested usage comments.
43370         (path_prepend_): New function, to be used in place
43371         of the --src-path=DIR option.
43372         (setup_): Move PATH-prepending code into path_prepend_.
43373         * tests/test-pread.sh: Adapt to new usage.
43374         * tests/test-xalloc-die.sh: Likewise.
43375
43376 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43377
43378         * doc/gnulib.texi (Glibc pty.h): Add.
43379         * doc/glibc-functions/forkpty.texi: Add.
43380         * doc/glibc-functions/openpty.texi: Add.
43381         Suggested by Bruno Haible.
43382
43383 2009-12-08  Eric Blake  <ebb9@byu.net>
43384
43385         fchdir: fix logic bugs
43386         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43387         * tests/test-fchdir.c (main): Enhance test.
43388         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43389         is in use.
43390
43391         dup2: fix logic bugs
43392         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43393         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43394         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43395         exists.
43396         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43397
43398 2009-12-07  Eric Blake  <ebb9@byu.net>
43399
43400         unlink: fix m4 detection
43401         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43402
43403         unistd-safer: add unit test
43404         * modules/unistd-safer-tests: New file.
43405         * tests/test-dup-safer.c: Likewise.
43406         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43407         * tests/test-dup2.c (setmode): Likewise.
43408         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43409
43410         cloexec: preserve text vs. binary across dup_cloexec
43411         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43412         mode.
43413         * modules/dup2-tests (Depends-on): Add binary-io.
43414         * modules/cloexec-tests (Depends-on): Likewise.
43415         * tests/test-dup2.c (setmode, is_mode): New helpers.
43416         (main): Add tests that translation mode is preserved.
43417         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43418         Reported by Bruno Haible.
43419
43420         mgetgroups: reduce duplicate listings
43421         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43422         resulting array.
43423         * tests/test-chown.h (test_chown): Simplify client.
43424         * tests/test-lchown.h (test_lchown): Likewise.
43425
43426 2009-12-06  Bruno Haible  <bruno@clisp.org>
43427
43428         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43429         value.
43430
43431 2009-12-06  Bruno Haible  <bruno@clisp.org>
43432
43433         * lib/progname.c: Include stdio.h, stdlib.h.
43434         (set_program_name): Reject a NULL argument.
43435
43436 2009-12-05  Eric Blake  <ebb9@byu.net>
43437
43438         pipe2-safer: new module
43439         * modules/pipe2-safer: New file.
43440         * lib/unistd-safer.h (pipe2_safer): New prototype.
43441         * lib/unistd--.h (pipe2): New wrapper.
43442         * lib/pipe-safer.c (pipe2_safer): New function.
43443         * modules/pipe (Depends-on): Add pipe2-safer.
43444         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43445
43446         stdlib-safer: preserve cloexec flag for mkostemp[s]
43447         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43448         fd_safer_flag.
43449
43450         unistd-safer: allow preservation of cloexec status via flag
43451         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43452         prototypes.
43453         * lib/dup-safer.c (dup_safer_flag): New function.
43454         * lib/fd-safer.c (fd_safer_flag): Likewise.
43455         * modules/cloexec (configure.ac): Set witness.
43456
43457         test-dup2: enhance test
43458         * modules/dup2-tests (Depends-on): Add cloexec.
43459         * tests/test-dup2.c (main): Enhance test.
43460
43461         cloexec: add dup_cloexec
43462         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43463         header and comments.
43464         * lib/cloexec.c (set_cloexec_flag): Add comments.
43465         (dup_cloexec): New function, with mingw implementation borrowed
43466         from...
43467         * lib/w32spawn.h (dup_noinherit): ...here.
43468         * modules/execute (Depends-on): Add cloexec.
43469         * modules/pipe (Depends-on): Likewise.
43470         * modules/cloexec (Depends-on): Add dup2.
43471         * modules/cloexec-tests (Files): New file.
43472         * tests/test-cloexec.c: Likewise.
43473
43474         test-xalloc-die: fix test for mingw
43475         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43476         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43477         directory and .exe suffix off argv[0] output.
43478
43479         test-fseeko: fix test for mingw
43480         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43481         than undefining fseek, so test will pass on mingw.
43482
43483 2009-12-05  Bruno Haible  <bruno@clisp.org>
43484
43485         * lib/progname.h (set_program_name): Clarify specification.
43486         * lib/progname.c (set_program_name): Likewise.
43487         Reported by Jim Meyering.
43488
43489 2009-12-05  Jim Meyering  <meyering@redhat.com>
43490
43491         maint.mk: backslash-escape parens in default regexp
43492         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43493         backslash-escape the literal parentheses.
43494
43495         maint.mk: news-date-check: use grep -E
43496         * top/maint.mk (today): Define a Make variable, not a...
43497         (news-date-check): ...shell variable.
43498         (news-date-regexp): Use the Make variable.
43499         Use grep's -E option.  Change the failing diagnostic to mention
43500         the variable, $(news-date-regexp).
43501
43502 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43503
43504         maintainer-makefile: allow customization of NEWS entry format
43505         * top/maint.mk (news-date-regexp): New overridable variable.
43506         (news-date-check): Use it.
43507
43508 2009-12-04  Eric Blake  <ebb9@byu.net>
43509
43510         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43511         * lib/mgetgroups.h (xgetgroups): New prototype.
43512         * lib/mgetgroups.c (xgetgroups): New wrapper.
43513         (mgetgroups): Handle ENOSYS.
43514         * modules/mgetgroups (Depends-on): Add realloc.
43515         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43516
43517         mgetgroups: avoid argument promotion issues with -1
43518         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43519         for invalid gid_t.
43520         * tests/test-chown.h (getegid, test_chown): Likewise.
43521         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43522
43523 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43524
43525         exclude: Fix header file problems.
43526         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43527
43528 2009-12-01  Jim Meyering  <meyering@redhat.com>
43529
43530         fts: fts_open: do not let an empty string cause immediate failure
43531         This is required in support of GNU rm, for which the command
43532         "rm A '' B" must process and remove both A and B, in spite of
43533         the empty string argument.
43534         * lib/fts.c (fts_open): Do not let the presence of an empty string
43535         cause fts_open to fail immediately.  Most fts-using tools must be
43536         able to process all arguments, in order, and can be expected to
43537         diagnose such arguments themselves.
43538
43539 2009-11-30  Eric Blake  <ebb9@byu.net>
43540
43541         utimens: fix compilation error
43542         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43543         Declare variable at right scope.
43544
43545 2009-11-29  Jim Meyering  <meyering@redhat.com>
43546
43547         bootstrap: handle perl-5.11's changed --version output
43548         * build-aux/bootstrap (get_version): Handle perl separately,
43549         since perl-5.11's --version output is different.
43550
43551 2009-11-28  Jim Meyering  <meyering@redhat.com>
43552
43553         userspec: depend on the inttostr module, too
43554         * modules/userspec (Depends-on): Add inttostr.
43555
43556         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43557         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43558         number of MAXUID when it evaluates to (uid_t) -1.
43559         Likewise for group ID.  Reported by Matt McCutchen in
43560         <http://savannah.gnu.org/bugs/?28113>
43561
43562         userspec: reformat to use spaces, not TABs
43563         * lib/userspec.c: Expand TABs to spaces.
43564         Add Emacs' "indent-tabs-mode: nil" hint.
43565
43566 2009-11-27  Eric Blake  <ebb9@byu.net>
43567
43568         getopt-gnu: flush out another BSD bug
43569         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43570         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43571         flush out BSD bug.
43572         * tests/test-getopt.h (test_getopt): End lists with NULL.
43573         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43574         (test_getopt_long_posix): Enhance test.
43575         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43576         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43577         getopt-gnu.
43578         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43579         Likewise.
43580
43581 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43582
43583         * modules/idpriv-droptemp-tests (Notice): Fix text.
43584
43585 2009-11-27  Jim Meyering  <meyering@redhat.com>
43586
43587         test-xalloc-die: avoid spurious failure due to libtool argv difference
43588         In a libtool-enabled project, this test would fail due to a difference
43589         in the emitted program name, e.g.,
43590         -test-xalloc-die: memory exhausted
43591         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43592         Use program to avoid that.
43593         * modules/xalloc-die-tests (Depends-on): Add progname.
43594         * tests/test-xalloc-die.c: Include progname.h".
43595         (program_name): Remove decl.
43596         (main): Call set_program_name.
43597         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43598
43599 2009-11-26  Richard Jones  <rjones@redhat.com>
43600
43601         w32sock: leave win32 error in place.
43602         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43603
43604 2009-11-26  Eric Blake  <ebb9@byu.net>
43605
43606         init.sh: suggest to use skip_ and fail_ functions in comments
43607         * tests/init.sh: Add a sentence.
43608
43609 2009-11-25  Bruno Haible  <bruno@clisp.org>
43610
43611         init.sh: add documentation in comments
43612         * tests/init.sh: Add some developer and user documentation.
43613
43614 2009-11-26  Jim Meyering  <meyering@redhat.com>
43615
43616         init.sh: accommodate even those who specify bogus srcdir manually
43617         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43618         configure-time tests to be sanitized, so that there is no need to
43619         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43620         (with no double quotes) suffices.  However, since tests may be
43621         invoked manually, and since you may explicitly set srcdir to the
43622         name of a directory containing spaces, do quote its uses here.
43623         * tests/test-pread.sh: Likewise.
43624         Suggested by Bruno Haible.
43625
43626         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43627         * tests/test-pread.sh: Write no data into the pipe, because
43628         test-pread actually reads none.  This avoids a diagnostic,
43629         "bash: echo: write error: Broken pipe", that arises in the unusual
43630         event something is ignoring SIGPIPE, and might be interpreted
43631         as some sort of failure.  Reported by Bruno Haible.
43632
43633 2009-11-25  Jim Meyering  <meyering@redhat.com>
43634
43635         test-pread: cover failure with ESPIPE and EINVAL
43636         * tests/test-pread.c (main): Test for failure, too.
43637         * tests/test-pread.sh: Invoke with stdin on a pipe.
43638         Suggested by Eric Blake.
43639
43640         pread: improvement and fix
43641         * modules/pread (Depends-on): Depend on lseek, for portability to
43642         e.g., mingw.  Suggested by Eric Blake.
43643         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43644
43645         unistd.in.h: correct declaration of pread
43646         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43647         Reported by Richard W.M. Jones.
43648
43649         test-pread.sh: distribute the test script
43650         * modules/pread-tests (Files): Include test-pread.sh.
43651
43652         test-pread.sh: clean up
43653         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43654         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43655         That is unnecessary, since it's always ".".
43656         Suggestion from Eric Blake.
43657
43658         test-pread.sh: make executable
43659         * tests/test-pread.sh: Set executable bit.
43660         Reported by Eric Blake.
43661
43662         correct typo in test-pread.sh
43663         * tests/test-pread.sh: Add #! line.
43664
43665         test pread
43666         * tests/test-pread.c: New file.
43667         * tests/test-pread.sh: Likewise.
43668         * modules/pread-tests: Likewise.
43669
43670         pread: new module
43671         * modules/pread: New file.
43672         * lib/unistd.in.h (pread): Define/declare.
43673         * lib/pread.c (pread): New file.
43674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43675         * modules/unistd (Makefile.am): Substitute witnesses.
43676         * doc/posix-functions/pread.texi (pread): Update.
43677         * MODULES.html.sh: Add pread.
43678
43679 2009-11-25  Jim Meyering  <meyering@redhat.com>
43680
43681         tests/init.sh: new file to be used via most *.sh tests
43682         * tests/init.sh: New file.
43683
43684 2009-11-25  Eric Blake  <ebb9@byu.net>
43685
43686         utimens: work around older Linux failure with symlinks
43687         * lib/utimens.c (lutimensat_works_really): New variable.
43688         (fdutimens, lutimens): Use it to manage kernels that support
43689         nanosecond times on files, but not on symlinks.
43690         Reported by Ondřej Vašík.
43691
43692         utimes: fix configure grammar
43693         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43694
43695 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43696
43697         regex: Fix fastmap for multibyte character ranges.
43698         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43699         characters when a multibyte character range is included.
43700
43701 2009-11-22  Andy Wingo  <wingo@pobox.com>
43702
43703         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43704         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43705
43706 2009-11-24  Bruno Haible  <bruno@clisp.org>
43707
43708         doc: Most *_l functions exist in MacOS X 10.5.
43709         * doc/posix-functions/duplocale.texi: Update platforms list.
43710         * doc/posix-functions/freelocale.texi: Likewise.
43711         * doc/posix-functions/newlocale.texi: Likewise.
43712         * doc/posix-functions/uselocale.texi: Likewise.
43713         * doc/posix-functions/isalnum_l.texi: Likewise.
43714         * doc/posix-functions/isalpha_l.texi: Likewise.
43715         * doc/posix-functions/isblank_l.texi: Likewise.
43716         * doc/posix-functions/iscntrl_l.texi: Likewise.
43717         * doc/posix-functions/isdigit_l.texi: Likewise.
43718         * doc/posix-functions/isgraph_l.texi: Likewise.
43719         * doc/posix-functions/islower_l.texi: Likewise.
43720         * doc/posix-functions/isprint_l.texi: Likewise.
43721         * doc/posix-functions/ispunct_l.texi: Likewise.
43722         * doc/posix-functions/isspace_l.texi: Likewise.
43723         * doc/posix-functions/isupper_l.texi: Likewise.
43724         * doc/posix-functions/iswalnum_l.texi: Likewise.
43725         * doc/posix-functions/iswalpha_l.texi: Likewise.
43726         * doc/posix-functions/iswblank_l.texi: Likewise.
43727         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43728         * doc/posix-functions/iswctype_l.texi: Likewise.
43729         * doc/posix-functions/iswdigit_l.texi: Likewise.
43730         * doc/posix-functions/iswgraph_l.texi: Likewise.
43731         * doc/posix-functions/iswlower_l.texi: Likewise.
43732         * doc/posix-functions/iswprint_l.texi: Likewise.
43733         * doc/posix-functions/iswpunct_l.texi: Likewise.
43734         * doc/posix-functions/iswspace_l.texi: Likewise.
43735         * doc/posix-functions/iswupper_l.texi: Likewise.
43736         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43737         * doc/posix-functions/isxdigit_l.texi: Likewise.
43738         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43739         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43740         * doc/posix-functions/strcoll_l.texi: Likewise.
43741         * doc/posix-functions/strfmon_l.texi: Likewise.
43742         * doc/posix-functions/strftime_l.texi: Likewise.
43743         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43744         * doc/posix-functions/strxfrm_l.texi: Likewise.
43745         * doc/posix-functions/tolower_l.texi: Likewise.
43746         * doc/posix-functions/toupper_l.texi: Likewise.
43747         * doc/posix-functions/towctrans_l.texi: Likewise.
43748         * doc/posix-functions/towlower_l.texi: Likewise.
43749         * doc/posix-functions/towupper_l.texi: Likewise.
43750         * doc/posix-functions/wcscoll_l.texi: Likewise.
43751         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43752         * doc/posix-functions/wctrans_l.texi: Likewise.
43753         * doc/posix-functions/wctype_l.texi: Likewise.
43754         * doc/glibc-functions/strptime_l.texi: Likewise.
43755         * doc/glibc-functions/strtod_l.texi: Likewise.
43756         * doc/glibc-functions/strtof_l.texi: Likewise.
43757         * doc/glibc-functions/strtol_l.texi: Likewise.
43758         * doc/glibc-functions/strtold_l.texi: Likewise.
43759         * doc/glibc-functions/strtoll_l.texi: Likewise.
43760         * doc/glibc-functions/strtoul_l.texi: Likewise.
43761         * doc/glibc-functions/strtoull_l.texi: Likewise.
43762         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43763         * doc/glibc-functions/wcstod_l.texi: Likewise.
43764         * doc/glibc-functions/wcstof_l.texi: Likewise.
43765         * doc/glibc-functions/wcstol_l.texi: Likewise.
43766         * doc/glibc-functions/wcstold_l.texi: Likewise.
43767         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43768         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43769         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43770
43771 2009-11-24  Bruno Haible  <bruno@clisp.org>
43772
43773         duplocale: Fix logic bug.
43774         * lib/duplocale.c: Don't include <langinfo.h>.
43775         (_NL_LOCALE_NAME): Remove macro.
43776         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43777         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43778
43779 2009-11-23  Jim Meyering  <meyering@redhat.com>
43780
43781         test-update-copyright: don't hard-code /usr/bin/perl
43782         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43783         perl to print the current year.  Gilles Espinasse reported that
43784         the replaced use of perl was hard-coded as /usr/bin/perl.
43785
43786 2009-11-23  Bruno Haible  <bruno@clisp.org>
43787
43788         duplocale: Add support for glibc 2.3.x.
43789         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43790
43791 2009-11-22  Bruno Haible  <bruno@clisp.org>
43792
43793         vasnprintf: Tiny optimization.
43794         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43795         MacOS X.
43796
43797 2009-11-22  Bruno Haible  <bruno@clisp.org>
43798
43799         Tests for module 'duplocale'.
43800         * modules/duplocale-tests: New file.
43801         * tests/test-duplocale.c: New file.
43802
43803         New module 'duplocale'.
43804         * m4/duplocale.m4: New file.
43805         * lib/locale.in.h (duplocale): New declaration.
43806         * lib/duplocale.c: New file.
43807         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43808         gl_LOCALE_H_DEFAULTS): New macros.
43809         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43810         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43811         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43812         REPLACE_DUPLOCALE.
43813         * modules/duplocale: New file.
43814         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43815
43816 2009-11-22  Bruno Haible  <bruno@clisp.org>
43817
43818         * modules/locale-tests (configure.ac): Test for newlocale function.
43819         * tests/test-locale.c: When the system has extended locale functions,
43820         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43821
43822         locale: Make locale_t available when possible.
43823         * lib/locale.in.h: Include <xlocale.h> when it exists.
43824         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43825         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43826         * modules/locale (Depends-on): Add extensions.
43827         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43828         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43829
43830 2009-11-22  Bruno Haible  <bruno@clisp.org>
43831
43832         Add comments.
43833         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43834         invocation.
43835         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43836         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43837         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43838
43839 2009-11-22  Bruno Haible  <bruno@clisp.org>
43840
43841         error: account for the possibility of freopen (stdout).
43842         * lib/error.c: Include <unistd.h>.
43843         (flush_stdout): New function, extracted from error and error_at_line.
43844         Determine stdout's fd dynamically.
43845         (error, error_at_line): Invoke flush_stdout.
43846         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43847         * modules/error (Depends-on): Add unistd.
43848
43849 2009-11-22  Bruno Haible  <bruno@clisp.org>
43850
43851         diffseq: Add comment.
43852         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43853
43854 2009-11-22  Jim Meyering  <meyering@redhat.com>
43855
43856         c-stack: avoid defining an unused static function
43857         * lib/c-stack.c (find_stack_direction): Do not define this function
43858         when it will not be used.
43859
43860         diffseq: avoid spurious gcc warnings
43861         * lib/diffseq.h (IF_LINT2): Define.
43862         (compareseq): Use it to initialize two members of "part".
43863         This avoids two used-uninitialized warnings.
43864
43865 2009-11-21  Jim Meyering  <meyering@redhat.com>
43866
43867         c-stack: avoid "ignoring return value of `write'" warning
43868         * lib/c-stack.c: Include "ignore-value.h".
43869         (die): Explicitly ignore each write return value.
43870         * modules/c-stack (Depends-on): Add ignore-value.
43871
43872 2009-11-21  Bruno Haible  <bruno@clisp.org>
43873
43874         diffseq: reduce scope of variable 'best'.
43875         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43876         variable, earlier used for two different purposes.
43877
43878 2009-11-21  Jim Meyering  <meyering@redhat.com>
43879
43880         diffseq: remove useless assignment to "best"
43881         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43882         assignment.  At that point "best" is already guaranteed to be zero.
43883
43884 2009-11-20  Eric Blake  <ebb9@byu.net>
43885
43886         build: mention ftp redirector in release announcements
43887         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43888         values that used to come from cfg.mk; mention FTP redirect URL.
43889         * build-aux/announce-gen: Mention the mirror list.
43890         Suggested by Karl Berry.
43891
43892         nanosleep: improve port to mingw
43893         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43895         LIB_NANOSLEEP, but only when needed.
43896         * modules/select (Link): Document LIBSOCKET.
43897         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43898         enough.
43899
43900         nanosleep: work around cygwin bug
43901         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43902         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43903         bug.
43904         (getnow): Delete, not needed.
43905         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43906         LIB_CLOCK_GETTIME.
43907         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43908         clock-time, gettime.
43909         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43910         bug.
43911         * modules/nanosleep-tests: New test.
43912         * tests/test-nanosleep.c: New file.
43913
43914         sleep: work around cygwin bug
43915         * lib/sleep.c (rpl_sleep): Work around the bug.
43916         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43917         (gl_PREREQ_SLEEP): Delete unused macro.
43918         * modules/sleep (Depends-on): Add verify.
43919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43920         * modules/unistd (Makefile.am): Substitute witness.
43921         * lib/unistd.in.h (sleep): Update prototype.
43922         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43923         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43924         * modules/sleep-tests (Depends-on): Check for alarm.
43925
43926 2009-11-20  Jim Meyering  <meyering@redhat.com>
43927
43928         maint.mk: improve sc_prohibit_magic_number_exit
43929         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43930         so it does not match uses like System.exit(1).
43931         Add comments showing how to correct all offenders.
43932
43933 2009-11-19  Eric Blake  <ebb9@byu.net>
43934
43935         xalloc-die-tests: add missing library
43936         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43937
43938         test-xvasprintf: silence compiler warnings
43939         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43940         empty string from gcc.
43941
43942 2009-11-19  Jim Meyering  <meyering@redhat.com>
43943
43944         xfreopen: new module, from coreutils
43945         * modules/xfreopen: New module.
43946         * lib/xfreopen.c: New file.
43947         * lib/xfreopen.h: New file.
43948         * MODULES.html.sh (File stream based Input/Output"): Add it.
43949
43950 2009-11-19  Eric Blake  <ebb9@byu.net>
43951
43952         manywarnings: depend on warnings
43953         * modules/manywarnings (Depends-on): Add warnings.
43954
43955         build: avoid compiler warnings
43956         * lib/select.c (rpl_select): Delete unused variable.
43957         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43958
43959 2009-11-18  Eric Blake  <ebb9@byu.net>
43960
43961         tests: avoid false negative with --with-packager
43962         * tests/test-version-etc.sh: Discard packager information.
43963         * tests/test-argp-version-etc-1.sh: Likewise.
43964         Reported by Mike Frysinger.
43965
43966         utimens: fix regression on Solaris
43967         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43968         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43969         can only change fd timestamps via futimesat.  Instead, use an
43970         additional witness macro to avoid BSD bug.
43971         Reported by Jim Meyering.
43972
43973 2009-11-17  Eric Blake  <ebb9@byu.net>
43974
43975         usleep: use it to simplify tests
43976         * modules/stat-time-tests (Depends-on): Add usleep.
43977         (configure.ac): Drop usleep check.
43978         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43979         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43980         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43981         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43982         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43983         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43984         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43985         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43986         Likewise.
43987         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43988         * tests/test-lchown.h (nap): Likewise.
43989         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43990         * tests/test-stat-time.c (nap): Likewise.
43991         * tests/test-utimens-common.h (nap): Update comments.
43992
43993         usleep: new module
43994         * modules/usleep: New file.
43995         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43996         * lib/usleep.c (usleep): Likewise.
43997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43998         * modules/unistd (Makefile.am): Substitute witnesses.
43999         * lib/unistd.in.h (usleep): Add declaration.
44000         * doc/pastposix-functions/usleep.texi (usleep): Document this.
44001         * MODULES.html.sh (Date and time): Likewise.
44002         * modules/usleep-tests (Depends-on): New test.
44003         * tests/test-usleep.c: New file.
44004
44005         chown: work around OpenBSD bug
44006         * lib/chown.c (rpl_chown): Work around the bug.
44007         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
44008         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
44009         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
44010         * modules/chown (Depends-on): Add stdbool.
44011         * modules/lchown (Depends-on): Likewise.
44012         * doc/posix-functions/chown.texi (chown): Document the bug.
44013         * doc/posix-functions/lchown.texi (lchown): Likewise.
44014         * tests/test-lchown.h (test_chown): Relax test.
44015
44016         mkstemp: avoid conflict with C++ keyword template
44017         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
44018         * lib/mkostemp.c (mkostemp): Likewise.
44019         * lib/mkostemps.c (mkostemps): Likewise.
44020         * lib/mkstemp.c (mkstemp): Likewise.
44021         * lib/mkstemps.c (mkstemps): Likewise.
44022
44023         xalloc-die-tests: optimize
44024         * tests/test-xalloc-die.sh: Reduce number of processes.
44025
44026 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44027
44028         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
44029         patch from ludo@gnu.org (Ludovic Courtès).
44030
44031 2009-11-17  Jim Meyering  <meyering@redhat.com>
44032
44033         version-etc: use proper license string
44034         * modules/version-etc (License): Use LGPL, not LGPLv3+.
44035         * modules/version-etc-fsf: Likewise.
44036
44037 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44038
44039         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
44040         printed to stdout.  Deal with EOL differences.
44041
44042 2009-11-17  Eric Blake  <ebb9@byu.net>
44043
44044         unsetenv: work around Solaris bug
44045         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
44046         * lib/unsetenv.c (rpl_unsetenv): Work around it.
44047         Reported by Jim Meyering.
44048
44049         vasnprintf: avoid compiler warnings
44050         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
44051         variables.
44052         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
44053
44054 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44055
44056         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
44057         settings since xalloc-die is no longer the self test,
44058         xalloc-die.sh is.
44059
44060 2009-11-17  Jim Meyering  <meyering@redhat.com>
44061
44062         test-xalloc-die.sh: make the code agree with the commit log
44063         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
44064         at the end, just in case you happen to have a test-xalloc-die
44065         program in some other PATH directory.
44066
44067         test-xalloc-die.sh: fix a portability bug
44068         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
44069         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
44070         Otherwise, argv[0] (as often seen in diagnostics) would be too
44071         system-dependent, sometimes with, and sometimes without the leading "./".
44072
44073         version-etc-fsf: relax license to LGPLv3+
44074         * modules/version-etc-fsf (License): Relax license.
44075
44076 2009-11-16  Eric Blake  <ebb9@byu.net>
44077
44078         xalloc-die-tests: avoid printing null pointer
44079         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
44080         shell script.
44081         * tests/test-xalloc-die.c (program_name): Declare.
44082         * tests/test-xalloc-die.sh (tmpfiles): New file.
44083
44084         setenv, unsetenv: work around various bugs
44085         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
44086         (setenv) [HAVE_SETENV]: Work around bugs.
44087         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
44088         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
44089         for bugs.
44090         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
44091         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
44092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
44093         * modules/stdlib (Makefile.am): Update substitutions.
44094         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
44095         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
44096         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
44097         * modules/setenv-tests: New test.
44098         * modules/unsetenv-tests: Likewise.
44099         * tests/test-setenv.c: New file.
44100         * tests/test-unsetenv.c: Likewise.
44101
44102 2009-11-16  Jim Meyering  <meyering@redhat.com>
44103
44104         version-etc: relax license to LGPLv3+
44105         * modules/version-etc (License): Relax license.
44106
44107         better AC_REQUIRE expanded-before-required-warning avoidance
44108         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
44109         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
44110         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
44111         which is no longer needed.
44112
44113 2009-11-16  Eric Blake  <ebb9@byu.net>
44114
44115         test-freading: clean up temporary file
44116         * tests/test-freading.c (main): Remove file on success, and use
44117         ASSERT more liberally.
44118         Reported by Jim Meyering.
44119
44120 2009-11-16  Jim Meyering  <meyering@redhat.com>
44121
44122         avoid new AC_REQUIRE expanded-before-required warnings
44123         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
44124         merely using it.
44125         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
44126         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
44127
44128 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44129
44130         * tests/test-xalloc-die.c: New file.
44131         * modules/xalloc-die-tests: New file.
44132         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
44133         XFAIL_TESTS so it can be appended by modules.
44134
44135 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44136
44137         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
44138         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
44139
44140 2009-11-14  Eric Blake  <ebb9@byu.net>
44141
44142         fnmatch: avoid compiler warning
44143         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
44144         to silence compiler warning about mismatch signedness in ?:.
44145         Reported by Robert Millan.
44146
44147         intprops: add double-inclusion guard
44148         * lib/intprops.h: Allow idempotent includes.
44149         Suggested by Bruce Korb.
44150
44151         openat: detect Solaris fchownat bug
44152         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
44153         penalizing glibc chownat when only lchownat is broken.
44154         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
44155         trailing slash bugs.
44156         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
44157         * modules/openat-tests (Files): Include more files.
44158         (Depends-on): Add mgetgroups, sleep, stat-time.
44159         (configure.ac): Add additional checks.
44160         (Makefile.am): Build new test.
44161         * tests/test-fchownat.c: New file.
44162
44163         lchown: detect Solaris and FreeBSD bug
44164         * lib/lchown.c (rpl_lchown): Work around bug.
44165         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
44166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44167         * modules/unistd (Makefile.am): Populate it.
44168         * lib/unistd.in.h (lchown): Update declaration.
44169         * doc/posix-functions/lchown.texi (lchown): Document the bug.
44170         * modules/lchown-tests: New file.
44171         * tests/test-lchown.h (test_lchown): Likewise.
44172         * tests/test-lchown.c (main): Likewise.
44173
44174         chown: detect Solaris and FreeBSD bug
44175         * lib/chown.c (rpl_chown): Work around bug.
44176         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
44177         (gl_PREREQ_CHOWN): Delete.
44178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44179         * modules/unistd (Makefile.am): Populate it.
44180         * lib/unistd.in.h (chown): Update declaration.
44181         * lib/lchown.c (chown): Update client.
44182         * modules/lchown (Depends-on): Add lstat.
44183         * doc/posix-functions/chown.texi (chown): Document the bug.
44184         * doc/posix-functions/getgroups.texi (getgroups): Document
44185         getgroups pitfall.
44186         * modules/chown-tests: New file.
44187         * tests/test-chown.h (test_chown): Likewise.
44188         * tests/test-chown.c (main): Likewise.
44189
44190 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
44191
44192         gnulib-tool: correctly detect absence of m4 directories
44193         * gnulib-tool: Avoid extra newline on data passed to wc -l.
44194
44195 2009-11-14  Jim Meyering  <meyering@redhat.com>
44196
44197         maint.mk: Prohibit inclusion of "xalloc.h" without use.
44198         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44199
44200 2009-11-14  John W. Eaton  <jwe@gnu.org>
44201
44202         strftime.h: wrap function declaration in extern "C" block
44203         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44204
44205 2009-11-13  Eric Blake  <ebb9@byu.net>
44206
44207         getgroups: avoid compiler warning
44208         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44209
44210         getgroups: work around FreeBSD bug
44211         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44212         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44213         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44214         * tests/test-getgroups.c (main): Fix buffer overrun.
44215
44216         getgroups: avoid compilation failure
44217         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44218         * modules/getgroups (Depends-on): Add stdint.
44219
44220 2009-11-13  Jim Meyering  <meyering@redhat.com>
44221
44222         test-getgroups: avoid compilation failure
44223         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44224
44225 2009-11-13  Eric Blake  <ebb9@byu.net>
44226
44227         mgetgroups: new module, taken from coreutils
44228         * modules/mgetgroups: New file.
44229         * lib/mgetgroups.h: Likewise.
44230         * lib/mgetgroups.c (mgetgroups): Likewise.
44231         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44232         * MODULES.html.sh (Users and groups): Mention it.
44233
44234         getgroups: don't expose GETGROUPS_T to user
44235         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44236         an element at a time if GETGROUPS_T is wrong size.
44237         * lib/getugroups.h (getugroups): Change signature.
44238         * lib/unistd.in.h (getgroups): Likewise.
44239         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44240         signature needs fixing.
44241         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44242         AC_TYPE_GETGROUPS.
44243         * modules/group-member (Depends-on): Add getgroups.
44244         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44245         (group_member): Rely on getgroups replacement.
44246         * lib/getugroups.c (getugroups): Use gid_t.
44247         * tests/test-getgroups.c (main): Likewise.
44248         * NEWS: Mention the signature change.
44249         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44250         problem with signature.
44251         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44252         GETGROUPS_T is still useful for setgroups.
44253
44254         getgroups, getugroups: provide stubs for mingw
44255         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44256         * lib/getugroups.c (getugroups): Likewise.
44257         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44258         function.  Modernize replacement scheme.
44259         (gl_PREREQ_GETGROUPS): Delete.
44260         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44261         * modules/getgroups (configure.ac): Declare witness.
44262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44263         * modules/unistd (Depends-on): Substitute witness.
44264         * lib/unistd.in.h (getgroups): Declare replacement.
44265
44266         getgroups: avoid calling exit
44267         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44268         drop xalloc.
44269         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44270         dependencies.
44271         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44272         exiting, in the rare case of malloc failure.
44273
44274         getgroups: fix logic error
44275         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44276         has more than 20 groups.
44277         * modules/getgroups-tests: New test.
44278         * tests/test-getgroups.c: New file.
44279
44280 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44281
44282         * tests/test-base64.c: Improve.
44283
44284 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44285
44286         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44287         Blake <ebb9@byu.net>.
44288
44289 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44290
44291         * tests/test-xvasprintf.c: Add %s%s related checks.
44292
44293 2009-11-12  Eric Blake  <ebb9@byu.net>
44294
44295         version-etc: match standards.texi style
44296         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44297         and use <> only for URLs.
44298
44299 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44300
44301         fts: do not fail on a submount during traversal
44302         * lib/fts.c (fts_build): Read the stat info again after opening
44303         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44304         Original report at http://bugzilla.redhat.com/501848.
44305
44306 2009-11-12  Jim Meyering  <meyering@redhat.com>
44307
44308         bootstrap: sync from coreutils
44309         * build-aux/bootstrap (bootstrap_epilogue): New function.
44310         Use git_modules_config in one more place.  This make bootstrap's
44311         --gnulib-srcdir option more useful for testing.
44312
44313         bootstrap: generalize autoheader check
44314         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44315         AC_CONFIG_HEADERS.
44316
44317 2009-11-11  Eric Blake  <ebb9@byu.net>
44318
44319         mkfifoat: use new modules for Solaris and BSD bugs
44320         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44321         * lib/mkfifoat.c (mknodat): Split...
44322         * lib/mknodat.c (mknodat): ...into new file.
44323         * modules/mkfifoat (Files): Ship new file.
44324         (Depends-on): Add mkfifo, mknod.
44325         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44326         (Depends-on): Add symlink.
44327         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44328         redundant with test_mkfifo.h.
44329         (do_mkfifoat, do_mknodat): New helpers.
44330
44331         mknod: new module
44332         * modules/mknod: New file.
44333         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44334         * lib/mknod.c (mknod): Likewise.
44335         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44336         defaults.
44337         * modules/sys_stat (Makefile.am): Substitute them.
44338         * lib/sys_stat.in.h (mknod): Declare replacement.
44339         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44340         Document it.
44341         * doc/posix-functions/mknod.texi (mknod): Likewise.
44342         * modules/mknod-tests: New test.
44343         * tests/test-mknod.c: Likewise.
44344
44345         mkfifo: new module
44346         * modules/mkfifo: New file.
44347         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44348         * lib/mkfifo.c (mkfifo): Likewise.
44349         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44350         defaults.
44351         * modules/sys_stat (Makefile.am): Substitute them.
44352         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44353         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44354         Document it.
44355         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44356         * modules/mkfifo-tests: New test.
44357         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44358         from test-mkfifoat.c.
44359         * tests/test-mkfifo.c: New file.
44360
44361         readlink: detect FreeBSD bug
44362         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44363         slash on symlink.
44364         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44365         * tests/test-readlink.h (test_readlink): Enhance test.
44366
44367         symlink: detect FreeBSD bug
44368         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44369         slash on symlink.
44370         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44371         * tests/test-symlink.h (test_symlink): Enhance test.
44372
44373 2009-11-10  Eric Blake  <ebb9@byu.net>
44374
44375         link: detect FreeBSD bug
44376         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44377         symlink.
44378         * doc/posix-functions/link.texi (link): Document the bug.
44379         * tests/test-link.h (test_link): Enhance test.
44380         * tests/test-linkat.c (main): Update caller.
44381
44382         unlink, remove: detect FreeBSD bug
44383         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44384         slash on symlink.
44385         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44386         * doc/posix-functions/remove.texi (remove): Likewise.
44387         * tests/test-unlink.h (test_unlink): Enhance test.
44388         * tests/test-remove.c (main): Likewise.
44389
44390 2009-11-09  Eric Blake  <ebb9@byu.net>
44391
44392         rename: detect FreeBSD bug
44393         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44394         slash on symlink.
44395         * modules/renameat-tests (Depends-on): Add filenamecat.
44396         * tests/test-rename.h (test_rename): Allow one more errno.
44397         * tests/test-renameat.c (main): Likewise.
44398         * doc/posix-functions/rename.texi (rename): Document the bug.
44399
44400         open: detect FreeBSD bug
44401         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44402         symlink.
44403         * doc/posix-functions/open.texi (open): Document the bug.
44404         * doc/posix-functions/utimes.texi (utimes): Likewise.
44405         * tests/test-open.h (test_open): Add parameters, and test symlink
44406         handling.
44407         * tests/test-open.c (main): Adjust caller.
44408         * tests/test-fcntl-safer.c (main): Likewise.
44409         * modules/open-tests (Depends-on): Add stdbool, symlink.
44410         * modules/fcntl-safer-tests (Depends-on): Likewise.
44411         * tests/test-openat.c (main): Add test-open tests.
44412
44413         stat: detect FreeBSD bug
44414         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44415         symlink.
44416         * doc/posix-functions/stat.texi (stat): Document the bug.
44417         * tests/test-stat.h (test_stat_func): Add argument.
44418         * tests/test-stat.c (main): Adjust caller.
44419         * tests/test-fstatat.c (main): Likewise.
44420         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44421         Reported by Jim Meyering.
44422
44423 2009-11-09  James Youngman  <jay@gnu.org>
44424
44425         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44426         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44427
44428 2009-11-08  Jim Meyering  <meyering@redhat.com>
44429
44430         utimens: remove invalid futimesat call
44431         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44432         It used the file descriptor of the target file as the DIR_FD
44433         parameter and NULL as the file name.  That caused failure with
44434         errno == EFAULT on FreeBSD-8.0-rc2
44435
44436 2009-11-07  Eric Blake  <ebb9@byu.net>
44437
44438         fflush, freadseek: use fseeko, not fseek
44439         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44440         (clear_ungetc_buffer): Avoid potential problems on large files.
44441         * lib/freadseek.c (freadseek): Likewise.
44442         * modules/freadseek (Depends-on): Add fseeko.
44443         * modules/fseek (configure.ac): Set a witness.
44444         * tests/test-fflush.c (main): Use fseeko.
44445         * tests/test-fpurge.c (fseek): Disable link warning.
44446         * tests/test-freadable.c (fseek): Likewise.
44447         * tests/test-freading.c (fseek): Likewise.
44448         * tests/test-fseeko.c (fseek): Likewise.
44449         * tests/test-ftell.c (fseek): Likewise.
44450         * tests/test-ftello.c (fseek): Likewise.
44451         * tests/test-fwritable.c (fseek): Likewise.
44452         * tests/test-fwriting.c (fseek): Likewise.
44453
44454 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44455
44456         * modules/memchr (Depends-on): Drop getpagesize dependency.
44457
44458 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44459
44460         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44461         Reported by Ludovic Courtès.
44462         * build-aux/pmccabe2html: Improve example usage.
44463         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44464
44465 2009-11-06  Jim Meyering  <meyering@redhat.com>
44466
44467         do-release-commit-and-tag: New module.
44468         Automate the release-commit and tag process.
44469         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44470         * modules/do-release-commit-and-tag: New file.
44471         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44472
44473 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44474
44475         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44476         because test-select.c uses inet_pton.
44477
44478 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44479
44480         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44481         GETADDRINFO_LIB.  Bump serial number.
44482         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44483         Suggested by Eric Blake <ebb9@byu.net>.
44484
44485 2009-11-05  Eric Blake  <ebb9@byu.net>
44486
44487         strtod: detect darwin bug
44488         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44489         Reported by Leo Davis.
44490
44491         freopen-safer: new module
44492         * modules/freopen-safer: New module.
44493         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44494         * lib/freopen-safer.c (freopen_safer): New file.
44495         * lib/stdio-safer.h (freopen_safer): New declaration.
44496         * lib/stdio--.h (freopen): New override.
44497         * MODULES.html.sh (File stream based Input/Output): Mention it.
44498         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44499         freopen-safer module.
44500         * doc/posix-functions/stderr.texi (stderr): Likewise.
44501         * doc/posix-functions/stdin.texi (stdin): Likewise.
44502         * doc/posix-functions/stdout.texi (stdout): Likewise.
44503         * modules/freopen-safer-tests: New test.
44504         * tests/test-reopen-safer.c: New file.
44505
44506 2009-11-05  Jim Meyering  <meyering@redhat.com>
44507
44508         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44509         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44510
44511 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44512
44513         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44514
44515 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44516
44517         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44518
44519 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44520
44521         Fix link error.
44522         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44523         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44524
44525 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44526
44527         * tests/test-func.c: Also test value of __func__.
44528
44529 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44530
44531         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44532         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44533
44534 2009-11-05  Bruno Haible  <bruno@clisp.org>
44535
44536         Fix link error.
44537         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44538         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44539         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44540
44541 2009-11-05  Bruno Haible  <bruno@clisp.org>
44542
44543         Tests for module 'inet_pton'.
44544         * modules/inet_pton-tests: New file.
44545         * tests/test-inet_pton.c: New file.
44546
44547 2009-11-05  Bruno Haible  <bruno@clisp.org>
44548
44549         Tests for module 'inet_ntop'.
44550         * modules/inet_ntop-tests: New file.
44551         * tests/test-inet_ntop.c: New file.
44552
44553 2009-11-04  Eric Blake  <ebb9@byu.net>
44554
44555         stdlib-safer: wrap all mkstemp variants
44556         * modules/mkostemp (configure.ac): Set witness.
44557         * modules/mkostemps (configure.ac): Likewise.
44558         * modules/mkstemps (configure.ac): Likewise.
44559         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44560         (mkstemps_safer): Wrap more functions.
44561         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44562         wrapping.
44563         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44564         (mkstemps_safer): Implement the wrappers.
44565
44566         mkstemps, mkostemps: new modules
44567         * modules/mkostemps: New module.
44568         * modules/mkstemps: Likewise.
44569         * lib/mkostemps.c (mkostemps): New file.
44570         * lib/mkstemps.c (mkstemps): Likewise.
44571         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44572         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44574         * modules/stdlib (Makefile.am): Substitute them.
44575         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44576         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44577         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44578         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44579         * MODULES.html.sh (File system functions): Mention them.
44580
44581         tempname: resync from glibc
44582         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44583         same values for __GT_FILE as glibc.  Abort even when assertions
44584         are disabled.
44585         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44586         match its value otherwise.  Allow idempotent inclusion.
44587         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44588         * lib/mkostemp.c (mkostemp): Likewise.
44589         * lib/mkstemp.c (mkstemp): Likewise.
44590         * lib/tmpfile.c (tmpfile): Likewise.
44591         * NEWS: Document this.
44592
44593         utimens: fix use of futimens on older Linux
44594         * lib/utimens.c (fdutimens): Use updated, rather than original,
44595         timespec to avoid bug in older Linux kernel.
44596         Reported by Simon Josefsson.
44597
44598 2009-11-04  Bruno Haible  <bruno@clisp.org>
44599
44600         Make num_processors more flexible and consistent.
44601         * lib/nproc.h (enum nproc_query): New type.
44602         (num_processors): Add a 'query' argument.
44603         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44604         (num_processors): Add a 'query' argument. Test the value of the
44605         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44606         mingw, count the number of CPUs available for the current process.
44607         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44608         Check for sched_getaffinity and sched_getaffinity_np.
44609         * modules/nproc (Depends-on): Add c-ctype, extensions.
44610         * NEWS: Mention the change.
44611
44612 2009-11-03  Bruno Haible  <bruno@clisp.org>
44613
44614         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44615
44616 2009-11-03  Jim Meyering  <meyering@redhat.com>
44617
44618         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44619         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44620         if it is defined.
44621
44622 2009-11-02  Eric Blake  <ebb9@byu.net>
44623
44624         mktime, timegm: share common declaration
44625         * lib/mktime-internal.h: New file.
44626         * lib/mktime.c: Use it rather than open-coding a declaration.
44627         * lib/timegm.c: Likewise.
44628         * modules/mktime (Files): Ship it.
44629         * modules/timegm (Files): Likewise.
44630         Suggested by Bruno Haible.
44631
44632         test-update-copyright: update test to match script changes
44633         * tests/test-update-copyright.sh: Avoid hard-coding perl
44634         location.  Don't update *.bak created by earlier runs.
44635
44636 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44637             Simon Josefsson  <simon@josefsson.org>
44638             Bruno Haible  <bruno@clisp.org>
44639
44640         Fix link error on Solaris 8.
44641         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44642         also in libnsl. Define also INET_PTON_LIB.
44643         * modules/inet_pton (Link): New section.
44644
44645 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44646             Bruno Haible  <bruno@clisp.org>
44647
44648         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44649         * modules/inet_ntop (Link): New section.
44650         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44651
44652 2009-11-02  Eric Blake  <ebb9@byu.net>
44653
44654         maint: avoid compiler warnings in m4 macros
44655         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44656         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44657
44658 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44659
44660         * m4/pmccabe2html.m4: Remove file.
44661         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44662         function.  Change maintainer.
44663         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44664         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44665         Courtès).
44666
44667 2009-10-31  Eric Blake  <ebb9@byu.net>
44668
44669         fseeko: fix m4 regression
44670         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44671         regression from 2009-10-27.
44672         Reported by Ralf Wildenhues.
44673
44674 2009-10-31  Jim Meyering  <meyering@redhat.com>
44675
44676         inttostr: aesthetics and improved (compile-time) safety
44677         Define inttype_is_signed rather than inttype_is_unsigned,
44678         since the sole use is via "#if inttype_is_signed".
44679         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44680         inttype_is_unsigned.
44681         * lib/offtostr.c (inttype_is_signed): Likewise.
44682         * lib/uinttostr.c (inttype_is_signed): Likewise.
44683         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44684         * lib/inttostr.c (inttostr): Use verify to cross-check the
44685         inttype_is_signed value and the signedness of the actual type.
44686         * modules/inttostr (Depends-on): Add verify.
44687
44688 2009-10-30  Eric Blake  <ebb9@byu.net>
44689
44690         build: avoid compiler warnings
44691         * lib/fchmodat.c (lchmod): Mark unused variables.
44692         * lib/getopt.c (_getopt_initialize): Likewise.
44693         * lib/mktime.c (__mktime_internal): Provide prototype.
44694         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44695         older gcc that do not understand #pragma GCC diagnostic.
44696         * lib/uinttostr.c (inttype_is_unsigned): Define.
44697         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44698
44699 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44700
44701         stat: fix compilation on AIX
44702         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44703         only see struct stat64.
44704
44705 2009-10-30  Eric Blake  <ebb9@byu.net>
44706
44707         exclude: make more robust
44708         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44709         rather than masking a coding bug.
44710         Suggested by Bruno Haible.
44711
44712 2009-10-30  Jim Meyering  <meyering@redhat.com>
44713
44714         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44715         Rather than putting #!/usr/bin/perl on the first line,
44716         start with a variant of what's recommended by "man perlrun" that
44717         invokes the first "perl" program from your shell's search path.
44718         * build-aux/gitlog-to-changelog: Replace #!... as above.
44719         Add a "Local Variables" perl mode setting.
44720         Prompted by a patch from Ludovic Courtès.
44721         Improved by Eric Blake.
44722         * build-aux/useless-if-before-free: Likewise.
44723         * build-aux/announce-gen: Likewise.
44724         * build-aux/update-copyright: Likewise.
44725
44726 2009-10-29  Eric Blake  <ebb9@byu.net>
44727
44728         filenamecat-lgpl: adjust clients
44729         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44730         filenamecat.
44731         * modules/renameat (Depends-on): Likewise.
44732
44733         filenamecat: split into filenamecat-lgpl
44734         * modules/filenamecat-lgpl: New module.
44735         * modules/filenamecat (Files): Move library-safe files into
44736         filenamecat-lgpl.
44737         (Depends-on): Add filenamecat-lgpl.
44738         (configure.ac): Declare witness.
44739         * lib/filenamecat.h (file_name_concat): Only declare when using
44740         GPL module.
44741         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44742         Move...
44743         * lib/filenamecat-lgpl.c: ...into new file.
44744         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44745         (gl_FILE_NAME_CONCAT): Use it.
44746         * MODULES.html.sh (File system functions): Mention new module.
44747
44748         argp: avoid memory leak
44749         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44750         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44751         base_name, since the latter malloc()s and can call exit().
44752         Leak introduced 2006-07-03.
44753
44754         dirname-lgpl: adjust clients that don't need full dirname
44755         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44756         * modules/filenamecat (Depends-on): Likewise.
44757         * modules/linkat (Depends-on): Likewise.
44758         * modules/mkancesdirs (Depends-on): Likewise.
44759         * modules/mkdir (Depends-on): Likewise.
44760         * modules/openat (Depends-on): Likewise.
44761         * modules/savewd (Depends-on): Likewise.
44762         * modules/rename (Depends-on): Likewise.
44763         (License): Relax license.
44764         * modules/mkdir-tests (Depends-on): Drop progname.
44765         (Makefile.am): Delete unneeded LDADD.
44766         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44767
44768         dirname: split into dirname-lgpl
44769         * modules/dirname-lgpl: New module.
44770         * modules/dirname (Files): Move library-safe files into
44771         dirname-lgpl.
44772         (Depends-on): Add dirname-lgpl.
44773         (configure.ac): Declare witness.
44774         * modules/double-slash-root (License): Relax license.
44775         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44776         module.
44777         * lib/dirname.c (dir_len, mdir_name): Move...
44778         * lib/dirname-lgpl.c: ...into new file.
44779         * lib/basename.c (last_component, base_len): Move...
44780         * lib/basename-lgpl.c: ...into new file.
44781         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44782         (gl_DIRNAME): Use it.
44783         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44784         Mention new module.
44785         * modules/dirname-tests (Depends-on): Add progname.
44786         * tests/test-dirname.c (program_name): Delete.
44787
44788         mkdir: make safe for libraries
44789         * modules/mkdir (Depends-on): Drop xalloc.
44790         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44791         exit.
44792
44793         tests: avoid some compiler warnings
44794         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44795         literals.
44796         * tests/test-memchr.c (main): Avoid type mismatch.
44797         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44798         * tests/test-base64.c (main): Likewise.
44799         * tests/test-getdelim.c (main): Likewise.
44800         * tests/test-gethostname.c (main): Likewise.
44801         * tests/test-getline.c (main): Likewise.
44802         * tests/test-netinet_in.c (main): Likewise.
44803         * tests/test-select.c (open_server_socket, main): Likewise.
44804         * tests/test-select-stdin.c (main): Likewise.
44805         * tests/test-sockets.c (main): Likewise.
44806         * tests/test-strsignal.c (main): Likewise.
44807         * tests/test-sys_select.c (main): Likewise.
44808         * tests/test-sys_socket.c (main): Likewise.
44809         * tests/test-u64.c (main): Likewise.
44810         * tests/test-xfprintf-posix.c (main): Likewise.
44811         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44812
44813         sockets: avoid compiler warning
44814         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44815
44816         maint: detect usage(1) and other suspicious exits
44817         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44818
44819 2009-10-29  Jim Meyering  <meyering@redhat.com>
44820
44821         timespec: long-to-int truncation could make timespec_cmp malfunction
44822         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44823         a multiple of 2^32 nanoseconds as no difference.
44824
44825 2009-10-28  Jim Meyering  <meyering@redhat.com>
44826
44827         fprintftime: wrap macro code argument in "do {...} while(0)"
44828         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44829         cpy macro must be a statement that can be followed by a semicolon.
44830         Now that the else clause contains a comment and is hence longer
44831         than one line, I require curly braces.  That in turn requires
44832         that we wrap this code block in the standard do...while(0).
44833
44834         fprintftime: remove stray semicolon from previous change
44835         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44836
44837         fprintftime: avoid a warning about ignored fwrite return value
44838         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44839         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44840         that is unsafe.
44841         * modules/fprintftime (Depends-on): Add ignore-value.
44842
44843         exclude: avoid an unwarranted warning
44844         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44845
44846 2009-10-27  Eric Blake  <ebb9@byu.net>
44847
44848         fseek: avoid compilation failure when fflush is replaced
44849         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44850         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44851         module is in use.
44852         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44853         module is not in use; since REPLACE_FSEEK worked otherwise.
44854         (GNULIB_FTELLO): Likewise for ftell.
44855         Reported by Ian Beckwith and others.
44856
44857 2009-10-27  Bruno Haible  <bruno@clisp.org>
44858
44859         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44860         Reported by Jim Meyering.
44861
44862 2009-10-27  Jim Meyering  <jim@meyering.net>
44863             Bruno Haible  <bruno@clisp.org>
44864
44865         Avoid warning despite dropping the return value of fwrite.
44866         * lib/unicodeio.c: Include ignore-value.h.
44867         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44868         * modules/unicodeio (Depends-on): Add ignore-value.
44869
44870 2009-10-26  Eric Blake  <ebb9@byu.net>
44871
44872         areadlinkat: fix fallback path
44873         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44874         pointer and zero.
44875
44876 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44877
44878         Use a better IO block size for modern systems
44879         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44880         * lib/md2.c: Likewise.
44881         * lib/md4.c: Likewise.
44882         * lib/md5.c: Likewise.
44883         * lib/sha1.c: Likewise.
44884         * lib/sha256.c: Likewise.
44885         * lib/sha512.c: Likewise.
44886
44887 2009-10-22  Eric Blake  <ebb9@byu.net>
44888
44889         tests: avoid several compiler warnings
44890         * tests/test-getcwd.c (main): Avoid buffer underflow.
44891         * tests/test-getdate.c (main): String literals are not safe with
44892         putenv, so use setenv.  Declare unused argument.
44893         * modules/getdate-tests (Depends-on): Add setenv.
44894         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44895         problems with string literals in char *.
44896         * tests/test-hash.c (main): Avoid shadowing declaration.
44897         (insert_new): Treat string literals as char const *.
44898         * tests/test-getopt.h (test_getopt): Likewise.
44899         (getopt_loop): Alter types to minimize casting elsewhere.
44900         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44901         (test_getopt_long_posix): Likewise.
44902         (do_getopt_long): Add wrapper to minimize casting.
44903         * tests/test-atexit.c (clear_temp_file): Use void.
44904         * tests/test-areadlink-with-size.c (main): Declare unused
44905         arguments.
44906         * tests/test-areadlink.c (main): Likewise.
44907         * tests/test-areadlinkat-with-size.c (main): Likewise.
44908         * tests/test-areadlinkat.c (main): Likewise.
44909         * tests/test-canonicalize-lgpl.c (main): Likewise.
44910         * tests/test-canonicalize.c (main): Likewise.
44911         * tests/test-dirent-safer.c (main): Likewise.
44912         * tests/test-dirname.c (main): Likewise.
44913         * tests/test-dup2.c (main): Likewise.
44914         * tests/test-fchdir.c (main): Likewise.
44915         * tests/test-fcntl-h.c (main): Likewise.
44916         * tests/test-fcntl-safer.c (main): Likewise.
44917         * tests/test-fdopendir.c (main): Likewise.
44918         * tests/test-fdutimensat.c (main): Likewise.
44919         * tests/test-fflush.c (main): Likewise.
44920         * tests/test-filenamecat.c (main): Likewise.
44921         * tests/test-filevercmp.c (main): Likewise.
44922         * tests/test-fopen-safer.c (main): Likewise.
44923         * tests/test-fopen.c (main): Likewise.
44924         * tests/test-fpending.c (main): Likewise.
44925         * tests/test-fpurge.c (main): Likewise.
44926         * tests/test-freading.c (main): Likewise.
44927         * tests/test-fstatat.c (main): Likewise.
44928         * tests/test-fsync.c (main): Likewise.
44929         * tests/test-futimens.c (main): Likewise.
44930         * tests/test-getndelim2.c (main): Likewise.
44931         * tests/test-gettimeofday.c (main): Likewise.
44932         * tests/test-getopt.c (main): Likewise.
44933         * tests/test-i-ring.c (main): Likewise.
44934         * tests/test-inttypes.c (main): Likewise.
44935         * tests/test-link.c (main): Likewise.
44936         * tests/test-lstat.c (main): Likewise.
44937         * tests/test-math.c (main): Likewise.
44938         * tests/test-md5.c (main): Likewise.
44939         * tests/test-memchr2.c (main): Likewise.
44940         * tests/test-memrchr.c (main): Likewise.
44941         * tests/test-mkdir.c (main): Likewise.
44942         * tests/test-mkdirat.c (main): Likewise.
44943         * tests/test-mkfifoat.c (main): Likewise.
44944         * tests/test-open.c (main): Likewise.
44945         * tests/test-openat-safer.c (main): Likewise.
44946         * tests/test-openat.c (main): Likewise.
44947         * tests/test-quotearg.c (main): Likewise.
44948         * tests/test-rawmemchr.c (main): Likewise.
44949         * tests/test-readlink.c (main): Likewise.
44950         * tests/test-remove.c (main): Likewise.
44951         * tests/test-rename.c (main): Likewise.
44952         * tests/test-renameat.c (main): Likewise.
44953         * tests/test-rmdir.c (main): Likewise.
44954         * tests/test-sha1.c (main): Likewise.
44955         * tests/test-signal.c (main): Likewise.
44956         * tests/test-sigaction.c (main): Likewise.
44957         * tests/test-stat.c (main): Likewise.
44958         * tests/test-stat-time.c (main): Likewise.
44959         * tests/test-stddef.c (main): Likewise.
44960         * tests/test-stdint.c (main): Likewise.
44961         * tests/test-stdio.c (main): Likewise.
44962         * tests/test-stdlib.c (main): Likewise.
44963         * tests/test-strchrnul.c (main): Likewise.
44964         * tests/test-strerror.c (main): Likewise.
44965         * tests/test-string.c (main): Likewise.
44966         * tests/test-strtod.c (main): Likewise.
44967         * tests/test-strverscmp.c (main): Likewise.
44968         * tests/test-symlink.c (main): Likewise.
44969         * tests/test-symlinkat.c (main): Likewise.
44970         * tests/test-sys_stat.c (main): Likewise.
44971         * tests/test-sys_time.c (main): Likewise.
44972         * tests/test-time.c (main): Likewise.
44973         * tests/test-unistd.c (main): Likewise.
44974         * tests/test-unlink.c (main): Likewise.
44975         * tests/test-unlinkat.c (main): Likewise.
44976         * tests/test-utimens.c (main): Likewise.
44977         * tests/test-utimensat.c (main): Likewise.
44978         * tests/test-version-etc.c (main): Likewise.
44979         * tests/test-wchar.c (main): Likewise.
44980         * tests/test-wctype.c (main): Likewise.
44981         * tests/test-xprintf-posix.c (main): Likewise.
44982         * tests/test-posixtm.c (main): Likewise.
44983         (STREQ): Delete unused macro.
44984         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44985         shadowed variables.
44986         * tests/test-memchr.c (main): Likewise.
44987
44988 2009-10-21  Eric Blake  <ebb9@byu.net>
44989
44990         areadlinkat: avoid failure on older glibc
44991         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44992         rather than mis-comparing 0 against FUNC_RESULT of char*.
44993
44994 2009-10-21  Bruno Haible  <bruno@clisp.org>
44995
44996         * modules/stpncpy (License): Relicense under LGPLv2+.
44997         Reported by David Lutterkort <lutter@redhat.com>.
44998
44999 2009-10-20  Eric Blake  <ebb9@byu.net>
45000
45001         utimensat: work around Solaris 9 bug
45002         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
45003         has trailing slash bugs.
45004         * tests/test-lutimens.h (test_lutimens): Enhance test.
45005         * tests/test-utimens.h (test_utimens): Likewise.
45006         * doc/posix-functions/utime.texi (utime): Enhance documentation.
45007         * doc/posix-functions/utimes.texi (utimes): Likewise.
45008         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45009         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
45010         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
45011         * doc/posix-functions/futimens.texi (futimens): Likewise.
45012
45013         fdutimensat: new module
45014         * modules/fdutimensat: New file.
45015         * lib/fdutimensat.c (fdutimensat): Likewise.
45016         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
45017         * MODULES.html.sh (File system functions): Mention module.
45018         * modules/fdutimensat-tests: New test.
45019         * tests/test-fdutimensat.c: Likewise.
45020
45021         doc: regenerate INSTALL
45022         * doc/INSTALL: Reflect recent autoconf update.
45023         * doc/INSTALL.ISO: Likewise.
45024         * doc/INSTALL.UTF-8: Likewise.
45025
45026 2009-10-20  Pádraig Brady  <P@draigBrady.com>
45027
45028         acl: warn if ACL support is not detected
45029         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
45030
45031 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
45032
45033         * lib/nproc.h: Add extern "C" block for C++.
45034
45035 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
45036             Bruno Haible  <bruno@clisp.org>
45037
45038         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
45039         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
45040         * doc/posix-functions/isalpha.texi: Likewise.
45041         * doc/posix-functions/isblank.texi: Likewise.
45042         * doc/posix-functions/iscntrl.texi: Likewise.
45043         * doc/posix-functions/isdigit.texi: Likewise.
45044         * doc/posix-functions/isgraph.texi: Likewise.
45045         * doc/posix-functions/islower.texi: Likewise.
45046         * doc/posix-functions/isprint.texi: Likewise.
45047         * doc/posix-functions/ispunct.texi: Likewise.
45048         * doc/posix-functions/isspace.texi: Likewise.
45049         * doc/posix-functions/isupper.texi: Likewise.
45050         * doc/posix-functions/isxdigit.texi: Likewise.
45051
45052 2009-10-18  Bruno Haible  <bruno@clisp.org>
45053
45054         Tests for module 'isblank'.
45055         * modules/isblank-tests: New file.
45056         * tests/test-isblank.c: New file.
45057
45058         New module 'isblank'.
45059         * lib/isblank.c: New file.
45060         * m4/isblank.m4: New file.
45061         * modules/isblank: New file.
45062         * doc/posix-functions/isblank.texi: Mention the new module.
45063
45064 2009-10-18  Bruno Haible  <bruno@clisp.org>
45065
45066         New module 'ctype'.
45067         * lib/ctype.in.h: New file.
45068         * m4/ctype.m4: New file.
45069         * modules/ctype: New file.
45070         * doc/posix-headers/ctype.texi: Mention the new module.
45071
45072 2009-10-18  Jim Meyering  <meyering@redhat.com>
45073
45074         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
45075         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
45076         right after its initialization, rather than farther down.
45077         Keeping these in close proximity makes it easier to ensure
45078         that each such variable is initialized.  E.g.,
45079
45080             LIB_CLOCK_GETTIME=
45081             AC_SUBST([LIB_CLOCK_GETTIME])
45082
45083         This change also increments these serial numbers.
45084         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
45085         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45087
45088 2009-10-18  Bruno Haible  <bruno@clisp.org>
45089
45090         Don't let environment variables perturb build.
45091         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
45092         (gl_PREREQ_GETHRXTIME): ... not here.
45093
45094 2009-10-18  Bruno Haible  <bruno@clisp.org>
45095
45096         Avoid symlink attack in localcharset module.
45097         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
45098         (O_NOFOLLOW): Define fallback.
45099         (get_charset_aliases): Don't open the file if it is a symbolic link.
45100         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
45101         gl_FCNTL_H.
45102         (gl_FCNTL_H): Require it.
45103         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
45104         * modules/localcharset (Files): Add m4/fcntl_h.m4.
45105         Reported by Fergal Glynn <fglynn@veracode.com>.
45106
45107 2009-10-18  Bruno Haible  <bruno@clisp.org>
45108
45109         Implement nproc for mingw.
45110         * lib/nproc.c: Include <windows.h>
45111         (num_processors): On native Windows platforms, try GetSystemInfo.
45112
45113 2009-10-18  Bruno Haible  <bruno@clisp.org>
45114
45115         Implement nproc for IRIX.
45116         * lib/nproc.c: Include <sys/sysmp.h>.
45117         (num_processors): On IRIX systems, try sysmp.
45118         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
45119
45120 2009-10-18  Bruno Haible  <bruno@clisp.org>
45121
45122         Implement nproc for HP-UX.
45123         * lib/nproc.c: Include <sys/pstat.h>
45124         (num_processors): On HP-UX systems, try pstat_getdynamic.
45125         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
45126         pstat_getdynamic.
45127
45128 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
45129             Bruno Haible  <bruno@clisp.org>
45130
45131         Implement nproc for NetBSD, OpenBSD.
45132         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
45133         (ARRAY_SIZE): New macro.
45134         (num_processors): On BSD systems, try sysctl of HW_NCPU.
45135         * m4/nproc.m4: New file.
45136         * modules/nproc (Files): Add m4/nproc.m4.
45137         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
45138         (Makefile.am): Instead, augment lib_SOURCES.
45139
45140 2009-10-18  Bruno Haible  <bruno@clisp.org>
45141
45142         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
45143         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
45144         sys/param.h.
45145
45146 2009-10-16  Eric Blake  <ebb9@byu.net>
45147
45148         utimensat: new module
45149         * modules/utimensat: New file.
45150         * lib/utimensat.c (utimensat): Likewise.
45151         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45152         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
45153         so we can work around Linux bugs.
45154         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45155         * modules/sys_stat (Makefile.am): Substitute them.
45156         * lib/sys_stat.in.h (utimensat): Declare it.
45157         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45158         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45159         * modules/utimensat-tests: New test.
45160         * tests/test-utimensat.c: Likewise.
45161
45162         utimens: let lutimens work on non-symlinks
45163         * lib/utimens.c (lutimens): Fall back to utimens rather than
45164         failing with ENOSYS, when file is not a symlink.
45165         (utimens): Reduce redirection.
45166         * tests/test-lutimens.h (test_lutimens): Update test to cover
45167         non-symlinks.
45168         * tests/test-utimens.h (test_utimens): Update test to cover
45169         symlinks.
45170         * tests/test-utimens.c (main): Update caller.
45171
45172         utimens: cache whether utimensat syscall works
45173         * lib/utimens.c (utimensat_works_really): New cache variable.
45174         (fdutimens, lutimens): Use it to avoid failing syscall.
45175
45176         test-stat-time, test-utimens: improve portability
45177         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
45178         ext4 on alpha, and for cygwin.
45179         * tests/test-utimens-common.h: New file.
45180         (nap): Factor delays into single function.
45181         * tests/test-lutimens.h (test_lutimens): Use new header.
45182         * tests/test-futimens.h (test_futimens): Likewise.
45183         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
45184         timestamps to occur from same machine, as was done previously for
45185         test_utimens.
45186         * modules/utimens-tests (Files): Ship new file.
45187         * modules/futimens-tests (Files): Likewise.
45188         Reported in part by Jim Meyering.
45189
45190         sys_stat: sort replacement declarations
45191         * lib/sys_stat.in.h: Sort declarations.
45192         * lib/futimens.c (futimens): Fix typo.
45193
45194 2009-10-15  Jim Meyering  <meyering@redhat.com>
45195
45196         don't let environment settings perturb build
45197         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
45198         could cause a configure-time and/or build-time malfunction.
45199         Typically, a configure-time function-in-library test is performed
45200         via code like this:
45201
45202           LIB_VAR=
45203           AC_SUBST([LIB_VAR])
45204           prefix_saved_LIBS=$LIBS
45205             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45206                        [test "$ac_cv_search_FUNC" = "none required" ||
45207                         LIB_VAR=$ac_cv_search_FUNC])
45208           LIBS=$prefix_saved_LIBS
45209
45210         However, in each of the files affected by this change, the LIB_VAR=
45211         initialization was omitted.  Thus, when set in the environment, its
45212         value would propagate into generated Makefiles when FUNC is not found
45213         in LIB_NAME.
45214         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45215         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45216         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45217
45218 2009-10-14  Eric Blake  <ebb9@byu.net>
45219
45220         fchdir: avoid infinite recursion in mingw
45221         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45222         recursing.
45223
45224         test-stat-time: port to mingw
45225         * tests/test-stat-time.c (force_unlink): Return a value.
45226         (test_ctime) [W32]: Fix compilation error.
45227         (nap): Don't call usleep with too large an argument.  Use
45228         force_unlink.
45229         * doc/pastposix-functions/usleep.texi (usleep): Document the
45230         portability issue.
45231
45232 2009-10-13  Jim Meyering  <meyering@redhat.com>
45233
45234         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45235         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45236         * modules/pipe-filter-ii: Likewise.
45237         * modules/sys_socket-tests: Likewise.
45238         * modules/tsearch-tests: Likewise.
45239         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45240         (check): Depend on it.
45241
45242 2009-10-12  Eric Blake  <ebb9@byu.net>
45243
45244         utimens-tests: port to NFS file systems
45245         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45246         comparisons to avoid spurious failures from timestamp drift
45247         between NFS machines.
45248
45249 2009-10-12  Eric Blake  <ebb9@byu.net>
45250
45251         stat-time-tests: minor cleanups
45252         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45253         * tests/test-stat-time.c (nap): Separate assignment from call.
45254         Suggested by Paolo Bonzini and Bruno Haible.
45255
45256         sys_stat: guarantee struct timespec
45257         * lib/sys_stat.in.h (includes): Always include <time.h>
45258         * modules/sys_stat (Depends-on): Add time.
45259         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45260         mode_t permission values.
45261         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45262         get at subsecond timestamps.
45263
45264 2009-10-10  Eric Blake  <ebb9@byu.net>
45265
45266         futimens: new module
45267         * modules/futimens: New file.
45268         * lib/futimens.c (futimens): Likewise.
45269         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45270         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45271         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 (futimens): Declare it.
45275         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45276         * doc/posix-functions/futimens.texi (futimens): Likewise.
45277         * modules/futimens-tests: New test.
45278         * tests/test-futimens.c: Likewise.
45279
45280         utimens: introduce fdutimens
45281         * lib/utimens.h (fdutimens): New prototype.
45282         * lib/utimens.c (gl_futimens): Move guts...
45283         (fdutimens): ...to new interface.
45284         * tests/test-utimens.c (do_fdutimens): Use it.
45285
45286         utimens: add UTIME_NOW and UTIME_OMIT support
45287         * lib/utimens.c (validate_timespec, update_timespec): New helper
45288         functions.
45289         (gl_futimens, lutimens): Use them.
45290         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45291         stdbool, sys_stat.
45292         (Link): Mention resulting library dependency.
45293         * modules/utimecmp (Link): Likewise.
45294         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45295         (Makefile.am): Pick up library dependency.
45296         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45297         definition.
45298         * tests/test-sys_stat.c: Test the definitions.
45299         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45300         * NEWS: Document library dependency.
45301
45302         utimecmp: support symlink timestamps
45303         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45304         hashing when possible.  Use pathconf when available.
45305         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45306         * modules/utimecmp (Depends-on): Add lstat.
45307
45308         utimens: add lutimens interface
45309         * lib/utimens.c (lutimens): New function.
45310         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45311         * lib/utimens.h (lutimens): Declare new interface.
45312         * tests/test-utimens.c (main): Enhance test.
45313         * tests/test-lutimens.h (test_lutimens): New file.
45314         * modules/utimens-tests (Files): Distribute it.
45315         (Depends-on): Add symlink.
45316         (configure.ac): Check for usleep.
45317
45318         utimens: validate futimens usage
45319         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45320         fewer syscalls on failure later on.  Avoid compiler warning on
45321         mingw.
45322         * modules/utimens (Depends-on): Add dup2.
45323
45324         utimens: add test
45325         * modules/utimens-tests: New test.
45326         * tests/test-utimens.h: New file.
45327         * tests/test-futimens.h: Likewise.
45328         * tests/test-utimens.c: Likewise.
45329
45330         doc: mention timestamp portability issues
45331         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45332         instead.
45333         * doc/posix-functions/utime.texi (utime): Likewise.
45334         * doc/posix-functions/utimes.texi (utimes): Likewise.
45335         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45336         instead.
45337         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45338         module.
45339         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45340         Mention weakness with symlink timestamps.
45341         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45342         to utimensat/futimens instead.
45343         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45344
45345         test-dup2: enhance test
45346         * tests/test-dup2.c (main): Also check AT_FDCWD.
45347
45348         test-stat-time: avoid more spurious failures
45349         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45350         xfs; and avoid race if the two timestamps cross quantization edge.
45351
45352         relocatable: prefer 'file system' over 'filesystem'
45353         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45354         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45355         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45356         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45357         * lib/relocatable.c (compute_curr_prefix): Likewise.
45358
45359 2009-10-10  Jim Meyering  <meyering@redhat.com>
45360
45361         stat-time-tests: check for the usleep function
45362         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45363
45364 2009-10-10  Bruno Haible  <bruno@clisp.org>
45365
45366         * modules/xnanosleep: Put the Link section after the Include section.
45367
45368 2009-10-09  Eric Blake  <ebb9@byu.net>
45369
45370         dup2: work around FreeBSD 6.1 bug
45371         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45372         * doc/posix-functions/dup2.texi (dup2): Document it.
45373         Reported by Nelson H. F. Beebe and Jim Meyering.
45374
45375         test-stat-time: port to buggy NFS clients
45376         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45377         (test_ctime): Also skip test if mtime and ctime are skewed.
45378
45379         maint: prefer 'file system' over 'filesystem'
45380         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45381         * doc/posix-functions/lstat.texi (lstat): Likewise.
45382         * lib/file-has-acl.c (file_has_acl): Likewise.
45383         * lib/fwriteerror.c [TEST]: Likewise.
45384         * tests/test-areadlink.h (test_areadlink): Likewise.
45385         * tests/test-areadlinkat-with-size.c (main): Likewise.
45386         * tests/test-areadlinkat.c (main): Likewise.
45387         * tests/test-canonicalize-lgpl.c (main): Likewise.
45388         * tests/test-canonicalize.c (main): Likewise.
45389         * tests/test-fstatat.c (main): Likewise.
45390         * tests/test-linkat.c (main): Likewise.
45391         * tests/test-lstat.h (test_lstat_func): Likewise.
45392         * tests/test-mkdir.h (test_mkdir): Likewise.
45393         * tests/test-readlink.h (test_readlink): Likewise.
45394         * tests/test-remove.c (main): Likewise.
45395         * tests/test-rename.h (test_rename): Likewise.
45396         * tests/test-renameat.c (main): Likewise.
45397         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45398         * tests/test-symlink.h (test_symlink): Likewise.
45399         * tests/test-symlinkat.c (main): Likewise.
45400         * tests/test-unlink.h (test_unlink_func): Likewise.
45401         * tests/test-unlinkat.c (main): Likewise.
45402
45403         maint: make realtime library usage explicit
45404         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45405         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45406         * modules/settime (Link): Likewise.
45407         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45408
45409         test-stat-time: speed up execution
45410         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45411         warning on mingw.
45412         (nap): New helper function.
45413         (prepare_test): Use it to reduce sleep time.
45414         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45415         execution.
45416         * modules/stat-time-tests (configure.ac): Check for usleep.
45417
45418 2009-10-09  Jim Meyering  <meyering@redhat.com>
45419
45420         selinux-h: always use getfilecon wrappers
45421         * lib/getfilecon.c: New file.
45422         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45423         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45424         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45425         (fgetfilecon): Provide a stub.
45426         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45427         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45428         file unconditionally.
45429         When <selinux/selinux.h> is found, arrange to use wrappers.
45430         * modules/selinux-h (Files): Add getfilecon.c.
45431         (Makefile.am): Substitute include-next-related bits
45432         into the now-always-generated selinux/selinux.h file.
45433         * doc/glibc-functions/lgetfilecon.texi: New file.
45434         * doc/glibc-functions/fgetfilecon.texi: New file.
45435         * doc/glibc-functions/getfilecon.texi: New file.
45436         * doc/glibc-functions/getfilecon-desc.texi: New file.
45437         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45438         which to pull in the new files.
45439         * MODULES.html.sh (Misc): Add selinux-h.
45440
45441 2009-10-08  Jim Meyering  <meyering@redhat.com>
45442
45443         unistd: fix comment typo
45444         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45445
45446 2009-10-08  Eric Blake  <ebb9@byu.net>
45447
45448         areadlink: use SIZE_MAX consistently
45449         * modules/areadlink (Depends-on): Add stdint.
45450         * modules/areadlink-with-size (Depends-on): Likewise.
45451         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45452         gives NULL; drop sys/types, since unistd gives size_t; and add
45453         stdint for SIZE_MAX.
45454         (SIZE_MAX): Rely on headers.
45455         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45456         and add stdint.
45457         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45458         (SIZE_MAX): Likewise.
45459         (INITIAL_BUF_SIZE): Turn into enum.
45460         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45461
45462 2009-10-08  Jim Meyering  <meyering@redhat.com>
45463
45464         areadlinkat: avoid compilation failure
45465         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45466         Fix typo in comment.
45467
45468 2009-10-07  Eric Blake  <ebb9@byu.net>
45469
45470         areadlinkat-with-size: new module
45471         * modules/areadlinkat-with-size: New module.
45472         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45473         * lib/areadlink.h (areadlinkat): Declare it.
45474         * MODULES.html.sh (File system functions): Mention it.
45475         * modules/areadlinkat-with-size-tests: New test.
45476         * tests/test-areadlinkat-with-size.c: New file.
45477
45478         xreadlinkat: new module
45479         * modules/xreadlinkat: New module.
45480         * lib/xreadlinkat.c (xreadlinkat): New file.
45481         * lib/xreadlink.h (xreadlinkat): Declare it.
45482         * MODULES.html.sh (File system functions): Mention it.
45483
45484         areadlinkat: new module
45485         * lib/at-func.c (FUNC_FAIL): New define.
45486         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45487         * modules/areadlinkat: New module.
45488         * lib/linkat.c (areadlinkat): Move...
45489         * lib/areadlinkat.c (areadlinkat): ...to new file.
45490         * lib/areadlink.h (areadlinkat): Declare it.
45491         * modules/linkat (Depends-on): Add areadlinkat.
45492         * MODULES.html.sh (File system functions): Mention it.
45493         * modules/areadlinkat-tests: New test.
45494         * tests/test-areadlinkat.c: New file.
45495
45496         areadlink, areadlink-with-size: add tests
45497         * modules/areadlink-tests: New test.
45498         * modules/areadlink-with-size-tests: Likewise.
45499         * tests/test-areadlink.h: New file.
45500         * tests/test-areadlink.c: Likewise.
45501         * tests/test-areadlink-with-size.c: Likewise.
45502
45503         maint: minor cleanups
45504         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45505         _UNUSED_PARAMETER_ instead.
45506         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45507         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45508         * modules/linkat-tests (Files): Distribute test-link.h.
45509
45510         openat, utimens: whitespace cleanup
45511         * lib/openat.c: Prefer space throughout, rather than mix of 8
45512         spaces vs. tabs.
45513         * lib/at-func.c: Likewise.
45514         * lib/utimens.c: Likewise.
45515
45516         openat: avoid using wrong fd
45517         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45518         working directory chooses same fd.
45519         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45520
45521         mkdir, mkdirat: fix cygwin 1.5.x bug
45522         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45523         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45524         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45525         bug.
45526         (gl_PREREQ_MKDIR): Delete unused macro.
45527         * modules/mkdir (Files): Track file rename.
45528         (configure.ac): Update macro name.
45529         * modules/openat (Depends-on): Add mkdir.
45530         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45531
45532         mkdir, mkdirat: add tests
45533         * modules/mkdir-tests: New test.
45534         * tests/test-mkdir.h: New file.
45535         * tests/test-mkdir.c: Likewise.
45536         * tests/test-mkdirat.c: Likewise.
45537         * modules/openat-tests (Files): Add new files.
45538         (Makefile.am): Run new test.
45539
45540 2009-10-06  Eric Blake  <ebb9@byu.net>
45541
45542         doc: tweak *at function documentation
45543         * doc/posix-functions/faccessat.texi (faccessat): Mention
45544         known issue with replacement.
45545         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45546         * doc/posix-functions/linkat.texi (linkat): Likewise.
45547         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45548         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45549         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45550         * doc/posix-functions/renameat.texi (renameat): Likewise.
45551         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45552
45553         openat: fix GNU/Hurd bug in unlinkat
45554         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45555         broken.
45556         * doc/posix-functions/unlink.texi (unlink): Document this.
45557         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45558
45559         fdopendir: fix GNU/Hurd bug
45560         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45561         allowing non-directory fds.
45562         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45563         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45564         * modules/dirent (Makefile.am): Substitute it.
45565         * lib/dirent.in.h (fdopendir): Declare replacement.
45566         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45567         * tests/test-fdopendir.c (main): Test something other than
45568         /dev/null, since on Hurd that behaves like a directory.
45569
45570         test-symlink: port to GNU/Hurd
45571         * tests/test-symlink.h (test_symlink): Relax expected errno.
45572
45573         doc: tweak more cygwin information
45574         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45575         now compatible with glibc.
45576         * doc/posix-functions/getopt.texi (getopt): Likewise.
45577
45578         getopt-gnu: add another test
45579         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45580         guarantee behavior relied on by m4.
45581         * tests/test-getopt.c (main): Use it.
45582         * modules/getopt-posix-tests (Depends-on): Add setenv.
45583         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45584
45585         getopt: fix compilation on darwin
45586         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45587         include.
45588         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45589         Reported by Ludovic Courtès.
45590
45591 2009-10-06  Bruno Haible  <bruno@clisp.org>
45592
45593         * modules/size_max (Description): Discourage its use.
45594         Reported by Simon Josefsson.
45595
45596 2009-10-06  Jim Meyering  <meyering@redhat.com>
45597
45598         linkat: avoid compilation failure
45599         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45600
45601 2009-10-05  Eric Blake  <ebb9@byu.net>
45602
45603         linkat: support Linux 2.6.17
45604         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45605         linkat on Linux, but allow cache variable override.
45606         * lib/linkat.c (rpl_linkat): Define override.
45607         * modules/linkat (Depends-on): Add symlinkat.
45608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45609         * modules/unistd (Makefile.am): Substitute it.
45610         * lib/unistd.in.h (linkat): Declare replacement.
45611         Reported by Pádraig Brady.
45612
45613         quotearg: port test to systems with C.UTF-8 locale
45614         * tests/test-quotearg.c (struct result_strings): Add another
45615         member, differentiating between C.ASCII and C.UTF-8 handling.
45616         (compare_strings): Add parameter.
45617         (main): Adjust all callers.
45618
45619         getopt: avoid clash with FreeBSD _getopt_internal
45620         * lib/getopt.in.h (_getopt_internal): Override the name.
45621         * lib/getopt_int.h (includes): Pick up any overrides.
45622         Reported by Reuben Thomas.
45623
45624         hash: allow C89 compilation
45625         * lib/hash.c (check_tuning): Move declaration before statement.
45626         Reported by Reuben Thomas.
45627
45628 2009-10-05  Karl Berry  <karl@gnu.org>
45629
45630         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45631
45632 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45633             Bruno Haible  <bruno@clisp.org>
45634
45635         * lib/uname.c (uname): Use a table-driven algorithm to compute
45636         Windows NT versions.
45637
45638 2009-10-04  Bruno Haible  <bruno@clisp.org>
45639
45640         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45641         program_invocation_short_name.
45642         * modules/progname (configure.ac): Test for presence of
45643         program_invocation_short_name.
45644         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45645
45646 2009-10-04  Bruno Haible  <bruno@clisp.org>
45647
45648         * lib/progname.c (set_program_name): Fix comment.
45649         Reported by Jim Meyering.
45650
45651 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45652             Bruno Haible  <bruno@clisp.org>
45653
45654         * lib/uname.c: Include <string.h>.
45655         (uname): Do only one call to GetVersionEx in the common case.
45656
45657 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45658             Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45661         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45662         (uname): Add support for Windows CE and various non-x86 CPU types.
45663
45664 2009-10-03  Bruno Haible  <bruno@clisp.org>
45665
45666         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45667         invocation to tests/configure.ac.
45668         Reported by Ian Beckwith <ianb@erislabs.net>.
45669
45670 2009-10-02  Eric Blake  <ebb9@byu.net>
45671
45672         fchdir: avoid compiler warning
45673         * lib/fchdir.c (canonicalize_file_name)
45674         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45675
45676         test-open: support mingw errno values
45677         * tests/test-open.h (test_open): Relax test.
45678         * tests/test-fopen.h (test_fopen): Likewise.
45679         * tests/test-openat-safer.c (main): Likewise.
45680
45681         open: fix opening directory on mingw
45682         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45683
45684         test-open: on GNU/Hurd, /dev/null is a directory
45685         * tests/test-fopen.h (main): Rename...
45686         (test_fopen): ...to this.  Use a guaranteed non-directory when
45687         confirming open behavior on trailing slash.
45688         * tests/test-openat-safer.c (main): Likewise.
45689         * tests/test-open.h (main): Likewise....
45690         (test_open): ...to this.
45691         * tests/test-fopen.c (main): Adjust caller.
45692         * tests/test-fopen-safer.c (main): Likewise.
45693         * tests/test-open.c (main): Likewise.
45694         * tests/test-fcntl-safer.c (main): Likewise.
45695         Reported by Samuel Thibault.
45696
45697         rename, fchdir: don't ignore chdir failure
45698         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45699         * lib/rename.c (rpl_rename) [W32]: Likewise.
45700         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45701         an empty destination directory if source cannot be renamed,
45702         although there is still possibility for failure.
45703         * doc/posix-functions/rename.texi (rename): Document the race.
45704         Reported by Jim Meyering.
45705
45706         maint: cleanup whitespace in recent commits
45707         * lib/rename.c (rpl_rename): Remove tabs.
45708         * tests/test-link.h (test_link): Likewise.
45709         * lib/fchdir.c (get_name): Likewise.
45710         Reported by Jim Meyering.
45711
45712 2009-10-02  Ben Pfaff  <blp@gnu.org>
45713
45714         relocatable-prog-wrapper: Add missing dependency on
45715         double-slash-root.
45716         * modules/relocatable-prog-wrapper: Add dependency.
45717         Reported by Ian Beckwith <ianb@erislabs.net>.
45718
45719 2009-10-02  Eric Blake  <ebb9@byu.net>
45720
45721         renameat: fix Solaris bugs
45722         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45723         needed fixing.
45724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45725         * modules/stdio (Makefile.am): Substitute it.
45726         * lib/stdio.in.h (renameat): Declare replacement.
45727         * lib/renameat.c (rpl_renameat): Implement fix.
45728
45729         renameat: new module
45730         * modules/renameat: New file.
45731         * lib/renameat.c (renameat): Likewise.
45732         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45734         * modules/stdio (Makefile.am): Substitute them.
45735         * lib/stdio.in.h (renameat): Declare it.
45736         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45737         * doc/posix-functions/renameat.texi (renameat): Likewise.
45738         * modules/renameat-tests: New test.
45739         * tests/test-renameat.c: Likewise.
45740
45741         rename: fix mingw bugs
45742         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45743         directory overwrite bugs.
45744
45745         rename: fix another cygwin 1.5 bug
45746         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45747         checks.
45748         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45749         unnecessary cygwin workarounds.  Also work around bug with moving
45750         full directory onto an empty one.
45751         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45752
45753         rename-dest-slash: merge into rename module
45754         * modules/rename-dest-slash (Status): Mark obsolete.
45755         (Depends-on): Add rename.
45756         (Files): Let rename do it all.
45757         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45758         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45759         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45760         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45761         * lib/rename.c (rpl_rename): Update comments.
45762
45763         rename: fix cygwin 1.5.x bugs
45764         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45765         * lib/rename.c (rpl_rename): Work around them.
45766         * modules/rename (Depends-on): Add same-inode.
45767
45768         rename: fix Solaris 10 bug
45769         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45770         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45771         was the only bug.
45772
45773         rename: fix Solaris 9 bug
45774         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45775         on non-directory.  Avoid calling exit.
45776         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45777         strdup.
45778         * modules/rename-tests (Depends-on): Drop lstat.
45779         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45780         (gl_PREREQ_RENAME): Delete unused macro.
45781
45782         rename-dest-slash: fix NetBSD bug
45783         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45784         links.
45785         * modules/rename-dest-slash (Depends-on): Add same-inode.
45786
45787         rename-tests: new test, exposes several platform bugs
45788         * modules/rename-tests: New file.
45789         * tests/test-rename.h: Likewise.
45790         * tests/test-rename.c: Likewise.
45791         * doc/posix-functions/rename.texi (rename): Improve documentation,
45792         including bugs that will eventually be fixed in gnulib.
45793
45794 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45795
45796         * lib/uname.c: Include <stdlib.h>
45797         (uname): Assume version info is available.
45798
45799 2009-10-02  Jim Meyering  <meyering@redhat.com>
45800
45801         gnu-web-doc-update: correct --help output
45802         * build-aux/gnu-web-doc-update: Make --help output relevant.
45803
45804         gnu-web-doc-update: add standard options
45805         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45806
45807         gnu-web-doc-update: New module.
45808         Use this script to automatically update the on-line web documentation
45809         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45810         * modules/gnu-web-doc-update: New file, from coreutils.
45811         * build-aux/gnu-web-doc-update: New script.
45812
45813 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45814
45815         link: LoadLibrary is not needed.
45816         * lib/link.c: Use GetModuleHandle.
45817
45818 2009-10-01  Eric Blake  <ebb9@byu.net>
45819
45820         getopt: bump serial number
45821         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45822         change.
45823
45824         tests: tighten link, rmdir, and remove tests
45825         * tests/test-link.h (includes): No need to use <config.h> here.
45826         Clean up if directory hard link was created, otherwise test for
45827         trailing '.'.
45828         * tests/test-linkat.c (main): Simplify.
45829         * tests/test-remove.c (main): Enhance test for trailing '.'.
45830         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45831
45832 2009-10-01  Jim Meyering  <meyering@redhat.com>
45833
45834         maint.mk: requiring "make major" was annoying, for a "minor" release.
45835         What is intended is "stable", to contrast with alpha and beta,
45836         so require "make stable", not "make major".
45837         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45838         (get_tool_versions): Likewise.
45839         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45840
45841 2009-09-30  Ben Pfaff  <blp@gnu.org>
45842
45843         Fix broken build of replacement for Windows tmpfile().
45844         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45845         flags argument added along with the 'mkostemp' module.
45846
45847 2009-09-28  Bruno Haible  <bruno@clisp.org>
45848
45849         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45850         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45851         to 'remove_elt'.
45852         (gl_list_remove): Update.
45853         * lib/gl_list.c (gl_list_remove): Update.
45854         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45855         to 'remove_elt'.
45856         (gl_oset_remove): Update.
45857         * lib/gl_list.c (gl_oset_remove): Update.
45858         Reported by Eric Blake.
45859
45860 2009-09-28  Eric Blake  <ebb9@byu.net>
45861
45862         doc: mention yet more cygwin 1.7 status
45863         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45864         cygwin.
45865         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45866         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45867
45868         argp: fix test failure
45869         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45870         that are not upper-case.  Pass correct range to tolower.
45871
45872 2009-09-27  Jim Meyering  <meyering@redhat.com>
45873
45874         test-yesno: work around sparc-dash here-document infelicity
45875         Without this change, the literal \177 byte in a here document
45876         would make dash 0.5.5.1-3 access uninitialized memory.
45877         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45878         Instead, use a marker, "@", and filter through tr to create the desired
45879         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45880
45881 2009-09-27  Bruno Haible  <bruno@clisp.org>
45882
45883         Disable untested support for new flavours of ACLs on AIX.
45884         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45885         progress.
45886         * lib/set-mode-acl.c (qset_acl): Likewise.
45887
45888 2008-12-07  Bruno Haible  <bruno@clisp.org>
45889
45890         Add support for new flavours of ACLs on AIX. (Untested.)
45891         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45892         (file_has_acl): Add support for newer AIX.
45893         * lib/set-mode-acl.c (qset_acl): Likewise.
45894         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45895         Rainer Tammer <tammer@tammer.net>.
45896
45897 2009-09-26  Eric Blake  <ebb9@byu.net>
45898
45899         argp: fix compilation of getopt
45900         * lib/getopt.in.h (includes): Use different guard than glibc.
45901         Reported by Sergey Poznyakoff.
45902
45903         doc: mention more cygwin 1.7 status
45904         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45905         bug.
45906         * doc/posix-functions/execl.texi (execl): Likewise.
45907         * doc/posix-functions/execle.texi (execle): Likewise.
45908         * doc/posix-functions/execlp.texi (execlp): Likewise.
45909         * doc/posix-functions/execv.texi (execv): Likewise.
45910         * doc/posix-functions/execve.texi (execve): Likewise.
45911         * doc/posix-functions/execvp.texi (execvp): Likewise.
45912         * doc/glibc-functions/canonicalize_file_name.texi
45913         (canonicalize_file_name): Cygwin 1.7 now provides this.
45914         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45915         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45916         on AT_SYMLINK_NOFOLLOW.
45917
45918 2009-09-24  Eric Blake  <ebb9@byu.net>
45919
45920         test-linkat: make test more robust
45921         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45922
45923         getopt: fix inclusion guards for cygwin
45924         * modules/getopt-posix (Depends-on): Add include-next.
45925         (Makefile.am): Substitute more items in replacement header.
45926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45927         <getopt.h>.
45928         * lib/getopt.in.h (includes): Use split inclusion guard, and
45929         prefer <getopt.h> over include <unistd.h> when one is present.
45930         (option): Also override name of 'struct option'.
45931
45932         same-inode: revert prior change; it is not yet ready
45933         * NEWS: Undo mention of this change.
45934         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45935         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45936         * lib/cycle-check.c (cycle_check): Likewise.
45937         * lib/same.c (same_name): Likewise.
45938         * lib/at-func2.c (at_func2): Likewise.
45939
45940 2009-09-23  Eric Blake  <ebb9@byu.net>
45941
45942         linkat: new module
45943         * modules/linkat: New file.
45944         * lib/at-func2.c (at_func2): Likewise.
45945         * lib/linkat.c (linkat): Likewise.
45946         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45947         * lib/openat-priv.h (at_func2): Add declaration.
45948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45949         * modules/unistd (Makefile.am): Substitute them.
45950         * lib/unistd.in.h (linkat): Declare it.
45951         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45952         * doc/posix-functions/linkat.texi (linkat): Likewise.
45953         * doc/posix-functions/link.texi (link): Tweak wording.
45954         * tests/test-link.c (main): Move guts...
45955         * tests/test-link.h (test_link): ...into new file.
45956         * modules/linkat-tests: New test.
45957         * tests/test-linkat.c: Likewise.
45958         * modules/link-tests (Files): Ship new file.
45959         (Depends-on): Add stdbool.
45960
45961         dirname: add library-safe mdir_name
45962         * lib/dirname.h (mdir_name): New prototype.
45963         * lib/dirname.c (dir_name): Move guts...
45964         (mdir_name): ...to new function that avoids xalloc_die.
45965
45966         fchdir: another mingw fix
45967         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45968         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45969         on mingw (where it has not yet been ported), and make it optional
45970         elsewhere.
45971         (_gl_register_fd): Use it.
45972
45973         same-inode: make SAME_INODE tri-state, to port to mingw
45974         * NEWS: Mention this change.
45975         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45976         st_ino always being 0.
45977         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45978         * lib/cycle-check.c (cycle_check): Likewise.
45979         * lib/same.c (same_name): Likewise.
45980
45981         lstat: avoid mingw compilation error
45982         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45983         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45984         lstat ourselves.
45985         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45986         was adequate.
45987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45988         the checks for lstat.
45989         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45990
45991         link: fix test failure on Solaris 9
45992         * lib/link.c (rpl_link): Don't assume link will catch bogus
45993         trailing slash on source.
45994
45995         test-symlinkat: enhance test
45996         * tests/test-readlink.c (main): Move guts...
45997         * tests/test-readlink.h (test_readlink): ...into new file.
45998         * tests/test-symlink.c (main): Move guts...
45999         * tests/test-symlink.h (test_symlink): ...into new file.
46000         * tests/test-symlinkat.c (main): Use new files for further
46001         coverage.
46002         (do_symlink, do_readlink): New helper functions.
46003         * modules/symlink-tests (Files): Ship new file.
46004         (Depends-on): Add stdbool.
46005         * modules/readlink-tests (Files): Ship new file.
46006         (Depends-on): Add stdbool.
46007         * modules/symlinkat-tests (Files): Use new files.
46008
46009 2009-09-23  Eric Blake  <ebb9@byu.net>
46010
46011         readlink: document portability issue with symlink length
46012         * doc/posix-functions/lstat.texi (lstat): Mention that some file
46013         systems have bogus st_size on symlinks, and mention the
46014         areadlink-with-size module.
46015         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
46016         * doc/posix-functions/readlink.texi (readlink): Mention the
46017         areadlink module, and ERANGE failure.
46018         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46019         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
46020
46021         readlink: fix Solaris 9 bug with trailing slash
46022         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
46023         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
46024         * doc/posix-functions/readlink.texi (readlink): Document this.
46025         * modules/readlink-tests: New test.
46026         * tests/test-readlink.c: Likewise.
46027
46028         readlink: fix cygwin 1.5.x bug with return type
46029         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
46030         * lib/unistd.in.h (readlink): Use ssize_t.
46031         * lib/readlink.c (readlink): Likewise.
46032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46033         * modules/unistd (Makefile.am): Substitute it.
46034         * lib/unistd.in.h (readlink): Declare replacement.
46035         * doc/posix-functions/readlink.texi (readlink): Document this.
46036
46037         symlink: use throughout gnulib
46038         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
46039         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
46040         symlink is not used.
46041         * modules/symlinkat (Depends-on): Add symlink.
46042         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46043         * modules/canonicalize-tests (Depends-on): Likewise.
46044         * modules/lstat-tests (Depends-on): Likewise.
46045         * modules/openat-tests (Depends-on): Likewise.
46046         * modules/remove-tests (Depends-on): Likewise.
46047         * modules/rmdir-tests (Depends-on): Likewise.
46048         * modules/unlink-tests (Depends-on): Likewise.
46049         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
46050         * tests/test-canonicalize.c (symlink): Likewise.
46051         * tests/test-fstatat.c (symlink): Likewise.
46052         * tests/test-lstat.c (symlink): Likewise.
46053         * tests/test-remove.c (symlink): Likewise.
46054         * tests/test-rmdir.c (symlink): Likewise.
46055         * tests/test-unlink.c (symlink): Likewise.
46056         * tests/test-unlinkat.c (symlink): Likewise.
46057
46058         symlink: new module, for Solaris 9 bug
46059         * modules/symlink: New file.
46060         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46061         * lib/symlink.c: Likewise.
46062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
46063         * modules/unistd (Makefile.am): Substitute them.
46064         * lib/unistd.in.h (symlink): Declare replacement.
46065         * MODULES.html.sh (File system functions): Mention it.
46066         * doc/posix-functions/symlink.texi (symlink): Likewise.
46067         * modules/symlink-tests: New test.
46068         * tests/test-symlink.c: Likewise.
46069
46070 2009-09-23  Bruno Haible  <bruno@clisp.org>
46071
46072         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
46073         when needed.
46074         Test case: gnulib-tool --import --with-tests atexit inttypes.
46075         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
46076
46077 2009-09-23  Bruno Haible  <bruno@clisp.org>
46078
46079         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
46080         subcommand, not in a subshell.
46081
46082 2009-09-22  Eric Blake  <ebb9@byu.net>
46083
46084         unistd: sort replacement declarations
46085         * lib/unistd.in.h: Sort declarations.
46086
46087         open, openat: minor optimization
46088         * lib/open.c (open): If open succeeded, len is non-zero.
46089         * lib/openat.c (rpl_openat): Likewise.
46090
46091         link-follow: ensure correct result
46092         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
46093         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
46094         distinguish between possible failures.
46095
46096 2009-09-21  Eric Blake  <ebb9@byu.net>
46097
46098         fts: avoid compiler warning
46099         * lib/fts.c (dirent_inode_sort_may_be_useful)
46100         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
46101
46102 2009-09-19  Bruno Haible  <bruno@clisp.org>
46103
46104         * lib/progreloc.c (canonicalize_file_name): New declaration.
46105
46106 2009-09-19  Eric Blake  <ebb9@byu.net>
46107
46108         link: fix quoting
46109         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
46110
46111         openat: fix openat bugs on Solaris 9
46112         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
46113         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
46114         * modules/openat (Depends-on): Add open.
46115         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
46116         * modules/fcntl-h (Makefile.am): Substitute it.
46117         * lib/fcntl.in.h (openat): Declare replacement.
46118         * doc/posix-functions/openat.texi (openat): Document this.
46119
46120         openat: move fstatat and unlinkat into correct files
46121         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
46122         compiled.
46123         * lib/openat.c (fstatat, unlinkat): Move...
46124         * lib/fstatat.c (fstatat): ...into correct files.
46125         * lib/unlinkat.c (unlinkat): Likewise.
46126
46127         openat: fix unlinkat bugs on Solaris 9
46128         * lib/unlinkat.c (unlinkat): New file.
46129         * modules/openat (Depends-on): Add unlink.
46130         (Files): Distribute it.
46131         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
46132         trailing slash behavior is broken.
46133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46134         * modules/unistd (Makefile.am): Substitute it.
46135         * lib/unistd.in.h (unlinkat): Declare replacement.
46136         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
46137
46138         openat: fix fstatat bugs on Solaris 9
46139         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
46140         stat.
46141         * doc/posix-functions/fstatat.texi (fstatat): Document this.
46142
46143         test-unlinkat: enhance test, to expose Solaris 9 bug
46144         * tests/test-unlink.c (main): Factor guts...
46145         * tests/test-unlink.h (test_rmdir_func): ...into new file.
46146         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
46147         * tests/test-rmdir.c (main): Adjust caller.
46148         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
46149         (unlinker): New helper function.
46150         (rmdirat): Enhance check.
46151         * modules/rmdir-tests (Depends-on): Add stdbool.
46152         * modules/unlink-tests (Depends-on): Likewise.
46153         (Files): Add test-unlink.h.
46154         * modules/openat-tests (Files): Likewise.
46155         (Depends-on): Add unlinkdir.
46156
46157         test-fstatat: new test, to expose Solaris 9 bugs
46158         * tests/test-stat.c (main): Factor guts...
46159         * tests/test-stat.h (test_stat_func): ...into new file.
46160         * tests/test-lstat.c (main): Factor guts...
46161         * tests/test-lstat.h (test_lstat_func): ...into new file.
46162         * tests/test-fstatat.c: New file.
46163         * modules/stat-tests (Files): Add test-stat.h.
46164         * modules/lstat-tests (Files): Add test-lstat.h.
46165         (Depends-on): Add stdbool.
46166         * modules/openat-tests (Depends-on): Add pathmax.
46167         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
46168         (Makefile.am): Run new test.
46169
46170         remove: new module, for mingw and Solaris 9 bugs
46171         * modules/remove: New file.
46172         * lib/remove.c: Likewise.
46173         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
46174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
46175         * modules/stdio (Makefile.am): Use them.
46176         * lib/stdio.in.h (remove): Declare replacement.
46177         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46178         * doc/posix-functions/remove.texi (remove): Likewise.
46179         * modules/remove-tests: New test.
46180         * tests/test-remove.c: Likewise.
46181
46182         unlink: new module, for Solaris 9 bug
46183         * modules/unlink: New file.
46184         * lib/unlink.c: Likewise.
46185         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46187         * modules/unistd (Makefile.am): Use them.
46188         * lib/unistd.in.h (stat): Declare replacement.
46189         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46190         * doc/posix-functions/unlink.texi (unlink): Likewise.
46191         * modules/unlink-tests: New test.
46192         * tests/test-unlink.c: Likewise.
46193
46194         lstat: fix Solaris 9 bug
46195         * lib/lstat.c (lstat): Also check for trailing slash on
46196         non-symlink, non-directories.  Use stat module to simplify logic.
46197         * doc/posix-functions/lstat.texi (lstat): Document it.
46198         * modules/lstat-tests (Depends-on): Add errno, same-inode.
46199         (configure.ac): Check for symlink.
46200         * tests/test-lstat.c (main): Add more tests.
46201
46202         stat: add as dependency to other modules
46203         * modules/chown (Depends-on): Add stat.
46204         * modules/euidaccess (Depends-on): Likewise.
46205         * modules/fchdir (Depends-on): Likewise.
46206         * modules/isdir (Depends-on): Likewise.
46207         * modules/link (Depends-on): Likewise.
46208         * modules/lstat (Depends-on): Likewise.
46209         * modules/mkdir-p (Depends-on): Likewise.
46210         * modules/modechange (Depends-on): Likewise.
46211         * modules/open (Depends-on): Likewise.
46212         * modules/readlink (Depends-on): Likewise.
46213         * modules/same (Depends-on): Likewise.
46214
46215         stat: fix Solaris 9 bug
46216         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46217         slash.
46218         * lib/stat.c (rpl_stat): Work around it.
46219         * doc/posix-functions/stat.texi (stat): Update documentation.
46220
46221         stat: new module, for mingw bug
46222         * modules/stat: New file.
46223         * lib/stat.c: Likewise.
46224         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46225         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46226         * modules/sys_stat (Makefile.am): Use them.
46227         * lib/sys_stat.in.h (stat): Declare replacement.
46228         * lib/openat.c (fstatat): Deal with lstat and stat being function
46229         macros.
46230         * modules/openat (Depends-on): Add inline.
46231         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46232         * doc/posix-functions/stat.texi (stat): Likewise.
46233         * modules/stat-tests: New test.
46234         * tests/test-stat.c: Likewise.
46235
46236 2009-09-19  Jim Meyering  <meyering@redhat.com>
46237
46238         syntax-check: detect unnecessary inclusion of canonicalize.h
46239         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46240
46241 2009-09-19  Eric Blake  <ebb9@byu.net>
46242
46243         canonicalize-lgpl: adjust clients to use correct header
46244         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46245         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46246         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46247         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46248         * lib/progreloc.c (includes): Likewise.
46249
46250 2009-09-19  Jim Meyering  <meyering@redhat.com>
46251
46252         test-posixtm.c: correct a comment
46253         * tests/test-posixtm.c: Correct first-line comment.
46254         Spotted by Eric Blake.
46255
46256 2009-09-16  Jim Meyering  <meyering@redhat.com>
46257
46258         posixtm-tests: make T const-correct; add a test case
46259         * tests/test-posixtm.c (T): Declare const.
46260         Add a test for -(2^31+1).
46261         Remove useless can-succeed-only-in-2002 test.
46262
46263         posixtm-tests: adjust the sole failing test
46264         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46265         expected output matches what mktime now produces.  Cross-checked via
46266         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46267
46268         posixtm: move #ifdef'd tests into a new module
46269         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46270         * tests/test-posixtm.c: ... this new file.
46271         * modules/posixtm-tests: New module.
46272
46273 2009-09-19  Eric Blake  <ebb9@byu.net>
46274
46275         openat: simplify use of at-func.c
46276         * lib/at-func.c (includes): Include prerequisites here, to
46277         simplify requirements on client files.
46278         * lib/openat-priv.h: Add double-inclusion guard.
46279         * lib/faccessat.c (includes): Simplify.
46280         * lib/fchmodat.c (includes): Likewise.
46281         * lib/fchownat.c (includes): Likewise.
46282         * lib/mkdirat.c (includes): Likewise.
46283         * lib/mkfifoat.c (includes): Likewise.
46284         * lib/symlinkat.c (includes): Likewise.
46285
46286         openat: allow return of fd 0
46287         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46288         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46289         unistd-safer.
46290         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46291         <fcntl.h>; this module does not leak fds.
46292         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46293         must be allowed to return 0, leaving openat_safer to add the
46294         safety.
46295         (openat_permissive): Avoid writing to just-opened fd 2 if
46296         restoring the current directory fails.
46297         * lib/openat-die.c (openat_restore_fail): Add comment.
46298         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46299         (save_cwd): Guarantee safe fd, but without use of open_safer.
46300         * tests/test-openat.c: New test.
46301         * modules/openat-tests (Files, Makefile.am): Distribute and build
46302         new file.
46303
46304         relocatable-prog-wrapper: fix build
46305         * modules/relocatable-prog-wrapper (Files): Update name of
46306         canonicalize m4 file, broken on 2009-09-17.
46307         Reported by emad hajjar <aleppos@hotmail.com>.
46308
46309 2009-09-19  Bruno Haible  <bruno@clisp.org>
46310
46311         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46312         * lib/safe-alloc.c: Likewise.
46313         Reported by Ian Beckwith <ianb@erislabs.net>.
46314
46315 2009-09-18  Bruno Haible  <bruno@clisp.org>
46316
46317         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46318         Reported by <erobles@sensacd.com.mx>.
46319
46320 2009-09-17  Eric Blake  <ebb9@byu.net>
46321
46322         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46323         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46324         slashes when checking if last component is missing.
46325         * tests/test-canonicalize.c (main): Test this.
46326
46327         canonicalize, canonicalize-lgpl: honor // if distinct from /
46328         * modules/canonicalize (Files): Add double-slash-root.m4.
46329         * modules/canonicalize-lgpl (Files): Likewise.
46330         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46331         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46332         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46333         fallback definition.
46334         (canonicalize_filename_mode): Use it to protect //.
46335         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46336         (__realpath): Likewise.
46337         * tests/test-canonicalize.c (main): Test this.
46338         * tests/test-canonicalize-lgpl.c (main): Likewise.
46339         * modules/canonicalize-tests (Depends-on): Add same-inode.
46340         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46341
46342         canonicalize-lgpl: fix glibc bug with trailing slash
46343         * m4/canonicalize-lgpl.m4: Move contents...
46344         * m4/canonicalize.m4: ...here.
46345         (gl_CANONICALIZE_LGPL): Factor realpath check...
46346         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46347         glibc 2.3.5 bug, fixed 2005-04-27.
46348         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46349         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46350         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46351         * modules/canonicalize-lgpl (Files): Manage file rename.
46352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46353         * modules/stdlib (Makefile.am): Substitute witness.
46354         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46355         is needed.
46356         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46357         replacement is required.
46358         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46359         * doc/glibc-functions/canonicalize_file_name.texi
46360         (canonicalize_file_name): Document this.
46361         * doc/posix-functions/realpath.texi (realpath): Likewise.
46362
46363         canonicalize-lgpl: reject non-directory with trailing slash
46364         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46365         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46366         catches failures in glibc 2.3.5.
46367         * tests/test-canonicalize.c (main): Likewise.
46368
46369         canonicalize-lgpl: use native realpath if it works
46370         * lib/canonicalize-lgpl.c (realpath): Guard with
46371         FUNC_REALPATH_WORKS.
46372         * lib/stdlib.in.h (realpath): Make declaration optional based on
46373         HAVE_REALPATH.
46374         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46375         native realpath works.
46376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46377         * modules/stdlib (Makefile.am): Substitute witness.
46378
46379         canonicalize, canonicalize-lgpl: use <stdlib.h>
46380         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46381         (Include): Mention <stdlib.h>.
46382         (configure.ac): Mention functions we provide.
46383         * modules/canonicalize (configure.ac): Likewise.
46384         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46385         realpath if canonicalize_file_name is missing.
46386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46387         * modules/stdlib (Makefile.am): Substitute witnesses.
46388         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46389         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46390         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46391         * NEWS: Document this.
46392         * doc/glibc-functions/canonicalize_file_name.texi
46393         (canonicalize_file_name): Likewise.
46394         * doc/posix-functions/realpath.texi (realpath): Likewise.
46395         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46396
46397         test-canonicalize: consolidate into single C program
46398         * tests/test-canonicalize.sh: Delete; move setup into...
46399         * tests/test-canonicalize.c (main): ...the program, making it
46400         easier to run in debugger.  Add some tests.
46401         * modules/canonicalize-tests (Files): Remove unused file.
46402         (Depends-on): Add progname.
46403         (configure.ac, Makefile.am): Simplify.
46404
46405         test-canonicalize-lgpl: consolidate into single C program
46406         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46407         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46408         easier to run in debugger.  Add some tests.
46409         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46410         (configure.ac, Makefile.am): Simplify.
46411
46412         canonicalize: avoid resolvepath
46413         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46414         unnecessary checks.
46415         * lib/canonicalize.c (includes): Simplify.
46416         (canonicalize_file_name): Drop resolvepath implementation.
46417         * modules/canonicalize (Depends-on): Drop filenamecat.
46418
46419         canonicalize: don't lose errno
46420         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46421         over calls to free.
46422
46423         canonicalize: simplify errno handling
46424         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46425         assignment.
46426
46427         canonicalize, canonicalize-lgpl: update module dependencies
46428         * modules/canonicalize (Depends-on): Add extensions, lstat,
46429         pathmax, stdlib.
46430         (Files): Drop pathmax.h.
46431         (configure.ac): Adjust macro name.
46432         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46433         lstat, stdlib, sys_stat.
46434         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46435         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46436         extensions.
46437         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46438         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46439         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46440         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46441         declaration, if available.
46442         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46443         we can rely on the readlink module.
46444         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46445         (includes): Use <unistd.h> unconditionally.
46446
46447 2009-09-17  Eric Blake  <ebb9@byu.net>
46448
46449         maint: make Include sections of modules consistent
46450         * modules/alloca: Use only header name; no need to list #include.
46451         * modules/alloca-opt: Likewise.
46452         * modules/arpa_inet: Likewise.
46453         * modules/canon-host: Likewise.
46454         * modules/configmake: Likewise.
46455         * modules/dirent: Likewise.
46456         * modules/eealloc: Likewise.
46457         * modules/environ: Likewise.
46458         * modules/fchdir: Likewise.
46459         * modules/fcntl: Likewise.
46460         * modules/fcntl-h: Likewise.
46461         * modules/gethrxtime: Likewise.
46462         * modules/gettime: Likewise.
46463         * modules/ignore-value: Likewise.
46464         * modules/inet_ntop: Likewise.
46465         * modules/inet_pton: Likewise.
46466         * modules/inttypes: Likewise.
46467         * modules/isnand-nolibm: Likewise.
46468         * modules/isnanf-nolibm: Likewise.
46469         * modules/mbchar: Likewise.
46470         * modules/mbfile: Likewise.
46471         * modules/mbiter: Likewise.
46472         * modules/mbuiter: Likewise.
46473         * modules/netdb: Likewise.
46474         * modules/netinet_in: Likewise.
46475         * modules/nproc: Likewise.
46476         * modules/pagealign_alloc: Likewise.
46477         * modules/poll: Likewise.
46478         * modules/printf-frexp: Likewise.
46479         * modules/pthread: Likewise.
46480         * modules/putenv: Likewise.
46481         * modules/random_r: Likewise.
46482         * modules/relocatable-prog: Likewise.
46483         * modules/search: Likewise.
46484         * modules/select: Likewise.
46485         * modules/selinux-h: Likewise.
46486         * modules/settime: Likewise.
46487         * modules/signal: Likewise.
46488         * modules/size_max: Likewise.
46489         * modules/socklen: Likewise.
46490         * modules/ssize_t: Likewise.
46491         * modules/stdarg: Likewise.
46492         * modules/stdbool: Likewise.
46493         * modules/stddef: Likewise.
46494         * modules/stdint: Likewise.
46495         * modules/stdio: Likewise.
46496         * modules/stdlib: Likewise.
46497         * modules/string: Likewise.
46498         * modules/strings: Likewise.
46499         * modules/sys_file: Likewise.
46500         * modules/sys_ioctl: Likewise.
46501         * modules/sys_select: Likewise.
46502         * modules/sys_socket: Likewise.
46503         * modules/sys_stat: Likewise.
46504         * modules/sys_time: Likewise.
46505         * modules/sys_times: Likewise.
46506         * modules/sys_utsname: Likewise.
46507         * modules/sys_wait: Likewise.
46508         * modules/sysexits: Likewise.
46509         * modules/time: Likewise.
46510         * modules/times: Likewise.
46511         * modules/tmpfile: Likewise.
46512         * modules/trim: Likewise.
46513         * modules/unistd: Likewise.
46514         * modules/wchar: Likewise.
46515         * modules/wctype: Likewise.
46516
46517 2009-09-17  Bruno Haible  <bruno@clisp.org>
46518
46519         Make getdate.y compile on QNX and NetBSD 5 / i386.
46520         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46521         TIME_T_FITS_IN_LONG_INT.
46522         * lib/getdate.y (long_time_t): New type.
46523         (relative_time): Change type of 'seconds' field to long_time_t.
46524         (get_date): Update types of local variables. Check against overflow
46525         during conversion from long_time_t to time_t.
46526         Reported by Matt Kraai <kraai@ftbfs.org>
46527         and Hasso Tepper <hasso@netbsd.org>.
46528
46529 2009-09-17  Bruno Haible  <bruno@clisp.org>
46530
46531         * modules/COPYING: Update copyright years.
46532         * modules/README: Likeiwse.
46533         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46534         Reported by Ian Beckwith <ianb@erislabs.net>.
46535
46536 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46537
46538         * users.txt: Update references for gnuit package.
46539
46540 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46541
46542         * m4/getdelim.m4: Fix typo in copyright line.
46543
46544 2009-09-17  Bruno Haible  <bruno@clisp.org>
46545
46546         * lib/atoll.c: Use the standard header with GPL copyright.
46547         * lib/argz.in.h: Likewise.
46548         * lib/glob.c: Likewise.
46549         * lib/glob-libc.h: Likewise.
46550         * lib/random_r.c: Likewise.
46551         * lib/siglist.h: Likewise.
46552         * lib/strsignal.c: Likewise.
46553         Reported by Ian Beckwith <ianb@erislabs.net>.
46554
46555 2009-09-17  Eric Blake  <ebb9@byu.net>
46556
46557         rmdir: ensure correct dependency order
46558         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46559
46560 2009-09-17  Bruno Haible  <bruno@clisp.org>
46561
46562         Disable assertion that fails on NetBSD 5 / i386.
46563         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46564         Reported by Sam Steingold <sds@gnu.org>
46565         and Hasso Tepper <hasso@netbsd.org>.
46566
46567 2009-09-16  Eric Blake  <ebb9@byu.net>
46568
46569         unlinkdir: port to mingw
46570         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46571         on which no one can unlink a directory.
46572
46573         stdlib: sort witness names
46574         * modules/stdlib (Makefile.am): Sort replacements.
46575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46576         * lib/stdlib.in.h: Likewise.
46577
46578         parse-duration-tests: avoid link failure
46579         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46580         LIBINTL.
46581         Reported by Tom G. Christensen.
46582
46583         openat-tests: ensure unlinkat behaves like rmdir
46584         * tests/test-rmdir.c (main): Factor guts...
46585         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46586         * modules/rmdir-tests (Files): Ship new file.
46587         * modules/openat-tests: New test.
46588         * tests/test-unlinkat.c: Likewise.
46589
46590         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46591         * modules/rmdir-errno (Status, Notice): Now obsolete.
46592
46593         rmdir: work around cygwin 1.5.x and mingw bugs
46594         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46595         * lib/rmdir.c (rmdir): Work around it.
46596         * modules/rmdir (Status, Notice): No longer obsolete.
46597         (Files): Add dos.m4.
46598         (Depends-on): Add unistd.
46599         (configure.ac): Set witnesses.
46600         (License): Relax to LGPLv2+.
46601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46602         * modules/unistd (Makefile.am): Substitute witnesses.
46603         * lib/unistd.in.h (rmdir): Declare replacement.
46604         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46605         * modules/rmdir-tests: New tests.
46606         * tests/test-rmdir.c: Likewise.
46607
46608 2009-09-15  Eric Blake  <ebb9@byu.net>
46609
46610         fchdir: improve use of replacement functions
46611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46612         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46613         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46614         REPLACE_CLOSEDIR.
46615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46616         * modules/sys_stat (Makefile.am): Substitute correct witness.
46617         * modules/dirent (Makefile.am): Likewise.
46618         * modules/unistd (Makefile.am): Likewise.
46619         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46620         * lib/unistd.in.h (dup): Likewise.
46621         * lib/sys_stat.in.h (fstat): Likewise.
46622
46623         maint: ignore gnulib-tool temp files
46624         * .gitignore: Ignore files created during gnulib-tool --test.
46625
46626 2009-09-13  Jim Meyering  <meyering@redhat.com>
46627
46628         posixtm: don't reject a time that specify "60" as the number of seconds
46629         * lib/posixtm.c (posixtime): The code to reject invalid dates
46630         would also reject a time specified with the .60 suffix.
46631         But POSIX allows that, in order to accommodate leap seconds.
46632         So don't reject it.
46633         (main): Adjust tests accordingly.
46634         * modules/posixtm (Depends-on): Add stpcpy.
46635
46636 2009-09-11  Jim Meyering  <meyering@redhat.com>
46637
46638         announce-gen: include [$release_type] in emitted Subject:
46639         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46640         e.g., [stable] in the emitted Subject: line.
46641
46642 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46643
46644         Remove obsolete macros from several modules.
46645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46646         obsolete Autoconf macros with their modern counterparts.
46647         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46648         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46650         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46651         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46652         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46654         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46655         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46656         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46657         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46658         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46659         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46660         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46661         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46662         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46663         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46664         * m4/time_r.m4 (gl_TIME_R): Likewise.
46665         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46666         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46667         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46668
46669         Fix copyright header in build-aux scripts.
46670         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46671         recommendation.
46672         * build-aux/ncftpput-ftp: Likewise.
46673         * build-aux/update-copyright: Likewise.
46674
46675 2009-09-09  Eric Blake  <ebb9@byu.net>
46676
46677         test-link: allow Linux choice of errno
46678         * tests/test-link.c (main): Relax test for alternate error.
46679
46680         strndup: fix improper m4 caching
46681         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46682         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46683         (gl_PREREQ_STRNDUP): Delete.
46684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46685         * modules/string (Makefile.am): Substitute it.
46686         * lib/string.in.h (strndup): Modernize prototype.
46687
46688         getcwd: port to mingw
46689         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46690         different from the POSIX assumptions made throughout the getcwd
46691         module; fortunately, the mingw getcwd does not need replacement.
46692         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46693         * modules/getcwd-tests: New test.
46694         * tests/test-getcwd.c: Likewise.
46695
46696         link: fix platform bugs
46697         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46698         * lib/link.c (link): Work around them.  Fix related mingw bug.
46699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46700         * modules/unistd (Makefile.am): Substitute it.
46701         * lib/unistd.in.h (link): Declare replacement.
46702         * doc/posix-functions/link.texi (link): Document this.
46703         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46704
46705         test-link: consolidate into single C program, test more cases
46706         * tests/test-link.sh: Delete.
46707         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46708         at least Cygwin and Solaris.
46709         * modules/link-tests (Files): Remove unused file.
46710         (Depends-on): Add errno, sys_stat.
46711         (Makefile.am): Simplify.
46712
46713 2009-09-08  Bruno Haible  <bruno@clisp.org>
46714
46715         Work around towlower, towupper bug on mingw.
46716         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46717         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46718         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46719         * doc/posix-functions/towupper.texi: Likewise.
46720         Reported by Eric Blake.
46721
46722 2009-09-08  Jim Meyering  <meyering@redhat.com>
46723
46724         build: don't try to run autoheader if we don't use it
46725         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46726         is not used in configure.ac.
46727
46728 2009-09-08  Eric Blake  <ebb9@byu.net>
46729
46730         euidaccess: fix compilation error
46731         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46732
46733         rawmemchr: relax license
46734         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46735         okay.
46736         Reported by Jim Meyering.
46737
46738         mkfifoat: new module
46739         * modules/mkfifoat: New file.
46740         * lib/mkfifoat.c: Likewise.
46741         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46742         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46743         * modules/sys_stat (Makefile.am): Use them.
46744         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46745         * MODULES.html.sh (File system functions): Mention module.
46746         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46747         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46748         * modules/mkfifoat-tests: New test.
46749         * tests/test-mkfifoat.c: Likewise.
46750
46751         strchrnul: relax license
46752         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46753         okay.
46754         Reported by Jim Meyering.
46755
46756 2009-09-08  Eric Blake  <ebb9@byu.net>
46757
46758         fstatat: fix compilation on Solaris
46759         * lib/fstatat.c (includes): Add fcntl.h.
46760         Reported by Pádraig Brady.
46761
46762 2009-09-07  Eric Blake  <ebb9@byu.net>
46763
46764         rename: modernize replacement
46765         * modules/rename (Depends-on): Add stdio.
46766         (configure.ac): Declare witness.
46767         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46768         stdio take care of replacement.
46769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46770         * modules/stdio (Makefile.am): Substitute them.
46771         * lib/stdio.in.h (rename): Declare replacement.
46772         * lib/rename.c (includes): Allow cross-compilation to non-windows
46773         machines.
46774         * doc/posix-functions/rename.texi (rename): Improve
46775         documentation.
46776
46777         stdio: sort witness names
46778         * modules/stdio (Makefile.am): Sort replacements.
46779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46780         * lib/stdio.in.h: Likewise.
46781
46782         getcwd: minor cleanups
46783         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46784         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46785
46786         openat: provide more convenience names
46787         * modules/faccessat (configure.ac): Add C witness.
46788         * lib/unistd.in.h (readlinkat): Fix typo.
46789         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46790         convenience wrappers.
46791         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46792         wrappers in syntax checks.
46793
46794 2009-09-06  Eric Blake  <ebb9@byu.net>
46795
46796         doc: fix comments in recent patches
46797         * lib/faccessat.c: Mention correct function.
46798         * lib/fchmodat.c: Likewise.
46799         * lib/fchownat.c: Likewise.
46800         * lib/symlinkat.c: Likewise.
46801         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46802         constants.
46803
46804         faccessat, symlinkat: continue cleanup of previous patch
46805         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46806         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46807         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46809         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46810         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46811         set.
46812
46813 2009-09-06  Bruno Haible  <bruno@clisp.org>
46814
46815         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46816         (fstatat): Declare if GNULIB_FSTATAT is set.
46817         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46818         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46819         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46820         * modules/fcntl-h (Files): Remove m4/openat.m4.
46821         * modules/sys_stat (Files): Remove m4/openat.m4.
46822         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46823         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46824         * modules/unistd (Files): Remove m4/openat.m4.
46825         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46826         GNULIB_OPENAT.
46827         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46828         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46829         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46830         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46831         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46832         gl_OPENAT_DEFAULTS.
46833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46834         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46835         Don't require gl_OPENAT_DEFAULTS.
46836         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46837         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46838         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46839         (gl_OPENAT_DEFAULTS): Remove macro.
46840
46841 2009-09-06  Bruno Haible  <bruno@clisp.org>
46842
46843         * modules/openat (configure.ac): Remove unneeded witness.
46844
46845 2009-09-06  Bruno Haible  <bruno@clisp.org>
46846
46847         Set errno to ENOSYS when a function is entirely unsupported.
46848         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46849         EOPNOTSUPP.
46850         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46851         * modules/chown (Depends-on): Remove errno.
46852
46853 2009-09-06  Bruno Haible  <bruno@clisp.org>
46854
46855         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46856
46857 2009-09-06  Bruno Haible  <bruno@clisp.org>
46858
46859         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46860
46861 2009-09-06  Ben Pfaff  <blp@gnu.org>
46862             Bruno Haible  <bruno@clisp.org>
46863
46864         Work around a glibc bug in strtok_r.
46865         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46866         Undefine if UNDEFINE_STRTOK_R is set.
46867         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46869         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46870         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46871         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46872         UNDEFINE_STRTOK_R.
46873         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46874
46875 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46876
46877         exclude: minor fix
46878         * lib/exclude.c: Include wctype.h
46879
46880 2009-09-06  Akim Demaille  <demaille@gostai.com>
46881
46882         bootstrap: improve error message
46883         * build-aux/bootstrap (find_tool): Upon failure, report the list
46884         of candidates.
46885         Honor the initial value of the envvar.
46886
46887 2009-09-05  Eric Blake  <ebb9@byu.net>
46888
46889         symlinkat: new module
46890         * modules/symlinkat: New file.
46891         * lib/symlinkat.c: Likewise.
46892         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46894         * modules/unistd (Makefile.am): Use them.
46895         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46896         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46897         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46898         * MODULES.html.sh (File system functions): Mention module.
46899         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46900         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46901         * modules/symlinkat-tests: New test.
46902         * tests/test-symlinkat.c: Likewise.
46903
46904         test-openat-safer: add more checks
46905         * tests/test-openat-safer.c (main): Check more code paths.
46906
46907 2009-09-05  Jim Meyering  <meyering@redhat.com>
46908
46909         syntax-check: detect unnecessary inclusion of openat.h
46910         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46911
46912 2009-09-05  Bruno Haible  <bruno@clisp.org>
46913
46914         Support towlower, towupper.
46915         * doc/posix-functions/towlower.texi: Mention module wctype.
46916         * doc/posix-functions/towupper.texi: Likewise.
46917         * lib/wctype.in.h (towlower, towupper): New functions.
46918         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46919         (ASSERT): New macro.
46920         (e): New variable.
46921         (main): Test also towlower, towupper. Test WEOF argument.
46922         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46923
46924 2009-09-05  Bruno Haible  <bruno@clisp.org>
46925
46926         Fix conversion behaviour when the input is invalid.
46927         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46928         mark occurring in first pass of indirect conversion.
46929         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46930         input.
46931         Found by clang's static analyzer.
46932
46933 2009-09-05  Bruno Haible  <bruno@clisp.org>
46934
46935         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46936         where direct conversion is possible.
46937
46938 2009-09-04  Eric Blake  <ebb9@byu.net>
46939
46940         openat: fail with ENOENT on empty name
46941         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46942         buffer.
46943
46944         link-follow: fix logic bug in prior patch
46945         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46946         reversed sense of yes and no in prior patch.  Avoid confusing
46947         compilation failure with desired semantics.
46948
46949         link-follow: accommodate mingw and cross-compilation
46950         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46951         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46952         cross-compilation results to -1, to make linkat easier to
46953         implement when cross-compiling.  Trivially support mingw.
46954         * modules/link-follow (configure.ac): Call new name.
46955         * NEWS: Mention this.
46956
46957 2009-09-03  Eric Blake  <ebb9@byu.net>
46958
46959         faccessat: compile replacement
46960         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46961         needed.
46962
46963         fts: fix compilation error
46964         * lib/fts.c (includes): Re-add "openat.h", for
46965         openat_needs_fchdir.
46966
46967         faccessat: new module
46968         * modules/faccessat: New file.
46969         * lib/faccessat.c: Likewise.
46970         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46972         * modules/unistd (Makefile.am): Use it.
46973         * lib/unistd.in.h (faccessat): Declare it.
46974         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46975         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46976         * MODULES.html.sh (File system functions): Mention it.
46977         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46978         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46979
46980         euidaccess: prefer POSIX over non-standard implementation
46981         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46982         * lib/euidaccess.c (euidaccess): Use it if available.
46983
46984         openat: make template easier to use
46985         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46986         AT_FUNC_F2 to be undefined.
46987         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46988         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46989         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46990         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46991         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46992         Likewise.
46993         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46994         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46995         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46996         Likewise.
46997
46998         openat: declare in POSIX headers
46999         * NEWS: Mention this.
47000         * modules/openat (configure.ac): Declare witnesses.
47001         (Depends-on): Add fcntl-h, sys_stat, unistd.
47002         (Include): Mention correct headers.
47003         * modules/fcntl-h (Depends-on): Add link-warning.
47004         (Files): Add openat.m4.
47005         (Makefile.am): Substitute witnesses.
47006         * modules/sys_stat (Files, Makefile.am): Likewise.
47007         * modules/unistd (Files, Makefile.am): Likewise.
47008         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
47009         (gl_OPENAT_DEFAULTS): New macro.
47010         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
47011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
47012         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
47013         (SYS_STAT_H): Remove unused variable.
47014         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
47015         * lib/fcntl--.h (includes): Remove unneeded header.
47016         * lib/openat-safer.c (includes): Likewise.
47017         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
47018         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
47019         appropriate headers.
47020         (__OPENAT_PREFIX): Delete.
47021         * lib/fcntl.in.h (openat): Provide declaration.
47022         (AT_FDCWD): Fix Solaris bug.
47023         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
47024         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
47025         * lib/fchmodat.c (includes):  Adjust to find declaration.
47026         * lib/fchownat.c (includes): Likewise.
47027         * lib/mkdirat.c (includes): Likewise.
47028         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
47029         still visible.
47030
47031 2009-09-02  Eric Blake  <ebb9@byu.net>
47032
47033         errno: use consistently
47034         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
47035         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
47036         * lib/canonicalize.c (ELOOP): Likewise.
47037         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
47038         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
47039         * lib/lchown.c (EOPNOTSUPP): Likewise.
47040         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
47041         * lib/savewd.c (ESTALE): Likewise.
47042         * lib/settime.c (ENOSYS): Likewise.
47043         * lib/utimens.c (ENOSYS): Likewise.
47044         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
47045         * lib/chdir-safer.c (ELOOP): Likewise.
47046         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
47047         * modules/c-stack (Depends-on): Add errno.
47048         * modules/canonicalize (Depends-on): Likewise.
47049         * modules/chdir-safer (Depends-on): Likewise.
47050         * modules/fdopendir (Depends-on): Likewise.
47051         * modules/inet_ntop (Depends-on): Likewise.
47052         * modules/inet_pton (Depends-on): Likewise.
47053         * modules/lchown (Depends-on): Likewise.
47054         * modules/openat (Depends-on): Likewise.
47055         * modules/savewd (Depends-on): Likewise.
47056         * modules/settime (Depends-on): Likewise.
47057         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
47058
47059         fts: avoid leaking fds
47060         * modules/fts (Depends-on): Add cloexec.
47061         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
47062         flag.
47063
47064         fts: make directory fds more robust
47065         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
47066         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
47067
47068         backupfile, chdir-long, fts, savedir: make safer
47069         * lib/backupfile.c (includes): Use "dirent--.h", since
47070         numbered_backup can write to stderr during readdir.
47071         * lib/savedir.c (includes): Likewise.
47072         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
47073         emulation can write to stderr on failure.
47074         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
47075         * lib/getcwd.c: Document why opendir_safer is unused.
47076         * lib/glob.c: Likewise.
47077         * lib/scandir.c: Likewise.
47078         * lib/openat-proc.c: Likewise, for open_safer.
47079         * modules/backupfile (Depends-on): Add dirent-safer.
47080         * modules/savedir (Depends-on): Likewise.
47081         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
47082         * modules/chdir-long (Depends-on): Add openat-safer.
47083
47084         openat-safer: new module
47085         * modules/openat-safer: New file.
47086         * lib/openat-safer.c: Likewise.
47087         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
47088         * lib/fcntl-safer.h (openat_safer): Declare.
47089         * lib/fcntl--.h (openat): Override.
47090         * MODULES.html.sh (File descriptor based I/O): Mention it.
47091         * lib/openat.h: Add double-inclusion guards.
47092         * lib/openat.c (includes): Only include "fcntl-safer.h", not
47093         "fcntl--.h", so we can implement openat.
47094         * modules/openat-safer-tests: New test.
47095         * tests/test-openat-safer.c: New file.
47096
47097         dirent-safer: new module
47098         * modules/dirent-safer: New file.
47099         * lib/dirent--.h: Likewise.
47100         * lib/dirent-safer.h: Likewise.
47101         * lib/opendir-safer.c: Likewise.
47102         * m4/dirent-safer.m4: Likewise.
47103         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
47104         * modules/dirent-safer-tests: New test.
47105         * tests/test-dirent-safer.c: New file.
47106         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
47107
47108         fdopendir: optimize on mingw
47109         * lib/unistd.in.h (_gl_directory_name): New prototype.
47110         * lib/fchdir.c (_gl_directory_name): Implement it.
47111         (fchdir): Use it to simplify implementation.
47112         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
47113         fchdir, when available, to avoid calling [f]chdir().
47114
47115         fdopendir: split into its own module
47116         * lib/openat.c (fdopendir): Move...
47117         * lib/fdopendir.c: ...into new file.
47118         * modules/fdopendir: New module.
47119         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
47120         * modules/openat (Depends-on): Add fdopendir.
47121         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
47122         fdopendir here.
47123         * modules/savedir (Depends-on): Only need fdopendir, not full
47124         openat.
47125         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
47126         * lib/openat.h (fdopendir): Drop prototype.
47127         * lib/dirent.in.h (fdopendir): Provide prototype.
47128         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
47129         * modules/dirent (Makefile.am): Substitute them.
47130         * MODULES.html.sh (File system functions): Mention it.
47131         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
47132         * modules/fdopendir-tests: New file.
47133         * tests/test-fdopendir.c: Likewise.
47134
47135         fchdir: use more consistent macro convention
47136         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
47137         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
47138         REPLACE_FCHDIR, rather than relying on config.h macros.
47139         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
47140         inside a single make-time REPLACE_FCHDIR block, rather than using
47141         the config.h FCHDIR_REPLACEMENT.
47142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
47143         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
47144         Manage fstat replacement.
47145         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
47146         REPLACE_FCHDIR.
47147         * modules/sys_stat (Files): Add m4/unistd_h.m4.
47148         (Makefile.am): Substitute REPLACE_FCHDIR.
47149         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
47150         FCHDIR_REPLACEMENT.
47151         * lib/dup-safer.c (dup_safer): Likewise.
47152         * lib/dup2.c (rpl_dup2): Likewise.
47153         * lib/dup3.c (rpl_dup3): Likewise.
47154         * lib/open.c (rpl_open): Likewise.
47155
47156         fchdir: simplify error handling, and support dup3
47157         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
47158         stdbool, malloc-posix, realloc-posix.
47159         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
47160         (ensure_dirs_slot): Return false on allocation failure.
47161         (rpl_dup2): Delete.
47162         (_gl_register_dup): New function.
47163         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
47164         (_gl_register_fd): Close fd on allocation failure.
47165         * lib/fcntl.in.h (_gl_register_fd): Update signature.
47166         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
47167         prototype.
47168         (rpl_dup2_fchdir): Delete prototype.
47169         * lib/open.c (open): Update caller.
47170         * lib/dup2.c (dup2): Track fchdir metadata.
47171         * lib/dup3.c (dup3): Likewise.
47172         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
47173         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
47174
47175 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47176
47177         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
47178         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
47179         don't pass arguments to AC_OUTPUT.
47180
47181 2009-09-02  Bruno Haible  <bruno@clisp.org>
47182
47183         * modules/mkdtemp (License): Relicense under LGPLv2+.
47184         Reported by Paolo Bonzini.
47185
47186 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47187
47188         Replace uses of obsolete autoconf macros in Jim's modules.
47189         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
47190         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
47191         can evoke a warning from autoconf when run with -Wobsolete
47192         enabled.  They were declared obsolete for good reasons (see
47193         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
47194         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
47195         should not continue using the deprecated macros.
47196         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
47197         obsolete Autoconf macros with modern counterparts.
47198         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47199         * m4/dos.m4 (gl_AC_DOS): Likewise.
47200         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47201         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47202         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47203         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47204         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47205         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47206         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47207         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47208         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47209         Likewise.
47210         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47211         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47212         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47213         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47214         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47215         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47216
47217 2009-09-01  Eric Blake  <ebb9@byu.net>
47218
47219         fchdir: fix off-by-one bug in previous patch
47220         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47221         (_gl_unregister_fd): Delete useless if.
47222
47223 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47224
47225         maint.mk: sort the list of syntax-check rules
47226         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47227         easier to get a sense of progress when the rules are run sequentially
47228         and take a long time.
47229
47230 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47231
47232         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47233         * modules/netinet_in: Likewise.
47234         * modules/sys_file: Likewise.
47235         * modules/sys_ioctl: Likewise.
47236         * modules/sys_select: Likewise.
47237         * modules/sys_socket: Likewise.
47238         * modules/sys_stat: Likewise.
47239         * modules/sys_time: Likewise.
47240         * modules/sys_times: Likewise.
47241         * modules/sys_utsname: Likewise.
47242         * modules/sys_wait: Likewise.
47243
47244 2009-09-01  Jim Meyering  <meyering@redhat.com>
47245
47246         fts: help ensure that return values are not ignored
47247         * lib/fts_.h (__GNUC_PREREQ): Define.
47248         (__attribute_warn_unused_result__): Define.
47249         (fts_children, fts_close, fts_open, fts_read): Declare with
47250         __attribute_warn_unused_result__.
47251
47252         fts: fts_close now fails also when closing a dir file descriptor fails
47253         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47254         and propagate to caller, along with errno.
47255
47256         announce-gen: correct formatting in --help output
47257         * build-aux/announce-gen (usage): Move the one-line description in
47258         --help output "up", to where it belongs, just after Usage:.
47259
47260 2009-08-31  Eric Blake  <ebb9@byu.net>
47261
47262         fchdir: port to mingw
47263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47264         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47265         opened, then use a substitute.
47266         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47267         replacement.
47268         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47269         (_gl_register_fd): No need to check stat if open already filters
47270         all directories.
47271         (fchdir): Fix error condition to match POSIX.
47272         * modules/fchdir (Depends-on): Add sys_stat.
47273         * doc/posix-functions/open.texi (open): Document the limitation.
47274         * modules/fchdir-tests: New file.
47275         * tests/test-fchdir.c: Likewise.
47276
47277         canonicalize: allow cross-testing from cygwin to mingw
47278         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47279         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47280         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47281         Likewise.
47282         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47283         target does not support symlinks.
47284         * tests/test-canonicalize-lgpl.sh: Likewise.
47285
47286         chown: avoid compilation warning on mingw
47287         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47288         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47289         mingw.
47290         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47291         * modules/chown (Depends-on): Add errno.
47292
47293 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47294
47295         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47296         command.
47297
47298 2009-08-31  Jim Meyering  <meyering@redhat.com>
47299
47300         canonicalize: remove useless initialization
47301         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47302         initialization of local, "end".
47303
47304 2009-08-30  Bruno Haible  <bruno@clisp.org>
47305
47306         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47307         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47308         ENOSYS.
47309
47310 2009-08-30  Bruno Haible  <bruno@clisp.org>
47311
47312         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47313         /usr/xpg4/bin/tr when it exists.
47314         * tests/test-pipe-filter-gi1.sh: Likewise.
47315
47316 2009-08-30  Bruno Haible  <bruno@clisp.org>
47317
47318         Work around deficient /usr/bin/id program on Solaris.
47319         * tests/test-file-has-acl.sh (ID): New variable.
47320         * tests/test-set-mode-acl.sh (ID): Likewise.
47321         * tests/test-copy-acl.sh (ID): Likewise.
47322         * tests/test-copy-file.sh (ID): Likewise.
47323
47324 2009-08-30  Bruno Haible  <bruno@clisp.org>
47325
47326         New module 'xstriconveh'.
47327         * lib/xstriconveh.h: New file.
47328         * lib/xstriconveh.c: New file.
47329         * modules/xstriconveh: New file.
47330
47331 2009-08-30  Bruno Haible  <bruno@clisp.org>
47332
47333         Make it easier to use mem_cd_iconveh.
47334         * lib/striconveh.h (iconveh_t): New type.
47335         (iconveh_open, iconveh_close): New declarations.
47336         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47337         with a single 'const iconveh_t *' argument.
47338         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47339         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47340         with a single 'const iconveh_t *' argument.
47341         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47342         * tests/test-striconveh.c (main): Update.
47343         * NEWS: Mention the change.
47344
47345 2009-08-30  Bruno Haible  <bruno@clisp.org>
47346
47347         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47348         problem.
47349
47350 2009-08-30  Bruno Haible  <bruno@clisp.org>
47351
47352         Work around iconv_open problem on Solaris.
47353         * lib/iconv_open-solaris.gperf: New file.
47354         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47355         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47356         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47357         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47358         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47359         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47360
47361 2009-08-29  Jim Meyering  <meyering@redhat.com>
47362
47363         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47364         * top/maint.mk (cvs-check): Remove target; it was just an alias
47365         to the better-named vc-diff-check.
47366         (maintainer-distcheck): Remove rule.  It was used only from
47367         the (alpha/beta/major) target, and all of its commands but one
47368         were coreutils-specific.
47369         (vc-dist): Remove rule.
47370         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47371         Run vc-diff-check, not vc-dist.
47372         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47373
47374 2009-08-27  Bruno Haible  <bruno@clisp.org>
47375
47376         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47377         of 0.
47378
47379 2009-08-27  Bruno Haible  <bruno@clisp.org>
47380
47381         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47382         compilers.
47383         * doc/func.texi: Document the SunPRO C bug.
47384
47385 2009-08-27  Bruno Haible  <bruno@clisp.org>
47386
47387         Fix link error on Solaris.
47388         * tests/test-parse-duration.c (xstrdup): Remove function.
47389
47390 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47391
47392         ignore-value: handle pointer types, too
47393         * lib/ignore-value.h (__attribute__): Remove definition.
47394         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47395         of a more concise and more-often effective "(void) i" statement.
47396         (ignore_ptr): New function to suppress warnings from functions that
47397         return pointers, and to make it explicit that one function doesn't
47398         handle all cases.
47399
47400 2009-08-25  Bruno Haible  <bruno@clisp.org>
47401
47402         dup2: work around a Linux bug.
47403         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47404         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47405         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47406         Reported by Simon Josefsson.
47407
47408 2009-08-25  Jim Meyering  <meyering@redhat.com>
47409
47410         libguestfs uses gnulib
47411         * users.txt: Add libguestfs.
47412
47413 2009-08-24  Eric Blake  <ebb9@byu.net>
47414
47415         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47416         * lib/pipe2.c (includes): Add binary-io.h.
47417         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47418
47419 2009-08-24  Bruno Haible  <bruno@clisp.org>
47420
47421         Tolerate declared but missing accept4 syscall.
47422         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47423         available.
47424         * lib/sys_socket.in.h (accept4): If the function is already present,
47425         override it.
47426         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47427         * modules/accept4 (Makefile.am): Compile accept4.c always.
47428         Reported by Paolo Bonzini and Eric Blake.
47429
47430 2009-08-23  Bruno Haible  <bruno@clisp.org>
47431
47432         New module 'accept4'.
47433         * lib/sys_socket.in.h (accept4): New declaration.
47434         * lib/accept4.c: New file.
47435         * m4/accept4.m4: New file.
47436         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47437         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47438         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47439         HAVE_ACCEPT4.
47440         * modules/accept4: New file.
47441         * doc/glibc-functions/accept4.texi: Mention the new module.
47442
47443 2009-08-24  Jim Meyering  <meyering@redhat.com>
47444
47445         progname: also set global program_invocation_name, when possible
47446         Before this change, a libtool-enabled program that calls glibc's
47447         error function would report the program name as
47448         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47449         * modules/progname (configure.ac): Check for a declaration of
47450         program_invocation_name.
47451         * lib/progname.c:  Include <errno.h>.
47452         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47453         Set program_invocation_name.
47454
47455 2009-08-23  Bruno Haible  <bruno@clisp.org>
47456
47457         * lib/dup3.c: Include <string.h>.
47458
47459 2009-08-23  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47462         * lib/pipe2.c (pipe2): Likewise.
47463         Suggested by Eric Blake.
47464
47465 2009-08-23  Bruno Haible  <bruno@clisp.org>
47466
47467         Tolerate declared but missing dup3 syscall.
47468         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47469         * lib/unistd.in.h (dup3): If the function is already present,
47470         override it.
47471         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47472         * modules/dup3 (Makefile.am): Compile dup3.c always.
47473         Reported by Paolo Bonzini.
47474
47475 2009-08-23  Bruno Haible  <bruno@clisp.org>
47476
47477         Tolerate declared but missing pipe2 syscall.
47478         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47479         available.
47480         * lib/unistd.in.h (pipe2): If the function is already present,
47481         override it.
47482         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47483         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47484         Reported by Paolo Bonzini.
47485
47486 2009-08-23  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/pipe2.c (pipe2): Move #ifs inside function.
47489
47490 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47491
47492         quotearg: document limitations of quote_these_too
47493         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47494         those limitations are created.
47495         * lib/quotearg.h (set_char_quoting): Document that digits and
47496         letters that are special after backslash are not permitted.
47497         (quotearg_char): Cross-reference set_char_quoting documentation.
47498
47499 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47500
47501         quotearg: implement custom_quoting_style
47502         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47503         right_quote fields.
47504         (set_custom_quoting): New public function.
47505         (quotearg_buffer_restyled): Add left_quote and right_quote
47506         arguments, handle them very much like locale quoting, and update
47507         all uses.
47508         (quotearg_n_custom): New public function.
47509         (quotearg_n_custom_mem): New public function.
47510         (quotearg_custom): New public function.
47511         (quotearg_custom_mem): New public function.
47512         * lib/quotearg.h: Prototype and document new public functions.
47513         (enum quoting_style): For escape_quoting_style and
47514         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47515         ignored even though they're otherwise like c_quoting_style.
47516         Add custom_quoting_style member and document with comparison to
47517         clocale_quoting_style.
47518         * tests/test-quotearg.c (custom_quotes): New array.
47519         (custom_results): New array.
47520         (main): Extend to test custom quoting.
47521
47522 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47523
47524         quotearg: fix right quote escaping when it's in quote_these_too
47525         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47526         quote, be sure to prepend only one backslash.
47527         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47528         (main): Test it.
47529
47530 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47531
47532         quotearg-tests: test escaping of embedded locale quotes
47533         * tests/test-quotearg.c (struct result_strings): Add member for
47534         new input.
47535         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47536         (inputs): Add new input.
47537         (results_g): Add expected results.
47538         (flag_results): Likewise.
47539         (locale_results): Likewise.
47540         (compare_strings): Check those.
47541
47542 2009-08-23  Bruno Haible  <bruno@clisp.org>
47543
47544         Tests for module 'dup3'.
47545         * modules/dup3-tests: New file.
47546         * tests/test-dup3.c: New file.
47547
47548         New module 'dup3'.
47549         * lib/unistd.in.h (dup3): New declaration.
47550         * lib/dup3.c: New file.
47551         * m4/dup3.m4: New file.
47552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47553         HAVE_DUP3.
47554         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47555         * modules/dup3: New file.
47556         * doc/glibc-functions/dup3.texi: Mention the new module.
47557
47558 2009-08-23  Bruno Haible  <bruno@clisp.org>
47559
47560         Tweak the dup2 test.
47561         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47562         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47563         the test file is still empty. Fix argument order of lseek.
47564
47565 2009-08-23  Bruno Haible  <bruno@clisp.org>
47566
47567         Avoid test link errors when the modules getopt-gnu, gettext are used.
47568         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47569         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47570
47571 2009-08-23  Bruno Haible  <bruno@clisp.org>
47572
47573         Fix getdtablesize() on mingw.
47574         * lib/getdtablesize.c (getdtablesize): Implement differently.
47575         * lib/unistd.in.h (getdtablesize): Improve comment.
47576
47577 2009-08-23  Bruno Haible  <bruno@clisp.org>
47578
47579         New module 'mkostemp'.
47580         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47581         * lib/stdlib.in.h (mksotemp): New declaration.
47582         * lib/mkostemp.c: New file, from glibc with modifications.
47583         * lib/tempname.h (GT_FILE): Remove outdated comment.
47584         (gen_tempname): Add flags argument.
47585         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47586         (__GT_FILE): Map to 1.
47587         (small_open, large_open): Remove macros.
47588         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47589         * lib/mkstemp.c (mkstemp): Update.
47590         * lib/mkdtemp.c (mkdtemp): Likewise.
47591         * m4/mkostemp.m4: New file.
47592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47593         HAVE_MKOSTEMP.
47594         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47595         HAVE_MKOSTEMP.
47596         * modules/mkostemp: New file, based on modules/mkstemp.
47597         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47598         * NEWS: Mention the change.
47599
47600 2009-08-23  Bruno Haible  <bruno@clisp.org>
47601
47602         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47603         Reported by Eric Blake.
47604
47605 2009-08-23  Bruno Haible  <bruno@clisp.org>
47606
47607         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47608         Reported by Eric Blake.
47609
47610 2009-08-23  Bruno Haible  <bruno@clisp.org>
47611
47612         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47613         * modules/pipe2 (Depends-on): Likewise.
47614
47615 2009-08-23  Eric Blake  <ebb9@byu.net>
47616
47617         fcntl-h: add O_TTY_INIT support
47618         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47619         * tests/test-fcntl-h.c (o): Test it.
47620         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47621
47622         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47623         * modules/fcntl: Move <fcntl.h> header replacement...
47624         * modules/fcntl-h: ...to new name, so as not to collide with
47625         like-named function.
47626         * tests/test-fcntl.c: Rename...
47627         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47628         * modules/fcntl-tests: Rename...
47629         * modules/fcntl-h-tests: ...to this.  Update test file name.
47630         * modules/chdir-long (Depends-on): Update clients.
47631         * modules/chdir-safer (Depends-on): Likewise.
47632         * modules/fcntl-safer (Depends-on): Likewise.
47633         * modules/fts (Depends-on): Likewise.
47634         * modules/mkancesdirs (Depends-on): Likewise.
47635         * modules/mkdir-p (Depends-on): Likewise.
47636         * modules/open (Depends-on): Likewise.
47637         * modules/savewd (Depends-on): Likewise.
47638         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47639         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47640
47641 2009-08-22  Bruno Haible  <bruno@clisp.org>
47642
47643         * modules/binary-io (License): Relicense under LGPL.
47644         * modules/pipe2 (License): Likewise.
47645
47646 2009-08-22  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47649         return value.
47650         * lib/pipe-filter-gi.c (filter_init): Likewise.
47651         Reported by Eric Blake.
47652
47653 2009-08-22  Bruno Haible  <bruno@clisp.org>
47654
47655         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47656         * modules/pipe (Depends-on): Add pipe2.
47657
47658 2009-08-22  Bruno Haible  <bruno@clisp.org>
47659
47660         Tests for module 'pipe2'.
47661         * modules/pipe2-tests: New file.
47662         * tests/test-pipe2.c: New file.
47663
47664         New module 'pipe2'.
47665         * lib/unistd.in.h (pipe2): New declaration.
47666         * lib/pipe2.c: New file.
47667         * m4/pipe2.m4: New file.
47668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47669         HAVE_PIPE2.
47670         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47671         * modules/pipe2: New file.
47672         * doc/glibc-functions/pipe2.texi: Mention the new module.
47673
47674 2009-08-22  Bruno Haible  <bruno@clisp.org>
47675
47676         Reference some new glibc functions.
47677         * doc/glibc-functions/accept4.texi: New file.
47678         * doc/glibc-functions/dup3.texi: New file.
47679         * doc/glibc-functions/mkostemp.texi: New file.
47680         * doc/glibc-functions/pipe2.texi: New file.
47681         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47682         (Glibc sys/socket.h): Refer to accept4.
47683         (Glibc unistd.h): Refer to dup3, pipe2.
47684         Reported by Eric Blake.
47685
47686 2009-08-22  Jim Meyering  <meyering@redhat.com>
47687             Bruno Haible  <bruno@clisp.org>
47688
47689         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47690         This makes it so packages using automake-1.11's silent-rules option
47691         can print e.g., a single "GEN    configmake.h" line, rather than
47692         the 30+ statements that perform the job.  If you want to see the
47693         actual commands, you can still run "make V=1".
47694         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47695         so that make output is abbreviated when those variables are defined
47696         appropriately.
47697         * modules/argz: Likewise.
47698         * modules/arpa_inet: Likewise.
47699         * modules/byteswap: Likewise.
47700         * modules/configmake: Likewise.
47701         * modules/dirent: Likewise.
47702         * modules/errno: Likewise.
47703         * modules/fcntl: Likewise.
47704         * modules/float: Likewise.
47705         * modules/fnmatch: Likewise.
47706         * modules/getopt-posix: Likewise.
47707         * modules/glob: Likewise.
47708         * modules/iconv_open: Likewise.
47709         * modules/inttypes: Likewise.
47710         * modules/localcharset: Likewise.
47711         * modules/locale: Likewise.
47712         * modules/math: Likewise.
47713         * modules/netdb: Likewise.
47714         * modules/netinet_in: Likewise.
47715         * modules/poll: Likewise.
47716         * modules/posix_spawnp-tests: Likewise.
47717         * modules/sched: Likewise.
47718         * modules/search: Likewise.
47719         * modules/selinux-h: Likewise.
47720         * modules/signal: Likewise.
47721         * modules/spawn: Likewise.
47722         * modules/stdarg: Likewise.
47723         * modules/stdbool: Likewise.
47724         * modules/stddef: Likewise.
47725         * modules/stdint: Likewise.
47726         * modules/stdio: Likewise.
47727         * modules/stdlib: Likewise.
47728         * modules/string: Likewise.
47729         * modules/strings: Likewise.
47730         * modules/sys_file: Likewise.
47731         * modules/sys_ioctl: Likewise.
47732         * modules/sys_select: Likewise.
47733         * modules/sys_socket: Likewise.
47734         * modules/sys_stat: Likewise.
47735         * modules/sys_time: Likewise.
47736         * modules/sys_times: Likewise.
47737         * modules/sys_utsname: Likewise.
47738         * modules/sys_wait: Likewise.
47739         * modules/sysexits: Likewise.
47740         * modules/time: Likewise.
47741         * modules/unistd: Likewise.
47742         * modules/wchar: Likewise.
47743         * modules/wctype: Likewise.
47744
47745 2009-08-22  Jim Meyering  <meyering@redhat.com>
47746
47747         announce-gen: detect write failure
47748         * build-aux/announce-gen: Add Coda at end.
47749         Remove equivalent-but-more-verbose block at top.
47750
47751 2009-08-19  Akim Demaille  <demaille@gostai.com>
47752
47753         bootstrap: --help to stdout.
47754         * bootstrap (usage): Don't send --help to stderr.
47755         Use a here doc instead of a long string.
47756
47757 2009-08-21  Eric Blake  <ebb9@byu.net>
47758
47759         test-popen-safer: split from test-popen
47760         * tests/test-popen.c (main): Move...
47761         * tests/test-popen.h: ...into new file.
47762         * tests/test-popen-safer2.c: New file.
47763         * modules/popen-tests (Files): Add test-popen.h.
47764         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47765         Suggested by Bruno Haible.
47766
47767         test-fcntl-safer: split from test-open
47768         * tests/test-open.c (main): Move...
47769         * tests/test-open.h: ...into new file.
47770         * tests/test-fcntl-safer.c: New file.
47771         * modules/open-tests (Files): Add test-open.h.
47772         * modules/fcntl-safer-tests: New file.
47773         Suggested by Bruno Haible.
47774
47775         test-fopen-safer: split from test-fopen
47776         * tests/test-fopen.c (main): Move...
47777         * tests/test-fopen.h: ...into new file.
47778         * tests/test-fopen-safer.c: New file.
47779         * modules/fopen-tests (Files): Add test-fopen.h.
47780         * modules/fopen-safer-tests: New file.
47781         Suggested by Bruno Haible.
47782
47783 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47784
47785         popen-safer: test O_CLOEXEC at run-time.
47786         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47787
47788 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47789
47790         fcntl: move more flags to the header
47791         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47792         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47793         * lib/fcntl.in.h: Do both things here.
47794
47795 2009-08-21  Jim Meyering  <meyering@redhat.com>
47796
47797         consistently remove $@-t before redirecting to it
47798         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47799         * modules/alloca-opt: Likewise.
47800         * modules/byteswap: Likewise.
47801         * modules/fnmatch: Likewise.
47802         * modules/getopt-posix: Likewise.
47803         * modules/glob: Likewise.
47804         * modules/poll: Likewise.
47805         * modules/posix_spawnp-tests: Likewise.
47806         * modules/sys_socket: Likewise.
47807         * modules/sysexits: Likewise.
47808
47809 2009-08-21  Eric Blake  <ebb9@byu.net>
47810
47811         popen: simplify access to original popen
47812         * lib/popen.c (rpl_popen): No need to worry about popen being a
47813         macro.
47814         Reported by Bruno Haible.
47815
47816 2009-08-20  Eric Blake  <ebb9@byu.net>
47817
47818         build: avoid some compiler warnings
47819         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47820         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47821         type.
47822         (new_exclude_segment, excluded_file_pattern_p)
47823         (excluded_file_name_p): Reduce scope.
47824         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47825         old-style declaration.
47826
47827 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47828
47829         * tests/test-exclude1.sh: Handle Windows EOL.
47830         * tests/test-exclude2.sh: Likewise.
47831         * tests/test-exclude3.sh: Likewise.
47832         * tests/test-exclude4.sh: Likewise.
47833         * tests/test-exclude5.sh: Likewise.
47834         * tests/test-exclude6.sh: Likewise.
47835         * tests/test-exclude7.sh: Likewise.
47836
47837 2009-08-19  Akim Demaille  <demaille@gostai.com>
47838
47839         bootstrap: find sha1sum when named gsha1sum.
47840         * bootstrap (find_tool): New.
47841         ($SHA1SUM): New.
47842         Use it.
47843
47844 2009-08-20  Jim Meyering  <meyering@redhat.com>
47845
47846         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47847         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47848         expression that converts "." in a file name to "\." in the resulting
47849         regexp.  Start with a dummy statement, so that prior shell variable
47850         definitions are expanded portably.  Reported by Simon Josefsson.
47851
47852 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47853
47854         Fix polling for writeability of a screen buffer.
47855         * lib/poll.c: Distinguish input and screen buffers for the
47856         Win32 implementation.
47857         * lib/select.c: Likewise.
47858
47859 2009-08-19  Eric Blake  <ebb9@byu.net>
47860
47861         popen-safer: prevent popen from clobbering std descriptors
47862         * modules/popen-safer: New file.
47863         * lib/popen-safer.c: Likewise.
47864         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47865         * lib/stdio--.h (popen): Provide override.
47866         * lib/stdio-safer.h (popen_safer): Provide declaration.
47867         * tests/test-popen.c (includes): Partially test this.
47868         * modules/popen-safer-tests: New file, for more tests.
47869         * tests/test-popen-safer.c: Likewise.
47870         * MODULES.html.sh (file stream based Input/Output): Mention it.
47871
47872         tests: test some of the *-safer modules
47873         * modules/fopen-safer (Depends-on): Add fopen.
47874         * modules/fcntl-safer (Depends-on): Add fcntl.
47875         * modules/stdlib-safer (Depends-on): Add stdlib.
47876         (configure.ac): Set indicator.
47877         * modules/unistd-safer (configure.ac): Likewise.
47878         * modules/tmpfile-safer (configure.ac): Likewise.
47879         (Depends-on): Add tmpfile.
47880         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47881         active.
47882         * tests/test-fopen.c (includes): Test safer versions when they are
47883         in use.
47884         * tests/test-open.c (includes): Likewise.
47885
47886         popen: fix cygwin 1.5 bug when stdin closed
47887         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47888         * modules/popen: New file.
47889         * modules/popen-tests: Likewise.
47890         * tests/test-popen.c: Likewise.
47891         * m4/popen.m4: Likewise.
47892         * lib/popen.c: Likewise.
47893         * lib/stdio.in.h (popen): New declaration.
47894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47895         * modules/stdio (Makefile.am): Likewise.
47896         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47897
47898 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47899
47900         maint.mk: give full control over update-copyright exclusions
47901         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47902         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47903         (update-copyright): Don't force inclusion of top-level
47904         ChangeLog.  Don't force exclusion of all COPYING files, but make
47905         them the default exclusion instead.
47906
47907 2009-08-16  Bruno Haible  <bruno@clisp.org>
47908
47909         Fix test failures on Solaris 10.
47910         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47911         tests when Solaris iconv() is used.
47912         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47913         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47914         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47915         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47916         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47917
47918 2009-08-16  Bruno Haible  <bruno@clisp.org>
47919
47920         Fix test failures on Solaris 10.
47921         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47922         'tr' program and pass it as first argument.
47923         * tests/test-pipe-filter-gi1.sh: Likewise.
47924         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47925         program as first argument.
47926         * tests/test-pipe-filter-gi1.c (main): Likewise.
47927
47928 2009-08-16  Eric Blake  <ebb9@byu.net>
47929
47930         fpurge: fix previous commits
47931         * modules/fpurge (Makefile.am): Make replacement conditional,
47932         partially reverting 2007-04-29 change; missed in previous
47933         attempt.
47934         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47935         is missing.
47936
47937 2009-08-16  Bruno Haible  <bruno@clisp.org>
47938
47939         Clarify fpurge's effect on the file position.
47940         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47941         * tests/test-fpurge.c (main): Make a second pass for checking the file
47942         position.
47943
47944 2009-08-16  Bruno Haible  <bruno@clisp.org>
47945
47946         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47947         declaration of fpurge is missing.
47948         * tests/test-fpurge.c (main): Check that the file has not more contents
47949         than expected. Close the file before removing it.
47950
47951 2009-08-15  Eric Blake  <ebb9@byu.net>
47952
47953         fpurge: don't wrap working cygwin implementation
47954         * lib/fpurge.c (fpurge): Fix comment typo.
47955         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47956         1.7 to avoid replacement.
47957         * tests/test-fpurge.c (main): Enhance test.
47958
47959 2009-08-15  Eric Blake  <ebb9@byu.net>
47960         and Jim Meyering  <meyering@redhat.com>
47961
47962         test-update-copyright: skip if perl is insufficient
47963         * tests/test-update-copyright.sh: Failure to run maintainer tool
47964         should not cause testsuite failure on cygwin 1.5.
47965
47966 2009-08-14  Eric Blake  <ebb9@byu.net>
47967
47968         doc: mention more functions added in cygwin 1.7.0
47969         * doc/posix-headers/limits.texi (limits.h): Update for recent
47970         cygwin additions.
47971         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47972         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47973         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47974         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47975         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47976
47977 2009-08-14  Eric Blake  <ebb9@byu.net>
47978
47979         maint.mk: simplify update-copyright rule
47980         * top/maint.mk (update-copyright-local): Delete, and document how
47981         to do it in cfg.mk instead.
47982         (update-copyright-exclude-regexp): Delete, and document how to do
47983         it in .x-update-copyright instead.
47984         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47985         exclude ChangeLog.
47986
47987 2009-08-14  Bruno Haible  <bruno@clisp.org>
47988
47989         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47990
47991 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47992
47993         maint.mk: support update-copyright-env
47994         * top/maint.mk (update-copyright-env): Define place-holder.
47995         (update-copyright): Expand $(update-copyright-env) before
47996         invoking update-copyright.
47997
47998 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47999
48000         update-copyright: implement forced reformatting
48001         * build-aux/update-copyright: Implement and document
48002         UPDATE_COPYRIGHT_FORCE.
48003         * tests/test-update-copyright.sh: Test it.
48004
48005 2009-08-14  Eric Blake  <ebb9@byu.net>
48006         and Bruno Haible  <bruno@clisp.org>
48007
48008         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
48009         * tests/test-locale.c: Revert previous patch related to NULL.
48010         * tests/test-stdio.c: Likewise.
48011         * tests/test-stdlib.c: Likewise.
48012         * tests/test-string.c: Likewise.
48013         * tests/test-unistd.c: Likewise.
48014         * modules/time-tests (Depends-on): Add verify.
48015         * modules/wchar-tests (Depends-on): Likewise.
48016         * tests/test-time.c: Test for NULL compliance.
48017         * tests/test-wchar.c: Likewise.
48018         * modules/locale (Depends-on): Add stddef.
48019         * modules/stdio (Depends-on): Likewise.
48020         * modules/stdlib (Depends-on): Likewise.
48021         * modules/string (Depends-on): Likewise.
48022         * modules/time (Depends-on): Likewise.
48023         * modules/unistd (Depends-on): Likewise.
48024         * modules/wchar (Depends-on): Likewise.
48025         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
48026         * lib/stdlib.in.h (includes): Likewise.
48027         * lib/string.in.h (includes): Likewise.
48028         * lib/time.in.h (includes): Likewise.
48029         * lib/unistd.in.h (includes): Likewise.
48030         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
48031         replaced.
48032         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48033         * m4/stddef_h.m4: New file.
48034         * modules/stddef: Likewise.
48035         * lib/stddef.in.h: Likewise.
48036         * modules/stddef-tests: Likewise.
48037         * tests/test-stddef.c: Likewise.
48038         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
48039         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
48040         * doc/posix-headers/locale.texi (locale.h): Likewise.
48041         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
48042         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48043         * doc/posix-headers/string.texi (string.h): Likewise.
48044         * doc/posix-headers/time.texi (time.h): Likewise.
48045         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
48046         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
48047
48048 2009-08-14  Eric Blake  <ebb9@byu.net>
48049
48050         doc: improve git diff of texinfo files
48051         * .gitattributes: Add rule for *.texi files, with hint on how to
48052         use it.
48053         Copied from m4, and based on a report by Bruno Haible.
48054
48055 2009-08-14  Bruno Haible  <bruno@clisp.org>
48056
48057         Disable multithread support by default on Cygwin 1.5.x for real.
48058         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
48059
48060 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48061
48062         update-copyright: much ado about intervals
48063         * build-aux/update-copyright: Implement and document
48064         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
48065         of copyright year intervals.
48066         Also, document UPDATE_COPYRIGHT_YEAR.
48067         * tests/test-update-copyright.sh: Test it.
48068
48069         update-copyright: convert 2-digit to 4-digit years
48070         * build-aux/update-copyright: Implement and document.
48071         * tests/test-update-copyright.sh: Update.
48072
48073 2009-08-14  Jim Meyering  <meyering@redhat.com>
48074
48075         test-exclude: avoid coreutils "make check" failure
48076         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
48077         just as in test-argmatch.c.
48078
48079 2009-08-13  Eric Blake  <ebb9@byu.net>
48080
48081         test-dup2: fix bad assumption
48082         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
48083         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
48084
48085         test-version-etc: fix CRLF portability issue
48086         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
48087         recognize \r.
48088         * tests/test-argp-version-etc-1.sh: Likewise.
48089
48090         getopt: update client modules
48091         * modules/argp (Depends-on): Use getopt-gnu.
48092         * modules/git-merge-changelog (Depends-on): Likewise.
48093         * modules/long-options (Depends-on): Likewise.
48094         * modules/xstrtol (Depends-on): Likewise.
48095
48096 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48097
48098         * tests/test-version-etc.sh: Don't fail on different
48099         project/version.  Don't fail on CRLF differences.  Rewrite to use
48100         multiple -e instead of multiple sed forks, suggested by Eric Blake
48101         <ebb9@byu.net>.
48102         * tests/test-argp-version-etc-1.sh: Likewise.
48103
48104 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48105
48106         * tests/test-version-etc.sh: Don't fail on different
48107         project/version.
48108
48109 2009-08-12  Bruno Haible  <bruno@clisp.org>
48110
48111         Tests for modules 'getopt-posix', 'getopt-gnu'.
48112         * modules/getopt-posix-tests: New file.
48113         * tests/test-getopt.c: New file.
48114         * tests/test-getopt.h: New file.
48115         * tests/test-getopt_long.h: New file.
48116
48117         New modules 'getopt-posix', 'getopt-gnu'.
48118         * modules/getopt-gnu: New file, renamed from modules/getopt.
48119         * modules/getopt-posix: New file.
48120         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
48121         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
48122         (gl_GETOPT): Remove macro.
48123         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
48124         Disable the test against BSD systems that declare optreset. Test
48125         against mingw bug. Test against lack of support of optional arguments
48126         on many platforms.
48127         * doc/glibc-headers/getopt.texi: Update module name and list of
48128         relevant platforms.
48129         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
48130         'getopt-gnu' and more portability problems.
48131         * NEWS: Mention the changes.
48132
48133 2009-08-12  Bruno Haible  <bruno@clisp.org>
48134
48135         Ensure that optarg etc. get declared by <unistd.h>.
48136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
48137         AC_USE_SYSTEM_EXTENSIONS.
48138         * modules/getopt (Depends-on): Add 'extensions'.
48139
48140 2009-08-12  Bruno Haible  <bruno@clisp.org>
48141
48142         Avoid test link errors.
48143         * modules/pipe-filter-ii-tests (Makefile.am): Define
48144         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
48145         * modules/pipe-filter-gi-tests (Makefile.am): Define
48146         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
48147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48148
48149 2009-08-12  Bruno Haible  <bruno@clisp.org>
48150
48151         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
48152         gl_GETOPT_SUBSTITUTE before.
48153         (gl_GETOPT): Use it.
48154         * m4/argp.m4 (gl_ARGP): Update.
48155         Reported by Sergey Poznyakoff.
48156
48157         * m4/getopt.m4: Reorder macros.
48158         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
48159         (gl_GETOPT_SUBSTITUTE): Remove macro.
48160
48161 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48162
48163         Minor improvement in gitlog-to-changelog
48164
48165         * build-aux/gitlog-to-changelog: New option `--format' makes
48166         output format string configurable.
48167
48168 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48169
48170         Optimize exclude: use hash tables for non-wildcard patterns.
48171
48172         * lib/exclude.c: Include hash.h and mbuiter.h
48173         (struct exclude_pattern, exclude_segment): New data types.
48174         (struct exclude): Rewrite.
48175         (fnmatch_pattern_has_wildcards): New function.
48176         (new_exclude_segment, free_exclude_segment): New functions.
48177         (excluded_file_pattern_p, excluded_file_name_p): New functions.
48178         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
48179         * lib/exclude.h (is_fnmatch_pattern): New prototype.
48180         * modules/exclude: Depend on hash and mbuiter.
48181
48182         * modules/exclude-tests: New file.
48183         * tests/test-exclude.c: New file.
48184         * tests/test-exclude1.sh: New file.
48185         * tests/test-exclude2.sh: New file.
48186         * tests/test-exclude3.sh: New file.
48187         * tests/test-exclude4.sh: New file.
48188         * tests/test-exclude5.sh: New file.
48189         * tests/test-exclude6.sh: New file.
48190         * tests/test-exclude7.sh: New file.
48191
48192 2009-08-12  Bruno Haible  <bruno@clisp.org>
48193
48194         Ensure that getopt() gets declared by <unistd.h>.
48195         * lib/unistd.in.h: Conditionally include getopt.h.
48196         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
48197         Set GNULIB_UNISTD_H_GETOPT.
48198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48199         GNULIB_UNISTD_H_GETOPT.
48200         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
48201
48202 2009-08-12  Bruno Haible  <bruno@clisp.org>
48203
48204         Clarify logic.
48205         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48206         gl_replace_getopt instead of GETOPT_H.
48207
48208 2009-08-12  Bruno Haible  <bruno@clisp.org>
48209
48210         * m4/getopt.m4: Add comments.
48211
48212 2009-08-12  Bruno Haible  <bruno@clisp.org>
48213
48214         Disable multithread support by default on Cygwin 1.5.x.
48215         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48216         set gl_use_threads=no if not specified otherwise.
48217
48218 2009-08-11  Bruno Haible  <bruno@clisp.org>
48219
48220         Avoid compilation error on NetBSD 5.0.
48221         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48222         * tests/test-stdio.c: Likewise.
48223         * tests/test-stdlib.c: Likewise.
48224         * tests/test-string.c: Likewise.
48225         * tests/test-unistd.c: Likewise.
48226         Reported by Greg Troxel <gdt@ir.bbn.com>
48227         at <https://savannah.gnu.org/support/?106973>.
48228
48229 2009-08-11  Bruno Haible  <bruno@clisp.org>
48230
48231         * modules/dup2-tests (Depends-on): Remove close.
48232
48233         Undo 2009-07-19 commit.
48234         * modules/acl-tests (Depends-on): Remove close.
48235         * modules/binary-io-tests (Depends-on): Likewise.
48236         * modules/closein-tests (Depends-on): Likewise.
48237         * modules/flock-tests (Depends-on): Likewise.
48238         * modules/fsync-tests (Depends-on): Likewise.
48239         * modules/lseek-tests (Depends-on): Likewise.
48240         * modules/pipe-tests (Depends-on): Likewise.
48241         * modules/posix_spawn-tests (Depends-on): Likewise.
48242         * modules/posix_spawnp-tests (Depends-on): Likewise.
48243         * modules/stat-time-tests (Depends-on): Likewise.
48244         * modules/yesno-tests (Depends-on): Likewise.
48245
48246 2009-08-10  Bruno Haible  <bruno@clisp.org>
48247
48248         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48249
48250 2009-08-10  Bruno Haible  <bruno@clisp.org>
48251
48252         Fix a gcc warning.
48253         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48254
48255 2009-08-10  Bruno Haible  <bruno@clisp.org>
48256
48257         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48258         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48259         not only the first time.
48260         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48261         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48262         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48263         is 1, not only the the first time.
48264
48265 2009-08-10  Bruno Haible  <bruno@clisp.org>
48266
48267         Make it possible to use module 'gethostname' without module 'close'.
48268         * lib/unistd.in.h (close): Evoke a link error only if
48269         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48271         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48272         * modules/unistd (Makefile.am): Substitute
48273         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48274         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48275         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48276         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48277         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48278         * modules/sys_ioctl (Makefile.am): Substitute
48279         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48280         * modules/socket (configure.ac): On native Windows, set
48281         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48282         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48283         Reported by Sam Steingold <sds@gnu.org>.
48284
48285 2009-08-10  Bruno Haible  <bruno@clisp.org>
48286
48287         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48288         * modules/ioctl (configure.ac): Likewise.
48289
48290 2009-08-10  Bruno Haible  <bruno@clisp.org>
48291
48292         Avoid collision between gnulib wrapper and libintl wrapper.
48293         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48294         already defined in intl/printf.c.
48295         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48296         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48297
48298 2009-08-09  Bruno Haible  <bruno@clisp.org>
48299
48300         Make <sys/select.h> really self-contained, also on Solaris 10.
48301         * lib/sys_select.in.h: Include <string.h>.
48302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48303         Solaris 10 problem.
48304         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48305         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48306         Reported by Jim Meyering.
48307
48308 2009-08-09  Bruno Haible  <bruno@clisp.org>
48309
48310         Avoid warnings from 'aclocal' that are due to a use of macro name
48311         AM_XGETTEXT_OPTION that is not defined in automake.
48312         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48313         automake.
48314         * modules/error (configure.ac): Likewise.
48315         * modules/propername (configure.ac): Likewise.
48316         * modules/vasprintf (configure.ac): Likewise.
48317         * modules/verror (configure.ac): Likewise.
48318         * modules/xprintf (configure.ac): Likewise.
48319         * modules/xvasprintf (configure.ac): Likewise.
48320
48321 2009-08-08  Bruno Haible  <bruno@clisp.org>
48322
48323         Avoid compilation error in C++ mode.
48324         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48325         Reported by Sam Steingold <sds@gnu.org>.
48326
48327 2009-08-08  Bruno Haible  <bruno@clisp.org>
48328
48329         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48330         for the various Unix platforms.
48331         * doc/posix-headers/limits.texi: Update platforms list regarding
48332         HOST_NAME_MAX.
48333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48334
48335 2009-08-07  Jim Meyering  <meyering@redhat.com>
48336
48337         selinux-at: fix typo in a comment
48338         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48339         Spotted by Paolo Bonzini.
48340
48341         selinux-at: remove redundant m4 code, add documentation
48342         * modules/selinux-at (configure.ac): Remove redundant code.
48343         LIB_SELINUX is already set via the dependent module, selinux-h.
48344         (Include): Add quotes around selinux-at.h.
48345         * lib/selinux-at.h: Add documentation.
48346         Reported by Bruno Haible in
48347         http://marc.info/?l=gnulib-bug&m=124958988300749
48348
48349 2009-08-07  Bruno Haible  <bruno@clisp.org>
48350
48351         Avoid link error on MacOS X 10.3 and 10.4.
48352         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48353         on non-ELF systems.
48354         * lib/argp-pv.c (argp_program_version): Likewise.
48355         Reported by Simon Josefsson.
48356
48357 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48358
48359         * tests/test-version-etc.sh: Use $EXEEXT.
48360
48361 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48362
48363         update-copyright: update documentation to point to maint.mk
48364         * build-aux/update-copyright: Here.
48365
48366 2009-08-06  Jim Meyering  <meyering@redhat.com>
48367
48368         maint.mk: support update-copyright-local
48369         * top/maint.mk (update-copyright-local): Define place-holder.
48370         (update-copyright): Depend on $(update-copyright-local).
48371
48372 2009-08-06  Jim Meyering  <meyering@redhat.com>
48373
48374         selinux-at: new module
48375         Initially written for coreutils, this module will soon be
48376         used by findutils, too.
48377         * MODULES.html.sh [Misc]: Add selinux-at.
48378         * lib/selinux-at.h: New file, from coreutils.
48379         * lib/selinux-at.c: Likewise.
48380         * modules/selinux-at: Likewise.
48381         (License): Change from LGPL to GPL, since it depends
48382         on the GPL'd openat module.
48383
48384         doc: update README
48385         * README: Remove references to cogito.
48386         Remove cvs-repo-updating instructions from 2007.
48387         Don't imply that CVS is better if you have limited disk space.
48388
48389 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48390
48391         update-copyright: support C-style comments
48392         * build-aux/update-copyright: Implement and document.
48393         * tests/test-update-copyright.sh: Test.
48394
48395 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48396
48397         update-copyright: support omitted "(C)"
48398         * build-aux/update-copyright: Implement and document.  Also,
48399         allow variable whitespace before "(C)".
48400         * tests/test-update-copyright.sh: Test.
48401
48402 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48403
48404         update-copyright: don't trip on non-FSF copyright statements
48405         * build-aux/update-copyright: Fix so that the first correctly
48406         formatted FSF copyright statement is recognized no matter what
48407         appears before it.  Update documentation.
48408         * tests/test-update-copyright.sh: Test that.
48409
48410 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48411
48412         update-copyright: clean up code a little
48413         * build-aux/update-copyright: Append "_re" to the name of any
48414         variable holding a regular expression.
48415         Replace "old" and "new" with "stmt" in variable names.
48416         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48417         handled correctly.
48418         Format code more consistently.
48419
48420 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48421
48422         update-copyright-tests: improve portability
48423         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48424         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48425
48426 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48427
48428         update-copyright: support @copyright{} and &copy;
48429         * build-aux/update-copyright: Implement and document.
48430         * tests/test-update-copyright.sh: Test.
48431
48432 2009-08-04  Jim Meyering  <meyering@redhat.com>
48433
48434         update-copyright-tests: correctly test EOL=\r\n handling
48435         * tests/test-update-copyright.sh: Put \r at the end of some lines
48436         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48437
48438         maint.mk: make update-copyright exclusion list more configurable
48439         * top/maint.mk (update-copyright): Default to excluding COPYING,
48440         but allow an override, in case someone does want to update that file.
48441
48442         maint.mk: don't update copyright date in COPYING
48443         * top/maint.mk (update-copyright): Exclude COPYING.
48444
48445         maint.mk: add a copyright-updating rule
48446         * top/maint.mk (update-copyright): New rule.
48447         Derived from coreutils/Makefile.am.
48448
48449         update-copyright: rename some variables
48450         * build-aux/update-copyright: Rename a few variables for clarity.
48451         Tweak syntax.  List Joel E. Denny as coauthor.
48452
48453 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48454
48455         update-copyright: fix bug for 2-digit last year and add tests
48456         * build-aux/update-copyright: Fix bug.
48457         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48458         specified.
48459         * modules/update-copyright-tests: New
48460         * tests/test-update-copyright.sh: New.
48461
48462 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48463
48464         update-copyright: handle leading tabs in line prefix
48465         * build-aux/update-copyright: Count leading tabs as 8 spaces
48466         when computing margin.  This helps with the formatting of
48467         ChangeLogs, for example.
48468         Fix documentation a little.
48469
48470 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48471
48472         update-copyright: support EOL=\r\n
48473         * build-aux/update-copyright: Implement that.
48474
48475 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48476
48477         update-copyright: automatically format copyright statements
48478         * build-aux/update-copyright: Implement that.
48479         Also, be a little more predictable and safer by always failing
48480         when the full copyright format is not perfectly recognized as an
48481         unbroken whole.  Discussed at
48482         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48483         Rewrite documentation.
48484
48485 2009-08-03  Bruno Haible  <bruno@clisp.org>
48486
48487         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48488
48489 2009-08-02  Bruno Haible  <bruno@clisp.org>
48490
48491         Tests for module 'uname'.
48492         * modules/uname-tests: New file.
48493         * tests/test-uname.c: New file.
48494
48495         New module 'uname'.
48496         * lib/uname.c: New file.
48497         * m4/uname.m4: New file.
48498         * modules/uname: New file.
48499         * doc/posix-functions/uname.texi: Mention the new module.
48500
48501 2009-08-02  Bruno Haible  <bruno@clisp.org>
48502
48503         Tests for module 'sys_utsname'.
48504         * modules/sys_utsname-tests: New file.
48505         * tests/test-sys_utsname.c: New file.
48506
48507         New module 'sys_utsname'.
48508         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48509         * m4/sys_utsname_h.m4: New file.
48510         * modules/sys_utsname: New file.
48511         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48512
48513 2009-08-02  Bruno Haible  <bruno@clisp.org>
48514
48515         Implicitly initialize the sockets library.
48516         * lib/gethostname.c: Include sockets.h.
48517         (rpl_gethostname): Invoke gl_sockets_startup.
48518         * lib/socket.c: Include sockets.h.
48519         (rpl_socket): Invoke gl_sockets_startup.
48520         * modules/gethostname (Depends-on): Add sockets.
48521         * modules/socket (Depends-on): Likewise.
48522         * tests/test-poll.c: Don't include sockets.h.
48523         (main): Don't invoke gl_sockets_startup.
48524         * tests/test-select.c: Don't include sockets.h.
48525         (main): Don't invoke gl_sockets_startup.
48526
48527 2009-08-02  Bruno Haible  <bruno@clisp.org>
48528
48529         Allow multiple calls to gl_sockets_startup.
48530         * lib/sockets.c (initialized_sockets_version): New variable.
48531         (gl_sockets_startup): Do nothing if already called for this or a higher
48532         version.
48533         (gl_sockets_cleanup): Reset initialized_sockets_version.
48534
48535 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48536
48537         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48538         different project/version.
48539
48540 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48541             Bruno Haible  <bruno@clisp.org>
48542
48543         Tests for module 'pipe-filter-gi'.
48544         * modules/pipe-filter-gi-tests: New file.
48545         * tests/test-pipe-filter-gi1.sh: New file.
48546         * tests/test-pipe-filter-gi1.c: New file.
48547         * tests/test-pipe-filter-gi2.sh: New file.
48548         * tests/test-pipe-filter-gi2-main.c: New file.
48549         * tests/test-pipe-filter-gi2-child.c: New file.
48550
48551         New module 'pipe-filter-gi'.
48552         * lib/pipe-filter-gi.c: New file.
48553         * modules/pipe-filter-gi: New file.
48554
48555 2009-08-02  Bruno Haible  <bruno@clisp.org>
48556             Paolo Bonzini  <bonzini@gnu.org>
48557
48558         Tests for module 'pipe-filter-ii'.
48559         * modules/pipe-filter-ii-tests: New file.
48560         * tests/test-pipe-filter-ii1.sh: New file.
48561         * tests/test-pipe-filter-ii1.c: New file.
48562         * tests/test-pipe-filter-ii2.sh: New file.
48563         * tests/test-pipe-filter-ii2-main.c: New file.
48564         * tests/test-pipe-filter-ii2-child.c: New file.
48565
48566         New module 'pipe-filter-ii'.
48567         * lib/pipe-filter.h: New file.
48568         * lib/pipe-filter-ii.c: New file.
48569         * lib/pipe-filter-aux.h: New file.
48570         * modules/pipe-filter-ii: New file.
48571
48572 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48573
48574         * lib/gc-libgcrypt.c: Change copyright to FSF.
48575         * lib/gc-gnulib.c: Likewise.
48576
48577 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48578
48579         * lib/gethostname.c: Include limits.h.
48580
48581 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48582             Bruno Haible  <bruno@clisp.org>
48583
48584         Ensure HOST_NAME_MAX as part of the gethostname module.
48585         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48586         define also HOST_NAME_MAX.
48587         * tests/test-gethostname.c: Include <limits.h>.
48588         (main): Check also HOST_NAME_MAX.
48589         * doc/posix-headers/limits.texi: Document the mingw problem.
48590
48591 2009-08-02  Bruno Haible  <bruno@clisp.org>
48592
48593         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48594         Add comments.
48595
48596 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48597
48598         * lib/gethostname.c: Add Windows wrapper.
48599         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48600         * modules/gethostname: Depend on sys_socket & errno, for also
48601         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48602         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48603
48604 2009-07-31  Jim Meyering  <meyering@redhat.com>
48605
48606         getloadavg: fix symbol name in comment
48607         * lib/getloadavg.c: Correct a typo I introduced when adding
48608         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48609         Matt Kraai spotted the problem.
48610
48611 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48612
48613         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48614         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48615         code also if ! defined N_NAME_POINTER.
48616         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48617         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48618         but the n_name member is a 12-byte array.
48619
48620 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48621
48622         update-copyright: generalize comment handling
48623         * build-aux/update-copyright: Handle copyright statements
48624         within more comment styles.
48625         Document usage.
48626         Report any file with an external copyright holder or parse failure.
48627
48628 2009-07-29  Jim Meyering  <meyering@redhat.com>
48629
48630         mktime: correct setting of REPLACE_MKTIME
48631         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48632
48633         update-copyright: new module
48634         * modules/update-copyright: New file.
48635         * build-aux/update-copyright: New file.
48636         * MODULES.html.sh (maint+release support): Add update-copyright.
48637
48638 2009-07-27  Bruno Haible  <bruno@clisp.org>
48639
48640         Fix compilation error when <ctime> is used and mktime is replaced.
48641         * lib/time.in.h (mktime): New declaration.
48642         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48643         REPLACE_MKTIME instead of defining mktime in config.h.
48644         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48645         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48646         Reported by Ross McFarland <rwmcfa1@neces.com>.
48647
48648 2009-07-27  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48651         Reported by Matt Kraai <mkraai@beckman.com>.
48652
48653 2009-07-25  Jim Meyering  <meyering@redhat.com>
48654
48655         maint.mk: avoid warnings about missing files
48656         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48657         diagnostic when .prev-version does not exist.
48658         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48659         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48660         nonexistent cfg.mk.
48661         Suggestions from Simon Josefsson.
48662
48663 2009-07-25  Bruno Haible  <bruno@clisp.org>
48664
48665         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48666         defined as macros. Needed on QNX 6.4.1.
48667         Reported by Matt Kraai <mkraai@beckman.com>.
48668
48669 2009-07-23  Jim Meyering  <meyering@redhat.com>
48670
48671         maint.mk: invoke "make dist" with a working value of XZ_OPT
48672         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48673
48674 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48675
48676         Make fseeko.c compile on QNX.
48677         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48678
48679 2009-07-22  Peter Simons  <simons@cryp.to>
48680
48681         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48682         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48683         * lib/md4.h: Likewise.
48684         * lib/md5.h: Likewise.
48685         * lib/sha1.h: Likewise.
48686         * lib/sha256.h: Likewise.
48687         * lib/sha512.h: Likewise.
48688
48689         tests-sha1: don't assign literal string to 'char *' variable
48690         * tests/test-sha1.c (main): Declare locals with "const" to match
48691         attributes of the right hand side.
48692
48693 2009-07-21  Eric Blake  <ebb9@byu.net>
48694
48695         dup2: fix more mingw problems
48696         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48697         fd to itself.
48698         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48699         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48700         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48701         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48702         care of mingw bugs.
48703
48704 2009-07-21  Jim Meyering  <meyering@redhat.com>
48705
48706         vc-list-files: avoid failure when /bin/sh is dash
48707         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48708         On some Debian based systems, /bin/sh is a symlink to dash, and running
48709         this command would omit the "/" following each 'tests' prefix:
48710           dash -x build-aux/vc-list-files -C . tests
48711         That is because bash and dash work differently:
48712           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48713           bash ok
48714           dash odd
48715
48716 2009-07-21  Eric Blake  <ebb9@byu.net>
48717
48718         dup2-tests: test previous patch
48719         * modules/dup2-tests: New file.
48720         * tests/test-dup2.c: Likewise.
48721         * tests/test-open.c (main): Avoid unspecified behavior.
48722         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48723         test.
48724
48725         dup2: work around mingw and cygwin 1.5 bug
48726         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48728         * modules/unistd (Makefile.am): Substitute it.
48729         * lib/unistd.in.h (dup2): Declare the replacement.
48730         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48731         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48732         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48733         * modules/execute (Depends-on): Add dup2.
48734         * modules/fseterr (Depends-on): Likewise.
48735         * modules/pipe (Depends-on): Likewise.
48736         * modules/posix_spawn-internal (Depends-on): Likewise.
48737
48738 2009-07-21  Bruno Haible  <bruno@clisp.org>
48739
48740         * modules/.gitattributes: New file.
48741
48742 2009-07-20  Bruno Haible  <bruno@clisp.org>
48743
48744         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48745         (main): Use it.
48746
48747 2009-07-20  Eric Blake  <ebb9@byu.net>
48748
48749         test-pipe: make a bit more robust.
48750         * tests/test-pipe.c (myerr): Allow error messages regardless of
48751         what we do to stderr.
48752         (test_pipe): Rearrange to avoid deadlock.
48753         (child_main): Try a larger read, to ensure we avoided deadlock.
48754         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48755         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48756         if misused.
48757
48758 2009-07-19  Jim Meyering  <meyering@redhat.com>
48759
48760         fts: avoid false-positive cycle-detection
48761         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48762         for each new command line argument.
48763
48764 2009-07-19  Bruno Haible  <bruno@clisp.org>
48765
48766         Fix build error on mingw with the modules sys_select and unistd.
48767         * modules/acl-tests (Depends-on): Add close.
48768         * modules/binary-io-tests (Depends-on): Likewise.
48769         * modules/closein-tests (Depends-on): Likewise.
48770         * modules/flock-tests (Depends-on): Likewise.
48771         * modules/fsync-tests (Depends-on): Likewise.
48772         * modules/lseek-tests (Depends-on): Likewise.
48773         * modules/pipe-tests (Depends-on): Likewise.
48774         * modules/posix_spawn-tests (Depends-on): Likewise.
48775         * modules/posix_spawnp-tests (Depends-on): Likewise.
48776         * modules/stat-time-tests (Depends-on): Likewise.
48777         * modules/yesno-tests (Depends-on): Likewise.
48778
48779 2009-07-19  Bruno Haible  <bruno@clisp.org>
48780
48781         Unify conditionals.
48782         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48783         macros, not at the compiler macros.
48784         * lib/pipe.c: Likewise.
48785         * lib/execute.c: Likewise.
48786         * lib/spawni.c: Likewise.
48787
48788 2009-07-19  Bruno Haible  <bruno@clisp.org>
48789
48790         Fix handling of closed stdin/stdout/stderr on mingw.
48791         * lib/w32spawn.h: Include unistd.h.
48792         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48793         file descriptor with O_NOINHERIT flag.
48794         (fd_safer_noinherit): New function, based on fd-safer.c.
48795         (dup_safer_noinherit): New function, based on dup-safer.c.
48796         (undup_safer_noinherit): New function.
48797         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48798         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48799         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48800         instead of fd_safer.
48801         * tests/test-pipe.c: Include <windows.h>.
48802         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48803         result.
48804
48805         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48806         from main.
48807         (test_pipe): Pass an extra argument for disambiguation.
48808         (main): Invoke parent_main or child_main.
48809
48810         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48811         consistently.
48812
48813 2009-07-18  Eric Blake  <ebb9@byu.net>
48814
48815         test-pipe: fix mingw build
48816         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48817
48818 2009-07-18  Bruno Haible  <bruno@clisp.org>
48819
48820         * modules/pipe-tests (Makefile.am): Fix typo.
48821
48822 2009-07-18  Eric Blake  <ebb9@byu.net>
48823
48824         error: fix mingw build
48825         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48826         Reported by Bruno Haible.
48827
48828         error: avoid undefined use of stdout
48829         * lib/error.c (error, error_at_line): Check that fd 1 is open
48830         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48831         is handling faults and the close_stdout module wants to report the
48832         detection of closed stdout as an error.
48833
48834 2009-07-17  Eric Blake  <ebb9@byu.net>
48835
48836         pipe: be robust in face of closed fds
48837         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48838         should cause child to misbehave.
48839         * modules/pipe-tests: New module.
48840         * tests/test-pipe.c: New file.
48841         * tests/test-pipe.sh: New file.
48842         Reported by Akim Demaille.
48843
48844 2009-07-14  Bruno Haible  <bruno@clisp.org>
48845
48846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48847         Reported by anonymous kc.
48848
48849 2009-07-07  Jim Meyering  <meyering@redhat.com>
48850
48851         maint.mk: don't look for translatable strings in *.m4 or *.mk
48852         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48853         when searching for translatable strings.
48854
48855 2009-07-05  Jim Meyering  <meyering@redhat.com>
48856
48857         remove superfluous parentheses in STREQ definition
48858         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48859         * lib/getugroups.c (STREQ): Likewise.
48860         * lib/fnmatch.c (STREQ): Likewise.
48861         Spotted by Bruno Haible.
48862
48863 2009-07-04  Jim Meyering  <meyering@redhat.com>
48864
48865         argv-iter: new module
48866         * MODULES.html.sh: Add argv-iter.
48867         * lib/argv-iter.c, lib/argv-iter.h: New files.
48868         * modules/argv-iter: New file.
48869         * modules/argv-iter-tests: New file.
48870         * tests/test-argv-iter.c: Test it.
48871
48872 2009-07-04  Bruno Haible  <bruno@clisp.org>
48873
48874         Fix assertion.
48875         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48876         contains more exact copies of a given entry than file2, leave the extra
48877         copies unpaired rather than aborting.
48878         Reported by Eric Blake.
48879
48880 2009-07-02  Bruno Haible  <bruno@clisp.org>
48881
48882         Speedup git-merge-changelog for git cherry-pick.
48883         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48884         (entries_mapping_get): New function, extracted from compute_mapping.
48885         (entries_mapping_reverse_get): New function.
48886         (compute_mapping): Add a 'full' argument. Return the result in a
48887         'struct entries_mapping'.
48888         (main): Update. Access the mappings through entries_mapping_get.
48889         Reported by Eric Blake.
48890
48891 2009-07-02  Bruno Haible  <bruno@clisp.org>
48892
48893         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48894         best_i.
48895
48896 2009-07-02  Bruno Haible  <bruno@clisp.org>
48897
48898         Speed up approximate search for matching ChangeLog entries.
48899         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48900         argument. Call fstrcmp_bounded instead of fstrcmp.
48901         (compute_mapping, try_split_merged_entry, main): Update callers.
48902
48903 2009-07-02  Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48906
48907 2009-06-30  Bruno Haible  <bruno@clisp.org>
48908
48909         Reduce the number of uc_is_cased calls.
48910         * lib/unicase.h (casing_suffix_context_t): Add
48911         'first_char_except_ignorable' field.
48912         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48913         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48914         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48915         Update initializer.
48916         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48917         case-ignorable characters.
48918         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48919         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48920         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48921         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48922         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48923
48924 2009-06-30  Bruno Haible  <bruno@clisp.org>
48925
48926         Tests for module 'unicase/ignorable'.
48927         * modules/unicase/ignorable-tests: New file.
48928         * tests/unicase/test-ignorable.c: New file, generated by
48929         gen-uni-tables.
48930
48931         Tests for module 'unicase/cased'.
48932         * modules/unicase/cased-tests: New file.
48933         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48934         * tests/unicase/test-predicate-part1.h: New file, derived from
48935         tests/unictype/test-predicate-part1.h.
48936         * tests/unicase/test-predicate-part2.h: New file, same as
48937         tests/unictype/test-predicate-part2.h.
48938
48939         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48940         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48941         (output_casing_properties): New function.
48942         (main): Call it.
48943         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48944         * lib/unicase/cased.c: Include unictype/bitmap.h.
48945         (uc_is_cased): Define through a bitmap lookup.
48946         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48947         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48948         (uc_is_case_ignorable): Define through a bitmap lookup.
48949         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48950         lib/unictype/bitmap.h.
48951         (Depends-on): Add inline. Clean up.
48952         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48953         lib/unictype/bitmap.h.
48954         (Depends-on): Add inline. Clean up.
48955         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48956         recognition.
48957         * tests/unicase/test-u16-tolower.c (main): Likewise.
48958         * tests/unicase/test-u32-tolower.c (main): Likewise.
48959
48960 2009-06-30  Bruno Haible  <bruno@clisp.org>
48961
48962         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48963         * lib/unicase/u16-casemap.c: Likewise.
48964         * lib/unicase/u32-casemap.c: Likewise.
48965
48966 2009-06-29  Bruno Haible  <bruno@clisp.org>
48967
48968         Define u32_casefold as a wrapper around u32_ct_casefold.
48969         * lib/unicase/u32-casefold.c: Update.
48970         * modules/unicase/u32-casefold (Depends-on): Add
48971         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48972         unicase/empty-suffix-context. Clean up.
48973
48974         Define u16_casefold as a wrapper around u16_ct_casefold.
48975         * lib/unicase/u16-casefold.c: Update.
48976         * modules/unicase/u16-casefold (Depends-on): Add
48977         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48978         unicase/empty-suffix-context. Clean up.
48979
48980         Define u8_casefold as a wrapper around u8_ct_casefold.
48981         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48982         * lib/unicase/u8-casefold.c: Update.
48983         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48984         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48985
48986         Define u32_totitle as a wrapper around u32_ct_totitle.
48987         * lib/unicase/u32-totitle.c: Update.
48988         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48989         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48990
48991         Define u16_totitle as a wrapper around u16_ct_totitle.
48992         * lib/unicase/u16-totitle.c: Update.
48993         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48994         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48995
48996         Define u8_totitle as a wrapper around u8_ct_totitle.
48997         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48998         functions.
48999         (FUNC): Delegate to U_CT_TOTITLE.
49000         * lib/unicase/u8-totitle.c: Update.
49001         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
49002         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49003
49004         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
49005         invocation.
49006         * modules/unicase/u32-tolower (Depends-on): Add
49007         unicase/empty-prefix-context, unicase/empty-suffix-context.
49008
49009         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
49010         invocation.
49011         * modules/unicase/u16-tolower (Depends-on): Add
49012         unicase/empty-prefix-context, unicase/empty-suffix-context.
49013
49014         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
49015         * modules/unicase/u8-tolower (Depends-on): Add
49016         unicase/empty-prefix-context, unicase/empty-suffix-context.
49017
49018         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
49019         invocation.
49020         * modules/unicase/u32-toupper (Depends-on): Add
49021         unicase/empty-prefix-context, unicase/empty-suffix-context.
49022
49023         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
49024         invocation.
49025         * modules/unicase/u16-toupper (Depends-on): Add
49026         unicase/empty-prefix-context, unicase/empty-suffix-context.
49027
49028         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
49029         * modules/unicase/u8-toupper (Depends-on): Add
49030         unicase/empty-prefix-context, unicase/empty-suffix-context.
49031
49032         New module 'unicase/u32-ct-casefold'.
49033         * lib/unicase/u32-ct-casefold.c: New file.
49034         * modules/unicase/u32-ct-casefold: New file.
49035
49036         New module 'unicase/u16-ct-casefold'.
49037         * lib/unicase/u16-ct-casefold.c: New file.
49038         * modules/unicase/u16-ct-casefold: New file.
49039
49040         New module 'unicase/u8-ct-casefold'.
49041         * lib/unicase/u8-ct-casefold.c: New file.
49042         * lib/unicase/u-ct-casefold.h: New file, derived from
49043         lib/unicase/u-casefold.h.
49044         * modules/unicase/u8-ct-casefold: New file.
49045
49046         New module 'unicase/u32-ct-totitle'.
49047         * lib/unicase/u32-ct-totitle.c: New file.
49048         * modules/unicase/u32-ct-totitle: New file.
49049
49050         New module 'unicase/u16-ct-totitle'.
49051         * lib/unicase/u16-ct-totitle.c: New file.
49052         * modules/unicase/u16-ct-totitle: New file.
49053
49054         New module 'unicase/u8-ct-totitle'.
49055         * lib/unicase/u8-ct-totitle.c: New file.
49056         * lib/unicase/u-ct-totitle.h: New file, derived from
49057         lib/unicase/u-totitle.h.
49058         * modules/unicase/u8-ct-totitle: New file.
49059
49060         New module 'unicase/u32-ct-tolower'.
49061         * lib/unicase/u32-ct-tolower.c: New file.
49062         * modules/unicase/u32-ct-tolower: New file.
49063
49064         New module 'unicase/u16-ct-tolower'.
49065         * lib/unicase/u16-ct-tolower.c: New file.
49066         * modules/unicase/u16-ct-tolower: New file.
49067
49068         New module 'unicase/u8-ct-tolower'.
49069         * lib/unicase/u8-ct-tolower.c: New file.
49070         * modules/unicase/u8-ct-tolower: New file.
49071
49072         New module 'unicase/u32-ct-toupper'.
49073         * lib/unicase/u32-ct-toupper.c: New file.
49074         * modules/unicase/u32-ct-toupper: New file.
49075
49076         New module 'unicase/u16-ct-toupper'.
49077         * lib/unicase/u16-ct-toupper.c: New file.
49078         * modules/unicase/u16-ct-toupper: New file.
49079
49080         New module 'unicase/u8-ct-toupper'.
49081         * lib/unicase/u8-ct-toupper.c: New file.
49082         * modules/unicase/u8-ct-toupper: New file.
49083
49084         Add context arguments to u*_casemap functions.
49085         * lib/unicase/unicasemap.h: Include unicase.h.
49086         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
49087         suffix_context arguments.
49088         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
49089         functions.
49090         (FUNC): Add prefix_context and suffix_context arguments. Use
49091         uc_is_cased and uc_is_case_ignorable.
49092         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
49093         * lib/unicase/u16-casemap.c: Likewise.
49094         * lib/unicase/u32-casemap.c: Likewise.
49095         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
49096         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49097         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
49098         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49099         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
49100         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49101
49102         New module 'unicase/u32-suffix-context'.
49103         * lib/unicase/u32-suffix-context.c: New file.
49104         * modules/unicase/u32-suffix-context: New file.
49105
49106         New module 'unicase/u16-suffix-context'.
49107         * lib/unicase/u16-suffix-context.c: New file.
49108         * modules/unicase/u16-suffix-context: New file.
49109
49110         New module 'unicase/u8-suffix-context'.
49111         * lib/unicase/u8-suffix-context.c: New file.
49112         * lib/unicase/u-suffix-context.h: New file.
49113         * modules/unicase/u8-suffix-context: New file.
49114
49115         New module 'unicase/empty-suffix-context'.
49116         * lib/unicase/empty-suffix-context.c: New file.
49117         * modules/unicase/empty-suffix-context: New file.
49118
49119         New module 'unicase/u32-prefix-context'.
49120         * lib/unicase/u32-prefix-context.c: New file.
49121         * modules/unicase/u32-prefix-context: New file.
49122
49123         New module 'unicase/u16-prefix-context'.
49124         * lib/unicase/u16-prefix-context.c: New file.
49125         * modules/unicase/u16-prefix-context: New file.
49126
49127         New module 'unicase/u8-prefix-context'.
49128         * lib/unicase/u8-prefix-context.c: New file.
49129         * lib/unicase/u-prefix-context.h: New file.
49130         * lib/unicase/context.h: New file.
49131         * modules/unicase/u8-prefix-context: New file.
49132
49133         New module 'unicase/empty-prefix-context'.
49134         * lib/unicase/empty-prefix-context.c: New file.
49135         * modules/unicase/empty-prefix-context: New file.
49136
49137         New module 'unicase/ignorable'.
49138         * lib/unicase/ignorable.c: New file.
49139         * modules/unicase/ignorable: New file.
49140
49141         New module 'unicase/cased'.
49142         * lib/unicase/caseprop.h: New file.
49143         * lib/unicase/cased.c: New file.
49144         * modules/unicase/cased: New file.
49145
49146         New functions for case mapping of substrings.
49147         * lib/unicase.h (casing_prefix_context_t): New type.
49148         (unicase_empty_prefix_context): New variable.
49149         (u8_casing_prefix_context, u16_casing_prefix_context,
49150         u32_casing_prefix_context, u8_casing_prefixes_context,
49151         u16_casing_prefixes_context, u32_casing_prefixes_context): New
49152         declarations.
49153         (casing_suffix_context_t): New type.
49154         (unicase_empty_suffix_context): New variable.
49155         (u8_casing_suffix_context, u16_casing_suffix_context,
49156         u32_casing_suffix_context, u8_casing_suffixes_context,
49157         u16_casing_suffixes_context, u32_casing_suffixes_context,
49158         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
49159         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
49160         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
49161         declarations.
49162
49163 2009-06-28  Jim Meyering  <meyering@redhat.com>
49164
49165         boostrap: indent only with spaces
49166         * build-aux/bootstrap: Indent only with spaces, never TABs.
49167
49168         bootstrap: split long lines
49169         * build-aux/bootstrap: Keep line length < 80.
49170
49171         bootstrap: sync from coreutils
49172         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
49173         just as autoreconf does.  Verify a list of prerequisite
49174         package-name,version-number pairs if defined in bootstrap.conf.
49175         Refer to README-prereq, if prerequisites are not satisfied.
49176
49177 2009-06-27  Eric Blake  <ebb9@byu.net>
49178
49179         tests: add test for bogus NULL definition
49180         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
49181         * tests/test-stdlib.c: Likewise.
49182         * tests/test-string.c: Likewise.
49183         * tests/test-locale.c: Likewise.
49184         * tests/test-unistd.c: Likewise.
49185         * modules/stdio-tests (Depends-on): Add verify.
49186         * modules/stdlib-tests (Depends-on): Likewise.
49187         * modules/string-tests (Depends-on): Likewise.
49188         * modules/locale-tests (Depends-on): Likewise.
49189         * modules/unistd-tests (Depends-on): Likewise.
49190
49191 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
49192
49193         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
49194         self-explaining comment.
49195         * m4/selinux-selinux-h: Update serial.
49196         (gl_LIBSELINUX): New macro, adding a warning for missing development
49197         packages to code extracted from...
49198         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
49199         Add warning for missing development packages here, too.
49200
49201 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
49202
49203         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49204
49205 2009-06-25  Eric Blake  <ebb9@byu.net>
49206
49207         version-etc: fix regression
49208         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49209         gcc.
49210         (version_etc): Use it, to catch bugs with trailing NULL.
49211         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49212         (version_etc_va): Fix logic bug.
49213         * modules/version-etc-tests: Add test.
49214         * tests/test-version-etc.c: New file.
49215         * tests/test-version-etc.sh: Likewise.
49216
49217 2009-06-25  Sam Steingold  <sds@gnu.org>
49218
49219         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49220         mbtowc declaration.
49221
49222 2009-06-25  Eric Blake  <ebb9@byu.net>
49223
49224         fpurge: migrate into <stdio.h>
49225         * lib/fpurge.h: Delete...
49226         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49227         * lib/fpurge.c (fpurge): Change declaring header.
49228         * modules/fpurge (Files): Drop deleted file.
49229         (Depends-on): Add stdio.
49230         (configure.ac): Set witness.
49231         * modules/stdio (Makefile.am): Support fpurge macros.
49232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49233         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49234         * lib/fflush.c: Update client.
49235         * tests/test-fpurge.c: Likewise.
49236         * NEWS: Mention the change.
49237
49238 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49239
49240         * lib/argp-version-etc.c (program_authors): Add const
49241         qualifier.
49242         * lib/version-etc.c: Fix typos in the comments.
49243         * modules/argp-version-etc: Depends on version-etc.
49244
49245 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49246
49247         argp-version-etc: new module.
49248
49249         * lib/argp-version-etc.c: New file.
49250         * lib/argp-version-etc.h: New file.
49251         * modules/argp-version-etc: New file.
49252         * modules/argp-version-etc-tests: New file.
49253         * tests/test-argp-version-etc.c: New test.
49254         * tests/test-argp-version-etc-1.sh: New test.
49255
49256 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49257
49258         Provide additional interfaces and documentation for version-etc
49259         module.
49260
49261         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49262         interfaces.
49263         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49264         prototypes.
49265
49266 2009-06-24  Bruno Haible  <bruno@clisp.org>
49267
49268         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49269         HAVE_LIB${NAME} macro.
49270         Reported by Sam Steingold <sds@gnu.org>.
49271
49272 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49273
49274         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49275         needed.
49276
49277 2009-06-21  Bruno Haible  <bruno@clisp.org>
49278
49279         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49280         work.
49281         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49282         together with LIB${NAME}, LTLIB${NAME}.
49283         Reported by Sam Steingold <sds@gnu.org>.
49284
49285 2009-06-20  Jim Meyering  <meyering@redhat.com>
49286
49287         tests: make sc_require_test_exit_idiom more generic
49288         * top/maint.mk (Exit_witness_file): New overridable variable.
49289         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49290         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49291
49292 2009-06-19  Jim Meyering  <meyering@redhat.com>
49293
49294         hash: reverse order of src/dst parameters in an internal interface
49295         * lib/hash.c (transfer_entries): Reverse order of parameters to
49296         put DST before SRC.  Adjust callers.
49297
49298         tests: test-hash: avoid wholesale duplication
49299         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49300         Instead, use a loop and add a single conditional.
49301
49302         tests: test-hash: allow seed selection via a command line argument
49303         * tests/test-hash.c (get_seed): New function.
49304         (main): Use it.
49305
49306 2009-06-19  Eric Blake  <ebb9@byu.net>
49307
49308         hash: avoid memory leak on allocation failure
49309         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49310         failure.  Factor repeated algorithm...
49311         (transfer_entries): ...into new helper routine.
49312         (hash_delete): React to hash_rehash return value.
49313
49314         hash: reduce memory pressure in hash_rehash no-op case
49315         * lib/hash.c (next_prime): Avoid overflow.
49316         (hash_initialize): Factor bucket size computation...
49317         (compute_bucket_size): ...into new helper function.
49318         (hash_rehash): Use new function and open coding to reduce memory
49319         pressure, and avoid a memory leak in USE_OBSTACK code.
49320         Reported by Jim Meyering.
49321
49322 2009-06-18  Eric Blake  <ebb9@byu.net>
49323
49324         hash: make rotation more obvious
49325         * modules/hash (Depends-on): Add bitrotate and stdint.
49326         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49327         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49328         (SIZE_MAX): Rely on headers for definition.
49329         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49330         (raw_hasher): Use rotr_sz.
49331         Suggested by Jim Meyering.
49332
49333         hash: fix memory leak in last patch
49334         * lib/hash.c (hash_rehash): Avoid memory leak.
49335
49336         hash: avoid no-op rehashing
49337         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49338
49339         hash: provide default callback functions
49340         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49341         (hash_initialize): Use them as defaults.
49342         * tests/test-hash.c (main): Test this.
49343
49344         hash: minor optimization
49345         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49346         when possible.
49347         (hash_initialize): Document this promise.
49348         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49349         * tests/test-hash.c (hash_compare_strings): Test this.
49350
49351 2009-06-18  Bruno Haible  <bruno@clisp.org>
49352
49353         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49354         going to be replaced anyway.
49355
49356 2009-06-18  Bruno Haible  <bruno@clisp.org>
49357
49358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49359         in one place.
49360         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49361         be replaced anyway.
49362
49363 2009-06-18  Eric Blake  <ebb9@byu.net>
49364
49365         hash: check for resize before insertion
49366         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49367         threshold before insertion, so that a pathological hash_rehash
49368         that fills every bucket can still trigger another rehash.
49369
49370 2009-06-18  Jim Meyering  <meyering@redhat.com>
49371
49372         hash-tests: add a loop around the small tests
49373         * tests/test-hash.c (main): Repeat small tests with selected
49374         small initial table sizes.
49375
49376 2009-06-17  Eric Blake  <ebb9@byu.net>
49377
49378         hash: minor cleanups
49379         * lib/hash.h (hash_entry): Make opaque, by moving...
49380         * lib/hash.c (hash_entry): ...here.
49381         (hash_insert): Clarify restrictions on what can be inserted.
49382         (hash_get_next): Clarify when it is safe to remove an element
49383         during traversal.
49384         (check_tuning): Skip verification when tuning is known safe.
49385         (hash_initialize): Clarify restrictions on tuning.
49386
49387 2009-06-17  Jim Meyering  <jim@meyering.net>
49388         and Eric Blake  <ebb9@byu.net>
49389
49390         hash-tests: new module
49391         * modules/hash-tests: New file.
49392         * tests/test-hash.c: New file.
49393
49394 2009-06-17  Eric Blake  <ebb9@byu.net>
49395
49396         strstr-simple: document new module
49397         * MODULES.html.sh: Document new module.
49398
49399         strstr, strcasestr: replace on platforms with broken memchr
49400         * modules/strstr: Split into...
49401         * modules/strstr-simple: ...new module that does not care about
49402         performance, but does care about glibc bug.
49403         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49404         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49405         if platform memchr is broken, per Debian bug 521737.
49406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49407         memchr.
49408         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49409         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49410         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49411         * modules/mountlist (Depends-on): Add strstr-simple.
49412         * modules/gen-uni-tables (Depends-on): Likewise.
49413         * modules/argz (Depends-on): Add strstr.
49414
49415 2009-06-17  Bruno Haible  <bruno@clisp.org>
49416
49417         * modules/posix_spawn-internal (Depends-on): Add errno.
49418
49419 2009-06-17  Bruno Haible  <bruno@clisp.org>
49420
49421         Define missing ESTALE on Interix 3.5.
49422         * lib/errno.in.h (ESTALE): Assign a value if missing.
49423         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49424         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49425         missing.
49426         * doc/posix-headers/errno.texi: Mention the Interix bug.
49427         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49428
49429 2009-06-15  Eric Blake  <ebb9@byu.net>
49430
49431         memchr, memchr2: add valgrind exception
49432         * lib/memchr.valgrind: New file.
49433         * lib/memchr2.valgrind: New file.
49434         * modules/memchr (Files): Distribute valgrind file.
49435         * modules/memchr2 (Files): Likewise.
49436
49437         docs: memchr is no longer obsolete
49438         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49439         * lib/string.in.h (memchr): Simplify logic.
49440
49441 2009-06-14  Jim Meyering  <meyering@redhat.com>
49442
49443         link-follow: fix the "checking..." message to not mention trailing slash
49444         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49445         never considered trailing slashes.
49446
49447 2009-06-14  Bruno Haible  <bruno@clisp.org>
49448
49449         * m4/memchr.m4: Mention also the bug on IA-64.
49450         * doc/posix-functions/memchr.texi: Likewise.
49451
49452 2009-06-12  Eric Blake  <ebb9@byu.net>
49453
49454         memchr: detect broken x86_64 and alpha implementations
49455         * modules/memchr-tests (Depends-on): Move mmap detection...
49456         * modules/memchr (Depends-on): ...here.
49457         (configure.ac): Set indicator.
49458         * lib/string.in.h (memchr): Declare replacement.
49459         * modules/string (Makefile.am): Trigger replacement.
49460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49461         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49462         bugs.
49463         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49464         * modules/getpagesize (License): Relax license.
49465
49466 2009-06-11  Bruno Haible  <bruno@clisp.org>
49467
49468         * lib/idpriv.h: Add more references.
49469
49470 2009-06-08  Bruno Haible  <bruno@clisp.org>
49471
49472         Tests for module 'idpriv-droptemp'.
49473         * modules/idpriv-droptemp-tests: New file.
49474         * tests/test-idpriv-droptemp.sh: New file.
49475         * tests/test-idpriv-droptemp.su.sh: New file.
49476         * tests/test-idpriv-droptemp.c: New file.
49477
49478         New module 'idpriv-droptemp'.
49479         * lib/idpriv-droptemp.c: New file.
49480         * modules/idpriv-droptemp: New file.
49481
49482 2009-06-08  Bruno Haible  <bruno@clisp.org>
49483
49484         Tests for module 'idpriv-drop'.
49485         * modules/idpriv-drop-tests: New file.
49486         * tests/test-idpriv-drop.sh: New file.
49487         * tests/test-idpriv-drop.su.sh: New file.
49488         * tests/test-idpriv-drop.c: New file.
49489
49490         New module 'idpriv-drop'.
49491         * lib/idpriv.h: New file.
49492         * lib-idpriv-drop.c: New file.
49493         * m4/idpriv.m4: New file.
49494         * modules/idpriv-drop: New file.
49495
49496 2009-06-08  Bruno Haible  <bruno@clisp.org>
49497
49498         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49499         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49500         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49501         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49502         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49503         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49504         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49505
49506 2009-06-08  Eric Blake  <ebb9@byu.net>
49507
49508         test-strstr: use memory fence, when possible
49509         * tests/test-strstr.c (main): Use memory fence, in order to be
49510         more likely to trigger Debian bug 521737.
49511         * modules/strstr-tests (Files): Pull in additional files.
49512
49513         memchr: no longer obsolete, for wider field testing
49514         * modules/memchr (Status, Notice): Delete, this module is no
49515         longer obsolete.
49516         * modules/vasnprintf (Depends-on): Add memchr.
49517
49518 2009-06-07  Jim Meyering  <meyering@redhat.com>
49519
49520         hash: declare some functions with the warn_unused_result attribute
49521         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49522
49523 2009-06-07  Bruno Haible  <bruno@clisp.org>
49524
49525         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49526         Reported by Eric Blake.
49527
49528 2009-06-06  Eric Blake  <ebb9@byu.net>
49529
49530         test-alignof: fix typo with long double
49531         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49532         compiler error.
49533
49534 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49535
49536         Escape non-texinfo { and }s.
49537         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49538         markup error.
49539
49540 2009-06-04  Jim Meyering  <meyering@redhat.com>
49541
49542         gitlog-to-changelog: don't infloop on an empty commit log
49543         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49544         Reported by Boris Petersen <transacid@centerim.org>.
49545
49546 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49547
49548         version-etc: extend for packagers
49549         Add three new configure options, intended for packagers:
49550           --with-packager="packager name"
49551           --with-packager-version="packager-specific version"
49552           --with-packager-bug-reports="packager bug reporting"
49553         An example with coreutils:
49554           $ ./configure \
49555             --with-packager=Gentoo \
49556             --with-packager-bug-report=http://bugs.gentoo.org/ \
49557             --with-packager-version="patchset 1.6"
49558           $ ./src/ls --version | head -n2
49559           ls (GNU coreutils) 7.1-dirty
49560           Packaged by Gentoo (patchset 1.6)
49561         Note that the bug reporting info via --help doesn't show up because
49562         coreutils uses its own custom emit_bug_reporting_address() implementation
49563         in src/system.h.  If it didn't, it'd look like:
49564           $ ./src/ls --help | tail -n4
49565           Report bugs to <bug-coreutils@gnu.org>.
49566           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49567           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49568           General help using GNU software: <http://www.gnu.org/gethelp/>.
49569         * lib/version-etc.c: Print new information, if provided.
49570         * m4/version-etc.m4: New file.
49571         * modules/version-etc (Files): Add m4/version-etc.m4.
49572         (configure.ac): Add gl_VERSION_ETC.
49573
49574 2009-05-31  Bruno Haible  <bruno@clisp.org>
49575
49576         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49577         and 'int64_t'.
49578         * modules/alignof-tests (Dependencies): Add stdint.
49579         Reported by Eric Blake.
49580
49581 2009-05-31  Bruno Haible  <bruno@clisp.org>
49582
49583         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49584         restriction due to compiler bugs.
49585         Reported by Eric Blake.
49586
49587 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49588             Bruno Haible  <bruno@clisp.org>
49589
49590         Fix test-alignof failure.
49591         * lib/alignof.h (alignof_slot): New macro.
49592         (alignof_type): New macro, with the same semantics as the previous
49593         'alignof'.
49594         (alignof): Alias to alignof_slot.
49595         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49596         check that the results are usable as constant expressions.
49597
49598 2009-05-31  Bruno Haible  <bruno@clisp.org>
49599
49600         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49601         * tests/test-memchr.c (main): Check that memchr does not read past the
49602         first occurrence of the byte.
49603         * tests/test-strstr.c (main): Update comment.
49604         Suggested by Eric Blake.
49605
49606 2009-05-30  Bruno Haible  <bruno@clisp.org>
49607
49608         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49609         detail how to use dumpbin.
49610         Reported by David Byron <dbyron@dbyron.com>.
49611
49612 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49613
49614         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49615
49616 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49617
49618         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49619
49620 2009-05-28  Bruno Haible  <bruno@clisp.org>
49621
49622         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49623         build-aux/ files.
49624
49625 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49626
49627         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49628
49629 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49630
49631         * gnulib-tool (sed_transform_main_lib_file)
49632         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49633         regexps.
49634
49635 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49636
49637         * tests/test-strstr.c: Add another self-test.
49638         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49639         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49640
49641 2009-05-23  Bruno Haible  <bruno@clisp.org>
49642
49643         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49644         change.
49645
49646 2009-05-21  Bruno Haible  <bruno@clisp.org>
49647
49648         Simplify use of mode_t varargs.
49649         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49650         uses 'mode_t' or 'int'.
49651         * lib/openat.c (openat): Likewise.
49652         * lib/open-safer.c (open_safer): Likewise.
49653         * m4/mode_t.m4: New file.
49654         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49655         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49656         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49657         * modules/open (Files): Add m4/mode_t.m4.
49658         * modules/openat (Files): Likewise.
49659         * modules/fcntl-safer (Files): Likewise.
49660         Suggested by Eric Blake.
49661
49662 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49663
49664         * doc/glibc-functions/fallocate.texi: New file.
49665         * doc/gnulib.texi: Include it.
49666
49667 2009-05-21  Eric Blake  <ebb9@byu.net>
49668             Bruno Haible  <bruno@clisp.org>
49669
49670         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49671         invocations.
49672         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49673
49674 2009-05-21  Eric Blake  <ebb9@byu.net>
49675             Bruno Haible  <bruno@clisp.org>
49676
49677         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49678         include_next. Fix of 2008-11-20 commit.
49679         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49680         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49681         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49682         NEXT_MATH_H.
49683         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49684         instead of NEXT_MATH_H.
49685
49686 2009-05-21  Bruno Haible  <bruno@clisp.org>
49687
49688         Avoid redefinition warnings for SIZE_MAX.
49689         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49690         Reported by Simon Josefsson.
49691
49692 2009-05-21  Bruno Haible  <bruno@clisp.org>
49693
49694         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49695         AC_CACHE_VAL.
49696
49697 2009-05-20  Bruno Haible  <bruno@clisp.org>
49698
49699         Make zeroptr.h work on mingw.
49700         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49701         mprotect.
49702         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49703         * modules/memchr2-tests (configure.ac): Likewise.
49704         * modules/memcmp-tests (configure.ac): Likewise.
49705         * modules/memmem-tests (configure.ac): Likewise.
49706         * modules/memrchr-tests (configure.ac): Likewise.
49707         Reported by Simon Josefsson.
49708
49709 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49710
49711         * tests/test-glob.c: Include string.h for strcmp prototype.
49712
49713 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49714
49715         * modules/getdelim (Depends-on): Add explicit stdint, although it
49716         was implicitly already pulled in via realloc-posix.
49717         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49718
49719 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49720
49721         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49722         G. Christensen" <tgc@jupiterrise.com>.
49723         * m4/sys_socket_h.m4: Check for sa_family_t.
49724         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49725         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49726         * tests/test-sys_socket.c: Check that sa_family_t works.
49727
49728 2009-05-18  Eric Blake  <ebb9@byu.net>
49729
49730         maint.mk: allow gnulib_dir in VPATH build
49731         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49732
49733 2009-05-15  Jim Meyering  <meyering@redhat.com>
49734
49735         maint.mk: Give gnulib_dir a default definition.
49736         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49737         Thus, most packages no longer need to specify this variable in cfg.mk
49738
49739 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49740
49741         rename.m4: fix typos that would make non-mingw cross-configure fail
49742         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49743
49744 2009-05-13  Eric Blake  <ebb9@byu.net>
49745
49746         mmap-anon: avoid out-of-order autoconf expansion
49747         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49748         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49749         * modules/memchr-tests (Depends-on): Add extensions.
49750         * modules/memchr2-tests (Depends-on): Add extensions.
49751         * modules/memcmp-tests (Depends-on): Add extensions.
49752         * modules/memmem-tests (Depends-on): Add extensions.
49753         * modules/memrchr-tests (Depends-on): Add extensions.
49754
49755 2009-05-13  Bruno Haible  <bruno@clisp.org>
49756
49757         Make some tests ISO C 99 compliant.
49758         * tests/zerosize-ptr.h: New file.
49759         * tests/test-memchr.c: Include zerosize-ptr.h.
49760         (main): Use a zero-size object pointer instead of NULL.
49761         * tests/test-memchr2.c: Include zerosize-ptr.h.
49762         (main): Use a zero-size object pointer instead of NULL.
49763         * tests/test-memcmp.c: Include zerosize-ptr.h.
49764         (main): Use a zero-size object pointer instead of NULL.
49765         * tests/test-memmem.c: Include zerosize-ptr.h.
49766         (main): Use a zero-size object pointer instead of NULL.
49767         * tests/test-memrchr.c: Include zerosize-ptr.h.
49768         (main): Use a zero-size object pointer instead of NULL.
49769         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49770         m4/mmap-anon.m4.
49771         (Depends-on): Add getpagesize.
49772         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49773         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49774         m4/mmap-anon.m4.
49775         (Depends-on): Add getpagesize.
49776         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49777         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49778         m4/mmap-anon.m4.
49779         (Depends-on): Add getpagesize.
49780         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49781         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49782         m4/mmap-anon.m4.
49783         (Depends-on): Add getpagesize.
49784         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49785         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49786         m4/mmap-anon.m4.
49787         (Depends-on): Add getpagesize.
49788         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49789
49790 2009-05-12  Bruno Haible  <bruno@clisp.org>
49791
49792         Tests for module 'alignof'.
49793         * modules/alignof-tests: New file.
49794         * tests/test-alignof.c: New file.
49795
49796 2009-05-12  Bruno Haible  <bruno@clisp.org>
49797
49798         Fix alignof macro.
49799         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49800         vendor compilers that are always correct.
49801
49802 2009-05-12  Bruno Haible  <bruno@clisp.org>
49803
49804         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49805         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49806         not whether its fully works.
49807
49808 2009-05-12  Bruno Haible  <bruno@clisp.org>
49809
49810         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49811
49812 2009-05-12  Jim Meyering  <meyering@redhat.com>
49813
49814         * top/maint.mk: Adjust backslash alignment.
49815
49816 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49817
49818         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49819
49820 2009-05-11  Eric Blake  <ebb9@byu.net>
49821
49822         argp: avoid undefined behavior
49823         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49824         macros.
49825
49826 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49827
49828         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49829         user.name to prevent git commit from complaining.
49830
49831 2009-05-10  Bruno Haible  <bruno@clisp.org>
49832
49833         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49834         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49835         it rewrites every file name only once.
49836         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49837
49838 2009-05-08  Bruno Haible  <bruno@clisp.org>
49839
49840         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49841         instead of 'max'.
49842
49843 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49844
49845         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49846         sockaddr_storage test.
49847
49848 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49849
49850         * modules/sys_socket (Makefile.am): Substitute
49851         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49852         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49853         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49854         * tests/test-sys_socket.c: Check sockaddr_storage.
49855
49856 2009-05-08  Bruno Haible  <bruno@clisp.org>
49857
49858         New module 'alignof'.
49859         * lib/alignof.h: New file.
49860         * modules/alignof: New file.
49861
49862 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49863             Bruno Haible  <bruno@clisp.org>
49864
49865         Fix test-file-has-acl on FreeBSD.
49866         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49867         mask is implicitly added.
49868         * tests/test-file-has-acl.c: Include <signal.h>.
49869         (main): Terminate the test after 5 seconds.
49870         * modules/acl-tests (configure.ac): Check for alarm function.
49871
49872 2009-05-04  Bruno Haible  <bruno@clisp.org>
49873
49874         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49875         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49876         * modules/errno (configure.ac): Drop AC_REQUIRE.
49877         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49878         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49879
49880 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49881
49882         * modules/glob-tests: New module.
49883         * tests/test-glob.c: Add.
49884
49885 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49886
49887         * modules/fnmatch-tests: New module.
49888         * tests/test-fnmatch.c: Add.
49889
49890 2009-05-04  Eric Blake  <ebb9@byu.net>
49891
49892         maint: make the new no-submodule-changes rule VPATH-safe
49893         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49894
49895 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49896             Bruno Haible  <bruno@clisp.org>
49897
49898         acl: Fix infinite loop on FreeBSD.
49899         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49900         of return value from acl_get_entry.
49901         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49902         Likewise.
49903
49904 2009-05-03  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/acl-internal.h (acl_entries): Clarify return value.
49907         * lib/acl_entries.c (acl_entries): Likewise.
49908
49909 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49910
49911         Bug fix in acl module.
49912         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49913
49914 2009-05-03  Bruno Haible  <bruno@clisp.org>
49915
49916         Create gperf-generated file in the source dir, not in the build dir.
49917         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49918         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49919         * modules/unicase/locale-language (unicase/locale-languages.h):
49920         Likewise.
49921         * modules/unicase/special-casing (unicase/special-casing-table.h):
49922         Likewise.
49923         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49924         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49925         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49926         Reported by Ralf Wildenhues.
49927
49928 2009-05-03  Bruno Haible  <bruno@clisp.org>
49929
49930         * modules/fnmatch (Description, configure.ac): Taken from
49931         fnmatch-posix.
49932         * modules/fnmatch-posix: Turn into a symbolic reference to the
49933         'fnmatch' module, and deprecate.
49934         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49935
49936 2009-05-03  Bruno Haible  <bruno@clisp.org>
49937
49938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49939         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49940         Reported by Ralf Wildenhues.
49941
49942 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49943
49944         * m4/fnmatch.m4: Fix fnmatch re-define.
49945
49946 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49947
49948         priv-set: new module and tests; adapt write-any-file
49949         * lib/priv-set.c: New file.
49950         * lib/priv-set.h: New file.
49951         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49952         * lib/write-any-file.c: Simplify by using priv-set module.
49953         * m4/priv-set.m4: New file.
49954         * modules/priv-set: New file.
49955         * modules/unlinkdir: Add dependency on priv-set module.
49956         * modules/write-any-file: Likewise.
49957
49958         Tests for module 'priv-set'.
49959         * modules/priv-set-tests: New file.
49960         * tests/test-priv-set.c: New file.
49961
49962 2009-05-03  Jim Meyering  <meyering@redhat.com>
49963             Bruno Haible  <bruno@clisp.org>
49964
49965         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49966         use the converted UTF-8 variant of the name instead.
49967
49968 2009-05-03  Jim Meyering  <meyering@redhat.com>
49969
49970         tests: tighten some getdate tests
49971         * tests/test-getdate.c (main): Tighten tests: require equality,
49972         not just greater than.  Set TZ envvar to UTC0.
49973
49974 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49975
49976         getdate: correctly interpret "next monday" when run on a Monday
49977         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49978         that e.g., "next tues" (when run on a tuesday) results in a date
49979         that is one week in the future, and not today's date.
49980         I.e., add a week when the wday is the same as the current one.
49981         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49982         and earlier by Martin Bernreuther and Jan Minář.
49983         * tests/test-getdate.c (main): Check that "next DAY" is always in
49984         the future and that "last DAY" is always in the past.
49985
49986 2009-05-02  Jim Meyering  <meyering@redhat.com>
49987
49988         build: ensure that a release build fails when a submodule is unclean
49989         * top/maint.mk (no-submodule-changes): New rule.
49990         (alpha beta major): Depend on it.
49991
49992 2009-05-02  Bruno Haible  <bruno@clisp.org>
49993
49994         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49995         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49996         shell variable gl_fnmatch_required to detect which variant is
49997         requested.
49998         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49999         gl_FUNC_FNMATCH_POSIX.
50000         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
50001         exclude fnmatch-posix.
50002
50003 2009-05-02  Bruno Haible  <bruno@clisp.org>
50004
50005         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
50006         * modules/mbsrtowcs (License): Change to LGPLv2+.
50007         * modules/strnlen1 (License): Likewise.
50008         Reported by Simon Josefsson.
50009
50010 2009-05-02  Bruno Haible  <bruno@clisp.org>
50011
50012         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
50013         "cross".
50014         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
50015         gnulib-tool was called with option --source-base=lib.
50016
50017 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50018
50019         Use automake *-local hooks without commands, for extensibility.
50020         * modules/localcharset (Makefile.am): Rename install-exec-local
50021         rule to install-exec-localcharset, and make it a prerequisite of
50022         install-exec-local.  Likewise, rename the uninstall-local rule to
50023         uninstall-localcharset, and make it a prerequisite of the former.
50024
50025 2009-05-01  Bruno Haible  <bruno@clisp.org>
50026
50027         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
50028         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50029         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
50030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
50031         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
50032         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50033         m4/locale-zh.m4, m4/codeset.m4.
50034
50035         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50036         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
50037         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50038         m4/locale-zh.m4.
50039
50040         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
50041         REPLACE_WCRTOMB if mbstate_t must be replaced.
50042         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
50043         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
50044
50045 2009-05-01  Bruno Haible  <bruno@clisp.org>
50046
50047         Avoid compiler warnings when redefining macros defined by <libintl.h>.
50048         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
50049         dngettext, dcngettext, textdomain, bindtextdomain,
50050         bind_textdomain_codeset): Undefine before redefining.
50051
50052 2009-04-30  Bruno Haible  <bruno@clisp.org>
50053
50054         Fix bug introduced on 2009-04-25.
50055         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
50056         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
50057         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
50058         is defined.
50059         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
50060         is defined.
50061         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
50062         is defined.
50063         Reported by Elbert_Pol <elbert.pol@gmail.com>.
50064
50065 2009-04-28  Bruno Haible  <bruno@clisp.org>
50066
50067         Comment tweaks.
50068         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
50069         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
50070         * lib/unicase.h (u*_casexfrm): Likewise.
50071         Reported by Paolo Bonzini.
50072
50073 2009-04-28  Bruno Haible  <bruno@clisp.org>
50074
50075         Fix a compilation error.
50076         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
50077         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50078         Reported by Jim Meyering.
50079
50080 2009-04-27  Bruno Haible  <bruno@clisp.org>
50081
50082         New module 'libunistring'.
50083         * modules/libunistring: New file.
50084         * m4/libunistring.m4: New file.
50085         * MODULES.html.sh (Unicode string functions): Add it.
50086
50087 2009-04-27  Eric Blake  <ebb9@byu.net>
50088
50089         maint.mk: allow package-specific header to provide <config.h>
50090         * top/maint.mk (sc_require_config_h): New variable.
50091         (sc_require_config_h, sc_require_config_h_first): Use it.
50092
50093 2009-04-27  Simon Josefsson  <simon@josefsson.org>
50094
50095         * top/maint.mk (sc_avoid_if_before_free): Except
50096         useless-if-before-free script.
50097
50098 2009-04-27  Eric Blake  <ebb9@byu.net>
50099
50100         maintainer-makefile: depend on all required helper scripts
50101         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
50102         useless-if-before-free.
50103         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
50104         version, rather than assuming gnulib checkout is available.
50105         Reported by Simen Josefsson.
50106
50107 2009-04-26  Bruno Haible  <bruno@clisp.org>
50108
50109         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
50110         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
50111         "../" or "..".
50112
50113 2009-04-26  Bruno Haible  <bruno@clisp.org>
50114
50115         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
50116         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
50117         AC_LIB_HAVE_LINKFLAGS.
50118
50119 2009-04-26  Bruno Haible  <bruno@clisp.org>
50120
50121         Simplify calling convention of u*_conv_from_encoding.
50122         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
50123         u32_conv_from_encoding): Expect a resultbuf argument and return the
50124         result directly as a pointer.
50125         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
50126         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
50127         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
50128         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
50129         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
50130         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50131         Update.
50132         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
50133         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
50134         * lib/vasnprintf.c (VASNPRINTF): Update.
50135         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
50136         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
50137         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
50138         * NEWS: Mention the change.
50139
50140 2009-04-26  Bruno Haible  <bruno@clisp.org>
50141
50142         Simplify calling convention of u*_conv_to_encoding.
50143         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50144         u32_conv_to_encoding): Expect a resultbuf argument and return the
50145         result directly as a pointer.
50146         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50147         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
50148         freeing scaled_offsets if mem_iconveha failed.
50149         * lib/unicase/u-casexfrm.h (FUNC): Update.
50150         * lib/uninorm/u-normxfrm.h (FUNC): Update.
50151         * lib/vasnprintf.c (VASNPRINTF): Update.
50152         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
50153         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
50154         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
50155         * NEWS: Mention the change.
50156
50157 2009-04-26  Bruno Haible  <bruno@clisp.org>
50158
50159         Avoid test failures on AIX and OSF/1.
50160         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
50161         malloc(0).
50162         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50163         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50164         Likewise.
50165         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
50166         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
50167         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
50168         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
50169         * doc/posix-functions/malloc.texi: Document the portability problem
50170         related to malloc(0).
50171
50172 2009-04-26  Bruno Haible  <bruno@clisp.org>
50173
50174         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
50175         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
50176         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
50177
50178 2009-04-25  Bruno Haible  <bruno@clisp.org>
50179
50180         Avoid link error when creating a namespace clean library.
50181         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
50182         as macro with arguments if already defined as an alias.
50183         * lib/signbitf.c (gl_signbitf): Don't undefine.
50184         * lib/signbitd.c (gl_signbitd): Don't undefine.
50185         * lib/signbitl.c (gl_signbitl): Don't undefine.
50186
50187 2009-04-25  Jim Meyering  <meyering@redhat.com>
50188
50189         vc-list-files: fix another quoting bug
50190         * build-aux/vc-list-files: Avoid sed backslash expansion
50191         of pathological directory names.
50192
50193 2009-04-25  Eric Blake  <ebb9@byu.net>
50194
50195         vc-list-files: fix shell quoting error
50196         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
50197         timestamp.
50198
50199 2009-04-25  Jim Meyering  <meyering@redhat.com>
50200
50201         vc-list-files: restore lost functionality with subdir argument
50202         * build-aux/vc-list-files: When given a non-"." sub-directory
50203         argument, substitute the $dir/ prefix back onto each resulting name.
50204         Otherwise, coreutils' root_tests check would fail.
50205
50206 2009-04-24  Eric Blake  <ebb9@byu.net>
50207
50208         vc-list-files: ignore git symlinks
50209         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50210         than ls-files, to ignore git symlinks.
50211
50212         maint.mk: import improvements from m4
50213         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50214         (move_if_change): Delete unused macro.
50215         (news-date-check, vc-diff-check): Support VPATH builds.
50216         (announcement): Likewise.  Split --bootstrap-tools list...
50217         (boostrap-tools): ...into separate list, which can be overridden
50218         in cfg.mk.
50219         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50220         requiring dependency on useless-if-before-free module.
50221         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50222         Support VPATH builds.
50223
50224 2009-04-24  Jim Meyering  <meyering@redhat.com>
50225
50226         maint.mk: remove coreutils-specific rules and variables
50227         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50228         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50229         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50230
50231         maint.mk: remove obsolete rule
50232         * top/maint.mk (rel-check): Remove rule.
50233         (WGET, WGETFLAGS): Remove now-unused variables.
50234
50235 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50236
50237         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50238         consistency.
50239
50240         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50241         '$(PATH_SEPARATOR)' instead of ':'.
50242
50243 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50244
50245         * lib/getopt1.c (main): Use 'const' for static array.
50246
50247 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50248
50249         * top/maint.mk: Sync with coreutils.
50250         * NEWS: Explain incompatibilities.
50251
50252 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50253             Bruno Haible  <bruno@clisp.org>
50254
50255         Fix cross-compilation results.
50256         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50257         statement, as third argument of AC_TRY_RUN.
50258         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50259         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50260         Likewise.
50261         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50262         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50263         Likewise.
50264         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50265         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50266         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50267
50268 2009-04-20  Bruno Haible  <bruno@clisp.org>
50269
50270         Avoid test failure on mingw.
50271         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50272
50273 2009-04-20  Bruno Haible  <bruno@clisp.org>
50274
50275         Avoid compilation error on mingw.
50276         * modules/localename-tests (Depends-on): Add locale.
50277
50278 2009-04-19  Bruno Haible  <bruno@clisp.org>
50279
50280         Support for building a shared library on Windows platforms.
50281         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50282         (main): Test the presence of UNINORM_NFC here.
50283         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50284         (main): Test the presence of UNINORM_NFD here.
50285         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50286         (main): Test the presence of UNINORM_NFKC here.
50287         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50288         (main): Test the presence of UNINORM_NFKD here.
50289
50290 2009-04-19  Bruno Haible  <bruno@clisp.org>
50291
50292         Avoid a compiler warning.
50293         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50294         Change type of variable 'sequence'.
50295
50296 2009-04-19  Bruno Haible  <bruno@clisp.org>
50297
50298         * modules/configmake (Makefile.am): When the contents of configmake.h
50299         does not change, arrange to preserve its modification time.
50300
50301 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50302
50303         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50304         gettext domain.
50305
50306 2009-04-16  Jim Meyering  <meyering@redhat.com>
50307
50308         useless-if-before-free: improve conversion code
50309         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50310         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50311
50312 2009-04-14  Bruno Haible  <bruno@clisp.org>
50313
50314         * modules/fcntl (Depends-on): Add extensions.
50315         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50316
50317 2009-04-12  Ben Pfaff  <blp@gnu.org>
50318
50319         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50320         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50321
50322 2009-03-20  Ben Pfaff  <blp@gnu.org>
50323
50324         Make rename replace existing destinations on Windows.
50325         * m4/rename.m4: Add test for Mingw.
50326         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50327         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50328         * doc/posix-functions/rename.texi: Document.
50329
50330 2009-04-10  Bruno Haible  <bruno@clisp.org>
50331
50332         New include file "iconveh.h".
50333         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50334         * lib/striconveh.h: Include it.
50335         (enum iconv_ilseq_handler): Remove definition.
50336         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50337         striconveh.h.
50338         * lib/striconveha.c: Include striconveh.h.
50339         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50340         * modules/striconveh (Files): Add lib/iconveh.h.
50341         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50342         lib/striconveh.h.
50343
50344 2009-04-10  Bruno Haible  <bruno@clisp.org>
50345
50346         * lib/uniconv.h: Update comment.
50347
50348 2009-04-10  Bruno Haible  <bruno@clisp.org>
50349
50350         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50351         always.
50352         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50353         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50354         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50355         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50356         "unistring-notinline.h", so that the function gets defined always.
50357         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50358         * lib/unistr/u8-uctomb.c: Likewise.
50359         * lib/unistr/u16-mbtouc.c: Likewise.
50360         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50361         * lib/unistr/u16-uctomb.c: Likewise.
50362         * lib/unistr/u32-mbtouc.c: Likewise.
50363         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50364         * lib/unistr/u32-uctomb.c: Likewise.
50365
50366 2009-04-10  Bruno Haible  <bruno@clisp.org>
50367
50368         Mark 'utime' obsolete.
50369         * modules/utime (Status, Notice): New sections.
50370         Suggested by Jim Meyering.
50371
50372         Fix cross-compile guess for utime test.
50373         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50374         autoconf.
50375         * doc/posix-functions/utime.texi: Give more precisions.
50376         Reported by Jan <ipif@ymail.com>.
50377
50378 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50379
50380         filevercmp: correct today's change
50381         * lib/filevercmp.c: Also handle coreutils' test inputs.
50382         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50383
50384         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50385         for reporting it.
50386         * lib/filevercmp.c: Special handle for "", "." and "..".
50387         * tests/test-filevercmp.c: Enlarge the set suite.
50388
50389 2009-04-07  Jim Meyering  <meyering@redhat.com>
50390
50391         useless-if-before-free: show how to remove braced useless free, too
50392         * build-aux/useless-if-before-free: still only in a comment, though.
50393
50394 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50395
50396         maint.mk: import changes to syntax-check macros from coreutils
50397         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50398         Use them in the relevant macros.
50399
50400 2009-04-06  Bruno Haible  <bruno@clisp.org>
50401
50402         Fix unportable use of bit-fields.
50403         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50404         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50405         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50406
50407 2009-04-06  Bruno Haible  <bruno@clisp.org>
50408
50409         Avoid test failures on AIX and OSF/1.
50410         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50411         that malloc(0) = NULL.
50412         * tests/unicase/test-u8-tolower.c (check): Likewise.
50413         * tests/unicase/test-u8-totitle.c (check): Likewise.
50414         * tests/unicase/test-u8-toupper.c (check): Likewise.
50415         * tests/unicase/test-u16-casefold.c (check): Likewise.
50416         * tests/unicase/test-u16-tolower.c (check): Likewise.
50417         * tests/unicase/test-u16-totitle.c (check): Likewise.
50418         * tests/unicase/test-u16-toupper.c (check): Likewise.
50419         * tests/unicase/test-u32-casefold.c (check): Likewise.
50420         * tests/unicase/test-u32-tolower.c (check): Likewise.
50421         * tests/unicase/test-u32-totitle.c (check): Likewise.
50422         * tests/unicase/test-u32-toupper.c (check): Likewise.
50423         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50424         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50425         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50426         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50427         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50428         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50429         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50430         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50431         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50432         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50433         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50434         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50435
50436 2009-04-05  Bruno Haible  <bruno@clisp.org>
50437
50438         Work around an autoconf limitation.
50439         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50440         comment line if it would be longer than 3 KB.
50441
50442 2009-04-05  Bruno Haible  <bruno@clisp.org>
50443
50444         Avoid test failure with libiconv-1.13.
50445         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50446         of the expected test results.
50447
50448 2009-04-05  Bruno Haible  <bruno@clisp.org>
50449
50450         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50451         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50452         that it should be installed.
50453
50454 2009-04-05  Bruno Haible  <bruno@clisp.org>
50455
50456         * gnulib-tool: New option --copy-file.
50457         (func_usage): Document it.
50458         (func_dest_tmpfilename): Moved out of func_import.
50459         (func_add_file, func_update_file): New functions, extracted from
50460         func_import.
50461         (func_import): Update.
50462
50463 2009-04-05  Karl Berry  <karl@gnu.org>
50464
50465         * README: prominently mention gnulib-tool.
50466         Rearrange sections so getting the code is near the top.
50467
50468 2009-04-05  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/unicase.h: Mention u*_cmp2.
50471         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50472         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50473         * lib/unicase/ulc-casecmp.c: Likewise.
50474         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50475         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50476         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50477         unistr/u8-cmp.
50478         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50479         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50480         unistr/u16-cmp.
50481         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50482         unistr/u32-cmp.
50483
50484         * lib/uninorm.h: Mention u*_cmp2.
50485         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50486         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50487         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50488         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50489         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50490         unistr/u8-cmp.
50491         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50492         unistr/u16-cmp.
50493         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50494         unistr/u32-cmp.
50495
50496         New module 'unistr/u32-cmp2'.
50497         * lib/unistr/u32-cmp2.c: New file.
50498         * modules/unistr/u32-cmp2: New file.
50499
50500         New module 'unistr/u16-cmp2'.
50501         * lib/unistr/u16-cmp2.c: New file.
50502         * modules/unistr/u16-cmp2: New file.
50503
50504         New module 'unistr/u8-cmp2'.
50505         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50506         * lib/unistr/u8-cmp2.c: New file.
50507         * lib/unistr/u-cmp2.h: New file.
50508         * modules/unistr/u8-cmp2: New file.
50509
50510 2009-04-05  Bruno Haible  <bruno@clisp.org>
50511
50512         * lib/unictype.h (uc_property_is_valid): New macro.
50513         * tests/unictype/test-pr_byname.c (main): Use it.
50514
50515         * lib/unistr.h: Doc fixes.
50516         * lib/uniconv.h: Doc fixes.
50517         * lib/unictype.h: Doc fixes.
50518
50519 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50520
50521         Port coreutils 7.2 to Solaris 8.
50522
50523         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50524         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50525         for Solaris 8.  This is a bit of a hack, as it means it's the
50526         caller's responsibility to add -lnsl if needed, but most likely it
50527         won't be needed since only getaddrinfo uses this and getaddrinfo
50528         isn't needed on Solaris 8.
50529
50530         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50531         problem to Solaris 8 encountered with coreutils 7.2, which
50532         resulted in a message "fnmatch.c:292: warning: passing argument 4
50533         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50534         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50535
50536 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50537
50538         * m4/ld-version-script.m4: Add FIXME comment.
50539
50540 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50541
50542         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50543         SOVERSION variable.
50544
50545 2009-04-02  Bruno Haible  <bruno@clisp.org>
50546
50547         * Makefile (info, html, dvi, pdf): Combine the rules.
50548         Suggested by Jim Meyering.
50549
50550 2009-04-01  Bruno Haible  <bruno@clisp.org>
50551
50552         * Makefile (info, html, dvi, pdf): New targets.
50553         Reported by Reuben Thomas <rrt@sc3d.org>.
50554
50555 2009-04-01  Bruno Haible  <bruno@clisp.org>
50556
50557         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50558         can be put into PATH.
50559         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50560
50561 2009-04-01  Bruno Haible  <bruno@clisp.org>
50562
50563         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50564
50565 2009-04-01  Bruno Haible  <bruno@clisp.org>
50566
50567         Rename module 'visibility'.
50568         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50569         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50570         * doc/gnulib.texi: Update.
50571         * MODULES.html.sh (Misc): Update.
50572         * NEWS: Mention the change.
50573
50574 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50575
50576         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50577         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50578         Eric Blake <ebb9@byu.net> for review.
50579         * MODULES.html.sh: Add lib-msvc-compat.
50580         * doc/gnulib.texi: Link to new section.
50581         * m4/ld-output-def.m4: New file.
50582         * doc/ld-output-def.texi: New file.
50583
50584 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50585
50586         Rename ld-version-script to lib-symbol-versions.  Suggested by
50587         Bruno Haible <bruno@clisp.org>.
50588         * modules/ld-version-script: Renamed to lib-symbol-versions.
50589         * doc/ld-version-script.texi: Fix module name.
50590         * MODULES.html.sh: Add lib-symbol-versions.
50591
50592 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50593
50594         * modules/u64-tests: New file.
50595         * tests/test-u64.c: New file.
50596
50597 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50598
50599         * MODULES.html.sh: Mention u64.
50600         * modules/u64: New module.
50601         * modules/crypto/sha512: Depend on u64 module instead of providing
50602         u64.h.
50603
50604 2009-03-27  Eric Blake  <ebb9@byu.net>
50605
50606         test-strerror: make debugging EAI_SYSTEM easier
50607         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50608         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50609         failure was EAI_SYSTEM.
50610
50611 2009-03-25  Bruno Haible  <bruno@clisp.org>
50612
50613         Fix a problem with --enable-relocatable on Solaris 7.
50614         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50615         since 2008-02-24.
50616
50617 2009-03-25  Eric Blake  <ebb9@byu.net>
50618
50619         test-sockets: avoid gcc warning
50620         * tests/test-sockets.c (main): Silence compiler warning.
50621
50622 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50623
50624         New modules nproc, pthread, contributed by Glen Lenker.
50625
50626         * MODULES.html.sh: Add pthread, nproc.
50627         * lib/nproc.c: New file.
50628         * lib/nproc.h: New file.
50629         * lib/pthread.in.h: New file.
50630         * m4/pthread.m4: New file.
50631         * modules/nproc: New file.
50632         * modules/pthread: New file.
50633
50634 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50635
50636         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50637         New variable.
50638
50639 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50640
50641         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50642         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50643         * tests/test-filevercmp.c: Add tests for backup suffixes.
50644
50645 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50646
50647         * modules/stdlib (Depends-on): Add stdint, needed when defining
50648         struct random_data on, for example, HP-UX 10.20.  Reported by
50649         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50650
50651 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50652
50653         * lib/readline.c (readline): Call fflush on stdout after printing
50654         prompt.
50655
50656 2009-03-20  Bruno Haible  <bruno@clisp.org>
50657
50658         Remove dependency from 'close' module to -lws2_32 on native Windows.
50659         * lib/close-hook.h: New file.
50660         * lib/close-hook.c: New file.
50661         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50662         w32sock.h.
50663         (_gl_close_fd_maybe_socket): Remove function.
50664         (rpl_close): Invoke execute_all_close_hooks instead of
50665         _gl_close_fd_maybe_socket.
50666         * lib/sockets.c: Include close-hook.h, w32sock.h.
50667         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50668         (close_sockets_hook): New variable.
50669         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50670         (gl_sockets_cleanup): Unregister it.
50671         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50672         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50673         * modules/close-hook: New file.
50674         * modules/close (Files): Remove lib/w32sock.h.
50675         (Depends-on): Add close-hook.
50676         (Link): Remove section.
50677         * modules/sockets (Files): Add lib/w32sock.h.
50678         (Depends-on): Add close-hook.
50679         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50680         invocation.
50681         * NEWS: Mention that LIB_CLOSE is gone.
50682
50683 2009-03-23  Eric Blake  <ebb9@byu.net>
50684
50685         signal-tests: test previous patch
50686         * tests/test-signal.c: New file.
50687         * modules/signal-tests: Likewise.
50688
50689         signal.h: always support 'volatile sig_atomic_t'
50690         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50691         (gl_SIGNAL_H_DEFAULTS): Add a default.
50692         * modules/signal (Makefile.am): Substitute if needed.
50693         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50694         users can blindly add volatile.
50695         * doc/posix-headers/signal.texi (signal.h): Document it.
50696         Reported by Matthew Woehlke.
50697
50698 2009-03-23  Jim Meyering  <meyering@redhat.com>
50699
50700         pathmax: PATH_MAX: use pathconf only when available
50701         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50702         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50703         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50704         This avoids a link failure in a PSP cross-compilation environment
50705         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50706
50707         * lib/vasnprintf.c (divide): Fix typo in comment.
50708
50709 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50710
50711         * gnulib-tool (func_filter_filelist): Fix comment.
50712
50713 2009-03-20  Bruno Haible  <bruno@clisp.org>
50714
50715         Make sockets.h self-contained.
50716         * lib/sockets.c: Include sockets.h first.
50717         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50718
50719 2009-03-19  Eric Blake  <ebb9@byu.net>
50720
50721         doc: mention more functions added in cygwin 1.7.0
50722         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50723         addition.
50724         * doc/posix-functions/log2f.texi: Likewise.
50725
50726 2009-03-19  Jim Meyering  <meyering@redhat.com>
50727
50728         fsusage: avoid syntax error due to statement-before-declaration
50729         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50730         after all declarations.  Reported by Matthew Woehlke in
50731         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50732
50733 2009-03-18  Eric Blake  <ebb9@byu.net>
50734
50735         build-aux/compile: sync from automake
50736         * build-aux/compile: New file, from automake.
50737         * config/srclist.txt: Mention build-aux/compile.
50738
50739 2009-03-17  Bruno Haible  <bruno@clisp.org>
50740
50741         * lib/git-merge-changelog.c: Fix typo in comment.
50742         Reported by Reuben Thomas <rrt@sc3d.org>.
50743
50744 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50745
50746         * m4/regex.m4: update and improve help for
50747         --without-included-regex.
50748
50749 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50750
50751         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50752         failure on missing include files.
50753
50754 2009-03-17  Eric Blake  <ebb9@byu.net>
50755
50756         doc: mention more functions added in cygwin 1.7.0
50757         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50758         addition.
50759         * doc/posix-functions/fwscanf.texi: Likewise.
50760         * doc/posix-functions/swprintf.texi: Likewise.
50761         * doc/posix-functions/swscanf.texi: Likewise.
50762         * doc/posix-functions/vfwprintf.texi: Likewise.
50763         * doc/posix-functions/vfwscanf.texi: Likewise.
50764         * doc/posix-functions/vswprintf.texi: Likewise.
50765         * doc/posix-functions/vswscanf.texi: Likewise.
50766         * doc/posix-functions/vwprintf.texi: Likewise.
50767         * doc/posix-functions/vwscanf.texi: Likewise.
50768         * doc/posix-functions/wcscasecmp.texi: Likewise.
50769         * doc/posix-functions/wcsdup.texi: Likewise.
50770         * doc/posix-functions/wcsftime.texi: Likewise.
50771         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50772         * doc/posix-functions/wprintf.texi: Likewise.
50773         * doc/posix-functions/wscanf.texi: Likewise.
50774         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50775
50776 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50777
50778         maint.mk: really add $(AM_MAKEFLAGS)
50779         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50780         was inadvertently omitted in the last commit.
50781         Spotted by Bruno Haible.
50782
50783         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50784         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50785         $(AM_MAKEFLAGS)' rather than plain `make'.
50786
50787         gnulib-tool: execute $MAKE not make
50788         * gnulib-tool: Default $MAKE to 'make'.
50789         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50790         than make.  Initialize $MAKE in the do-autobuild script.
50791
50792         gnulib-tool: use $MAKE not make in generated files
50793         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50794         make, in generated files.  Initialize $MAKE in the do-autobuild
50795         script.
50796
50797         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50798
50799         GNUmakefile: disable parallelism only for multiple, recursive targets
50800         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50801         additions in the Makefile.
50802         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50803         by Automake.
50804         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50805         are listed on the command line and at least one of them is
50806         listed in $(ALL_RECURSIVE_TARGETS).
50807
50808 2009-03-14  Bruno Haible  <bruno@clisp.org>
50809
50810         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50811         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50812         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50813         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50814         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50815         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50816         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50817         unistr/u8-uctomb.
50818         * modules/unistr/u8-strchr (Depends-on): Likewise.
50819         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50820         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50821         unistr/u16-uctomb.
50822         * modules/unistr/u16-strchr (Depends-on): Likewise.
50823         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50824
50825 2009-03-12  Bruno Haible  <bruno@clisp.org>
50826
50827         Work around select() bug on Interix 3.5.
50828         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50829         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50830         * m4/select.m4: New file.
50831         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50832         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50833         * modules/select (Files): Add m4/select.m4.
50834         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50835         * modules/nanosleep (Depends-on): Add select.
50836         * modules/poll (Depends-on): Likewise.
50837         * doc/posix-functions/select.texi: Mention the Interix bug.
50838         Reported by Markus Duft <mduft@gentoo.org>.
50839
50840         * lib/select.c: Renamed from lib/winsock-select.c.
50841         * modules/select (Files): Add lib/select.c, remove
50842         lib/winsock-select.c.
50843         (configure.ac): Update.
50844
50845 2009-03-12  Jim Meyering  <meyering@redhat.com>
50846
50847         avoid gcc warnings about unused macro definitions
50848         * lib/readtokens.c (STREQ): Remove unused definition.
50849         * lib/xmalloc.c (SIZE_MAX): Likewise.
50850         * lib/openat-die.c (N_): Likewise.
50851         * lib/mountlist.c (SIZE_MAX): Remove definition.
50852         Instead, include <stdint.h>.
50853         * lib/readutmp.c: Likewise.
50854         * modules/readutmp (Depends-on): Add stdint.
50855         * modules/mountlist (Depends-on): Add stdint.
50856         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50857
50858 2009-03-10  Bruno Haible  <bruno@clisp.org>
50859
50860         Tests for module 'mbmemcasecoll'.
50861         * modules/mbmemcasecoll-tests: New file.
50862         * tests/test-mbmemcasecoll1.sh: New file.
50863         * tests/test-mbmemcasecoll2.sh: New file.
50864         * tests/test-mbmemcasecoll3.sh: New file.
50865         * tests/test-mbmemcasecoll.c: New file.
50866
50867         New module 'mbmemcasecoll'.
50868         * lib/mbmemcasecoll.h: New file.
50869         * lib/mbmemcasecoll.c: New file.
50870         * modules/mbmemcasecoll: New file.
50871
50872         * tests/test-mbmemcasecmp.h: New file, extracted from
50873         tests/test-mbmemcasecmp.c.
50874         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50875         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50876         (main): Update.
50877         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50878
50879 2009-03-09  Bruno Haible  <bruno@clisp.org>
50880
50881         Tests for module 'mbmemcasecmp'.
50882         * modules/mbmemcasecmp-tests: New file.
50883         * tests/test-mbmemcasecmp1.sh: New file.
50884         * tests/test-mbmemcasecmp2.sh: New file.
50885         * tests/test-mbmemcasecmp3.sh: New file.
50886         * tests/test-mbmemcasecmp.c: New file.
50887
50888         New module 'mbmemcasecmp'.
50889         * lib/mbmemcasecmp.h: New file.
50890         * lib/mbmemcasecmp.c: New file.
50891         * modules/mbmemcasecmp: New file.
50892
50893 2009-03-09  Bruno Haible  <bruno@clisp.org>
50894
50895         Tests for module 'unicase/ulc-casecoll'.
50896         * modules/unicase/ulc-casecoll-tests: New file.
50897         * tests/unicase/test-ulc-casecoll1.sh: New file.
50898         * tests/unicase/test-ulc-casecoll2.sh: New file.
50899         * tests/unicase/test-ulc-casecoll.c: New file.
50900
50901         New module 'unicase/ulc-casecoll'.
50902         * lib/unicase.h (ulc_casecoll): New declaration.
50903         * lib/unicase/ulc-casecoll.c: New file.
50904         * modules/unicase/ulc-casecoll: New file.
50905
50906         New module 'unicase/ulc-casexfrm'.
50907         * lib/unicase.h (ulc_casexfrm): New declaration.
50908         * lib/unicase/ulc-casexfrm.c: New file.
50909         * modules/unicase/ulc-casexfrm: New file.
50910
50911 2009-03-09  Bruno Haible  <bruno@clisp.org>
50912
50913         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50914         invocations.
50915
50916         * m4/mbscasecmp.m4: Remove file.
50917         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50918         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50919
50920         * m4/mbscasestr.m4: Remove file.
50921         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50922         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50923
50924         * m4/mbschr.m4: Remove file.
50925         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50926         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50927
50928         * m4/mbscspn.m4: Remove file.
50929         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50930         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50931
50932         * m4/mbslen.m4: Remove file.
50933         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50934         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50935
50936         * m4/mbsncasecmp.m4: Remove file.
50937         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50938         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50939
50940         * m4/mbsnlen.m4: Remove file.
50941         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50942         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50943
50944         * m4/mbspbrk.m4: Remove file.
50945         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50946         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50947
50948         * m4/mbspcasecmp.m4: Remove file.
50949         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50950         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50951
50952         * m4/mbsrchr.m4: Remove file.
50953         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50954         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50955
50956         * m4/mbssep.m4: Remove file.
50957         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50958         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50959
50960         * m4/mbsspn.m4: Remove file.
50961         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50962         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50963
50964         * m4/mbsstr.m4: Remove file.
50965         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50966         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50967
50968         * m4/mbstok_r.m4: Remove file.
50969         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50970         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50971
50972         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50973
50974         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50975         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50976
50977         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50978
50979 2009-03-08  Bruno Haible  <bruno@clisp.org>
50980
50981         Tests for module 'unicase/ulc-casecmp'.
50982         * modules/unicase/ulc-casecmp-tests: New file.
50983         * tests/unicase/test-ulc-casecmp1.sh: New file.
50984         * tests/unicase/test-ulc-casecmp2.sh: New file.
50985         * tests/unicase/test-ulc-casecmp.c: New file.
50986
50987         New module 'unicase/ulc-casecmp'.
50988         * lib/unicase.h (ulc_casecmp): New declaration.
50989         * lib/unicase/ulc-casecmp.c: New file.
50990         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50991         'const SRC_UNIT *'.
50992         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50993         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50994         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50995         * modules/unicase/ulc-casecmp: New file.
50996
50997         Tests for module 'unicase/u32-is-cased'.
50998         * modules/unicase/u32-is-cased-tests: New file.
50999         * tests/unicase/test-u32-is-cased.c: New file.
51000
51001         Tests for module 'unicase/u16-is-cased'.
51002         * modules/unicase/u16-is-cased-tests: New file.
51003         * tests/unicase/test-u16-is-cased.c: New file.
51004
51005         Tests for module 'unicase/u8-is-cased'.
51006         * modules/unicase/u8-is-cased-tests: New file.
51007         * tests/unicase/test-u8-is-cased.c: New file.
51008         * tests/unicase/test-is-cased.h: New file.
51009
51010         New module 'unicase/u32-is-cased'.
51011         * lib/unicase/u32-is-cased.c: New file.
51012         * modules/unicase/u32-is-cased: New file.
51013
51014         New module 'unicase/u16-is-cased'.
51015         * lib/unicase/u16-is-cased.c: New file.
51016         * modules/unicase/u16-is-cased: New file.
51017
51018         New module 'unicase/u8-is-cased'.
51019         * lib/unicase/u8-is-cased.c: New file.
51020         * lib/unicase/u-is-cased.h: New file.
51021         * modules/unicase/u8-is-cased: New file.
51022
51023         Tests for module 'unicase/u32-is-casefolded'.
51024         * modules/unicase/u32-is-casefolded-tests: New file.
51025         * tests/unicase/test-u32-is-casefolded.c: New file.
51026
51027         Tests for module 'unicase/u16-is-casefolded'.
51028         * modules/unicase/u16-is-casefolded-tests: New file.
51029         * tests/unicase/test-u16-is-casefolded.c: New file.
51030
51031         Tests for module 'unicase/u8-is-casefolded'.
51032         * modules/unicase/u8-is-casefolded-tests: New file.
51033         * tests/unicase/test-u8-is-casefolded.c: New file.
51034         * tests/unicase/test-is-casefolded.h: New file.
51035
51036         New module 'unicase/u32-is-casefolded'.
51037         * lib/unicase/u32-is-casefolded.c: New file.
51038         * modules/unicase/u32-is-casefolded: New file.
51039
51040         New module 'unicase/u16-is-casefolded'.
51041         * lib/unicase/u16-is-casefolded.c: New file.
51042         * modules/unicase/u16-is-casefolded: New file.
51043
51044         New module 'unicase/u8-is-casefolded'.
51045         * lib/unicase/u8-is-casefolded.c: New file.
51046         * modules/unicase/u8-is-casefolded: New file.
51047
51048         Tests for module 'unicase/u32-is-titlecase'.
51049         * modules/unicase/u32-is-titlecase-tests: New file.
51050         * tests/unicase/test-u32-is-titlecase.c: New file.
51051
51052         Tests for module 'unicase/u16-is-titlecase'.
51053         * modules/unicase/u16-is-titlecase-tests: New file.
51054         * tests/unicase/test-u16-is-titlecase.c: New file.
51055
51056         Tests for module 'unicase/u8-is-titlecase'.
51057         * modules/unicase/u8-is-titlecase-tests: New file.
51058         * tests/unicase/test-u8-is-titlecase.c: New file.
51059         * tests/unicase/test-is-titlecase.h: New file.
51060
51061         New module 'unicase/u32-is-titlecase'.
51062         * lib/unicase/u32-is-titlecase.c: New file.
51063         * modules/unicase/u32-is-titlecase: New file.
51064
51065         New module 'unicase/u16-is-titlecase'.
51066         * lib/unicase/u16-is-titlecase.c: New file.
51067         * modules/unicase/u16-is-titlecase: New file.
51068
51069         New module 'unicase/u8-is-titlecase'.
51070         * lib/unicase/u8-is-titlecase.c: New file.
51071         * modules/unicase/u8-is-titlecase: New file.
51072
51073         Tests for module 'unicase/u32-is-lowercase'.
51074         * modules/unicase/u32-is-lowercase-tests: New file.
51075         * tests/unicase/test-u32-is-lowercase.c: New file.
51076
51077         Tests for module 'unicase/u16-is-lowercase'.
51078         * modules/unicase/u16-is-lowercase-tests: New file.
51079         * tests/unicase/test-u16-is-lowercase.c: New file.
51080
51081         Tests for module 'unicase/u8-is-lowercase'.
51082         * modules/unicase/u8-is-lowercase-tests: New file.
51083         * tests/unicase/test-u8-is-lowercase.c: New file.
51084         * tests/unicase/test-is-lowercase.h: New file.
51085
51086         New module 'unicase/u32-is-lowercase'.
51087         * lib/unicase/u32-is-lowercase.c: New file.
51088         * modules/unicase/u32-is-lowercase: New file.
51089
51090         New module 'unicase/u16-is-lowercase'.
51091         * lib/unicase/u16-is-lowercase.c: New file.
51092         * modules/unicase/u16-is-lowercase: New file.
51093
51094         New module 'unicase/u8-is-lowercase'.
51095         * lib/unicase/u8-is-lowercase.c: New file.
51096         * modules/unicase/u8-is-lowercase: New file.
51097
51098         Tests for module 'unicase/u32-is-uppercase'.
51099         * modules/unicase/u32-is-uppercase-tests: New file.
51100         * tests/unicase/test-u32-is-uppercase.c: New file.
51101
51102         Tests for module 'unicase/u16-is-uppercase'.
51103         * modules/unicase/u16-is-uppercase-tests: New file.
51104         * tests/unicase/test-u16-is-uppercase.c: New file.
51105
51106         Tests for module 'unicase/u8-is-uppercase'.
51107         * modules/unicase/u8-is-uppercase-tests: New file.
51108         * tests/unicase/test-u8-is-uppercase.c: New file.
51109         * tests/unicase/test-is-uppercase.h: New file.
51110
51111         New module 'unicase/u32-is-uppercase'.
51112         * lib/unicase/u32-is-uppercase.c: New file.
51113         * modules/unicase/u32-is-uppercase: New file.
51114
51115         New module 'unicase/u16-is-uppercase'.
51116         * lib/unicase/u16-is-uppercase.c: New file.
51117         * modules/unicase/u16-is-uppercase: New file.
51118
51119         New module 'unicase/u8-is-uppercase'.
51120         * lib/unicase/u8-is-uppercase.c: New file.
51121         * modules/unicase/u8-is-uppercase: New file.
51122
51123         New module 'unicase/u32-is-invariant'.
51124         * lib/unicase/u32-is-invariant.c: New file.
51125         * modules/unicase/u32-is-invariant: New file.
51126
51127         New module 'unicase/u16-is-invariant'.
51128         * lib/unicase/u16-is-invariant.c: New file.
51129         * modules/unicase/u16-is-invariant: New file.
51130
51131         New module 'unicase/u8-is-invariant'.
51132         * lib/unicase/u8-is-invariant.c: New file.
51133         * lib/unicase/invariant.h: New file.
51134         * lib/unicase/u-is-invariant.h: New file.
51135         * modules/unicase/u8-is-invariant: New file.
51136
51137         Tests for module 'unicase/u32-casecoll'.
51138         * modules/unicase/u32-casecoll-tests: New file.
51139         * tests/unicase/test-u32-casecoll.c: New file.
51140
51141         Tests for module 'unicase/u16-casecoll'.
51142         * modules/unicase/u16-casecoll-tests: New file.
51143         * tests/unicase/test-u16-casecoll.c: New file.
51144
51145         Tests for module 'unicase/u8-casecoll'.
51146         * modules/unicase/u8-casecoll-tests: New file.
51147         * tests/unicase/test-u8-casecoll.c: New file.
51148
51149         New module 'unicase/u32-casecoll'.
51150         * lib/unicase/u32-casecoll.c: New file.
51151         * modules/unicase/u32-casecoll: New file.
51152
51153         New module 'unicase/u16-casecoll'.
51154         * lib/unicase/u16-casecoll.c: New file.
51155         * modules/unicase/u16-casecoll: New file.
51156
51157         New module 'unicase/u8-casecoll'.
51158         * lib/unicase/u8-casecoll.c: New file.
51159         * lib/unicase/u-casecoll.h: New file.
51160         * modules/unicase/u8-casecoll: New file.
51161
51162         New module 'unicase/u32-casexfrm'.
51163         * lib/unicase/u32-casexfrm.c: New file.
51164         * modules/unicase/u32-casexfrm: New file.
51165
51166         New module 'unicase/u16-casexfrm'.
51167         * lib/unicase/u16-casexfrm.c: New file.
51168         * modules/unicase/u16-casexfrm: New file.
51169
51170         New module 'unicase/u8-casexfrm'.
51171         * lib/unicase/u8-casexfrm.c: New file.
51172         * lib/unicase/u-casexfrm.h: New file.
51173         * modules/unicase/u8-casexfrm: New file.
51174
51175         Tests for module 'unicase/u32-casecmp'.
51176         * modules/unicase/u32-casecmp-tests: New file.
51177         * tests/unicase/test-u32-casecmp.c: New file.
51178
51179         Tests for module 'unicase/u16-casecmp'.
51180         * modules/unicase/u16-casecmp-tests: New file.
51181         * tests/unicase/test-u16-casecmp.c: New file.
51182
51183         Tests for module 'unicase/u8-casecmp'.
51184         * modules/unicase/u8-casecmp-tests: New file.
51185         * tests/unicase/test-u8-casecmp.c: New file.
51186         * tests/unicase/test-casecmp.h: New file.
51187
51188         New module 'unicase/u32-casecmp'.
51189         * lib/unicase/u32-casecmp.c: New file.
51190         * modules/unicase/u32-casecmp: New file.
51191
51192         New module 'unicase/u16-casecmp'.
51193         * lib/unicase/u16-casecmp.c: New file.
51194         * modules/unicase/u16-casecmp: New file.
51195
51196         New module 'unicase/u8-casecmp'.
51197         * lib/unicase/u8-casecmp.c: New file.
51198         * lib/unicase/u-casecmp.h: New file.
51199         * modules/unicase/u8-casecmp: New file.
51200
51201         Tests for module 'unicase/u32-casefold'.
51202         * modules/unicase/u32-casefold-tests: New file.
51203         * tests/unicase/test-u32-casefold.c: New file.
51204
51205         Tests for module 'unicase/u16-casefold'.
51206         * modules/unicase/u16-casefold-tests: New file.
51207         * tests/unicase/test-u16-casefold.c: New file.
51208
51209         Tests for module 'unicase/u8-casefold'.
51210         * modules/unicase/u8-casefold-tests: New file.
51211         * tests/unicase/test-u8-casefold.c: New file.
51212
51213         New module 'unicase/u32-casefold'.
51214         * lib/unicase/u32-casefold.c: New file.
51215         * modules/unicase/u32-casefold: New file.
51216
51217         New module 'unicase/u16-casefold'.
51218         * lib/unicase/u16-casefold.c: New file.
51219         * modules/unicase/u16-casefold: New file.
51220
51221         New module 'unicase/u8-casefold'.
51222         * lib/unicase/u8-casefold.c: New file.
51223         * lib/unicase/u-casefold.h: New file.
51224         * modules/unicase/u8-casefold: New file.
51225
51226         New module 'unicase/tocasefold'.
51227         * lib/unicase/casefold.h: New file.
51228         * lib/unicase/tocasefold.c: New file.
51229         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51230         * modules/unicase/tocasefold: New file.
51231
51232         Tests for module 'unicase/u32-totitle'.
51233         * modules/unicase/u32-totitle-tests: New file.
51234         * tests/unicase/test-u32-totitle.c: New file.
51235
51236         Tests for module 'unicase/u16-totitle'.
51237         * modules/unicase/u16-totitle-tests: New file.
51238         * tests/unicase/test-u16-totitle.c: New file.
51239
51240         Tests for module 'unicase/u8-totitle'.
51241         * modules/unicase/u8-totitle-tests: New file.
51242         * tests/unicase/test-u8-totitle.c: New file.
51243
51244         New module 'unicase/u32-totitle'.
51245         * lib/unicase/u32-totitle.c: New file.
51246         * modules/unicase/u32-totitle: New file.
51247
51248         New module 'unicase/u16-totitle'.
51249         * lib/unicase/u16-totitle.c: New file.
51250         * modules/unicase/u16-totitle: New file.
51251
51252         New module 'unicase/u8-totitle'.
51253         * lib/unicase/u8-totitle.c: New file.
51254         * lib/unicase/u-totitle.h: New file.
51255         * modules/unicase/u8-totitle: New file.
51256
51257         Tests for module 'unicase/u32-tolower'.
51258         * modules/unicase/u32-tolower-tests: New file.
51259         * tests/unicase/test-u32-tolower.c: New file.
51260
51261         Tests for module 'unicase/u16-tolower'.
51262         * modules/unicase/u16-tolower-tests: New file.
51263         * tests/unicase/test-u16-tolower.c: New file.
51264
51265         Tests for module 'unicase/u8-tolower'.
51266         * modules/unicase/u8-tolower-tests: New file.
51267         * tests/unicase/test-u8-tolower.c: New file.
51268
51269         New module 'unicase/u32-tolower'.
51270         * lib/unicase/u32-tolower.c: New file.
51271         * modules/unicase/u32-tolower: New file.
51272
51273         New module 'unicase/u16-tolower'.
51274         * lib/unicase/u16-tolower.c: New file.
51275         * modules/unicase/u16-tolower: New file.
51276
51277         New module 'unicase/u8-tolower'.
51278         * lib/unicase/u8-tolower.c: New file.
51279         * modules/unicase/u8-tolower: New file.
51280
51281         Tests for module 'unicase/u32-toupper'.
51282         * modules/unicase/u32-toupper-tests: New file.
51283         * tests/unicase/test-u32-toupper.c: New file.
51284
51285         Tests for module 'unicase/u16-toupper'.
51286         * modules/unicase/u16-toupper-tests: New file.
51287         * tests/unicase/test-u16-toupper.c: New file.
51288
51289         Tests for module 'unicase/u8-toupper'.
51290         * modules/unicase/u8-toupper-tests: New file.
51291         * tests/unicase/test-u8-toupper.c: New file.
51292
51293         New module 'unicase/u32-toupper'.
51294         * lib/unicase/u32-toupper.c: New file.
51295         * modules/unicase/u32-toupper: New file.
51296
51297         New module 'unicase/u16-toupper'.
51298         * lib/unicase/u16-toupper.c: New file.
51299         * modules/unicase/u16-toupper: New file.
51300
51301         New module 'unicase/u8-toupper'.
51302         * lib/unicase/u8-toupper.c: New file.
51303         * modules/unicase/u8-toupper: New file.
51304
51305         New module 'unicase/u32-casemap'.
51306         * lib/unicase/u32-casemap.c: New file.
51307         * modules/unicase/u32-casemap: New file.
51308
51309         New module 'unicase/u16-casemap'.
51310         * lib/unicase/u16-casemap.c: New file.
51311         * modules/unicase/u16-casemap: New file.
51312
51313         New module 'unicase/u8-casemap'.
51314         * lib/unicase/unicasemap.h: New file.
51315         * lib/unicase/u8-casemap.c: New file.
51316         * lib/unicase/u-casemap.h: New file.
51317         * modules/unicase/u8-casemap: New file.
51318
51319         New module 'unicase/special-casing'.
51320         * lib/unicase/special-casing.h: New file.
51321         * lib/unicase/special-casing.c: New file.
51322         * lib/unicase/special-casing-table.gperf: New file, generated by
51323         gen-uni-tables.c.
51324         * modules/unicase/special-casing: New file.
51325
51326         Tests for module 'unicase/locale-language'.
51327         * modules/unicase/locale-language-tests: New file.
51328         * tests/unicase/test-locale-language.sh: New file.
51329         * tests/unicase/test-locale-language.c: New file.
51330
51331         New module 'unicase/locale-language'.
51332         * lib/unicase/locale-language.c: New file.
51333         * lib/unicase/locale-languages.gperf: New file.
51334         * modules/unicase/locale-language: New file.
51335
51336         Generate more tables for case conversion and case folding.
51337         * lib/gen-uni-tables.c (SCC_*): New enum items.
51338         (struct special_casing_rule): New type.
51339         (casing_rules, num_casing_rules, allocated_casing_rules): New
51340         variables.
51341         (add_casing_rule, fill_casing_rules): New functions.
51342         (struct casefold_rule): New type.
51343         (casefolding_rules, num_casefolding_rules,
51344         allocated_casefolding_rules): New variables.
51345         (fill_casefolding_rules): New function.
51346         (unicode_casefold): New variable.
51347         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51348         sort_casing_rules, output_casing_rules): New functions.
51349         (main): Accept to more arguments: SpecialCasing.txt and
51350         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51351         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51352         Output mapping for casefolding.
51353
51354         * lib/unicase.h: Include stdbool.h, uninorm.h.
51355         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51356         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51357         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51358         arguments.
51359         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51360         resultp arguments.
51361         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51362         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51363         resultp arguments.
51364         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51365         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51366         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51367         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51368         declarations.
51369         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51370
51371 2009-03-08  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51374         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51375         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51376         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51377
51378 2009-03-07  Bruno Haible  <bruno@clisp.org>
51379
51380         Adjust u*_normcmp, u*_normcoll API.
51381         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51382         u16_normcoll, u32_normcoll): Change failure conventions.
51383         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51384         errno and return -1.
51385         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51386
51387 2009-03-07  Bruno Haible  <bruno@clisp.org>
51388
51389         Tests for module 'uninorm/u32-normcoll'.
51390         * modules/uninorm/u32-normcoll-tests: New file.
51391         * tests/uninorm/test-u32-normcoll.c: New file.
51392
51393         Tests for module 'uninorm/u16-normcoll'.
51394         * modules/uninorm/u16-normcoll-tests: New file.
51395         * tests/uninorm/test-u16-normcoll.c: New file.
51396
51397         Tests for module 'uninorm/u8-normcoll'.
51398         * modules/uninorm/u8-normcoll-tests: New file.
51399         * tests/uninorm/test-u8-normcoll.c: New file.
51400
51401 2009-03-07  Bruno Haible  <bruno@clisp.org>
51402
51403         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51404         tests/uninorm/test-u32-normcmp.c.
51405         * tests/uninorm/test-u32-normcmp.c: Include it.
51406         (test_nonascii): New function, extracted from main. Add some more
51407         tests.
51408         (main): Invoke test_ascii and test_nonascii.
51409         * modules/uninorm/u32-normcmp-tests (Files): Add
51410         tests/uninorm/test-u32-normcmp.h.
51411         (Depends-on): Remove uninorm/u32-normcmp.
51412
51413         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51414         tests/uninorm/test-u16-normcmp.c.
51415         * tests/uninorm/test-u16-normcmp.c: Include it.
51416         (test_nonascii): New function, extracted from main. Add some more
51417         tests.
51418         (main): Invoke test_ascii and test_nonascii.
51419         * modules/uninorm/u16-normcmp-tests (Files): Add
51420         tests/uninorm/test-u16-normcmp.h.
51421         (Depends-on): Remove uninorm/u16-normcmp.
51422
51423         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51424         tests/uninorm/test-u8-normcmp.c.
51425         * tests/uninorm/test-u8-normcmp.c: Include it.
51426         (test_nonascii): New function, extracted from main. Add some more
51427         tests.
51428         (main): Invoke test_ascii and test_nonascii.
51429         * modules/uninorm/u8-normcmp-tests (Files): Add
51430         tests/uninorm/test-u8-normcmp.h.
51431         (Depends-on): Remove uninorm/u8-normcmp.
51432
51433 2009-03-07  Bruno Haible  <bruno@clisp.org>
51434
51435         New module 'uninorm/u32-normcoll'.
51436         * lib/uninorm/u32-normcoll.c: New file.
51437         * modules/uninorm/u32-normcoll: New file.
51438
51439         New module 'uninorm/u16-normcoll'.
51440         * lib/uninorm/u16-normcoll.c: New file.
51441         * modules/uninorm/u16-normcoll: New file.
51442
51443         New module 'uninorm/u8-normcoll'.
51444         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51445         declarations.
51446         * lib/uninorm/u8-normcoll.c: New file.
51447         * lib/uninorm/u-normcoll.h: New file.
51448         * modules/uninorm/u8-normcoll: New file.
51449
51450         New module 'uninorm/u32-normxfrm'.
51451         * lib/uninorm/u32-normxfrm.c: New file.
51452         * modules/uninorm/u32-normxfrm: New file.
51453
51454         New module 'uninorm/u16-normxfrm'.
51455         * lib/uninorm/u16-normxfrm.c: New file.
51456         * modules/uninorm/u16-normxfrm: New file.
51457
51458         New module 'uninorm/u8-normxfrm'.
51459         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51460         declarations.
51461         * lib/uninorm/u8-normxfrm.c: New file.
51462         * lib/uninorm/u-normxfrm.h: New file.
51463         * modules/uninorm/u8-normxfrm: New file.
51464
51465 2009-03-07  Bruno Haible  <bruno@clisp.org>
51466
51467         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51468         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51469         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51470
51471 2009-03-07  Bruno Haible  <bruno@clisp.org>
51472
51473         New module 'memxfrm'.
51474         * lib/memxfrm.h: New file.
51475         * lib/memxfrm.c: New file.
51476         * modules/memxfrm: New file.
51477
51478 2009-03-07  Bruno Haible  <bruno@clisp.org>
51479
51480         New module 'memcmp2'.
51481         * lib/memcmp2.h: New file.
51482         * lib/memcmp2.c: New file.
51483         * modules/memcmp2: New file.
51484
51485 2009-03-07  Bruno Haible  <bruno@clisp.org>
51486
51487         Tests for module 'uninorm/decomposing-form'.
51488         * modules/uninorm/decomposing-form-tests: New file.
51489         * tests/uninorm/test-decomposing-form.c: New file.
51490
51491         New module 'uninorm/decomposing-form'.
51492         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51493         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51494         Add 'decomposing_variant' field.
51495         * lib/uninorm/decomposing-form.c: New file.
51496         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51497         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51498         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51499         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51500         * modules/uninorm/decomposing-form: New file.
51501         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51502         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51503
51504 2009-03-07  Bruno Haible  <bruno@clisp.org>
51505
51506         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51507         strings.
51508
51509 2009-03-06  Bruno Haible  <bruno@clisp.org>
51510
51511         Tests for module 'uninorm/u32-normcmp'.
51512         * tests/uninorm/test-u32-normcmp.c: New file.
51513         * modules/uninorm/u32-normcmp-tests: New file.
51514
51515         Tests for module 'uninorm/u16-normcmp'.
51516         * tests/uninorm/test-u16-normcmp.c: New file.
51517         * modules/uninorm/u16-normcmp-tests: New file.
51518
51519         Tests for module 'uninorm/u8-normcmp'.
51520         * tests/uninorm/test-u8-normcmp.c: New file.
51521         * modules/uninorm/u8-normcmp-tests: New file.
51522
51523         New module 'uninorm/u32-normcmp'.
51524         * lib/uninorm/u32-normcmp.c: New file.
51525         * modules/uninorm/u32-normcmp: New file.
51526
51527         New module 'uninorm/u16-normcmp'.
51528         * lib/uninorm/u16-normcmp.c: New file.
51529         * modules/uninorm/u16-normcmp: New file.
51530
51531         New module 'uninorm/u8-normcmp'.
51532         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51533         declarations.
51534         * lib/uninorm/u8-normcmp.c: New file.
51535         * lib/uninorm/u-normcmp.h: New file.
51536         * modules/uninorm/u8-normcmp: New file.
51537
51538 2009-03-06  Bruno Haible  <bruno@clisp.org>
51539
51540         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51541         Reported by Eric Blake.
51542
51543 2009-03-06  Eric Blake  <ebb9@byu.net>
51544             Bruno Haible  <bruno@clisp.org>
51545
51546         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51547         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51548         condition.
51549         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51550         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51551         condition.
51552         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51553
51554 2009-03-06  Eric Blake  <ebb9@byu.net>
51555
51556         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51557         to avoid compiler warnings.
51558         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51559
51560 2009-03-05  Bruno Haible  <bruno@clisp.org>
51561
51562         * tests/test-ftell.c (main): Disable test beyond end of file on
51563         FreeMiNT.
51564         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51565
51566 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51567
51568         * lib/filevercmp.c: Move hidden files up in ordering.
51569         * tests/test-filevercmp.c: Add tests for hidden files.
51570
51571 2009-03-04  Bruno Haible  <bruno@clisp.org>
51572
51573         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51574         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51575         AM_CFLAGS.
51576         Reported by Simon Josefsson.
51577
51578 2009-03-03  Bruno Haible  <bruno@clisp.org>
51579
51580         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51581         Reported by Simon Josefsson.
51582
51583         * doc/ld-version-script.texi: Update node reference.
51584
51585 2009-03-03  Bruno Haible  <bruno@clisp.org>
51586
51587         * modules/visibility (License): Change to 'unlimited'.
51588         Suggested by Simon Josefsson.
51589
51590 2009-03-03  Jim Meyering  <meyering@redhat.com>
51591
51592         unlinkdir: cannot_unlink_dir may modify process state
51593         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51594         it's neither thread-safe nor appropriate for use in a library.
51595
51596 2009-03-03  Eric Blake  <ebb9@byu.net>
51597
51598         test-closein: silence test under Darwin
51599         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51600         care if it dies from EPIPE or EBADF.
51601
51602 2009-03-03  Bruno Haible  <bruno@clisp.org>
51603
51604         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51605         earlier.
51606         * doc/visibility.texi: Fix @node and @section.
51607
51608 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51609
51610         * doc/gnulib.texi: Link to sections for ld version script and
51611         visibility.
51612         * doc/visibility.texi: Add @node and @section.
51613         * modules/ld-version-script: New module.
51614         * m4/ld-version-script.m4: New file.
51615         * doc/ld-version-script.texi: New file.
51616
51617 2009-03-02  David Lutterkort  <lutter@redhat.com>
51618
51619         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51620         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51621
51622 2009-03-02  Bruno Haible  <bruno@clisp.org>
51623
51624         * doc/visibility.texi: Mention libtool's -export-symbols option.
51625
51626 2009-03-02  Jim Meyering  <meyering@redhat.com>
51627
51628         announce-gen: new option: --no-print-checksums
51629         * build-aux/announce-gen (usage): Describe it.
51630         (print_checksums): Print a newline here, not in the [*] footnote.
51631         (main): Honor it.
51632
51633 2009-03-01  Bruno Haible  <bruno@clisp.org>
51634
51635         Use socklen_t in the native Windows replacements prototypes.
51636         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51637         instead of 'int'.
51638         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51639         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51640         * modules/getsockopt (Depends-on): Add socklen.
51641         * modules/setsockopt (Depends-on): Add socklen.
51642
51643 2009-03-01  Bruno Haible  <bruno@clisp.org>
51644
51645         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51646         least 4.2.
51647
51648 2009-03-01  Eric Blake  <ebb9@byu.net>
51649             Bruno Haible  <bruno@clisp.org>
51650
51651         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51652         error messages.
51653         * lib/wait-process.c (wait_subprocess): Omit error message about
51654         deadly signal sent to the child of termsigp != NULL.
51655
51656 2009-03-01  Eric Blake  <ebb9@byu.net>
51657
51658         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51659
51660 2009-03-01  Bruno Haible  <bruno@clisp.org>
51661
51662         Avoid a gcc warning.
51663         * tests/test-sched.c (b): Make global.
51664         Reported by Eric Blake.
51665
51666 2009-01-19  Martin Lambers  <marlam@marlam.de>
51667
51668         Provide POSIX semantics for socket timeout options on W32.
51669         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51670         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51671         * modules/setsockopt: Depend on sys_time module for struct timeval.
51672         * modules/getsockopt: Depend on sys_time module for struct timeval.
51673
51674 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51675
51676         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51677         __USE_GNU, for consistency with netdb.in.h.
51678         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51679
51680 2009-03-01  Bruno Haible  <bruno@clisp.org>
51681
51682         More support for FreeMiNT.
51683         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51684         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51685
51686 2009-03-01  Bruno Haible  <bruno@clisp.org>
51687
51688         More support for FreeMiNT.
51689         * lib/fpurge.c (fpurge): Correct last commit.
51690         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51691
51692 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51693
51694         Fix unportable awk script in vc-list-files.
51695         * build-aux/vc-list-files: In the replacement awk script, use
51696         substr with a second argument of 1, not zero.
51697         Report by Simon Josefsson.
51698
51699 2009-02-28  Bruno Haible  <bruno@clisp.org>
51700
51701         More support for FreeMiNT.
51702         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51703         to FreeMiNT today.
51704         * lib/fwriting.c (fwriting): Likewise.
51705         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51706
51707 2009-02-28  Bruno Haible  <bruno@clisp.org>
51708
51709         * tests/test-freadseek.c (main): Disable test beyond end of file on
51710         FreeMiNT.
51711         * tests/test-ftello.c (main): Likewise.
51712         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51713
51714 2009-02-28  Bruno Haible  <bruno@clisp.org>
51715
51716         Add tentative support for FreeMiNT.
51717         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51718         * lib/fpurge.c (fpurge): Likewise.
51719         * lib/freadable.c (freadable): Likewise.
51720         * lib/freading.c (freading): Likewise.
51721         * lib/freadptr.c (freadptr): Likewise.
51722         * lib/freadseek.c (freadptrinc): Likewise.
51723         * lib/fseeko.c (rpl_fseeko): Likewise.
51724         * lib/fseterr.c (fseterr): Likewise.
51725         * lib/fwritable.c (fwritable): Likewise.
51726         * lib/fwriting.c (fwriting): Likewise.
51727         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51728         Hourihane.
51729         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51730
51731 2009-02-28  Bruno Haible  <bruno@clisp.org>
51732
51733         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51734         SIGCHLD.
51735         Reported by Jim Meyering.
51736
51737 2009-02-28  Bruno Haible  <bruno@clisp.org>
51738
51739         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51740         Mention the results of these tests on various platforms.
51741         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51742         order.
51743         * doc/posix-functions/printf.texi: Likewise.
51744         * doc/posix-functions/snprintf.texi: Likewise.
51745         * doc/posix-functions/sprintf.texi: Likewise.
51746         * doc/posix-functions/vfprintf.texi: Likewise.
51747         * doc/posix-functions/vprintf.texi: Likewise.
51748         * doc/posix-functions/vsnprintf.texi: Likewise.
51749         * doc/posix-functions/vsprintf.texi: Likewise.
51750         * doc/glibc-functions/obstack_printf.texi: Likewise.
51751         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51752
51753 2009-02-28  Bruno Haible  <bruno@clisp.org>
51754
51755         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51756         Reported by Loïc Minier <lool@dooz.org>.
51757
51758 2009-02-27  Bruno Haible  <bruno@clisp.org>
51759
51760         * gnulib-tool (func_import): Make the sed expression used to create the
51761         sed script for updating the .gitignore file POSIX compliant.
51762         Reported by Eric Blake.
51763
51764 2009-02-27  Bruno Haible  <bruno@clisp.org>
51765
51766         * gnulib-tool (sed): Don't alias as "sed --posix".
51767         Reported by Eric Blake.
51768
51769 2009-02-27  Bruno Haible  <bruno@clisp.org>
51770
51771         Avoid test link errors.
51772         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51773         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51774         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51775         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51777
51778 2009-02-27  Bruno Haible  <bruno@clisp.org>
51779
51780         Avoid spurious "(cached)" in configure output.
51781         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51782         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51783         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51784         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51785         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51786         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51787         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51788         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51789         Reported by Eric Blake.
51790
51791 2009-02-27  Eric Blake  <ebb9@byu.net>
51792
51793         printf: fix regression in previous patch
51794         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51795
51796 2009-02-27  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51799         value.
51800         * lib/stdint.in.h: Likewise.
51801         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51802
51803 2009-02-27  Eric Blake  <ebb9@byu.net>
51804
51805         doc: mention more functions added in cygwin 1.7.0
51806         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51807         addition.
51808         * doc/posix-functions/open_wmemstream.texi: Likewise.
51809         * doc/posix-functions/wcsnlen.texi: Likewise.
51810         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51811         * doc/posix-functions/wcstod.texi: Likewise.
51812         * doc/posix-functions/wcstof.texi: Likewise.
51813         * doc/posix-functions/wcstoimax.texi: Likewise.
51814         * doc/posix-functions/wcstok.texi: Likewise.
51815         * doc/posix-functions/wcstoumax.texi: Likewise.
51816
51817         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51818         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51819         * doc/posix-functions/fprintf.texi: Update.
51820         * doc/posix-functions/printf.texi: Update.
51821         * doc/posix-functions/snprintf.texi: Update.
51822         * doc/posix-functions/sprintf.texi: Update.
51823         * doc/posix-functions/vfprintf.texi: Update.
51824         * doc/posix-functions/vprintf.texi: Update.
51825         * doc/posix-functions/vsnprintf.texi: Update.
51826         * doc/posix-functions/vsprintf.texi: Update.
51827         * doc/glibc-functions/obstack_printf.texi: Update.
51828         * doc/glibc-functions/obstack_vprintf.texi: Update.
51829
51830 2009-02-26  Eric Blake  <ebb9@byu.net>
51831
51832         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51833         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51834         compilation bug by using runtime conversion.
51835         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51836         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51837         * modules/ceill-tests (Files): Use nan.h.
51838         * modules/floorl-tests (Files): Likewise.
51839         * modules/frexpl-tests (Files): Likewise.
51840         * modules/isnanl-tests (Files): Likewise.
51841         * modules/ldexpl-tests (Files): Likewise.
51842         * modules/roundl-tests (Files): Likewise.
51843         * modules/truncl-tests (Files): Likewise.
51844         * tests/test-ceill.c (main): Use a working NaN.
51845         * tests/test-floorl.c (main): Likewise.
51846         * tests/test-frexpl.c (main): Likewise.
51847         * tests/test-isnan.c (test_long_double): Likewise.
51848         * tests/test-isnanl.h (main): Likewise.
51849         * tests/test-ldexpl.h (main): Likewise.
51850         * tests/test-roundl.h (main): Likewise.
51851         * tests/test-truncl.h (main): Likewise.
51852         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51853
51854 2009-02-26  Eric Blake  <ebb9@byu.net>
51855             Bruno Haible  <bruno@clisp.org>
51856
51857         Work around a *printf bug with %ls on Solaris.
51858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51859         precision is specified, sprintf stops converting the wide string
51860         argument when the number of bytes that have been produced by this
51861         conversion equals or exceeds the precision.
51862         * doc/posix-functions/fprintf.texi: Update.
51863         * doc/posix-functions/printf.texi: Update.
51864         * doc/posix-functions/snprintf.texi: Update.
51865         * doc/posix-functions/sprintf.texi: Update.
51866         * doc/posix-functions/vfprintf.texi: Update.
51867         * doc/posix-functions/vprintf.texi: Update.
51868         * doc/posix-functions/vsnprintf.texi: Update.
51869         * doc/posix-functions/vsprintf.texi: Update.
51870         * doc/glibc-functions/obstack_printf.texi: Update.
51871         * doc/glibc-functions/obstack_vprintf.texi: Update.
51872
51873 2009-02-26  Eric Blake  <ebb9@byu.net>
51874
51875         stdlib: favor compiler check of random.h
51876         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51877         to avoid an ObjC random.h installed by Swarm.
51878
51879 2009-02-26  Bruno Haible  <bruno@clisp.org>
51880
51881         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51882         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51883         Reported by Gary V. Vaughan <gary@gnu.org>.
51884
51885 2009-02-26  Bruno Haible  <bruno@clisp.org>
51886
51887         Fix *printf behaviour regarding the %ls directive.
51888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51889         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51890         NEED_PRINTF_DIRECTIVE_LS.
51891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51892         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51894         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51895         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51896         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51897         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51898         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51899         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51900         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51901         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51902         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51903         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51905         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51906         * doc/posix-functions/fprintf.texi: Update.
51907         * doc/posix-functions/printf.texi: Update.
51908         * doc/posix-functions/snprintf.texi: Update.
51909         * doc/posix-functions/sprintf.texi: Update.
51910         * doc/posix-functions/vfprintf.texi: Update.
51911         * doc/posix-functions/vprintf.texi: Update.
51912         * doc/posix-functions/vsnprintf.texi: Update.
51913         * doc/posix-functions/vsprintf.texi: Update.
51914         * doc/glibc-functions/obstack_printf.texi: Update.
51915         * doc/glibc-functions/obstack_vprintf.texi: Update.
51916         Reported by Eric Blake.
51917
51918 2009-02-25  Bruno Haible  <bruno@clisp.org>
51919
51920         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51921         with known value.
51922         Reported by Gary V. Vaughan <gary@gnu.org>.
51923
51924 2009-02-25  Bruno Haible  <bruno@clisp.org>
51925
51926         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51927         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51928         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51929         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51930         Reported by Gary V. Vaughan <gary@gnu.org>.
51931
51932 2009-02-25  Bruno Haible  <bruno@clisp.org>
51933
51934         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51935         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51936         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51937         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51938         Reported by Gary V. Vaughan <gary@gnu.org>.
51939
51940 2009-02-25  Eric Blake  <ebb9@byu.net>
51941
51942         tests: skip fseek/ftell tests if ungetc is broken
51943         * m4/ungetc.m4: New file.
51944         * modules/fseek-tests: Split test, so ungetc dependency is
51945         separate from rest of test.
51946         * modules/fseeko-tests: Likewise.
51947         * modules/ftell-tests: Likewise.
51948         * modules/ftello-tests: Likewise.
51949         * tests/test-fseek.c (main): Isolate ungetc dependency.
51950         * tests/test-fseeko.c (main): Likewise.
51951         * tests/test-ftell.c (main): Likewise.
51952         * tests/test-ftello.c (main): Likewise.
51953         * tests/test-fseek2.sh: New file.
51954         * tests/test-fseeko2.sh: Likewise.
51955         * tests/test-ftell2.sh: Likewise.
51956         * tests/test-ftello2.sh: Likewise.
51957
51958 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51959
51960         test-getaddrinfo: fix usage of skip return code 77
51961         * tests/test-gettaddrinfo.c: Return skip code 77 only
51962         for first occurrence of skip (4x77 is not 77)
51963
51964 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51965
51966         strtod: avoid C99 decl-after-statement
51967         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51968
51969 2009-02-24  Eric Blake  <ebb9@byu.net>
51970
51971         strtod: detect HP-UX 11.31 bug
51972         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51973         Reported by Gary V. Vaughan.
51974
51975 2009-02-23  Bruno Haible  <bruno@clisp.org>
51976
51977         Fix invalid read past end of memory block.
51978         * lib/vasnprintf.c (DCHAR_SET): Define.
51979         (local_wcslen): Define only when needed.
51980         (local_strnlen, local_wcsnlen): New functions.
51981         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51982         directives that involve a conversion ourselves.
51983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51984         wcsnlen, mbrtowc, wcrtomb.
51985         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51986         * tests/test-vasprintf-posix.c (test_function): Likewise.
51987         * tests/test-snprintf-posix.h (test_function): Likewise.
51988         * tests/test-sprintf-posix.h (test_function): Likewise.
51989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51990
51991 2009-02-22  Bruno Haible  <bruno@clisp.org>
51992
51993         Implement new clarified decomposition of Hangul syllables.
51994         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51995         of type LTV, return only a pairwise decomposition.
51996         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51997         Likewise.
51998         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51999         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
52000         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
52001
52002 2009-02-22  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
52005         zero-length results and shrink excess allocated memory.
52006         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
52007         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
52008         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
52009         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
52010         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
52011         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
52012         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
52013         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
52014         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
52015         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
52016         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
52017         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
52018
52019 2009-02-21  Bruno Haible  <bruno@clisp.org>
52020
52021         * doc/gnulib.texi: Include safe-alloc.texi earlier.
52022         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
52023         spaces after a period. Put a space between a macro name and its
52024         argument list. Trivial rewordings.
52025         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
52026         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
52027         (main): Return 0 explicitly.
52028
52029 2009-02-21  Bruno Haible  <bruno@clisp.org>
52030
52031         Tests for module 'uninorm/filter'.
52032         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
52033         * modules/uninorm/filter-tests: New file.
52034
52035         New module 'uninorm/filter'.
52036         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
52037         uninorm_filter_flush, uninorm_filter_free): New declarations.
52038         * lib/uninorm/uninorm-filter.c: New file.
52039         * modules/uninorm/filter: New file.
52040
52041 2009-02-21  Bruno Haible  <bruno@clisp.org>
52042
52043         Tests for module 'uninorm/nfkc'.
52044         * tests/uninorm/test-nfkc.c: New file.
52045         * tests/uninorm/test-u8-nfkc.c: New file.
52046         * tests/uninorm/test-u16-nfkc.c: New file.
52047         * tests/uninorm/test-u32-nfkc.c: New file.
52048         * tests/uninorm/test-u32-nfkc-big.sh: New file.
52049         * tests/uninorm/test-u32-nfkc-big.c: New file.
52050         * modules/uninorm/nfkc-tests: New file.
52051
52052         New module 'uninorm/nfkc'.
52053         * lib/uninorm/nfkc.c: New file.
52054         * modules/uninorm/nfkc: New file.
52055
52056         Tests for module 'uninorm/nfkd'.
52057         * tests/uninorm/test-nfkd.c: New file.
52058         * tests/uninorm/test-u8-nfkd.c: New file.
52059         * tests/uninorm/test-u16-nfkd.c: New file.
52060         * tests/uninorm/test-u32-nfkd.c: New file.
52061         * tests/uninorm/test-u32-nfkd-big.sh: New file.
52062         * tests/uninorm/test-u32-nfkd-big.c: New file.
52063         * modules/uninorm/nfkd-tests: New file.
52064
52065         New module 'uninorm/nfkd'.
52066         * lib/uninorm/nfkd.c: New file.
52067         * modules/uninorm/nfkd: New file.
52068
52069         Tests for module 'uninorm/nfc'.
52070         * tests/uninorm/test-nfc.c: New file.
52071         * tests/uninorm/test-u8-nfc.c: New file.
52072         * tests/uninorm/test-u16-nfc.c: New file.
52073         * tests/uninorm/test-u32-nfc.c: New file.
52074         * tests/uninorm/test-u32-nfc-big.sh: New file.
52075         * tests/uninorm/test-u32-nfc-big.c: New file.
52076         * modules/uninorm/nfc-tests: New file.
52077
52078         New module 'uninorm/nfc'.
52079         * lib/uninorm/nfc.c: New file.
52080         * modules/uninorm/nfc: New file.
52081
52082         Tests for module 'uninorm/nfd'.
52083         * tests/uninorm/test-nfd.c: New file.
52084         * tests/uninorm/test-u8-nfd.c: New file.
52085         * tests/uninorm/test-u16-nfd.c: New file.
52086         * tests/uninorm/test-u32-nfd.c: New file.
52087         * tests/uninorm/test-u32-nfd-big.sh: New file.
52088         * tests/uninorm/test-u32-nfd-big.c: New file.
52089         * tests/uninorm/test-u32-normalize-big.h: New file.
52090         * tests/uninorm/test-u32-normalize-big.c: New file.
52091         * tests/uninorm/NormalizationTest.txt: New file, created from
52092         Unicode 5.1.0 NormalizationTest.txt.
52093         * modules/uninorm/nfd-tests: New file.
52094
52095         New module 'uninorm/nfd'.
52096         * lib/uninorm/nfd.c: New file.
52097         * modules/uninorm/nfd: New file.
52098
52099         New module 'uninorm/u32-normalize'.
52100         * lib/uninorm/u32-normalize.c: New file.
52101         * modules/uninorm/u32-normalize: New file.
52102
52103         New module 'uninorm/u16-normalize'.
52104         * lib/uninorm/u16-normalize.c: New file.
52105         * modules/uninorm/u16-normalize: New file.
52106
52107         New module 'uninorm/u8-normalize'.
52108         * lib/uninorm/u8-normalize.c: New file.
52109         * lib/uninorm/normalize-internal.h: New file.
52110         * lib/uninorm/u-normalize-internal.h: New file.
52111         * modules/uninorm/u8-normalize: New file.
52112
52113         New module 'uninorm/decompose-internal'.
52114         * lib/uninorm/decompose-internal.c: New file.
52115         * modules/uninorm/decompose-internal: New file.
52116
52117         Tests for module 'uninorm/composition'.
52118         * tests/uninorm/test-composition.c: New file.
52119         * modules/uninorm/composition-tests: New file.
52120
52121         New module 'uninorm/composition'.
52122         * lib/uninorm/composition.c: New file.
52123         * lib/uninorm/composition-table.gperf: New file, generated by
52124         gen-uni-tables.
52125         * modules/uninorm/composition: New file.
52126
52127         Tests for module 'uninorm/compat-decomposition'.
52128         * tests/uninorm/test-compat-decomposition.c: New file.
52129         * modules/uninorm/compat-decomposition-tests: New file.
52130
52131         New module 'uninorm/compat-decomposition'.
52132         * lib/uninorm/decompose-internal.h: New file.
52133         * lib/uninorm/compat-decomposition.c: New file.
52134         * modules/uninorm/compat-decomposition: New file.
52135
52136         Tests for module 'uninorm/canonical-decomposition'.
52137         * tests/uninorm/test-canonical-decomposition.c: New file.
52138         * modules/uninorm/canonical-decomposition-tests: New file.
52139
52140         New module 'uninorm/canonical-decomposition'.
52141         * lib/uninorm/canonical-decomposition.c: New file.
52142         * modules/uninorm/canonical-decomposition: New file.
52143
52144         Tests for module 'uninorm/decomposition'.
52145         * tests/uninorm/test-decomposition.c: New file.
52146         * modules/uninorm/decomposition-tests: New file.
52147
52148         New module 'uninorm/decomposition'.
52149         * lib/uninorm/decomposition.c: New file.
52150         * modules/uninorm/decomposition: New file.
52151
52152         New module 'uninorm/decomposition-table'.
52153         * lib/uninorm/decomposition-table.h: New file.
52154         * lib/uninorm/decomposition-table.c: New file.
52155         * lib/uninorm/decomposition-table1.h: New file, generated by
52156         gen-uni-tables.
52157         * lib/uninorm/decomposition-table2.h: New file, generated by
52158         gen-uni-tables.
52159         * modules/uninorm/decomposition-table: New file.
52160
52161         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
52162         (UC_DECOMP_*): New enumeration items.
52163         (get_decomposition): New function.
52164         (struct decomp_table): New type.
52165         (output_decomposition, output_decomposition_tables): New functions.
52166         (unicode_composition_exclusions): New variable.
52167         (fill_composition_exclusions, debug_output_composition_tables): New
52168         functions.
52169         (main): Accept one more argument. Invoke fill_composition_exclusions.
52170         Output decomposition and composition tables.
52171
52172         New module 'uninorm/base'.
52173         * lib/uninorm.h: New file.
52174         * lib/unictype.h: Update comment.
52175         * modules/uninorm/base: New file.
52176
52177 2009-02-21  David Lutterkort  <lutter@redhat.com>
52178
52179         Tests for module 'safe-alloc'.
52180         * tests/test-safe-alloc.c: New file.
52181         * modules/safe-alloc-tests: New file.
52182
52183         New module 'safe-alloc'.
52184         * lib/safe-alloc.h: New file.
52185         * lib/safe-alloc.c: New file.
52186         * m4/safe-alloc.m4: New file.
52187         * modules/safe-alloc: New file.
52188         * doc/safe-alloc.texi: New file.
52189         * doc/gnulib.texi: Include it.
52190         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
52191         safe-alloc.
52192
52193 2009-02-18  Bruno Haible  <bruno@clisp.org>
52194
52195         Fix link error on non-glibc systems.
52196         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
52197         variable.
52198         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52199
52200 2009-02-18  Jim Meyering  <meyering@redhat.com>
52201
52202         fts: avoid used-uninitialized error due to recent change
52203         * lib/fts.c (fts_read): Guard uses of the new member,
52204         parent->fts_n_dirs_remaining, since it's not relevant for
52205         the parent of a directory specified on the command-line.
52206
52207 2009-02-17  James Youngman  <jay@gnu.org>
52208             Bruno Haible  <bruno@clisp.org>
52209
52210         * m4/include_next.m4: Reformulate comment.
52211
52212 2009-02-16  Jim Meyering  <meyering@redhat.com>
52213
52214         fts: add #if guards so that the fts_lgpl module still builds
52215         * lib/fts.c: Guard just-added hash-table-using parts with
52216         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52217         Reported by Simon Josefsson.
52218
52219 2009-02-15  Bruno Haible  <bruno@clisp.org>
52220
52221         * modules/array-mergesort-tests: New file.
52222         * tests/test-array-mergesort.c: New file.
52223
52224         New module 'array-mergesort'.
52225         * modules/array-mergesort: New file.
52226         * lib/array-mergesort.h: New file.
52227
52228 2009-02-15  Bruno Haible  <bruno@clisp.org>
52229
52230         Fix 2009-02-07 commit.
52231         * lib/gen-uni-tables.c (output_predicate, output_category,
52232         output_combclass, output_bidi_category, output_decimal_digit,
52233         output_digit, output_numeric, output_mirror, output_scripts,
52234         output_ident_category, output_simple_mapping): Fix format directives.
52235         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52236
52237 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52238
52239         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52240         fixes are available from IBM.
52241
52242 2009-02-13  Jim Meyering  <meyering@redhat.com>
52243
52244         fts: arrange not to stat non-directories in more cases
52245         This makes GNU find (when it doesn't need to stat each file)
52246         *much* more efficient at traversing reiserfs file systems.
52247         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52248         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52249         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52250         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52251         (leaf_optimization_applies): New function.
52252         (LCO_hash, LCO_compare): New helper functions.
52253         (link_count_optimize_ok): New function.
52254         (fts_stat): Initialize new member (if dir).
52255         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52256         we've just stat'ed a directory.  Skip the stat call when possible.
52257         ---
52258         Note this AFS-related exchange:
52259         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52260         and note find's pioctl call in find/fstype.c.
52261         But that is necessary only if you want to enable the
52262         optimization for AFS, and for now, I don't.
52263
52264         fts: move a function definition "up" (no semantic change)
52265         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52266         "up" to precede upcoming use of a related function.
52267
52268 2009-02-11  Jim Meyering  <meyering@redhat.com>
52269
52270         fts: correct internal computation of nlinks (optimization-related)
52271         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52272         whether the current entry is a directory, so don't test it.
52273
52274 2009-02-10  Bruno Haible  <bruno@clisp.org>
52275
52276         Tests for module 'uniwbrk/ulc-wordbreaks'.
52277         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52278         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52279         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52280
52281         Tests for module 'uniwbrk/u32-wordbreaks'.
52282         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52283         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52284
52285         Tests for module 'uniwbrk/u16-wordbreaks'.
52286         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52287         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52288
52289         Tests for module 'uniwbrk/u8-wordbreaks'.
52290         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52291         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52292
52293 2009-02-10  Bruno Haible  <bruno@clisp.org>
52294
52295         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52296         property.
52297         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52298         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52299         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52300
52301 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52302
52303         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52304         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52305
52306 2009-02-10  Bruno Haible  <bruno@clisp.org>
52307
52308         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52309         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52310         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52311         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52312         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52313         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52314
52315 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52316
52317         * lib/sockets.h (gl_fd_to_handle): New function.
52318
52319         * tests/test-sockets.c: Call gl_fd_to_handle.
52320
52321 2009-02-09  Bruno Haible  <bruno@clisp.org>
52322
52323         * doc/havelib.texi: Document the conventions on bi-arch systems.
52324
52325 2009-02-08  Bruno Haible  <bruno@clisp.org>
52326
52327         Document the AC_LIB_LINKFLAGS macro.
52328         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52329         * doc/gnulib.texi: Include it.
52330
52331 2009-02-08  Bruno Haible  <bruno@clisp.org>
52332
52333         Fix wrong order of sections, compared to TOC.
52334         * doc/gnulib.texi: Include relocatable-maint.texi after the
52335         "Regular expressions" node, not before.
52336
52337 2009-02-08  Bruno Haible  <bruno@clisp.org>
52338
52339         Tests for module 'unicase/totitle'.
52340         * modules/unicase/totitle-tests: New file.
52341
52342         Tests for module 'unicase/tolower'.
52343         * modules/unicase/tolower-tests: New file.
52344
52345         Tests for module 'unicase/toupper'.
52346         * modules/unicase/toupper-tests: New file.
52347         * tests/unicase/test-mapping-part1.h: New file.
52348         * tests/unicase/test-mapping-part2.h: New file.
52349
52350         New module 'unicase/totitle'.
52351         * modules/unicase/totitle: New file.
52352         * lib/unicase/totitle.c: New file.
52353
52354         New module 'unicase/tolower'.
52355         * modules/unicase/tolower: New file.
52356         * lib/unicase/tolower.c: New file.
52357
52358         New module 'unicase/toupper'.
52359         * modules/unicase/toupper: New file.
52360         * lib/unicase/toupper.c: New file.
52361         * lib/unicase/simple-mapping.h: New file.
52362
52363         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52364         (mapping_table): New structure.
52365         (output_simple_mapping): New function.
52366         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52367         * modules/gen-uni-tables (Description): Update.
52368         * lib/unicase/toupper.h: New file, automatically generated by
52369         gen-uni-tables.
52370         * lib/unicase/tolower.h: New file, automatically generated by
52371         gen-uni-tables.
52372         * lib/unicase/totitle.h: New file, automatically generated by
52373         gen-uni-tables.
52374         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52375         gen-uni-tables.
52376         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52377         gen-uni-tables.
52378         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52379         gen-uni-tables.
52380
52381         New module 'unicase/base'.
52382         * modules/unicase/base: New file.
52383         * lib/unicase.h: New file.
52384
52385 2009-02-08  Bruno Haible  <bruno@clisp.org>
52386
52387         New module 'uniwbrk/ulc-wordbreaks'.
52388         * modules/uniwbrk/ulc-wordbreaks: New file.
52389         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52390
52391         New module 'uniwbrk/u32-wordbreaks'.
52392         * modules/uniwbrk/u32-wordbreaks: New file.
52393         * lib/uniwbrk/u32-wordbreaks.c: New file.
52394
52395         New module 'uniwbrk/u16-wordbreaks'.
52396         * modules/uniwbrk/u16-wordbreaks: New file.
52397         * lib/uniwbrk/u16-wordbreaks.c: New file.
52398
52399         New module 'uniwbrk/u8-wordbreaks'.
52400         * modules/uniwbrk/u8-wordbreaks: New file.
52401         * lib/uniwbrk/u8-wordbreaks.c: New file.
52402         * lib/uniwbrk/u-wordbreaks.h: New file.
52403
52404         New module 'uniwbrk/table'.
52405         * modules/uniwbrk/table: New file.
52406         * lib/uniwbrk/wbrktable.h: New file.
52407         * lib/uniwbrk/wbrktable.c: New file.
52408
52409         New module 'uniwbrk/wordbreak-property'.
52410         * modules/uniwbrk/wordbreak-property: New file.
52411         * lib/uniwbrk/wordbreak-property.c: New file.
52412
52413         * lib/gen-uni-tables.c (WBP_*): New enum items.
52414         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52415         (unicode_org_wbp): New variable.
52416         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52417         New functions.
52418         (wbp_table): New structure.
52419         (output_wbp, output_wbrk_tables): New functions.
52420         (main): Accept additional argument. Invoke fill_org_wbp,
52421         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52422         output_wbrk_tables.
52423         * modules/gen-uni-tables (Description): Update.
52424         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52425         gen-uni-tables.
52426
52427         New module 'uniwbrk/base'.
52428         * modules/uniwbrk/base: New file.
52429         * lib/uniwbrk.h: New file.
52430
52431 2009-02-08  Bruno Haible  <bruno@clisp.org>
52432
52433         Update to Unicode 5.1.0.
52434         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52435         U+2185..U+2188.
52436         (is_property_default_ignorable_code_point): Don't include characters
52437         of category Cc or Cs and not-a-characters.
52438         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52439         U+0D79, U+109E, U+109F, U+A60C.
52440         * lib/unictype/bidi_of.h: Regenerated.
52441         * lib/unictype/blocks.h: Regenerated.
52442         * lib/unictype/categ_C.h: Regenerated.
52443         * lib/unictype/categ_Cf.h: Regenerated.
52444         * lib/unictype/categ_Cn.h: Regenerated.
52445         * lib/unictype/categ_L.h: Regenerated.
52446         * lib/unictype/categ_Ll.h: Regenerated.
52447         * lib/unictype/categ_Lm.h: Regenerated.
52448         * lib/unictype/categ_Lo.h: Regenerated.
52449         * lib/unictype/categ_Lu.h: Regenerated.
52450         * lib/unictype/categ_M.h: Regenerated.
52451         * lib/unictype/categ_Mc.h: Regenerated.
52452         * lib/unictype/categ_Me.h: Regenerated.
52453         * lib/unictype/categ_Mn.h: Regenerated.
52454         * lib/unictype/categ_N.h: Regenerated.
52455         * lib/unictype/categ_Nd.h: Regenerated.
52456         * lib/unictype/categ_Nl.h: Regenerated.
52457         * lib/unictype/categ_No.h: Regenerated.
52458         * lib/unictype/categ_P.h: Regenerated.
52459         * lib/unictype/categ_Pd.h: Regenerated.
52460         * lib/unictype/categ_Pe.h: Regenerated.
52461         * lib/unictype/categ_Pf.h: Regenerated.
52462         * lib/unictype/categ_Pi.h: Regenerated.
52463         * lib/unictype/categ_Po.h: Regenerated.
52464         * lib/unictype/categ_Ps.h: Regenerated.
52465         * lib/unictype/categ_S.h: Regenerated.
52466         * lib/unictype/categ_Sk.h: Regenerated.
52467         * lib/unictype/categ_Sm.h: Regenerated.
52468         * lib/unictype/categ_So.h: Regenerated.
52469         * lib/unictype/categ_of.h: Regenerated.
52470         * lib/unictype/combining.h: Regenerated.
52471         * lib/unictype/ctype_alnum.h: Regenerated.
52472         * lib/unictype/ctype_alpha.h: Regenerated.
52473         * lib/unictype/ctype_graph.h: Regenerated.
52474         * lib/unictype/ctype_lower.h: Regenerated.
52475         * lib/unictype/ctype_print.h: Regenerated.
52476         * lib/unictype/ctype_punct.h: Regenerated.
52477         * lib/unictype/ctype_upper.h: Regenerated.
52478         * lib/unictype/decdigit.h: Regenerated.
52479         * lib/unictype/digit.h: Regenerated.
52480         * lib/unictype/mirror.h: Regenerated.
52481         * lib/unictype/numeric.h: Regenerated.
52482         * lib/unictype/pr_alphabetic.h: Regenerated.
52483         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52484         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52485         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52486         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52487         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52488         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52489         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52490         * lib/unictype/pr_combining.h: Regenerated.
52491         * lib/unictype/pr_dash.h: Regenerated.
52492         * lib/unictype/pr_decimal_digit.h: Regenerated.
52493         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52494         * lib/unictype/pr_deprecated.h: Regenerated.
52495         * lib/unictype/pr_diacritic.h: Regenerated.
52496         * lib/unictype/pr_extender.h: Regenerated.
52497         * lib/unictype/pr_format_control.h: Regenerated.
52498         * lib/unictype/pr_grapheme_base.h: Regenerated.
52499         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52500         * lib/unictype/pr_grapheme_link.h: Regenerated.
52501         * lib/unictype/pr_id_continue.h: Regenerated.
52502         * lib/unictype/pr_id_start.h: Regenerated.
52503         * lib/unictype/pr_ideographic.h: Regenerated.
52504         * lib/unictype/pr_ignorable_control.h: Regenerated.
52505         * lib/unictype/pr_lowercase.h: Regenerated.
52506         * lib/unictype/pr_math.h: Regenerated.
52507         * lib/unictype/pr_numeric.h: Regenerated.
52508         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52509         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52510         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52511         * lib/unictype/pr_other_id_continue.h: Regenerated.
52512         * lib/unictype/pr_other_lowercase.h: Regenerated.
52513         * lib/unictype/pr_other_math.h: Regenerated.
52514         * lib/unictype/pr_punctuation.h: Regenerated.
52515         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52516         * lib/unictype/pr_soft_dotted.h: Regenerated.
52517         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52518         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52519         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52520         * lib/unictype/pr_uppercase.h: Regenerated.
52521         * lib/unictype/pr_xid_continue.h: Regenerated.
52522         * lib/unictype/pr_xid_start.h: Regenerated.
52523         * lib/unictype/pr_zero_width.h: Regenerated.
52524         * lib/unictype/scripts.h: Regenerated.
52525         * lib/unictype/scripts_byname.gperf: Regenerated.
52526         * lib/unictype/sy_java_ident.h: Regenerated.
52527         * lib/unilbrk/lbrkprop1.h: Regenerated.
52528         * lib/unilbrk/lbrkprop2.h: Regenerated.
52529         * tests/unictype/test-categ_C.c: Regenerated.
52530         * tests/unictype/test-categ_Cf.c: Regenerated.
52531         * tests/unictype/test-categ_Cn.c: Regenerated.
52532         * tests/unictype/test-categ_L.c: Regenerated.
52533         * tests/unictype/test-categ_Ll.c: Regenerated.
52534         * tests/unictype/test-categ_Lm.c: Regenerated.
52535         * tests/unictype/test-categ_Lo.c: Regenerated.
52536         * tests/unictype/test-categ_Lu.c: Regenerated.
52537         * tests/unictype/test-categ_M.c: Regenerated.
52538         * tests/unictype/test-categ_Mc.c: Regenerated.
52539         * tests/unictype/test-categ_Me.c: Regenerated.
52540         * tests/unictype/test-categ_Mn.c: Regenerated.
52541         * tests/unictype/test-categ_N.c: Regenerated.
52542         * tests/unictype/test-categ_Nd.c: Regenerated.
52543         * tests/unictype/test-categ_Nl.c: Regenerated.
52544         * tests/unictype/test-categ_No.c: Regenerated.
52545         * tests/unictype/test-categ_P.c: Regenerated.
52546         * tests/unictype/test-categ_Pd.c: Regenerated.
52547         * tests/unictype/test-categ_Pe.c: Regenerated.
52548         * tests/unictype/test-categ_Pf.c: Regenerated.
52549         * tests/unictype/test-categ_Pi.c: Regenerated.
52550         * tests/unictype/test-categ_Po.c: Regenerated.
52551         * tests/unictype/test-categ_Ps.c: Regenerated.
52552         * tests/unictype/test-categ_S.c: Regenerated.
52553         * tests/unictype/test-categ_Sk.c: Regenerated.
52554         * tests/unictype/test-categ_Sm.c: Regenerated.
52555         * tests/unictype/test-categ_So.c: Regenerated.
52556         * tests/unictype/test-ctype_alnum.c: Regenerated.
52557         * tests/unictype/test-ctype_alpha.c: Regenerated.
52558         * tests/unictype/test-ctype_graph.c: Regenerated.
52559         * tests/unictype/test-ctype_lower.c: Regenerated.
52560         * tests/unictype/test-ctype_print.c: Regenerated.
52561         * tests/unictype/test-ctype_punct.c: Regenerated.
52562         * tests/unictype/test-ctype_upper.c: Regenerated.
52563         * tests/unictype/test-decdigit.h: Regenerated.
52564         * tests/unictype/test-digit.h: Regenerated.
52565         * tests/unictype/test-numeric.h: Regenerated.
52566         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52567         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52568         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52569         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52570         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52571         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52572         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52573         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52574         * tests/unictype/test-pr_combining.c: Regenerated.
52575         * tests/unictype/test-pr_dash.c: Regenerated.
52576         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52577         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52578         * tests/unictype/test-pr_deprecated.c: Regenerated.
52579         * tests/unictype/test-pr_diacritic.c: Regenerated.
52580         * tests/unictype/test-pr_extender.c: Regenerated.
52581         * tests/unictype/test-pr_format_control.c: Regenerated.
52582         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52583         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52584         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52585         * tests/unictype/test-pr_id_continue.c: Regenerated.
52586         * tests/unictype/test-pr_id_start.c: Regenerated.
52587         * tests/unictype/test-pr_ideographic.c: Regenerated.
52588         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52589         * tests/unictype/test-pr_lowercase.c: Regenerated.
52590         * tests/unictype/test-pr_math.c: Regenerated.
52591         * tests/unictype/test-pr_numeric.c: Regenerated.
52592         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52593         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52594         Regenerated.
52595         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52596         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52597         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52598         * tests/unictype/test-pr_other_math.c: Regenerated.
52599         * tests/unictype/test-pr_punctuation.c: Regenerated.
52600         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52601         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52602         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52603         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52604         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52605         * tests/unictype/test-pr_uppercase.c: Regenerated.
52606         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52607         * tests/unictype/test-pr_xid_start.c: Regenerated.
52608         * tests/unictype/test-pr_zero_width.c: Regenerated.
52609
52610         Update to Unicode 5.1.0.
52611         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52612         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52613         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52614         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52615         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52616         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52617         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52618         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52619         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52620         (nonspacing_table_ind): Update.
52621         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52622
52623         Update to Unicode 5.1.0.
52624         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52625         code transform.
52626         * lib/uniname/uniname.c (unicode_character_name,
52627         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52628         * lib/uniname/uninames.h: Regenerated.
52629         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52630
52631 2009-02-07  Bruno Haible  <bruno@clisp.org>
52632
52633         Merge gen-ctype and gen-lbrk into a single program.
52634         * lib/gen-uni-tables.c: New file, incorporating
52635         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52636         Add directory prefixes to the names of the generated files.
52637         * lib/unictype/gen-ctype.c: Remove file.
52638         * lib/unilbrk/gen-lbrk.c: Remove file.
52639         * modules/gen-uni-tables: New file.
52640         * modules/unictype/gen-ctype: Remove file.
52641         * modules/unilbrk/gen-lbrk: Remove file.
52642
52643 2009-02-07  Bruno Haible  <bruno@clisp.org>
52644
52645         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52646
52647         New module 'unistr/u32-strcoll'.
52648         * modules/unistr/u32-strcoll: New file.
52649         * lib/unistr/u32-strcoll.c: New file.
52650
52651         New module 'unistr/u16-strcoll'.
52652         * modules/unistr/u16-strcoll: New file.
52653         * lib/unistr/u16-strcoll.c: New file.
52654
52655         New module 'unistr/u8-strcoll'.
52656         * modules/unistr/u8-strcoll: New file.
52657         * lib/unistr/u8-strcoll.c: New file.
52658         * lib/unistr/u-strcoll.h: New file.
52659
52660 2009-02-07  Bruno Haible  <bruno@clisp.org>
52661
52662         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52663         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52664         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52665         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52666         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52667         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52668
52669 2009-02-07  Bruno Haible  <bruno@clisp.org>
52670
52671         Make 64-bit clean.
52672         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52673         output_combclass, output_bidi_category, output_decimal_digit,
52674         output_digit, output_numeric, output_mirror, output_scripts,
52675         output_ident_category): Use proper width specifier in format strings.
52676
52677 2009-02-07  Bruno Haible  <bruno@clisp.org>
52678
52679         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52680         failure behaviour.
52681
52682 2009-02-07  Jim Meyering  <meyering@redhat.com>
52683
52684         regex: avoid compilation failure with upcoming gcc-4.4
52685         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52686         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52687         "... error: integer overflow in preprocessor expression".
52688
52689 2009-02-05  Ben Pfaff  <blp@gnu.org>
52690
52691         Fix link errors on Windows when close module is used.
52692         * modules/close: Add $(LIB_CLOSE) to Link section.
52693         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52694         $(LIB_CLOSE) on Windows.
52695
52696 2009-02-05  Jim Meyering  <meyering@redhat.com>
52697
52698         still avoid unused-parameter warnings, but do it cleanly
52699         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52700         (get_fs_usage): Cast to void instead.
52701         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52702         (dev_from_mount_options, read_file_system_list): Cast to void.
52703         Prompted by Bruno Haible.
52704
52705 2009-02-04  Jim Meyering  <meyering@redhat.com>
52706
52707         fsusage.c: correct copyright year
52708         * lib/fsusage.c: Reflect year in which the change is pushed into
52709
52710         avoid misc. warnings
52711         * lib/fsusage.c (UNUSED_PARAM): Define.
52712         (get_fs_usage): Mark parameter "disk" as unused.
52713         * lib/getugroups.c (getgrent): Use "void" in prototype.
52714         * lib/mountlist.c: Mark unused parameters.
52715         (read_file_system_list): Declare a local with "const".
52716         * lib/nanosleep.c (getnow): Declare static.
52717         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52718
52719         dirfd: set errno upon failure
52720         * lib/dirfd.c: Include <errno.h>.
52721         Set errno to ENOTSUP when returning -1.
52722         * modules/dirfd (Depends-on): Add errno.
52723         Suggested by John Kodis <kodis@comcast.net>.
52724
52725 2009-02-01  Bruno Haible  <bruno@clisp.org>
52726
52727         Don't assume sizeof (long) >= sizeof (void *).
52728         * lib/memcmp.c: Include stdint.h.
52729         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52730         srcp2 to 'const byte *'.
52731         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52732         types to uintptr_t.
52733         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52734         * modules/memcmp (Depends-on): Add stdint.
52735         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52736
52737 2009-01-30  Eric Blake  <ebb9@byu.net>
52738
52739         fix more require-before-expand issues
52740         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52741         expand, AC_PROG_AWK.
52742         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52743
52744 2009-01-28  Eric Blake  <ebb9@byu.net>
52745
52746         version-etc: use consistent URL formatting
52747         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52748         Improve formatting.  Use fputs for string without %.
52749
52750 2009-01-28  Jim Meyering  <meyering@redhat.com>
52751
52752         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52753         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52754         "underquoted definition of NAME" from autoconf-2.59.
52755
52756 2009-01-28  Bruno Haible  <bruno@clisp.org>
52757
52758         * doc/gnulib.texi: Add "Obsolete modules" to index.
52759
52760 2009-01-28  Jim Meyering  <meyering@redhat.com>
52761
52762         useless-if-before-free: recognize more variants
52763         * build-aux/useless-if-before-free: Also recognize e.g.,
52764         if (NULL != p) free (p);
52765
52766 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52767
52768         test-getaddrinfo: skip (don't fail) this test when there's no network
52769         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52770         on the presumption that it means you lack network access.
52771
52772 2009-01-26  Jim Meyering  <meyering@redhat.com>
52773
52774         fflush: avoid warnings on modern systems
52775         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52776         pos and result, into scopes where they're used.
52777
52778 2009-01-26  Eric Blake  <ebb9@byu.net>
52779
52780         Silence warning reintroduced by recent extensions patch.
52781         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52782         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52783         autoconf.
52784
52785         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52786         * m4/00gnulib.m4: New file.
52787         * gnulib-tool (func_get_filelist): Always use it.
52788         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52789         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52790
52791 2009-01-25  Bruno Haible  <bruno@clisp.org>
52792
52793         Make test-quotearg work on MacOS X and AIX.
52794         * tests/test-quotearg.sh: New file.
52795         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52796         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52797         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52798         include <libintl.h>.
52799         (fake_locale): Remove variable.
52800         (gettext, dgettext, dcgettext): Remove functions.
52801         (main): Instead of setting a fake locale, set a real locale. Call
52802         textdomain and bindtextdomain.
52803         * modules/quotearg-tests (Files): Add the new files.
52804         (Depends-on): Add gettext, setenv, unsetenv.
52805         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52806         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52807         Augment TESTS_ENVIRONMENT.
52808
52809 2009-01-25  Bruno Haible  <bruno@clisp.org>
52810
52811         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52812         fr_FR.ISO8859-1 locale on MacOS X.
52813         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52814         ja_JP.eucJP locale on MacOS X.
52815         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52816         zh_CN.GB18030 locale on MacOS X.
52817
52818 2009-01-25  Bruno Haible  <bruno@clisp.org>
52819
52820         Avoid link errors on MacOS X 10.3.
52821         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52822         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52823
52824 2009-01-25  Bruno Haible  <bruno@clisp.org>
52825
52826         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52827         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52828         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52829         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52830         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52831         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52832         posix_spawnattr_init, posix_spawnattr_setsigmask,
52833         posix_spawnattr_setflags, posix_spawnattr_destroy.
52834
52835         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52836         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52837         * modules/execute (Files): Remove m4/posix_spawn.m4.
52838         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52839         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52840         posix_spawnattr_init, posix_spawnattr_setsigmask,
52841         posix_spawnattr_setflags, posix_spawnattr_destroy.
52842
52843 2009-01-25  Bruno Haible  <bruno@clisp.org>
52844
52845         * lib/glthread/threadlib.c: Include <stdlib.h>.
52846
52847 2009-01-25  Bruno Haible  <bruno@clisp.org>
52848
52849         * lib/glthread/threadlib.c (dummy): New declaration.
52850
52851 2009-01-25  Bruno Haible  <bruno@clisp.org>
52852
52853         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52854         multibyte characters also for the GB18030 encoding. Don't crash when
52855         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52856
52857 2009-01-25  Bruno Haible  <bruno@clisp.org>
52858
52859         Avoid redefining 'struct random_data' on OSF/1 5.1.
52860         * lib/stdlib.in.h: Include <random.h> if it exists.
52861         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52862         HAVE_RANDOM_H. Include <random.h> when testing whether
52863         'struct random_data' exists.
52864         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52865
52866 2009-01-25  Bruno Haible  <bruno@clisp.org>
52867
52868         Don't install charset.alias on MacOS X >= 10.3.
52869         * lib/localcharset.c (DARWIN7): New macro.
52870         (get_charset_aliases): Hardcode the result for Darwin7.
52871         * modules/localcharset (install-exec-local): Don't install
52872         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52873
52874 2009-01-25  Bruno Haible  <bruno@clisp.org>
52875
52876         Don't install charset.alias on mingw and Cygwin.
52877         * modules/localcharset (install-exec-local): Don't install
52878         charset.alias on mingw and Cygwin, if the file does not yet exist.
52879         The result for these platforms is hardcoded in localcharset.c.
52880
52881 2009-01-25  Bruno Haible  <bruno@clisp.org>
52882
52883         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52885         before requiring AC_USE_SYSTEM_EXTENSIONS.
52886
52887 2009-01-25  Jim Meyering  <meyering@redhat.com>
52888
52889         c-strtod: avoid warnings
52890         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52891         "assignment discards qualifiers from pointer target type" warnings.
52892
52893 2009-01-24  Bruno Haible  <bruno@clisp.org>
52894
52895         Add support for non-UTF-8 locales on MacOS X.
52896         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52897         canonical encodings. For Darwin 7 and newer, don't map traditional
52898         encodings to UTF-8.
52899         Reported by Vincent Lefevre <vincent@vinc17.org>
52900         at <http://savannah.gnu.org/bugs/?25235>.
52901
52902 2009-01-24  Bruno Haible  <bruno@clisp.org>
52903
52904         * doc/gnulib.texi (Obsolete modules): New section.
52905         Reported by Mike Frysinger <vapier@gentoo.org>.
52906
52907 2009-01-24  Bruno Haible  <bruno@clisp.org>
52908
52909         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52910         (%.dvi): New rule.
52911
52912 2009-01-24  Bruno Haible  <bruno@clisp.org>
52913
52914         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52915         Reported by Eric Blake.
52916
52917 2009-01-24  Bruno Haible  <bruno@clisp.org>
52918
52919         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52920         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52921         Reported by Gary V. Vaughan <gary@gnu.org>.
52922
52923 2009-01-24  Bruno Haible  <bruno@clisp.org>
52924
52925         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52926
52927 2009-01-23  Bruno Haible  <bruno@clisp.org>
52928
52929         Make c-strtod, c-strtold usable in libraries.
52930         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52931         (C_STRTOD): Call strdup instead of xstrdup.
52932         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52933         * modules/c-strtold (Depends-on): Likewise.
52934         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52935         * NEWS: Mention the change.
52936         Reported by Michael Gold <mgold@ncf.ca>.
52937
52938 2009-01-23  Jim Meyering  <meyering@redhat.com>
52939
52940         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52941         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52942         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52943
52944 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52945
52946         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52947         GNU CoreUtils.
52948         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52949         * modules/version-etc (Description): Update.
52950
52951 2009-01-22  Bruno Haible  <bruno@clisp.org>
52952
52953         Cache the C locale object.
52954         * lib/c-strtod.c (c_locale_cache): New variable.
52955         (c_locale): New function.
52956         (C_STRTOD): Use it, and don't call freelocale.
52957         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52958         Suggested by Paolo Bonzini.
52959
52960 2009-01-21  Bruno Haible  <bruno@clisp.org>
52961
52962         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52963         conditions other than overflow.
52964
52965 2009-01-21  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/c-strtod.c: Include errno.h.
52968         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52969         value from STRTOD_L and STRTOD.
52970
52971 2009-01-21  Bruno Haible  <bruno@clisp.org>
52972         and Jim Meyering  <meyering@redhat.com>
52973
52974         nanosleep: skip configure test (fail it) for apple universal builds
52975         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52976         universal builds, assume that nanosleep does not work.
52977         * modules/nanosleep (Depends-on): Add multiarch.
52978
52979         mktime: skip configure test (fail it) for apple universal builds
52980         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52981         universal builds, assume that mktime does not work.
52982         * modules/mktime (Depends-on): Add multiarch.
52983
52984 2009-01-21  Eric Blake  <ebb9@byu.net>
52985
52986         multiarch: avoid expand-before-require warning
52987         * modules/multiarch (configure.ac): Require, rather than expand,
52988         gl_MULTIARCH.
52989         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52990         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52991         enforce that all clients require it.  Partial reversion of
52992         2008-12-29 patch.
52993
52994         error: avoid expand-before-require warning
52995         * modules/errno (configure.ac): Require, rather than expand,
52996         gl_HEADER_ERRNO_H.
52997         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52998         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52999         enforce that all clients require it.
53000
53001         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
53002         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
53003         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
53004         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
53005
53006 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
53007
53008         Revert:
53009         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53010
53011         regex: do not depend on obsolete modules.
53012         * modules/regex: Remove memcmp and memmove.
53013
53014 2009-01-20  Bruno Haible  <bruno@clisp.org>
53015
53016         Make the 'link' module link on Windows NT 4.
53017         * lib/link.c (_WIN32_WINNT): Don't define.
53018         (CreateHardLinkFuncType): New type.
53019         (CreateHardLinkFunc, initialized): New variables.
53020         (initialize): New function.
53021         (link): Invoke CreateHardLink indirectly through the function pointer.
53022
53023 2009-01-20  Bruno Haible  <bruno@clisp.org>
53024
53025         Fix compilation failure on mingw.
53026         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
53027
53028 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
53029
53030         * doc/c-strtod.texi: Mention a couple of restrictions.
53031
53032 2009-01-20  Jim Meyering  <meyering@redhat.com>
53033
53034         gettimeofday: move more declarations out of functions
53035         * lib/gettimeofday.c: Move extern declarations of tzset and
53036         gmtime out of containing functions.  Prompted by Bruno Haible.
53037
53038 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53039
53040         regex: do not depend on obsolete modules.
53041         * modules/regex: Remove memcmp and memmove.
53042
53043 2009-01-19  Bruno Haible  <bruno@clisp.org>
53044
53045         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53046         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
53047         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53048         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
53049         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
53050
53051 2009-01-19  Bruno Haible  <bruno@clisp.org>
53052
53053         * tests/test-link.c: Include <errno.h>.
53054         (main): Exit with code 77 when a hard link cannot be created due to
53055         the file system.
53056         * tests/test-link.sh: Skip test when a hard link cannot be created due
53057         to the file system.
53058         Suggested by Eric Blake.
53059
53060 2009-01-19  Martin Lambers  <marlam@marlam.de>
53061
53062         * modules/link-tests: New file.
53063         * tests/test-link.sh: New file.
53064         * tests/test-link.c: New file.
53065
53066 2009-01-19  Eric Blake  <ebb9@byu.net>
53067
53068         doc: mention another function added in cygwin 1.7.0
53069         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
53070         Another new function in cygwin 1.7.
53071
53072 2009-01-19  Bruno Haible  <bruno@clisp.org>
53073
53074         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53075         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
53076         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
53077         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53078         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
53079         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
53080         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
53081         * m4/md4.m4 (gl_MD4): Likewise.
53082         * m4/md5.m4 (gl_MD5): Likewise.
53083         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
53084         * m4/sha1.m4 (gl_SHA1): Likewise.
53085         * m4/sha256.m4 (gl_SHA256): Likewise.
53086         * m4/sha512.m4 (gl_SHA512): Likewise.
53087
53088 2009-01-19  Bruno Haible  <bruno@clisp.org>
53089
53090         * modules/uniname/uniname-tests (Depends-on): Add progname.
53091         * tests/uniname/test-uninames.c: Include progname.h.
53092         (main): Call set_program_name.
53093
53094         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
53095         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
53096         (main): Call set_program_name.
53097
53098         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
53099         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
53100         (main): Call set_program_name.
53101
53102         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
53103         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
53104         (main): Call set_program_name.
53105
53106         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
53107         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
53108         (main): Call set_program_name.
53109
53110         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
53111         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
53112         (main): Call set_program_name.
53113
53114         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
53115         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
53116         (main): Call set_program_name.
53117
53118         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
53119         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
53120         (main): Call set_program_name.
53121
53122         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
53123         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
53124         (main): Call set_program_name.
53125
53126 2009-01-19  Eric Blake  <ebb9@byu.net>
53127
53128         test-unistd: test previous patch
53129         * tests/test-unistd.c: Test *_FILENO macros.
53130
53131         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
53132         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53133         Guarantee a definition.
53134         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
53135         * modules/unistd-safer (Depends-on): Add dependency on unistd.
53136         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
53137         * lib/dup-safer.c (STDERR_FILENO): Likewise.
53138         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53139         Likewise.
53140         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
53141         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
53142         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53143         Likewise.
53144         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
53145         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
53146         (STDERR_FILENO): Likewise.
53147         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
53148         (STDERR_FILENO): Likewise.
53149         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
53150         (STDERR_FILENO): Likewise.
53151         Reported by Elbert Pol.
53152
53153 2009-01-19  Eric Blake  <ebb9@byu.net>
53154
53155         doc: mention more functions added in cygwin 1.7.0
53156         * doc/posix-functions/abort.texi (abort): Update wording related
53157         to cygwin.
53158         * doc/posix-functions/daylight.texi (daylight): Likewise.
53159         * doc/posix-functions/optarg.texi (optarg): Likewise.
53160         * doc/posix-functions/optarg.texi (opterr): Likewise.
53161         * doc/posix-functions/optarg.texi (optind): Likewise.
53162         * doc/posix-functions/optarg.texi (optopt): Likewise.
53163         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
53164         worked in 1.5.x, and was withdrawn in 1.7.
53165         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53166         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
53167         cygwin versions.
53168         * doc/posix-functions/perror.texi (perror): Likewise.
53169         * doc/posix-functions/printf.texi (printf): Likewise.
53170         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
53171         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
53172         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53173         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53174         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53175         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
53176         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53177         Likewise.
53178         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53179         Likewise.
53180         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
53181         this function.
53182         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
53183         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
53184         Likewise.
53185         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
53186         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
53187         * doc/posix-functions/confstr.texi (confstr): Likewise.
53188         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
53189         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
53190         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
53191         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
53192         * doc/posix-functions/fputws.texi (fputws): Likewise.
53193         * doc/posix-functions/fwide.texi (fwide): Likewise.
53194         * doc/posix-functions/getwc.texi (getwc): Likewise.
53195         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
53196         * doc/posix-functions/putwc.texi (putwc): Likewise.
53197         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53198         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
53199         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
53200         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53201         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
53202         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
53203         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53204         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53205         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53206         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53207         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53208
53209 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53210
53211         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53212         * lib/ioctl.c: Include <sys/ioctl.h>.
53213
53214 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53215
53216         * modules/getdate-tests (Depends-on): Add progname.
53217         * tests/test-getdate.c: Use progname module, to avoid link errors
53218         on non-glibc systems.
53219
53220 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53221
53222         * modules/filenamecat-tests (Depends-on): Add progname.
53223         * modules/fstrcmp-tests (Depends-on): Likewise.
53224
53225         * tests/test-filenamecat.c: Use progname module, to avoid link
53226         errors on non-glibc systems.
53227         * tests/test-fstrcmp.c: Likewise.
53228
53229 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53230
53231         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53232         * lib/gettimeofday.c: Move extern declaration out of function.
53233
53234 2009-01-18  Bruno Haible  <bruno@clisp.org>
53235
53236         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53237         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53238         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53239
53240 2009-01-18  Bruno Haible  <bruno@clisp.org>
53241
53242         * lib/strftime.c (MEMPCPY): Remove unused macro.
53243         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53244
53245 2009-01-18  Martin Lambers  <marlam@marlam.de>
53246
53247         New module 'link'.
53248         * lib/unistd.in.h (link): New declaration.
53249         * lib/link.c: New file.
53250         * m4/link.m4: New file.
53251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53252         HAVE_LINK.
53253         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53254         * modules/link: New file.
53255         * doc/posix-functions/link.texi: Mention the new module.
53256
53257 2009-01-18  Bruno Haible  <bruno@clisp.org>
53258
53259         * tests/test-avltree_list.c (main): Call set_program_name.
53260         * tests/test-avltree_oset.c (main): Likewise.
53261         * tests/test-obstack-printf.c: Include progname.h.
53262         (main): Call set_program_name.
53263         * tests/test-quotearg.c: Include progname.h.
53264         (main): Call set_program_name.
53265         * tests/test-xmemdup0.c: Include progname.h.
53266         (main): Call set_program_name.
53267
53268 2009-01-18  Bruno Haible  <bruno@clisp.org>
53269
53270         New module 'alphasort'.
53271         * lib/dirent.in.h (alphasort): New declaration.
53272         * lib/alphasort.c: New file, from glibc with modifications.
53273         * m4/alphasort.m4: New file.
53274         * modules/alphasort: New file.
53275         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53276         HAVE_ALPHASORT.
53277         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53278         HAVE_ALPHASORT.
53279         * doc/posix-functions/alphasort.texi: Mention the new module and the
53280         portability problems.
53281
53282 2009-01-18  Bruno Haible  <bruno@clisp.org>
53283
53284         New module 'scandir'.
53285         * lib/dirent.in.h (scandir): New declaration.
53286         * lib/scandir.c: New file, from glibc with modifications.
53287         * m4/scandir.m4: New file.
53288         * modules/scandir: New file.
53289         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53290         HAVE_SCANDIR.
53291         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53292         HAVE_SCANDIR.
53293         * doc/posix-functions/scandir.texi: Mention the new module and the
53294         portability problems.
53295
53296 2009-01-17  Bruno Haible  <bruno@clisp.org>
53297
53298         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53299         Update documentation.
53300         (func_remove_suffix): Escape all dots in the suffix. Update
53301         documentation.
53302         (func_filter_filelist): Update documentation.
53303         Reported by Ralf Wildenhues.
53304
53305 2009-01-17  Bruno Haible  <bruno@clisp.org>
53306
53307         * modules/dprintf-posix-tests: New file.
53308         * tests/test-dprintf-posix.sh: New file.
53309         * tests/test-dprintf-posix.c: New file.
53310
53311         New modules 'dprintf', 'dprintf-posix'.
53312         * lib/stdio.in.h (dprintf): New declaration.
53313         * lib/dprintf.c: New file.
53314         * m4/dprintf.m4: New file.
53315         * m4/dprintf-posix.m4: New file.
53316         * modules/dprintf: New file.
53317         * modules/dprintf-posix: New file.
53318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53319         HAVE_DPRINTF, REPLACE_DPRINTF.
53320         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53321         HAVE_DPRINTF, REPLACE_DPRINTF.
53322         * doc/posix-functions/dprintf.texi: Mention the new modules.
53323
53324 2009-01-17  Bruno Haible  <bruno@clisp.org>
53325
53326         * modules/vdprintf-posix-tests: New file.
53327         * tests/test-vdprintf-posix.sh: New file.
53328         * tests/test-vdprintf-posix.c: New file.
53329
53330         New modules 'vdprintf', 'vdprintf-posix'.
53331         * lib/stdio.in.h (vdprintf): New declaration.
53332         * lib/vdprintf.c: New file.
53333         * m4/vdprintf.m4: New file.
53334         * m4/vdprintf-posix.m4: New file.
53335         * modules/vdprintf: New file.
53336         * modules/vdprintf-posix: New file.
53337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53338         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53339         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53340         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53341         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53342
53343 2009-01-17  Bruno Haible  <bruno@clisp.org>
53344
53345         Fix replacement of fopen on mingw.
53346         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53347         mingw.
53348
53349 2009-01-17  Bruno Haible  <bruno@clisp.org>
53350
53351         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53352         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53353
53354 2009-01-17  Bruno Haible  <bruno@clisp.org>
53355
53356         Avoid test-fflush2.sh failure on mingw.
53357         * tests/test-fflush2.c: Include binary-io.h.
53358         (main): Put standard input into binary mode.
53359         * modules/fflush-tests (Depends-on): Add binary-io.
53360
53361 2009-01-17  Bruno Haible  <bruno@clisp.org>
53362
53363         * lib/wchar.in.h: In another particular situation, include only the
53364         system's <wchar.h> file.
53365         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53366         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53367         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53368
53369 2009-01-17  Bruno Haible  <bruno@clisp.org>
53370
53371         Support for stripping executables in --enable-relocatable.
53372         * build-aux/install-reloc: Expect one more argument, or an environment
53373         variable RELOC_STRIP_PROG. If set, strip the destination program and
53374         its wrapper.
53375         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53376         RELOC_STRIP_PROG.
53377         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53378         to set RELOCATABLE_STRIP.
53379         * NEWS: Mention the new Makefile requirement.
53380
53381 2009-01-17  Bruno Haible  <bruno@clisp.org>
53382
53383         * build-aux/install-reloc: Remove debugging information left over by
53384         C compiler on MacOS X.
53385
53386 2009-01-17  Bruno Haible  <bruno@clisp.org>
53387
53388         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53389         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53390         _NSGetExecutablePath.
53391
53392 2009-01-16  Jim Meyering  <meyering@redhat.com>
53393
53394         strerror: avoid warnings about discarding "const"
53395         * lib/strerror.c (rpl_strerror): Instead of returning a const
53396         string from each and every "case", use a variable, and add a single
53397         cast after the switch.
53398
53399 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53400
53401         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53402
53403 2009-01-16  Bruno Haible  <bruno@clisp.org>
53404
53405         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53406         array initializer syntax that also works in C++ mode.
53407         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53408
53409 2009-01-16  Jim Meyering  <meyering@redhat.com>
53410
53411         poll: suppress a warning
53412         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53413         to ignore "...unsigned expression < 0 is always false" warnings.
53414
53415 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53416
53417         poll: remove declarations of unused variables
53418         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53419         sockbuf and optlen.
53420
53421 2009-01-15  Bruno Haible  <bruno@clisp.org>
53422
53423         Make fflush-after-ungetc POSIX compliant on BSD systems.
53424         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53425         (clear_ungetc_buffer): Implement also for other systems.
53426         (rpl_fflush): On glibc systems, invoke
53427         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53428         clear_ungetc_buffer after fetching the stream's position, not before.
53429
53430 2009-01-15  Bruno Haible  <bruno@clisp.org>
53431
53432         Make fflush-after-ungetc POSIX compliant on glibc systems.
53433         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53434         after ungetc.
53435         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53436         (rpl_fflush): On glibc systems, simply call the system's fflush
53437         function after clearing the ungetc buffer.
53438         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53439         Instead, lseek only to the end of file, then use the system's fseeko
53440         for the rest. On glibc systems, reset the EOF indicator bit.
53441
53442 2009-01-15  Jim Meyering  <meyering@redhat.com>
53443
53444         openmp.m4: revert quote-adding change, for portability to older autoconf
53445         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53446         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53447         Simon Josefsson noticed the problem when using autoconf-2.61.
53448
53449 2009-01-15  Bruno Haible  <bruno@clisp.org>
53450
53451         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53452         * tests/test-fflush2.c (ASSERT): Always fail.
53453         (main): Add two tests for fflush() after ungetc(), taking into account
53454         the Austin Group's clarification.
53455         Suggested by Eric Blake.
53456
53457 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53458
53459         mktime.m4: remove K&R-style function prototypes
53460         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53461         for the Sun C++ compiler.
53462
53463 2009-01-14  Bruno Haible  <bruno@clisp.org>
53464
53465         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53466         while including <wchar.h>.
53467         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53468         the system's <wchar.h> file.
53469         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53470
53471 2009-01-14  Bruno Haible  <bruno@clisp.org>
53472
53473         * m4/csharp.m4: Don't mention gettext on the serial number line.
53474         * m4/csharpexec.m4: Likewise.
53475         * m4/eaccess.m4: Likewise.
53476         * m4/javaexec.m4: Likewise.
53477         * m4/sig_atomic_t.m4: Likewise.
53478         * m4/tmpdir.m4: Likewise.
53479         * m4/intldir.m4: Bump gettext version.
53480         * m4/lib-ld.m4: Likewise.
53481
53482 2009-01-14  Bruno Haible  <bruno@clisp.org>
53483
53484         * lib/progname.c (set_program_name): Add more comments.
53485         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53486
53487 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53488
53489         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53490         were sys/stat.h does not define it.
53491
53492 2009-01-14  Jim Meyering  <meyering@redhat.com>
53493
53494         many *.m4 files: improve m4 quoting
53495         99% of this change was performed by running the following commands:
53496         git ls-files | grep '\.m4$' | xargs perl -pi \
53497           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53498           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53499           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53500           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53501         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53502         The remainder were to add Copyright dates, increment serial numbers,
53503         undo some changes in comments, exclude m4/intl.m4, and add quotes
53504         around the "1" in ",1" where the unusual spacing prohibited the
53505         above regexps from doing the job.  For more details, see
53506         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53507         * m4/acl.m4: Modified.
53508         * m4/afs.m4: Likewise.
53509         * m4/alloca.m4: Likewise.
53510         * m4/argp.m4: Likewise.
53511         * m4/argz.m4: Likewise.
53512         * m4/atexit.m4: Likewise.
53513         * m4/bison-i18n.m4: Likewise.
53514         * m4/bison.m4: Likewise.
53515         * m4/byteswap.m4: Likewise.
53516         * m4/c-stack.m4: Likewise.
53517         * m4/c-strtod.m4: Likewise.
53518         * m4/calloc.m4: Likewise.
53519         * m4/canonicalize-lgpl.m4: Likewise.
53520         * m4/chown.m4: Likewise.
53521         * m4/clock_time.m4: Likewise.
53522         * m4/codeset.m4: Likewise.
53523         * m4/copy-file.m4: Likewise.
53524         * m4/csharp.m4: Likewise.
53525         * m4/csharpcomp.m4: Likewise.
53526         * m4/csharpexec.m4: Likewise.
53527         * m4/d-ino.m4: Likewise.
53528         * m4/d-type.m4: Likewise.
53529         * m4/dirfd.m4: Likewise.
53530         * m4/double-slash-root.m4: Likewise.
53531         * m4/eaccess.m4: Likewise.
53532         * m4/eealloc.m4: Likewise.
53533         * m4/environ.m4: Likewise.
53534         * m4/errno_h.m4: Likewise.
53535         * m4/euidaccess.m4: Likewise.
53536         * m4/execute.m4: Likewise.
53537         * m4/fatal-signal.m4: Likewise.
53538         * m4/fchdir.m4: Likewise.
53539         * m4/fcntl_h.m4: Likewise.
53540         * m4/fileblocks.m4: Likewise.
53541         * m4/filenamecat.m4: Likewise.
53542         * m4/findprog.m4: Likewise.
53543         * m4/flexmember.m4: Likewise.
53544         * m4/fnmatch.m4: Likewise.
53545         * m4/fopen.m4: Likewise.
53546         * m4/fpending.m4: Likewise.
53547         * m4/fprintf-posix.m4: Likewise.
53548         * m4/free.m4: Likewise.
53549         * m4/frexp.m4: Likewise.
53550         * m4/frexpl.m4: Likewise.
53551         * m4/fsusage.m4: Likewise.
53552         * m4/ftruncate.m4: Likewise.
53553         * m4/gc-camellia.m4: Likewise.
53554         * m4/gc-random.m4: Likewise.
53555         * m4/gc.m4: Likewise.
53556         * m4/getaddrinfo.m4: Likewise.
53557         * m4/getcwd-abort-bug.m4: Likewise.
53558         * m4/getcwd-path-max.m4: Likewise.
53559         * m4/getdate.m4: Likewise.
53560         * m4/getdomainname.m4: Likewise.
53561         * m4/getgroups.m4: Likewise.
53562         * m4/gethostname.m4: Likewise.
53563         * m4/gethrxtime.m4: Likewise.
53564         * m4/getline.m4: Likewise.
53565         * m4/getloadavg.m4: Likewise.
53566         * m4/getndelim2.m4: Likewise.
53567         * m4/getpass.m4: Likewise.
53568         * m4/gettext.m4: Likewise.
53569         * m4/gettime.m4: Likewise.
53570         * m4/gettimeofday.m4: Likewise.
53571         * m4/gnulib-common.m4: Likewise.
53572         * m4/group-member.m4: Likewise.
53573         * m4/host-os.m4: Likewise.
53574         * m4/iconv.m4: Likewise.
53575         * m4/iconv_open.m4: Likewise.
53576         * m4/inet_ntop.m4: Likewise.
53577         * m4/inet_pton.m4: Likewise.
53578         * m4/inline.m4: Likewise.
53579         * m4/intldir.m4: Likewise.
53580         * m4/intlmacosx.m4: Likewise.
53581         * m4/intmax.m4: Likewise.
53582         * m4/intmax_t.m4: Likewise.
53583         * m4/inttypes.m4: Likewise.
53584         * m4/inttypes_h.m4: Likewise.
53585         * m4/inttypes-pri.m4: Likewise.
53586         * m4/isapipe.m4: Likewise.
53587         * m4/isnand.m4: Likewise.
53588         * m4/isnanf.m4: Likewise.
53589         * m4/isnanl.m4: Likewise.
53590         * m4/javacomp.m4: Likewise.
53591         * m4/javaexec.m4: Likewise.
53592         * m4/jm-winsz1.m4: Likewise.
53593         * m4/jm-winsz2.m4: Likewise.
53594         * m4/lchown.m4: Likewise.
53595         * m4/lcmessage.m4: Likewise.
53596         * m4/ldexpl.m4: Likewise.
53597         * m4/lib-ld.m4: Likewise.
53598         * m4/lib-link.m4: Likewise.
53599         * m4/libsigsegv.m4: Likewise.
53600         * m4/link-follow.m4: Likewise.
53601         * m4/localcharset.m4: Likewise.
53602         * m4/locale-fr.m4: Likewise.
53603         * m4/locale-ja.m4: Likewise.
53604         * m4/locale-tr.m4: Likewise.
53605         * m4/locale-zh.m4: Likewise.
53606         * m4/lock.m4: Likewise.
53607         * m4/longlong.m4: Likewise.
53608         * m4/ls-mntd-fs.m4: Likewise.
53609         * m4/lstat.m4: Likewise.
53610         * m4/malloc.m4: Likewise.
53611         * m4/mathl.m4: Likewise.
53612         * m4/mbrtowc.m4: Likewise.
53613         * m4/mbstate_t.m4: Likewise.
53614         * m4/mbswidth.m4: Likewise.
53615         * m4/memchr.m4: Likewise.
53616         * m4/memcmp.m4: Likewise.
53617         * m4/memcpy.m4: Likewise.
53618         * m4/memmem.m4: Likewise.
53619         * m4/memmove.m4: Likewise.
53620         * m4/mempcpy.m4: Likewise.
53621         * m4/memrchr.m4: Likewise.
53622         * m4/memset.m4: Likewise.
53623         * m4/minmax.m4: Likewise.
53624         * m4/mkdir-slash.m4: Likewise.
53625         * m4/mkdtemp.m4: Likewise.
53626         * m4/mktime.m4: Likewise.
53627         * m4/mmap-anon.m4: Likewise.
53628         * m4/mountlist.m4: Likewise.
53629         * m4/nanosleep.m4: Likewise.
53630         * m4/nls.m4: Likewise.
53631         * m4/nocrash.m4: Likewise.
53632         * m4/open.m4: Likewise.
53633         * m4/openat.m4: Likewise.
53634         * m4/openmp.m4: Likewise.
53635         * m4/pathmax.m4: Likewise.
53636         * m4/perl.m4: Likewise.
53637         * m4/physmem.m4: Likewise.
53638         * m4/pipe.m4: Likewise.
53639         * m4/po.m4: Likewise.
53640         * m4/poll.m4: Likewise.
53641         * m4/posixtm.m4: Likewise.
53642         * m4/posixver.m4: Likewise.
53643         * m4/printf-frexp.m4: Likewise.
53644         * m4/printf-frexpl.m4: Likewise.
53645         * m4/printf-posix.m4: Likewise.
53646         * m4/printf-posix-rpl.m4: Likewise.
53647         * m4/printf.m4: Likewise.
53648         * m4/progtest.m4: Likewise.
53649         * m4/putenv.m4: Likewise.
53650         * m4/readline.m4: Likewise.
53651         * m4/readlink.m4: Likewise.
53652         * m4/readutmp.m4: Likewise.
53653         * m4/realloc.m4: Likewise.
53654         * m4/regex.m4: Likewise.
53655         * m4/relocatable.m4: Likewise.
53656         * m4/relocatable-lib.m4: Likewise.
53657         * m4/rename-dest-slash.m4: Likewise.
53658         * m4/rename.m4: Likewise.
53659         * m4/rmdir-errno.m4: Likewise.
53660         * m4/rmdir.m4: Likewise.
53661         * m4/roundf.m4: Likewise.
53662         * m4/roundl.m4: Likewise.
53663         * m4/rpmatch.m4: Likewise.
53664         * m4/save-cwd.m4: Likewise.
53665         * m4/selinux-selinux-h.m4: Likewise.
53666         * m4/setenv.m4: Likewise.
53667         * m4/settime.m4: Likewise.
53668         * m4/sig2str.m4: Likewise.
53669         * m4/sig_atomic_t.m4: Likewise.
53670         * m4/signalblocking.m4: Likewise.
53671         * m4/signbit.m4: Likewise.
53672         * m4/sigpipe.m4: Likewise.
53673         * m4/sockets.m4: Likewise.
53674         * m4/sockpfaf.m4: Likewise.
53675         * m4/st_dm_mode.m4: Likewise.
53676         * m4/stat-time.m4: Likewise.
53677         * m4/stdbool.m4: Likewise.
53678         * m4/stdint.m4: Likewise.
53679         * m4/stdint_h.m4: Likewise.
53680         * m4/stpcpy.m4: Likewise.
53681         * m4/stpncpy.m4: Likewise.
53682         * m4/strcase.m4: Likewise.
53683         * m4/strchrnul.m4: Likewise.
53684         * m4/strcspn.m4: Likewise.
53685         * m4/strdup.m4: Likewise.
53686         * m4/strftime.m4: Likewise.
53687         * m4/strndup.m4: Likewise.
53688         * m4/strnlen.m4: Likewise.
53689         * m4/strpbrk.m4: Likewise.
53690         * m4/strptime.m4: Likewise.
53691         * m4/strsep.m4: Likewise.
53692         * m4/strtod.m4: Likewise.
53693         * m4/strtoimax.m4: Likewise.
53694         * m4/strtok_r.m4: Likewise.
53695         * m4/strtol.m4: Likewise.
53696         * m4/strtoll.m4: Likewise.
53697         * m4/strtoul.m4: Likewise.
53698         * m4/strtoull.m4: Likewise.
53699         * m4/strtoumax.m4: Likewise.
53700         * m4/strverscmp.m4: Likewise.
53701         * m4/threadlib.m4: Likewise.
53702         * m4/timegm.m4: Likewise.
53703         * m4/tm_gmtoff.m4: Likewise.
53704         * m4/tmpdir.m4: Likewise.
53705         * m4/tmpfile.m4: Likewise.
53706         * m4/tzset.m4: Likewise.
53707         * m4/uintmax_t.m4: Likewise.
53708         * m4/unlinkdir.m4: Likewise.
53709         * m4/unlocked-io.m4: Likewise.
53710         * m4/uptime.m4: Likewise.
53711         * m4/userspec.m4: Likewise.
53712         * m4/utimbuf.m4: Likewise.
53713         * m4/utime.m4: Likewise.
53714         * m4/utimes-null.m4: Likewise.
53715         * m4/utimes.m4: Likewise.
53716         * m4/vararrays.m4: Likewise.
53717         * m4/vasnprintf.m4: Likewise.
53718         * m4/vfprintf-posix.m4: Likewise.
53719         * m4/vprintf-posix.m4: Likewise.
53720         * m4/wait-process.m4: Likewise.
53721         * m4/wchar_t.m4: Likewise.
53722         * m4/wint_t.m4: Likewise.
53723         * m4/write-any-file.m4: Likewise.
53724         * m4/yield.m4: Likewise.
53725
53726 2009-01-13  Bruno Haible  <bruno@clisp.org>
53727
53728         Avoid test-copy-file.sh failures when ACL support insufficient.
53729         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53730         TESTS_ENVIRONMENT.
53731         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53732         Reported by Jim Meyering.
53733
53734 2009-01-13  Bruno Haible  <bruno@clisp.org>
53735
53736         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53737         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53738         * modules/unistdio/u8-printf-parse (Files): Likewise.
53739         * modules/unistdio/u32-printf-parse (Files): Likewise.
53740         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53741
53742 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53743
53744         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53745         and m4/inttypes_h.m4 too.
53746
53747 2009-01-12  Eric Blake  <ebb9@byu.net>
53748
53749         tests: IRIX 6.2 cc can't compile -0.0 into .data
53750         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53751         rather than at compile-time.
53752         * tests/test-floorl.c (minus_zero): Likewise.
53753         * tests/test-frexpl.c (minus_zero): Likewise.
53754         * tests/test-isnan.c (minus_zerol): Likewise.
53755         * tests/test-isnanl.h (minus_zero): Likewise.
53756         * tests/test-ldexpl.c (minus_zero): Likewise.
53757         * tests/test-roundl.c (minus_zero): Likewise.
53758         * tests/test-signbit.c (minus_zerol): Likewise.
53759         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53760         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53761         * tests/test-truncl.c (minus_zero): Likewise.
53762         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53763         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53764         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53765
53766 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53767
53768         regex: fix glibc bug 9697
53769         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53770         handling.
53771
53772 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53773
53774         regex: fix glibc bug 697
53775         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53776         being NULL also if there are no backreferences.
53777
53778 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53779
53780         regex: merge glibc changes
53781         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53782         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53783         re_string_skip_chars, re_string_reconstruct): Likewise.
53784         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53785
53786 2009-01-07  Jim Meyering  <meyering@redhat.com>
53787
53788         poll: filter through cppi
53789         * lib/poll.c: Indent cpp directives to reflect nesting.
53790
53791 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53792
53793         poll: don't return uninitialized
53794         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53795
53796 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53797
53798         avoid compile failure on AIX 6.1
53799         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53800         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53801
53802 2009-01-04  Jim Meyering  <meyering@redhat.com>
53803
53804         remove duplicate inclusion of <stdio.h>
53805         * tests/test-fprintf-posix.c: Likewise.
53806         * tests/test-printf-posix.c: Likewise.
53807         * tests/test-snprintf-posix.c: Likewise.
53808         * tests/test-sprintf-posix.c: Likewise.
53809         * tests/test-vasprintf-posix.c: Likewise.
53810         * tests/test-vfprintf-posix.c: Likewise.
53811         * tests/test-vprintf-posix.c: Likewise.
53812         * tests/test-vsnprintf-posix.c: Likewise.
53813         * tests/test-vsprintf-posix.c: Likewise.
53814
53815 2009-01-03  Jim Meyering  <meyering@redhat.com>
53816
53817         gnulib-tool: fix sed-based filtering
53818         * gnulib-tool (func_filter_filelist): Remove extra backslash
53819         in sed_fff_filter definition.
53820
53821 2009-01-02  Jim Meyering  <meyering@redhat.com>
53822
53823         strftime: avoid compilation failure on Solaris 2.6
53824         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53825         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53826         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53827         be available.  Reported by Tom G. Christensen.  Details in
53828         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53829
53830 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53831             Bruno Haible  <bruno@clisp.org>
53832
53833         Speed up gnulib-tool by doing more string processing through shell
53834         built-ins.
53835         * gnulib-tool (fast_func_append): New variable.
53836         (func_remove_prefix, func_remove_suffix): New functions.
53837         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53838         (func_filter_filelist): New function.
53839         (func_get_dependencies): Use func_remove_suffix instead of sed.
53840         (func_get_automake_snippet): Use func_filter_filelist instead of a
53841         subshell and sed invocation.
53842
53843 2009-01-01  Bruno Haible  <bruno@clisp.org>
53844
53845         Fix a security bug.
53846         * gnulib-tool (func_import, import, update): Don't allow the characters
53847         '"', '$', '`', '\' in macro arguments that become part of commands that
53848         are evaluated.
53849
53850 2009-01-01  Bruno Haible  <bruno@clisp.org>
53851
53852         * gnulib-tool (func_reset_sigpipe): Add more comments.
53853
53854 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53855
53856         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53857         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53858         already know the answer.
53859
53860 2009-01-01  Jim Meyering  <meyering@redhat.com>
53861
53862         * lib/version-etc.c (version_etc_va): Update copyright year.
53863
53864 2008-12-30  Bruno Haible  <bruno@clisp.org>
53865
53866         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53867         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53868         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53869
53870 2008-12-29  Eric Blake  <ebb9@byu.net>
53871
53872         multiarch: avoid autoconf AC_REQUIRE bug
53873         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53874         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53875         2.63 and older.
53876         Reported by Bruno Haible, and analyzed in
53877         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53878
53879 2008-12-29  Bruno Haible  <bruno@clisp.org>
53880
53881         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53882         files in subdirectories correctly.
53883         Reported by Ralf Wildenhues.
53884
53885 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53886
53887         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53888         rather than 'join FILE -', for Solaris join.
53889
53890 2008-12-29  Bruno Haible  <bruno@clisp.org>
53891
53892         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53893         quoting.
53894         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53895         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53896         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53897         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53898         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53899         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53900         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53901         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53902         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53903         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53904         * m4/nls.m4 (AM_NLS): Likewise.
53905         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53906         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53907         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53908         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53909         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53910         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53911         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53912         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53913         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53914         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53915         * m4/xsize.m4 (gl_XSIZE): Likewise.
53916         Suggested by Jim Meyering.
53917
53918 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53919
53920         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53921         * lib/parse-duration.c: use a switch instead of cascading if's.
53922
53923 2008-12-29  Eric Blake  <ebb9@byu.net>
53924
53925         wchar.h: supply WEOF on Irix 5.3
53926         * lib/wchar.in.h (wint_t): Also supply WEOF.
53927         * lib/wctype.in.h (wint_t): Likewise.
53928         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53929         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53930         Reported by Tom G. Christensen.
53931
53932 2008-12-26  Bruno Haible  <bruno@clisp.org>
53933
53934         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53935         i486, i586, i686.
53936
53937 2008-12-26  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53940
53941 2008-12-26  Bruno Haible  <bruno@clisp.org>
53942
53943         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53944         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53945         not __STDC_CONSTANT_MACROS.
53946         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53947
53948 2008-12-25  Bruno Haible  <bruno@clisp.org>
53949
53950         Add support for universal builds to vasnprintf.
53951         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53952         universal builds, guess no.
53953         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53954         * modules/vasprintf-posix (Depends-on): Likewise.
53955         * modules/fprintf-posix (Depends-on): Likewise.
53956         * modules/vfprintf-posix (Depends-on): Likewise.
53957         * modules/snprintf-posix (Depends-on): Likewise.
53958         * modules/vsnprintf-posix (Depends-on): Likewise.
53959         * modules/sprintf-posix (Depends-on): Likewise.
53960         * modules/vsprintf-posix (Depends-on): Likewise.
53961         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53962         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53963         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53964         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53965         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53966         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53967         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53968
53969         Add support for universal builds to <inttypes.h>.
53970         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53971         _SCNu64_PREFIX): In Apple
53972         universal builds, define directly, using _LP64.
53973         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53974         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53975         * modules/inttypes (Depends-on): Add multiarch.
53976         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53977
53978         Add support for universal builds to <stdint.h>.
53979         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53980         universal builds, define directly, using _LP64.
53981         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53982         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53983         and size_t.
53984         * modules/stdint (Depends-on): Add multiarch.
53985         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53986
53987         New module 'multiarch'.
53988         * modules/multiarch: New file.
53989         * m4/multiarch.m4: New file.
53990
53991 2008-12-25  Bruno Haible  <bruno@clisp.org>
53992
53993         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53994
53995 2008-12-25  Bruno Haible  <bruno@clisp.org>
53996
53997         * modules/btowc (License): Relicense under LGPLv2+.
53998         * modules/mbsinit (License): Likewise.
53999         * modules/mbrtowc (License): Likewise.
54000         * modules/wcrtomb (License): Likewise.
54001         * modules/streq (License): Likewise.
54002         Reported by David Lutterkort <lutter@redhat.com>.
54003
54004 2008-12-23  Bruno Haible  <bruno@clisp.org>
54005
54006         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
54007
54008 2008-12-23  Bruno Haible  <bruno@clisp.org>
54009
54010         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
54011         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
54012         GETADDRINFO_LIB, not in LIBS.
54013         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
54014         * modules/canon-host (Link): Likewise.
54015         * NEWS: Mention the change.
54016         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
54017         GETADDRINFO_LIB.
54018
54019 2008-12-22  Bruno Haible  <bruno@clisp.org>
54020
54021         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
54022         * doc/posix-functions/iswalpha_l.texi: Likewise.
54023         * doc/posix-functions/iswblank_l.texi: Likewise.
54024         * doc/posix-functions/iswcntrl_l.texi: Likewise.
54025         * doc/posix-functions/iswctype_l.texi: Likewise.
54026         * doc/posix-functions/iswdigit_l.texi: Likewise.
54027         * doc/posix-functions/iswgraph_l.texi: Likewise.
54028         * doc/posix-functions/iswlower_l.texi: Likewise.
54029         * doc/posix-functions/iswprint_l.texi: Likewise.
54030         * doc/posix-functions/iswpunct_l.texi: Likewise.
54031         * doc/posix-functions/iswspace_l.texi: Likewise.
54032         * doc/posix-functions/iswupper_l.texi: Likewise.
54033         * doc/posix-functions/iswxdigit_l.texi: Likewise.
54034         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
54035         * doc/posix-functions/open_wmemstream.texi: Likewise.
54036         * doc/posix-functions/swscanf.texi: Likewise.
54037         * doc/posix-functions/towctrans_l.texi: Likewise.
54038         * doc/posix-functions/towlower.texi: Likewise.
54039         * doc/posix-functions/towlower_l.texi: Likewise.
54040         * doc/posix-functions/towupper.texi: Likewise.
54041         * doc/posix-functions/towupper_l.texi: Likewise.
54042         * doc/posix-functions/vfwprintf.texi: Likewise.
54043         * doc/posix-functions/vfwscanf.texi: Likewise.
54044         * doc/posix-functions/vswscanf.texi: Likewise.
54045         * doc/posix-functions/vwprintf.texi: Likewise.
54046         * doc/posix-functions/vwscanf.texi: Likewise.
54047         * doc/posix-functions/wcpcpy.texi: Likewise.
54048         * doc/posix-functions/wcpncpy.texi: Likewise.
54049         * doc/posix-functions/wcscasecmp.texi: Likewise.
54050         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
54051         * doc/posix-functions/wcscoll_l.texi: Likewise.
54052         * doc/posix-functions/wcsdup.texi: Likewise.
54053         * doc/posix-functions/wcsncasecmp.texi: Likewise.
54054         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
54055         * doc/posix-functions/wcsnlen.texi: Likewise.
54056         * doc/posix-functions/wcsnrtombs.texi: Likewise.
54057         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
54058         * doc/posix-functions/wctrans_l.texi: Likewise.
54059         * doc/posix-functions/wctype_l.texi: Likewise.
54060         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
54061         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
54062         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
54063         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
54064         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
54065         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
54066         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
54067         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
54068         * doc/glibc-functions/wcschrnul.texi: Likewise.
54069         * doc/glibc-functions/wcsftime_l.texi: Likewise.
54070         * doc/glibc-functions/wcstod_l.texi: Likewise.
54071         * doc/glibc-functions/wcstof_l.texi: Likewise.
54072         * doc/glibc-functions/wcstol_l.texi: Likewise.
54073         * doc/glibc-functions/wcstold_l.texi: Likewise.
54074         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54075         * doc/glibc-functions/wcstoq.texi: Likewise.
54076         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54077         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54078         * doc/glibc-functions/wcstouq.texi: Likewise.
54079         * doc/glibc-functions/wmempcpy.texi: Likewise.
54080
54081 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
54082             Eric Blake  <ebb9@byu.net>
54083             Paolo Bonzini  <bonzini@gnu.org>
54084             Bruno Haible  <bruno@clisp.org>
54085
54086         Make c-stack work on Haiku.
54087         * lib/c-stack.c (SA_ONSTACK): Define fallback.
54088         (c_stack_action): Use SA_ONSTACK flag.
54089
54090 2008-12-22  Bruno Haible  <bruno@clisp.org>
54091
54092         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
54093
54094 2008-12-22  Bruno Haible  <bruno@clisp.org>
54095
54096         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
54097         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
54098         being overridden.
54099         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
54100         New macros.
54101         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
54102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
54103         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
54104         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
54105
54106 2008-12-22  Bruno Haible  <bruno@clisp.org>
54107
54108         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
54109         from test code.
54110
54111 2008-12-22  Eric Blake  <ebb9@byu.net>
54112
54113         Avoid gcc warnings on cygwin.
54114         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
54115         Avoid unused variable.
54116         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
54117         Likewise.
54118
54119 2008-12-22  Bruno Haible  <bruno@clisp.org>
54120
54121         Remove HAVE_MBRTOWC conditionals.
54122         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
54123         (mbscasecmp): Assume mbrtowc function.
54124         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
54125         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
54126         * lib/mbschr.c: Include mbuiter.h unconditionally.
54127         (mbschr): Assume mbrtowc function.
54128         * lib/mbscspn.c: Include mbuiter.h unconditionally.
54129         (mbscspn): Assume mbrtowc function.
54130         * lib/mbslen.c: Include mbuiter.h unconditionally.
54131         (mbslen): Assume mbrtowc function.
54132         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
54133         (mbsncasecmp): Assume mbrtowc function.
54134         * lib/mbsnlen.c: Include mbiter.h unconditionally.
54135         (mbsnlen): Assume mbrtowc function.
54136         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
54137         (mbspbrk): Assume mbrtowc function.
54138         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
54139         (mbspcasecmp): Assume mbrtowc function.
54140         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
54141         (mbsrchr): Assume mbrtowc function.
54142         * lib/mbssep.c: Include mbuiter.h unconditionally.
54143         (mbssep): Assume mbrtowc function.
54144         * lib/mbsspn.c: Include mbuiter.h unconditionally.
54145         (mbsspn): Assume mbrtowc function.
54146         * lib/mbsstr.c: Include mbuiter.h unconditionally.
54147         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
54148         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
54149         (mbstok_r): Assume mbrtowc function.
54150         * lib/propername.c: Include mbuiter.h unconditionally.
54151         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
54152         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
54153         (trim2): Assume mbrtowc function.
54154         * lib/mbswidth.c (mbsinit): Remove fallback definition.
54155         (mbsnwidth): Assume mbrtowc function.
54156         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
54157         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
54158         fallback definitions.
54159         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
54160
54161 2008-12-22  Bruno Haible  <bruno@clisp.org>
54162
54163         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
54164
54165 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
54166
54167         * modules/regex: Request emulations for the mb*/wc* functions we need.
54168         * m4/regex.m4: Don't look for those functions here.
54169         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
54170
54171 2008-12-22  Bruno Haible  <bruno@clisp.org>
54172
54173         * modules/fnmatch (Depends-on): Remove duplicated dependency.
54174
54175 2008-12-21  Bruno Haible  <bruno@clisp.org>
54176
54177         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
54178         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
54179         (Include): Remove conditionalization.
54180         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
54181         (Include): Remove conditionalization.
54182         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
54183         (Include): Remove conditionalization.
54184         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
54185         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54186         * NEWS: Mention the change.
54187         Reported by Alan Hourihane <alanh@fairlite.co.uk>
54188         via Sergey Poznyakoff <gray@gnu.org.ua>.
54189
54190 2008-12-21  Bruno Haible  <bruno@clisp.org>
54191
54192         * MODULES.html.sh (Extended multibyte and wide character utilities
54193         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
54194         wcrtomb, wcsrtombs.
54195         (Support for systems lacking POSIX:2008): Add accept, bind, close,
54196         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
54197         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
54198         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
54199
54200 2008-12-21  Bruno Haible  <bruno@clisp.org>
54201
54202         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
54203
54204 2008-12-21  Bruno Haible  <bruno@clisp.org>
54205
54206         * modules/wcsnrtombs-tests: New file.
54207         * tests/test-wcsnrtombs1.sh: New file.
54208         * tests/test-wcsnrtombs2.sh: New file.
54209         * tests/test-wcsnrtombs3.sh: New file.
54210         * tests/test-wcsnrtombs4.sh: New file.
54211         * tests/test-wcsnrtombs.c: New file.
54212
54213         New module 'wcsnrtombs'.
54214         * lib/wchar.in.h (wcsnrtombs): New declaration.
54215         * lib/wcsnrtombs.c: New file.
54216         * lib/wcsrtombs-state.c: New file.
54217         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54218         (internal_state): Remove variable.
54219         * m4/wcsnrtombs.m4: New file.
54220         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54221         compilation units.
54222         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54223         HAVE_WCSNRTOMBS.
54224         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54225         HAVE_WCSNRTOMBS.
54226         * modules/wcsnrtombs: New file.
54227         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54228         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54229
54230 2008-12-21  Bruno Haible  <bruno@clisp.org>
54231
54232         * modules/wcsrtombs-tests: New file.
54233         * tests/test-wcsrtombs1.sh: New file.
54234         * tests/test-wcsrtombs2.sh: New file.
54235         * tests/test-wcsrtombs3.sh: New file.
54236         * tests/test-wcsrtombs4.sh: New file.
54237         * tests/test-wcsrtombs.c: New file.
54238
54239         New module 'wcsrtombs'.
54240         * lib/wchar.in.h (wcsrtombs): New declaration.
54241         * lib/wcsrtombs.c: New file.
54242         * m4/wcsrtombs.m4: New file.
54243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54244         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54246         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54247         * modules/wcsrtombs: New file.
54248         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54249         bugs.
54250
54251 2008-12-21  Bruno Haible  <bruno@clisp.org>
54252
54253         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54254         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54255         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54256         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54257         if not correct.
54258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54259         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54260         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54261         m4/locale-zh.m4, m4/codeset.m4.
54262         * doc/posix-functions/wcrtomb.texi: Document the bug.
54263
54264 2008-12-21  Bruno Haible  <bruno@clisp.org>
54265
54266         Work around a btowc() bug on IRIX 6.5.
54267         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54268         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54269         REPLACE_WTOBC if not.
54270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54271         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54272         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54273
54274 2008-12-21  Bruno Haible  <bruno@clisp.org>
54275
54276         * modules/wcrtomb-tests: New file.
54277         * tests/test-wcrtomb.sh: New file.
54278         * tests/test-wcrtomb.c: New file.
54279
54280         New module 'wcrtomb'.
54281         * lib/wchar.in.h (wcrtomb): New declaration.
54282         * lib/wcrtomb.c: New file.
54283         * m4/wcrtomb.m4: New file.
54284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54285         HAVE_WCRTOMB.
54286         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54287         HAVE_WCRTOMB.
54288         * modules/wcrtomb: New file.
54289         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54290
54291 2008-12-21  Bruno Haible  <bruno@clisp.org>
54292
54293         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54294         * modules/mbsrtowcs (Files): Likewise.
54295         * modules/wctob (Files): Likewise.
54296         * modules/c-strcase-tests (Files): Likewise.
54297         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54298         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54299         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54300         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54301         * modules/vasnprintf-posix-tests (Files): Likewise.
54302
54303 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54304
54305         gitlog-to-changelog: pass all command-line arguments to git-log
54306         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54307         it is sometimes convenient to filter the commits in various ways.
54308         gitlog-to-changelog only allows --since to specify a start date,
54309         but git-log itself supports many other filtering mechanisms.
54310         At the moment, I want to filter by branch name.  Rather than
54311         adding a --branch option to gitlog-to-changelog, it seems more
54312         flexible to simply pass all options directly to git-log and let
54313         git do the work.  Notice that this effectively makes --since a
54314         redundant option for gitlog-to-changelog, but removing it would
54315         require current usage to change since calls would then require
54316         an additional '--'.
54317
54318 2008-12-21  Bruno Haible  <bruno@clisp.org>
54319
54320         * modules/mbsnrtowcs-tests: New file.
54321         * tests/test-mbsnrtowcs1.sh: New file.
54322         * tests/test-mbsnrtowcs2.sh: New file.
54323         * tests/test-mbsnrtowcs3.sh: New file.
54324         * tests/test-mbsnrtowcs4.sh: New file.
54325         * tests/test-mbsnrtowcs.c: New file.
54326
54327         New module 'mbsnrtowcs'.
54328         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54329         * lib/mbsnrtowcs.c: New file.
54330         * lib/mbsrtowcs-state.c: New file.
54331         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54332         (internal_state): Remove variable.
54333         * m4/mbsnrtowcs.m4: New file.
54334         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54335         compilation units.
54336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54337         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54338         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54339         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54340         * modules/mbsnrtowcs: New file.
54341         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54342         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54343         portability problem.
54344
54345 2008-12-21  Bruno Haible  <bruno@clisp.org>
54346
54347         Work around mbsrtowcs bug.
54348         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54349         (gl_FUNC_MBSRTOWCS): Invoke it.
54350         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54351         m4/locale-zh.m4.
54352         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54353
54354 2008-12-21  Bruno Haible  <bruno@clisp.org>
54355
54356         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54357
54358 2008-12-21  Bruno Haible  <bruno@clisp.org>
54359
54360         Update doc for AIX.
54361         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54362         16-bit wchar_t type.
54363         * doc/posix-functions/btowc.texi: Likewise.
54364         * doc/posix-functions/fgetwc.texi: Likewise.
54365         * doc/posix-functions/fgetws.texi: Likewise.
54366         * doc/posix-functions/fputwc.texi: Likewise.
54367         * doc/posix-functions/fputws.texi: Likewise.
54368         * doc/posix-functions/fwide.texi: Likewise.
54369         * doc/posix-functions/fwprintf.texi: Likewise.
54370         * doc/posix-functions/fwscanf.texi: Likewise.
54371         * doc/posix-functions/getwchar.texi: Likewise.
54372         * doc/posix-functions/getwc.texi: Likewise.
54373         * doc/posix-functions/iswalnum.texi: Likewise.
54374         * doc/posix-functions/iswalpha.texi: Likewise.
54375         * doc/posix-functions/iswblank.texi: Likewise.
54376         * doc/posix-functions/iswcntrl.texi: Likewise.
54377         * doc/posix-functions/iswctype.texi: Likewise.
54378         * doc/posix-functions/iswdigit.texi: Likewise.
54379         * doc/posix-functions/iswgraph.texi: Likewise.
54380         * doc/posix-functions/iswlower.texi: Likewise.
54381         * doc/posix-functions/iswprint.texi: Likewise.
54382         * doc/posix-functions/iswpunct.texi: Likewise.
54383         * doc/posix-functions/iswspace.texi: Likewise.
54384         * doc/posix-functions/iswupper.texi: Likewise.
54385         * doc/posix-functions/iswxdigit.texi: Likewise.
54386         * doc/posix-functions/mbrtowc.texi: Likewise.
54387         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54388         * doc/posix-functions/mbstowcs.texi: Likewise.
54389         * doc/posix-functions/mbtowc.texi: Likewise.
54390         * doc/posix-functions/putwchar.texi: Likewise.
54391         * doc/posix-functions/putwc.texi: Likewise.
54392         * doc/posix-functions/swprintf.texi: Likewise.
54393         * doc/posix-functions/tolower.texi: Likewise.
54394         * doc/posix-functions/toupper.texi: Likewise.
54395         * doc/posix-functions/towctrans.texi: Likewise.
54396         * doc/posix-functions/ungetwc.texi: Likewise.
54397         * doc/posix-functions/vswprintf.texi: Likewise.
54398         * doc/posix-functions/wcrtomb.texi: Likewise.
54399         * doc/posix-functions/wcscat.texi: Likewise.
54400         * doc/posix-functions/wcschr.texi: Likewise.
54401         * doc/posix-functions/wcscmp.texi: Likewise.
54402         * doc/posix-functions/wcscoll.texi: Likewise.
54403         * doc/posix-functions/wcscpy.texi: Likewise.
54404         * doc/posix-functions/wcscspn.texi: Likewise.
54405         * doc/posix-functions/wcsftime.texi: Likewise.
54406         * doc/posix-functions/wcslen.texi: Likewise.
54407         * doc/posix-functions/wcsncat.texi: Likewise.
54408         * doc/posix-functions/wcsncmp.texi: Likewise.
54409         * doc/posix-functions/wcsncpy.texi: Likewise.
54410         * doc/posix-functions/wcspbrk.texi: Likewise.
54411         * doc/posix-functions/wcsrchr.texi: Likewise.
54412         * doc/posix-functions/wcsrtombs.texi: Likewise.
54413         * doc/posix-functions/wcsspn.texi: Likewise.
54414         * doc/posix-functions/wcsstr.texi: Likewise.
54415         * doc/posix-functions/wcstod.texi: Likewise.
54416         * doc/posix-functions/wcstof.texi: Likewise.
54417         * doc/posix-functions/wcstoimax.texi: Likewise.
54418         * doc/posix-functions/wcstok.texi: Likewise.
54419         * doc/posix-functions/wcstold.texi: Likewise.
54420         * doc/posix-functions/wcstoll.texi: Likewise.
54421         * doc/posix-functions/wcstol.texi: Likewise.
54422         * doc/posix-functions/wcstombs.texi: Likewise.
54423         * doc/posix-functions/wcstoull.texi: Likewise.
54424         * doc/posix-functions/wcstoul.texi: Likewise.
54425         * doc/posix-functions/wcstoumax.texi: Likewise.
54426         * doc/posix-functions/wcswidth.texi: Likewise.
54427         * doc/posix-functions/wcsxfrm.texi: Likewise.
54428         * doc/posix-functions/wctob.texi: Likewise.
54429         * doc/posix-functions/wctomb.texi: Likewise.
54430         * doc/posix-functions/wctrans.texi: Likewise.
54431         * doc/posix-functions/wctype.texi: Likewise.
54432         * doc/posix-functions/wcwidth.texi: Likewise.
54433         * doc/posix-functions/wmemchr.texi: Likewise.
54434         * doc/posix-functions/wmemcmp.texi: Likewise.
54435         * doc/posix-functions/wmemcpy.texi: Likewise.
54436         * doc/posix-functions/wmemmove.texi: Likewise.
54437         * doc/posix-functions/wmemset.texi: Likewise.
54438         * doc/posix-functions/wprintf.texi: Likewise.
54439         * doc/posix-functions/wscanf.texi: Likewise.
54440
54441 2008-12-21  Bruno Haible  <bruno@clisp.org>
54442
54443         Update doc for HP-UX 11.11.
54444         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54445         in HP-UX version 11.00, not in all versions of HP-UX 11.
54446         * doc/posix-functions/fwide.texi: Likewise.
54447         * doc/posix-functions/fwprintf.texi: Likewise.
54448         * doc/posix-functions/fwscanf.texi: Likewise.
54449         * doc/posix-functions/inet_ntop.texi: Likewise.
54450         * doc/posix-functions/inet_pton.texi: Likewise.
54451         * doc/posix-functions/mbrlen.texi: Likewise.
54452         * doc/posix-functions/mbrtowc.texi: Likewise.
54453         * doc/posix-functions/mbsinit.texi: Likewise.
54454         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54455         * doc/posix-functions/swprintf.texi: Likewise.
54456         * doc/posix-functions/swscanf.texi: Likewise.
54457         * doc/posix-functions/towctrans.texi: Likewise.
54458         * doc/posix-functions/vfwprintf.texi: Likewise.
54459         * doc/posix-functions/vswprintf.texi: Likewise.
54460         * doc/posix-functions/vwprintf.texi: Likewise.
54461         * doc/posix-functions/wcrtomb.texi: Likewise.
54462         * doc/posix-functions/wcsrtombs.texi: Likewise.
54463         * doc/posix-functions/wcsstr.texi: Likewise.
54464         * doc/posix-functions/wctob.texi: Likewise.
54465         * doc/posix-functions/wctrans.texi: Likewise.
54466         * doc/posix-functions/wmemchr.texi: Likewise.
54467         * doc/posix-functions/wmemcmp.texi: Likewise.
54468         * doc/posix-functions/wmemcpy.texi: Likewise.
54469         * doc/posix-functions/wmemmove.texi: Likewise.
54470         * doc/posix-functions/wmemset.texi: Likewise.
54471         * doc/posix-functions/wprintf.texi: Likewise.
54472         * doc/posix-functions/wscanf.texi: Likewise.
54473
54474 2008-12-21  Bruno Haible  <bruno@clisp.org>
54475
54476         Work around a portability problem.
54477         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54478         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54479
54480 2008-12-20  Bruno Haible  <bruno@clisp.org>
54481
54482         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54483         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54484         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54486         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54487
54488         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54489         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54490         set.
54491         (GNULIB_defined_mbstate_t): New macro.
54492         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54493         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54494         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54495         reuses the system's mbrtowc function but works around the bugs.
54496         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54497         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54498         macros.
54499         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54500         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54501         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54502         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54503         REPLACE_MBSINIT if mbsinit needs to be overridden.
54504         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54505         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54506         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54507         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54508         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54509         m4/locale-zh.m4.
54510         (Depends): Add mbsinit.
54511         * modules/mbsinit (Depends): Add mbrtowc.
54512         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54513
54514 2008-12-20  Bruno Haible  <bruno@clisp.org>
54515
54516         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54517         so that there are no conversion errors on AIX.
54518         * tests/test-mbsrtowcs.c (main): LIkewise.
54519
54520 2008-12-20  Bruno Haible  <bruno@clisp.org>
54521
54522         Work around wctob bug on Solaris <= 9.
54523         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54524         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54526         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54527         * modules/wctob (Files): Add m4/locale-fr.m4.
54528         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54529
54530 2008-12-20  Bruno Haible  <bruno@clisp.org>
54531
54532         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54533         /dev/null.
54534         * tests/test-select-in.sh: Likewise.
54535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54536
54537 2008-12-20  Bruno Haible  <bruno@clisp.org>
54538
54539         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54540         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54541         Cygwin 1.5.x.
54542
54543 2008-12-20  Bruno Haible  <bruno@clisp.org>
54544
54545         Ensure mbstate_t is defined on HP-UX 11.11.
54546         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54547         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54548         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54549         AC_USE_SYSTEM_EXTENSIONS.
54550         * modules/fnmatch (Depends-on): Add extensions.
54551         * modules/mbrlen (Depends-on): Likewise.
54552         * modules/mbrtowc (Depends-on): Likewise.
54553         * modules/mbsinit (Depends-on): Likewise.
54554         * modules/mbsrtowcs (Depends-on): Likewise.
54555         * modules/mbswidth (Depends-on): Likewise.
54556         * modules/quotearg (Depends-on): Likewise.
54557         * modules/strftime (Depends-on): Likewise.
54558
54559 2008-12-20  Bruno Haible  <bruno@clisp.org>
54560
54561         Ensure wctob is declared on IRIX 6.5.
54562         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54563         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54564         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54565         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54566         of HAVE_WCTOB.
54567         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54568         HAVE_WCTOB.
54569         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54570
54571 2008-12-19  Bruno Haible  <bruno@clisp.org>
54572
54573         * modules/mbsrtowcs-tests: New file.
54574         * tests/test-mbsrtowcs1.sh: New file.
54575         * tests/test-mbsrtowcs2.sh: New file.
54576         * tests/test-mbsrtowcs3.sh: New file.
54577         * tests/test-mbsrtowcs4.sh: New file.
54578         * tests/test-mbsrtowcs.c: New file.
54579
54580         New module 'mbsrtowcs'.
54581         * lib/wchar.in.h (mbsrtowcs): New declaration.
54582         * lib/mbsrtowcs.c: New file.
54583         * m4/mbsrtowcs.m4: New file.
54584         * modules/mbsrtowcs: New file.
54585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54586         HAVE_MBSRTOWCS.
54587         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54588         HAVE_MBSRTOWCS.
54589         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54590
54591 2008-12-19  Bruno Haible  <bruno@clisp.org>
54592
54593         New module 'mbrlen'.
54594         * lib/wchar.in.h (mbrlen): New declaration.
54595         * lib/mbrlen.c: New file.
54596         * m4/mbrlen.m4: New file.
54597         * modules/mbrlen: New file.
54598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54599         HAVE_MBRLEN.
54600         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54601         HAVE_MBRLEN.
54602         * doc/posix-functions/mbrlen.texi: Document the new module.
54603
54604 2008-12-19  Bruno Haible  <bruno@clisp.org>
54605
54606         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54607         * modules/mbrtowc (Depends-on): Add verify.
54608         Suggested by Paul Eggert.
54609
54610 2008-12-18  Bruno Haible  <bruno@clisp.org>
54611
54612         * modules/mbsinit-tests: New file.
54613         * tests/test-mbsinit.sh: New file.
54614         * tests/test-mbsinit.c: New file.
54615
54616 2008-12-18  Bruno Haible  <bruno@clisp.org>
54617
54618         * modules/mbrtowc-tests: New file.
54619         * tests/test-mbrtowc1.sh: New file.
54620         * tests/test-mbrtowc2.sh: New file.
54621         * tests/test-mbrtowc3.sh: New file.
54622         * tests/test-mbrtowc4.sh: New file.
54623         * tests/test-mbrtowc.c: New file.
54624
54625         New module 'mbrtowc'.
54626         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54627         mbsinit and mbrtowc.
54628         (mbrtowc): New declaration.
54629         * lib/mbrtowc.c: New file.
54630         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54631         * modules/mbrtowc: New file.
54632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54633         HAVE_MBRTOWC.
54634         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54635         HAVE_MBRTOWC.
54636         * doc/posix-functions/mbrtowc.texi: Document the new module.
54637
54638 2008-12-18  Bruno Haible  <bruno@clisp.org>
54639
54640         New module 'wctob'.
54641         * lib/wchar.in.h (wctob): New declaration.
54642         * lib/wctob.c: New file.
54643         * m4/wctob.m4: New file.
54644         * modules/wctob: New file.
54645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54646         HAVE_WCTOB.
54647         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54648         * doc/posix-functions/wctob.texi: Document the new module.
54649
54650 2008-12-18  Bruno Haible  <bruno@clisp.org>
54651
54652         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54653         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54654
54655 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54656
54657         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54658         G. Christensen" <tgc@jupiterrise.com>.
54659
54660         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54661         G. Christensen" <tgc@jupiterrise.com>.
54662
54663         * lib/flock.c: Need to include string.h.  Reported by "Tom
54664         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54665         <ebb9@byu.net>.
54666
54667 2008-12-18  Bruno Haible  <bruno@clisp.org>
54668
54669         * m4/locale-ja.m4: New file, from GNU gettext.
54670
54671 2008-12-17  Bruno Haible  <bruno@clisp.org>
54672
54673         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54674         Suggested by Eric Blake.
54675
54676 2008-12-17  Bruno Haible  <bruno@clisp.org>
54677
54678         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54679
54680 2008-12-17  Bruno Haible  <bruno@clisp.org>
54681
54682         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54683         * modules/mbsinit (Depends-on): Add verify.
54684         Suggested by Paul Eggert.
54685
54686 2008-12-17  Bruno Haible  <bruno@clisp.org>
54687
54688         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54689         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54690         gl_FUNC_MBRTOWC.
54691         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54692         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54693         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54694         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54695         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54696         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54697         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54698         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54699         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54700         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54701         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54702         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54703         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54704         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54705         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54706         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54707         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54708         * modules/trim (configure.ac): Likewise.
54709
54710 2008-12-17  Bruno Haible  <bruno@clisp.org>
54711
54712         * modules/btowc-tests: New file.
54713         * tests/test-btowc1.sh: New file.
54714         * tests/test-btowc2.sh: New file.
54715         * tests/test-btowc.c: New file.
54716
54717         New module 'btowc'.
54718         * lib/wchar.in.h (btowc): New declaration.
54719         * lib/btowc.c: New file.
54720         * m4/btowc.m4: New file.
54721         * modules/btowc: New file.
54722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54723         HAVE_BTOWC.
54724         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54725         * doc/posix-functions/btowc.texi: Document the new module.
54726
54727 2008-12-17  Bruno Haible  <bruno@clisp.org>
54728
54729         New module 'mbsinit'.
54730         * lib/wchar.in.h (mbsinit): New declaration.
54731         * lib/mbsinit.c: New file.
54732         * m4/mbsinit.m4: New file.
54733         * modules/mbsinit: New file.
54734         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54735         HAVE_MBSINIT.
54736         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54737         HAVE_MBSINIT.
54738         * doc/posix-functions/mbsinit.texi: Document the new module.
54739
54740 2008-12-16  Bruno Haible  <bruno@clisp.org>
54741
54742         * lib/unistd.in.h: Add comment.
54743         * tests/test-environ.c: Don't include <stdlib.h>.
54744
54745 2008-12-16  Bruno Haible  <bruno@clisp.org>
54746
54747         * lib/parse-duration.h (parse_duration): Document return value
54748         convention.
54749         * lib/parse-duration.c: Include specification header first. Add
54750         comments.
54751         (_): Remove macro.
54752         (parse_year_month_day, parse_hour_minute_second): Move side effects
54753         outside of strchr call.
54754         (parse_non_iso8601): Move side effects outside of isspace call.
54755         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54756         call.
54757
54758 2008-12-16  Bruno Haible  <bruno@clisp.org>
54759
54760         * tests/test-parse-duration.sh: Produce no output when the test
54761         succeeds.
54762
54763 2008-12-16  Bruno Haible  <bruno@clisp.org>
54764
54765         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54766         expressions.
54767
54768 2008-12-15  Bruno Haible  <bruno@clisp.org>
54769
54770         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54771         * doc/glibc-functions/flistxattr.texi: Likewise.
54772         * doc/glibc-functions/fopencookie.texi: Likewise.
54773         * doc/glibc-functions/fremovexattr.texi: Likewise.
54774         * doc/glibc-functions/fsetxattr.texi: Likewise.
54775         * doc/glibc-functions/getxattr.texi: Likewise.
54776         * doc/glibc-functions/lgetxattr.texi: Likewise.
54777         * doc/glibc-functions/listxattr.texi: Likewise.
54778         * doc/glibc-functions/llistxattr.texi: Likewise.
54779         * doc/glibc-functions/lremovexattr.texi: Likewise.
54780         * doc/glibc-functions/lsetxattr.texi: Likewise.
54781         * doc/glibc-functions/removexattr.texi: Likewise.
54782         * doc/glibc-functions/setxattr.texi: Likewise.
54783         * doc/posix-functions/open_memstream.texi: Likewise.
54784
54785 2008-12-15  Eric Blake  <ebb9@byu.net>
54786
54787         Update doc for cygwin 1.7.
54788         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54789         functions.
54790         * doc/posix-functions/fchmodat.texi: Likewise.
54791         * doc/posix-functions/fchownat.texi: Likewise.
54792         * doc/posix-functions/fdopendir.texi: Likewise.
54793         * doc/posix-functions/fmemopen.texi: Likewise.
54794         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54795         * doc/posix-functions/fstatat.texi: Likewise.
54796         * doc/posix-functions/futimens.texi: Likewise.
54797         * doc/posix-functions/gai_strerror.texi: Likewise.
54798         * doc/posix-functions/getaddrinfo.texi: Likewise.
54799         * doc/posix-functions/getnameinfo.texi: Likewise.
54800         * doc/posix-functions/if_freenameindex.texi: Likewise.
54801         * doc/posix-functions/if_indextoname.texi: Likewise.
54802         * doc/posix-functions/if_nameindex.texi: Likewise.
54803         * doc/posix-functions/if_nametoindex.texi: Likewise.
54804         * doc/posix-functions/insque.texi: Likewise.
54805         * doc/posix-functions/linkat.texi: Likewise.
54806         * doc/posix-functions/llrint.texi: Likewise.
54807         * doc/posix-functions/llrintf.texi: Likewise.
54808         * doc/posix-functions/llrintl.texi: Likewise.
54809         * doc/posix-functions/lockf.texi: Likewise.
54810         * doc/posix-functions/lrintl.texi: Likewise.
54811         * doc/posix-functions/mkdirat.texi: Likewise.
54812         * doc/posix-functions/mkfifoat.texi: Likewise.
54813         * doc/posix-functions/mknodat.texi: Likewise.
54814         * doc/posix-functions/mq_close.texi: Likewise.
54815         * doc/posix-functions/mq_getattr.texi: Likewise.
54816         * doc/posix-functions/mq_notify.texi: Likewise.
54817         * doc/posix-functions/mq_open.texi: Likewise.
54818         * doc/posix-functions/mq_receive.texi: Likewise.
54819         * doc/posix-functions/mq_send.texi: Likewise.
54820         * doc/posix-functions/mq_setattr.texi: Likewise.
54821         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54822         * doc/posix-functions/mq_timedsend.texi: Likewise.
54823         * doc/posix-functions/mq_unlink.texi: Likewise.
54824         * doc/posix-functions/open_memstream.texi: Likewise.
54825         * doc/posix-functions/openat.texi: Likewise.
54826         * doc/posix-functions/posix_fadvise.texi: Likewise.
54827         * doc/posix-functions/posix_fallocate.texi: Likewise.
54828         * doc/posix-functions/posix_madvise.texi: Likewise.
54829         * doc/posix-functions/posix_memalign.texi: Likewise.
54830         * doc/posix-functions/posix_openpt.texi: Likewise.
54831         * doc/posix-functions/readlinkat.texi: Likewise.
54832         * doc/posix-functions/remque.texi: Likewise.
54833         * doc/posix-functions/renameat.texi: Likewise.
54834         * doc/posix-functions/rintl.texi: Likewise.
54835         * doc/posix-functions/sem_unlink.texi: Likewise.
54836         * doc/posix-functions/shm_open.texi: Likewise.
54837         * doc/posix-functions/shm_unlink.texi: Likewise.
54838         * doc/posix-functions/signgam.texi: Likewise.
54839         * doc/posix-functions/sigset.texi: Likewise.
54840         * doc/posix-functions/stpcpy.texi: Likewise.
54841         * doc/posix-functions/stpncpy.texi: Likewise.
54842         * doc/posix-functions/strerror.texi: Likewise.
54843         * doc/posix-functions/strtod.texi: Likewise.
54844         * doc/posix-functions/symlinkat.texi: Likewise.
54845         * doc/posix-functions/unlinkat.texi: Likewise.
54846         * doc/posix-functions/utimensat.texi: Likewise.
54847         * doc/glibc-functions/bindresvport.texi: Likewise.
54848         * doc/glibc-functions/dn_expand.texi: Likewise.
54849         * doc/glibc-functions/exp10.texi: Likewise.
54850         * doc/glibc-functions/exp10f.texi: Likewise.
54851         * doc/glibc-functions/fgetxattr.texi: Likewise.
54852         * doc/glibc-functions/flistxattr.texi: Likewise.
54853         * doc/glibc-functions/fopencookie.texi: Likewise.
54854         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54855         * doc/glibc-functions/fremovexattr.texi: Likewise.
54856         * doc/glibc-functions/fsetxattr.texi: Likewise.
54857         * doc/glibc-functions/getifaddrs.texi: Likewise.
54858         * doc/glibc-functions/getxattr.texi: Likewise.
54859         * doc/glibc-functions/lgetxattr.texi: Likewise.
54860         * doc/glibc-functions/listxattr.texi: Likewise.
54861         * doc/glibc-functions/llistxattr.texi: Likewise.
54862         * doc/glibc-functions/lremovexattr.texi: Likewise.
54863         * doc/glibc-functions/lsetxattr.texi: Likewise.
54864         * doc/glibc-functions/pow10.texi: Likewise.
54865         * doc/glibc-functions/pow10f.texi: Likewise.
54866         * doc/glibc-functions/rcmd_af.texi: Likewise.
54867         * doc/glibc-functions/removexattr.texi: Likewise.
54868         * doc/glibc-functions/res_init.texi: Likewise.
54869         * doc/glibc-functions/res_mkquery.texi: Likewise.
54870         * doc/glibc-functions/res_query.texi: Likewise.
54871         * doc/glibc-functions/res_querydomain.texi: Likewise.
54872         * doc/glibc-functions/res_send.texi: Likewise.
54873         * doc/glibc-functions/rresvport_af.texi: Likewise.
54874         * doc/glibc-functions/setxattr.texi: Likewise.
54875         * doc/glibc-functions/strcasestr.texi: Likewise.
54876
54877 2008-12-15  Bruno Haible  <bruno@clisp.org>
54878
54879         Fix compilation error on OSF/1 4.0.
54880         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54881         <sys/time.h>, simply delegate to the system header.
54882         Reported by Daniel Richard G. <oss@teragram.com>.
54883
54884 2008-12-15  Bruno Haible  <bruno@clisp.org>
54885
54886         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54887         * doc/posix-functions/fchmodat.texi: Likewise.
54888         * doc/posix-functions/fchownat.texi: Likewise.
54889         * doc/posix-functions/fdopendir.texi: Likewise.
54890         * doc/posix-functions/fstatat.texi: Likewise.
54891         * doc/posix-functions/mkdirat.texi: Likewise.
54892         * doc/posix-functions/unlinkat.texi: Likewise.
54893
54894 2008-12-14  Bruno Haible  <bruno@clisp.org>
54895
54896         Update doc for POSIX:2008.
54897         * doc/posix-functions/faccessat.texi: New file.
54898         * doc/posix-functions/fchmodat.texi: New file.
54899         * doc/posix-functions/fchownat.texi: New file.
54900         * doc/posix-functions/fdopendir.texi: New file.
54901         * doc/posix-functions/fstatat.texi: New file.
54902         * doc/posix-functions/futimens.texi: New file.
54903         * doc/posix-functions/linkat.texi: New file.
54904         * doc/posix-functions/mkdirat.texi: New file.
54905         * doc/posix-functions/mkfifoat.texi: New file.
54906         * doc/posix-functions/mknodat.texi: New file.
54907         * doc/posix-functions/open_wmemstream.texi: New file.
54908         * doc/posix-functions/openat.texi: New file.
54909         * doc/posix-functions/psiginfo.texi: New file.
54910         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54911         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54912         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54913         * doc/posix-functions/readlinkat.texi: New file.
54914         * doc/posix-functions/renameat.texi: New file.
54915         * doc/posix-functions/strerror_l.texi: New file.
54916         * doc/posix-functions/symlinkat.texi: New file.
54917         * doc/posix-functions/unlinkat.texi: New file.
54918         * doc/posix-functions/utimensat.texi: New file.
54919         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54920
54921 2008-12-14  Bruno Haible  <bruno@clisp.org>
54922
54923         Update doc for POSIX:2008.
54924         * doc/posix-functions/alphasort.texi: Renamed from
54925         doc/glibc-functions/alphasort.texi.
54926         * doc/posix-functions/dirfd.texi: Renamed from
54927         doc/glibc-functions/dirfd.texi.
54928         * doc/posix-functions/dprintf.texi: Renamed from
54929         doc/glibc-functions/dprintf.texi.
54930         * doc/posix-functions/duplocale.texi: Renamed from
54931         doc/glibc-functions/duplocale.texi.
54932         * doc/posix-functions/fexecve.texi: Renamed from
54933         doc/glibc-functions/fexecve.texi.
54934         * doc/posix-functions/fmemopen.texi: Renamed from
54935         doc/glibc-functions/fmemopen.texi.
54936         * doc/posix-functions/freelocale.texi: Renamed from
54937         doc/glibc-functions/freelocale.texi.
54938         * doc/posix-functions/getdate_err.texi: Renamed from
54939         doc/glibc-functions/getdate_err.texi.
54940         * doc/posix-functions/isalnum_l.texi: Renamed from
54941         doc/glibc-functions/isalnum_l.texi.
54942         * doc/posix-functions/isalpha_l.texi: Renamed from
54943         doc/glibc-functions/isalpha_l.texi.
54944         * doc/posix-functions/isblank_l.texi: Renamed from
54945         doc/glibc-functions/isblank_l.texi.
54946         * doc/posix-functions/iscntrl_l.texi: Renamed from
54947         doc/glibc-functions/iscntrl_l.texi.
54948         * doc/posix-functions/isdigit_l.texi: Renamed from
54949         doc/glibc-functions/isdigit_l.texi.
54950         * doc/posix-functions/isgraph_l.texi: Renamed from
54951         doc/glibc-functions/isgraph_l.texi.
54952         * doc/posix-functions/islower_l.texi: Renamed from
54953         doc/glibc-functions/islower_l.texi.
54954         * doc/posix-functions/isprint_l.texi: Renamed from
54955         doc/glibc-functions/isprint_l.texi.
54956         * doc/posix-functions/ispunct_l.texi: Renamed from
54957         doc/glibc-functions/ispunct_l.texi.
54958         * doc/posix-functions/isspace_l.texi: Renamed from
54959         doc/glibc-functions/isspace_l.texi.
54960         * doc/posix-functions/isupper_l.texi: Renamed from
54961         doc/glibc-functions/isupper_l.texi.
54962         * doc/posix-functions/iswalnum_l.texi: Renamed from
54963         doc/glibc-functions/iswalnum_l.texi.
54964         * doc/posix-functions/iswalpha_l.texi: Renamed from
54965         doc/glibc-functions/iswalpha_l.texi.
54966         * doc/posix-functions/iswblank_l.texi: Renamed from
54967         doc/glibc-functions/iswblank_l.texi.
54968         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54969         doc/glibc-functions/iswcntrl_l.texi.
54970         * doc/posix-functions/iswctype_l.texi: Renamed from
54971         doc/glibc-functions/iswctype_l.texi.
54972         * doc/posix-functions/iswdigit_l.texi: Renamed from
54973         doc/glibc-functions/iswdigit_l.texi.
54974         * doc/posix-functions/iswgraph_l.texi: Renamed from
54975         doc/glibc-functions/iswgraph_l.texi.
54976         * doc/posix-functions/iswlower_l.texi: Renamed from
54977         doc/glibc-functions/iswlower_l.texi.
54978         * doc/posix-functions/iswprint_l.texi: Renamed from
54979         doc/glibc-functions/iswprint_l.texi.
54980         * doc/posix-functions/iswpunct_l.texi: Renamed from
54981         doc/glibc-functions/iswpunct_l.texi.
54982         * doc/posix-functions/iswspace_l.texi: Renamed from
54983         doc/glibc-functions/iswspace_l.texi.
54984         * doc/posix-functions/iswupper_l.texi: Renamed from
54985         doc/glibc-functions/iswupper_l.texi.
54986         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54987         doc/glibc-functions/iswxdigit_l.texi.
54988         * doc/posix-functions/isxdigit_l.texi: Renamed from
54989         doc/glibc-functions/isxdigit_l.texi.
54990         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54991         doc/glibc-functions/mbsnrtowcs.texi.
54992         * doc/posix-functions/mkdtemp.texi: Renamed from
54993         doc/glibc-functions/mkdtemp.texi.
54994         * doc/posix-functions/newlocale.texi: Renamed from
54995         doc/glibc-functions/newlocale.texi.
54996         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54997         doc/glibc-functions/nl_langinfo_l.texi.
54998         * doc/posix-functions/open_memstream.texi: Renamed from
54999         doc/glibc-functions/open_memstream.texi.
55000         * doc/posix-functions/opterr.texi: Renamed from
55001         doc/glibc-functions/opterr.texi.
55002         * doc/posix-functions/optind.texi: Renamed from
55003         doc/glibc-functions/optind.texi.
55004         * doc/posix-functions/optopt.texi: Renamed from
55005         doc/glibc-functions/optopt.texi.
55006         * doc/posix-functions/psignal.texi: Renamed from
55007         doc/glibc-functions/psignal.texi.
55008         * doc/posix-functions/scandir.texi: Renamed from
55009         doc/glibc-functions/scandir.texi.
55010         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
55011         doc/glibc-functions/sched_get_priority_min.texi.
55012         * doc/posix-functions/signgam.texi: Renamed from
55013         doc/glibc-functions/signgam.texi.
55014         * doc/posix-functions/stpcpy.texi: Renamed from
55015         doc/glibc-functions/stpcpy.texi.
55016         * doc/posix-functions/stpncpy.texi: Renamed from
55017         doc/glibc-functions/stpncpy.texi.
55018         * doc/posix-functions/strcasecmp_l.texi: Renamed from
55019         doc/glibc-functions/strcasecmp_l.texi.
55020         * doc/posix-functions/strcoll_l.texi: Renamed from
55021         doc/glibc-functions/strcoll_l.texi.
55022         * doc/posix-functions/strfmon_l.texi: Renamed from
55023         doc/glibc-functions/strfmon_l.texi.
55024         * doc/posix-functions/strftime_l.texi: Renamed from
55025         doc/glibc-functions/strftime_l.texi.
55026         * doc/posix-functions/strncasecmp_l.texi: Renamed from
55027         doc/glibc-functions/strncasecmp_l.texi.
55028         * doc/posix-functions/strndup.texi: Renamed from
55029         doc/glibc-functions/strndup.texi.
55030         * doc/posix-functions/strnlen.texi: Renamed from
55031         doc/glibc-functions/strnlen.texi.
55032         * doc/posix-functions/strsignal.texi: Renamed from
55033         doc/glibc-functions/strsignal.texi.
55034         * doc/posix-functions/strxfrm_l.texi: Renamed from
55035         doc/glibc-functions/strxfrm_l.texi.
55036         * doc/posix-functions/timer_gettime.texi: Renamed from
55037         doc/glibc-functions/timer_gettime.texi.
55038         * doc/posix-functions/tolower_l.texi: Renamed from
55039         doc/glibc-functions/tolower_l.texi.
55040         * doc/posix-functions/toupper_l.texi: Renamed from
55041         doc/glibc-functions/toupper_l.texi.
55042         * doc/posix-functions/towctrans_l.texi: Renamed from
55043         doc/glibc-functions/towctrans_l.texi.
55044         * doc/posix-functions/towlower_l.texi: Renamed from
55045         doc/glibc-functions/towlower_l.texi.
55046         * doc/posix-functions/towupper_l.texi: Renamed from
55047         doc/glibc-functions/towupper_l.texi.
55048         * doc/posix-functions/uselocale.texi: Renamed from
55049         doc/glibc-functions/uselocale.texi.
55050         * doc/posix-functions/vdprintf.texi: Renamed from
55051         doc/glibc-functions/vdprintf.texi.
55052         * doc/posix-functions/wcpcpy.texi:
55053         Renamed from doc/glibc-functions/wcpcpy.texi.
55054         * doc/posix-functions/wcpncpy.texi: Renamed from
55055         doc/glibc-functions/wcpncpy.texi.
55056         * doc/posix-functions/wcscasecmp.texi: Renamed from
55057         doc/glibc-functions/wcscasecmp.texi.
55058         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
55059         doc/glibc-functions/wcscasecmp_l.texi.
55060         * doc/posix-functions/wcscoll_l.texi: Renamed from
55061         doc/glibc-functions/wcscoll_l.texi.
55062         * doc/posix-functions/wcsdup.texi: Renamed from
55063         doc/glibc-functions/wcsdup.texi.
55064         * doc/posix-functions/wcsncasecmp.texi: Renamed from
55065         doc/glibc-functions/wcsncasecmp.texi.
55066         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
55067         doc/glibc-functions/wcsncasecmp_l.texi.
55068         * doc/posix-functions/wcsnlen.texi: Renamed from
55069         doc/glibc-functions/wcsnlen.texi.
55070         * doc/posix-functions/wcsnrtombs.texi: Renamed from
55071         doc/glibc-functions/wcsnrtombs.texi.
55072         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
55073         doc/glibc-functions/wcsxfrm_l.texi.
55074         * doc/posix-functions/wctrans_l.texi: Renamed from
55075         doc/glibc-functions/wctrans_l.texi.
55076         * doc/posix-functions/wctype_l.texi: Renamed from
55077         doc/glibc-functions/wctype_l.texi.
55078         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55079         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
55080         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
55081         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
55082         these subsections.
55083         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
55084         Remove sections.
55085
55086 2008-12-14  Bruno Haible  <bruno@clisp.org>
55087
55088         Update doc for POSIX:2008.
55089         * doc/posix-functions/*.texi: Update URL of POSIX specification.
55090
55091 2008-12-14  Bruno Haible  <bruno@clisp.org>
55092
55093         Update doc for POSIX:2008.
55094         * doc/pastposix-functions/bcmp.texi: Renamed from
55095         doc/posix-functions/bcmp.texi.
55096         * doc/pastposix-functions/bcopy.texi: Renamed from
55097         doc/posix-functions/bcopy.texi.
55098         * doc/pastposix-functions/bsd_signal.texi: Renamed from
55099         doc/posix-functions/bsd_signal.texi.
55100         * doc/pastposix-functions/bzero.texi: Renamed from
55101         doc/posix-functions/bzero.texi.
55102         * doc/pastposix-functions/ecvt.texi: Renamed from
55103         doc/posix-functions/ecvt.texi.
55104         * doc/pastposix-functions/fcvt.texi: Renamed from
55105         doc/posix-functions/fcvt.texi.
55106         * doc/pastposix-functions/ftime.texi: Renamed from
55107         doc/posix-functions/ftime.texi.
55108         * doc/pastposix-functions/gcvt.texi: Renamed from
55109         doc/posix-functions/gcvt.texi.
55110         * doc/pastposix-functions/getcontext.texi: Renamed from
55111         doc/posix-functions/getcontext.texi.
55112         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
55113         doc/posix-functions/gethostbyaddr.texi.
55114         * doc/pastposix-functions/gethostbyname.texi: Renamed from
55115         doc/posix-functions/gethostbyname.texi.
55116         * doc/pastposix-functions/getwd.texi: Renamed from
55117         doc/posix-functions/getwd.texi.
55118         * doc/pastposix-functions/h_errno.texi: Renamed from
55119         doc/posix-functions/h_errno.texi.
55120         * doc/pastposix-functions/index.texi: Renamed from
55121         doc/posix-functions/index.texi.
55122         * doc/pastposix-functions/makecontext.texi: Renamed from
55123         doc/posix-functions/makecontext.texi.
55124         * doc/pastposix-functions/mktemp.texi: Renamed from
55125         doc/posix-functions/mktemp.texi.
55126         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
55127         doc/posix-functions/pthread_attr_getstackaddr.texi.
55128         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
55129         doc/posix-functions/pthread_attr_setstackaddr.texi.
55130         * doc/pastposix-functions/rindex.texi: Renamed from
55131         doc/posix-functions/rindex.texi.
55132         * doc/pastposix-functions/scalb.texi: Renamed from
55133         doc/posix-functions/scalb.texi.
55134         * doc/pastposix-functions/setcontext.texi: Renamed from
55135         doc/posix-functions/setcontext.texi.
55136         * doc/pastposix-functions/swapcontext.texi: Renamed from
55137         doc/posix-functions/swapcontext.texi.
55138         * doc/pastposix-functions/ualarm.texi: Renamed from
55139         doc/posix-functions/ualarm.texi.
55140         * doc/pastposix-functions/usleep.texi: Renamed from
55141         doc/posix-functions/usleep.texi.
55142         * doc/pastposix-functions/vfork.texi: Renamed from
55143         doc/posix-functions/vfork.texi.
55144         * doc/pastposix-functions/wcswcs.texi: Renamed from
55145         doc/posix-functions/wcswcs.texi.
55146         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
55147         (Function Substitutes): Update.
55148
55149 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55150
55151         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
55152         m4/strerror.m4.
55153
55154 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55155             Bruno Haible  <bruno@clisp.org>
55156
55157         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
55158
55159 2008-12-13  Bruno Haible  <bruno@clisp.org>
55160
55161         * modules/strtoull (Depends-on): Remove unistd.
55162
55163 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55164
55165         * modules/strtoull (Depends-on): Add stdlib.
55166
55167 2008-12-11  Simon Josefsson  <simon@josefsson.org>
55168
55169         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
55170
55171 2008-12-10  Jim Meyering  <meyering@redhat.com>
55172
55173         gl_ASSERT: don't say assertions are disabled when they're not
55174         * m4/assert.m4 (gl_ASSERT): Do not make configure report
55175         "checking whether to enable assertions... no", when they are in
55176         fact enabled.  This is solely a bug in the output of configure.
55177         In spite of saying "no", NDEBUG was not defined in that case.
55178         Also, as noted by Eric Blake, leave assertions enabled upon
55179         --enable-assert=INVALID.
55180
55181 2008-12-10  Bruno Haible  <bruno@clisp.org>
55182
55183         Change MODULES.html to refer to POSIX:2008 where possible.
55184         * MODULES.html.sh (POSIX2008_URL): New variable.
55185         (posix_headers): Remove sys/timeb, ucontext.
55186         (posix2001_headers): New variable.
55187         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
55188         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
55189         index, makecontext, mktemp, pthread_attr_getstackaddr,
55190         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
55191         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
55192         (posix2001_functions): New variable.
55193         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
55194         otherwise.
55195
55196 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55197
55198         add missing include to parse-duration.c
55199         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
55200         * modules/parse-duration (Depends-on): Add xalloc.
55201
55202         fix sed script reading maint.mk
55203         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55204         (syntax-check-rules): Use it.
55205
55206 2008-12-09  Bruno Haible  <bruno@clisp.org>
55207
55208         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55209         MacOS X 10.4/PowerPC.
55210         Reported by Simon Josefsson.
55211
55212 2008-12-08  Jim Meyering  <meyering@redhat.com>
55213
55214         work around mingw's lack of some S_IF definitions
55215         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55216         Reported by Simon Josefsson.
55217
55218 2008-12-08  Bruno Haible  <bruno@clisp.org>
55219
55220         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55221         applied to variables. Needed on MacOS X 10.4/PowerPC.
55222         Reported by Simon Josefsson.
55223
55224 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55225         and Eric Blake  <ebb9@byu.net>
55226
55227         assert: honor --enable-assert
55228         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55229         order to honor --enable-assert, rather than treating it as a
55230         synonym for --disable-assert.
55231
55232 2008-12-08  Jim Meyering  <meyering@redhat.com>
55233
55234         * lib/posixtm.c: Remove now-useless declaration of mktime.
55235
55236         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55237
55238 2008-12-07  Bruno Haible  <bruno@clisp.org>
55239
55240         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55241         test_once): Mark functions as static.
55242         * tests/test-tls.c (test_tls): Likewise.
55243
55244 2008-12-07  Bruno Haible  <bruno@clisp.org>
55245
55246         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55247         iconv_register_autodetect.
55248
55249 2008-12-07  Jim Meyering  <meyering@redhat.com>
55250
55251         posixtm.c: avoid a warning
55252         * lib/posixtm.c (posixtime): Don't initialize tm0.
55253         It's no longer needed to placate gcc4's -Wuninitialized,
55254         and the attempt to placate would elicit a new warning.
55255
55256         unicodeio.c: mark unused parameters
55257         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55258         (fallback_failure_callback): Likewise.
55259
55260 2008-12-07  Bruno Haible  <bruno@clisp.org>
55261
55262         * gnulib-tool (func_create_testdir): When building the tests
55263         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55264         Reported by Simon Josefsson.
55265
55266 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55267
55268         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55269
55270 2008-12-06  Bruno Haible  <bruno@clisp.org>
55271
55272         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55273         Suggested by Eric Blake.
55274
55275 2008-12-06  Bruno Haible  <bruno@clisp.org>
55276
55277         Fix a c-stack test failure on MacOS X.
55278         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55279         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55280         handler for SIGBUS as well.
55281         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55282         install a signal handler for SIGBUS as well.
55283         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55284
55285 2008-12-06  Bruno Haible  <bruno@clisp.org>
55286
55287         Advocacy documentation.
55288         * doc/gnulib-intro.texi (Benefits): New section.
55289         * doc/gnulib.texi: Update.
55290
55291 2008-12-06  Bruno Haible  <bruno@clisp.org>
55292
55293         Document the 'manywarnings' module.
55294         * doc/manywarnings.texi: New file.
55295         * doc/gnulib.texi: Include it.
55296
55297 2008-12-05  Eric Blake  <ebb9@byu.net>
55298
55299         tests: silence some gcc warnings
55300         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55301         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55302         type mismatches.
55303
55304 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55305             Bruno Haible  <bruno@clisp.org>
55306
55307         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55308
55309 2008-11-29  Jim Meyering  <meyering@redhat.com>
55310
55311         unicodeio.c: mark unused parameters
55312         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55313         (fallback_failure_callback): Likewise.
55314
55315         fts: fix a thinko
55316         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55317         (set_stat_type): Return S_IF*-valued "type" directly.
55318         Prompted by James Youngman's spotting a related bug.
55319         Confirmed by further testing through find.
55320
55321         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55322         * lib/fts.c (D_TYPE): Define.
55323         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55324         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55325         (s_ifmt_shift_bits): New function.
55326         (set_stat_type): New function.
55327         (fts_build): When not calling fts_stat, call set_stat_type
55328         to propagate dirent.d_type info to fts_read caller.
55329         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55330         fts_statp->st_mode type information may be valid.
55331
55332 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55333
55334         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55335         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55336         <sds@gnu.org>.
55337
55338 2008-11-20  Bruno Haible  <bruno@clisp.org>
55339
55340         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55341         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55342         INCLUDE_NEXT.
55343         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55344         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55345         * modules/math (Makefile.am): Substitute
55346         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55347         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55348
55349 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55350             Bruno Haible  <bruno@clisp.org>
55351
55352         * lib/stdint.in.h: Define all type macros so that their expansion is
55353         a single typedef'ed token. Fixes a compilation failure in Boost which
55354         does "using ::int8_t;".
55355
55356 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55357
55358         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55359         gl_MANYWARN_ALL_GCC.
55360         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55361         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55362         * modules/manywarnings: New file.
55363         * MODULES.html.sh: Mention manywarnings module.
55364
55365 2008-11-18  Bruno Haible  <bruno@clisp.org>
55366
55367         * doc/gnulib-tool.texi (Unit tests): New section.
55368
55369 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55370
55371         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55372         paths like 'lib/po/foo.po'.
55373
55374 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55375
55376         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55377         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55378
55379 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55380
55381         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55382         parameter works.
55383
55384 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55385
55386         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55387
55388 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55389
55390         * modules/parse-duration-tests: New file.
55391         * tests/test-parse-duration.sh: New file.
55392         * tests/test-parse-duration.c: New file.
55393
55394         New module 'parse-duration'.
55395         * lib/parse-duration.h: New file.
55396         * lib/parse-duration.c: New file.
55397         * modules/parse-duration: New file.
55398
55399 2008-11-17  Bruno Haible  <bruno@clisp.org>
55400
55401         * tests/test-select-out.sh: Comment out the first pipe test.
55402         Reported by Simon Josefsson.
55403
55404 2008-11-17  Bruno Haible  <bruno@clisp.org>
55405
55406         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55407         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55408         gl_HOSTENT.
55409
55410 2008-11-17  Bruno Haible  <bruno@clisp.org>
55411
55412         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55413         -lnetwork and -lnet. Needed for Haiku and BeOS.
55414
55415 2008-11-16  Bruno Haible  <bruno@clisp.org>
55416
55417         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55418
55419 2008-11-16  Bruno Haible  <bruno@clisp.org>
55420
55421         Avoid test failure on Haiku.
55422         * tests/test-fsync.c: Include <errno.h>.
55423         (main): Don't require that fsync (0) fails.
55424
55425 2008-11-15  Bruno Haible  <bruno@clisp.org>
55426
55427         New module 'hostent'.
55428         * modules/hostent: New file.
55429         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55430
55431 2008-11-15  Bruno Haible  <bruno@clisp.org>
55432
55433         New module 'servent'.
55434         * modules/servent: New file.
55435         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55436
55437 2008-11-15  Bruno Haible  <bruno@clisp.org>
55438
55439         Avoid generating same test program with two different rules.
55440         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55441         test-frexp to test-frexp-nolibm.
55442         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55443         test-frexpl to test-frexpl-nolibm.
55444
55445 2008-11-15  Bruno Haible  <bruno@clisp.org>
55446
55447         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55448         $(FREXPL_LIBM).
55449
55450 2008-11-15  Bruno Haible  <bruno@clisp.org>
55451
55452         * lib/netdb.in.h: Activate the definitions also when the system's
55453         <netdb.h> has 'struct addrinfo'.
55454         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55455         EAI_OVERFLOW or AI_NUMERICSERV.
55456         * doc/posix-headers/netdb.texi: Document the problem.
55457
55458 2008-11-15  Bruno Haible  <bruno@clisp.org>
55459
55460         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55461
55462         Make the 'sched' module work on platforms where <sched.h> exists but
55463         is incomplete (such as Haiku).
55464         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55465         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55466         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55467         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55468         HAVE_STRUCT_SCHED_PARAM.
55469         * modules/sched (Depends-on): Add include_next.
55470         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55471         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55472         * doc/posix-headers/sched.texi: Document the issue.
55473
55474 2008-11-13  Jim Meyering  <meyering@redhat.com>
55475
55476         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55477         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55478         test would fail due to the difference in the Report bugs to ...
55479         line.  The expected address is empty, "<>", while the actual
55480         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55481
55482 2008-11-12  Bruno Haible  <bruno@clisp.org>
55483
55484         lstat: don't compile lstat.c on systems lacking lstat
55485         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55486         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55487         Reported by Daniel P. Berrange via Jim Meyering.
55488
55489 2008-11-12  Jim Meyering  <meyering@redhat.com>
55490
55491         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55492
55493 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55494
55495         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55496         instead.
55497
55498 2008-11-12  Bruno Haible  <bruno@clisp.org>
55499
55500         * lib/unicodeio.c: Include unistr.h.
55501         (utf8_wctomb): Remove function.
55502         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55503
55504 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55505
55506         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55507         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55508         <bruno@clisp.org>.
55509         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55510
55511 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55512
55513         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55514         * doc/gnulib.texi: Add section for warnings.
55515
55516 2008-11-11  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/sockets.h: Add a comment.
55519
55520 2008-11-11  Karl Berry  <karl@gnu.org>
55521
55522         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55523
55524 2008-11-11  Eric Blake  <ebb9@byu.net>
55525
55526         fdl.texi: avoid git symlinks
55527         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55528
55529 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55530
55531         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55532
55533 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55534
55535         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55536         (gl_WARN_ADD): Substitute $2 if literal.
55537
55538 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55539
55540         * m4/warning.m4: Remove.
55541
55542 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55543
55544         * m4/warnings.m4: Almost complete rewrite. :-)
55545
55546 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55547
55548         * modules/warnings: New module.
55549         * m4/warnings.m4: New file.
55550         * MODULES.html.sh: Mention warnings module.
55551         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55552         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55553
55554 2008-11-10  Eric Blake  <ebb9@byu.net>
55555
55556         fdl.texi: make a symlink to the latest version
55557         * doc/standards.texi: Revert today's earlier change.
55558         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55559         * doc/fdl.texi: ...and replace this with a symlink to the newer
55560         fdl-1.3.texi.
55561
55562 2008-11-10  Bruno Haible  <bruno@clisp.org>
55563
55564         * tests/test-select-fd.c (main): Accept the result file name as fourth
55565         argument.
55566         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55567         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55568
55569 2008-11-10  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55572         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55573         as autoconf-substituted macros.
55574         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55576         gl_NETDB_H_DEFAULTS. Set these variables.
55577         * modules/netdb (Makefile.am): Substitute these variables.
55578
55579 2008-11-10  Eric Blake  <ebb9@byu.net>
55580
55581         standards.texi: include correct file for FDL 1.3
55582         * doc/standards.texi (GNU Free Documentation License): Change
55583         include file to pull in FDL 1.3, not 1.2.
55584
55585         fdl.texi: revert accidental change to license
55586         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55587
55588 2008-11-10  Bruno Haible  <bruno@clisp.org>
55589
55590         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55591         cross-compiling guesses also when the native compile gives no result.
55592
55593 2008-11-10  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/spawni.c (__spawni): Force variable into the stack.
55596
55597 2008-11-10  Bruno Haible  <bruno@clisp.org>
55598
55599         Add support for Haiku.
55600         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55601         glibc and BeOS, but also on Haiku.
55602         * lib/fpurge.c (fpurge): Likewise.
55603         * lib/freadable.c (freadable): Likewise.
55604         * lib/freadahead.c (freadahead): Likewise.
55605         * lib/freading.c (freading): Likewise.
55606         * lib/freadptr.c (freadptr): Likewise.
55607         * lib/freadseek.c (freadptrinc): Likewise.
55608         * lib/fseeko.c (rpl_fseeko): Likewise.
55609         * lib/fseterr.c (fseterr): Likewise.
55610         * lib/fwritable.c (fwritable): Likewise.
55611         * lib/fwriting.c (fwriting): Likewise.
55612         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55613
55614 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55615
55616         * lib/config.charset: Treat Haiku like BeOS.
55617
55618 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55619
55620         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55621         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55622
55623 2008-11-08  Bruno Haible  <bruno@clisp.org>
55624
55625         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55626         AC_CACHE_CHECK.
55627
55628 2008-11-08  Bruno Haible  <bruno@clisp.org>
55629
55630         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55631
55632 2008-11-08  Bruno Haible  <bruno@clisp.org>
55633
55634         * tests/test-select-fd.c: New file.
55635         * tests/test-select-in.sh: New file.
55636         * tests/test-select-out.sh: New file.
55637         * tests/test-select-stdin.c: New file.
55638         * modules/select-tests (Files): Add the new files.
55639         (Depends-on): Add gettimeofday.
55640         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55641         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55642         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55643
55644 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55645             Bruno Haible  <bruno@clisp.org>
55646
55647         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55648
55649 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55650
55651         * build-aux/pmccabe2html: Added support for C++ source files.
55652
55653 2008-11-05  Ben Pfaff  <blp@gnu.org>
55654
55655         Fix lib/close.c build on Windows.
55656         * modules/close (Files): Add lib/w32sock.h.
55657
55658 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55659
55660         Accept Bison's NEWS format.
55661         * build-aux/announce-gen (print_news_deltas): Tweak
55662         $re_prefix.
55663
55664 2008-11-04  Bruno Haible  <bruno@clisp.org>
55665
55666         * modules/random_r (Maintainer): Add glibc.
55667
55668 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55669
55670         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55671         by karl@freefriends.org (Karl Berry).
55672         * doc/alloca.texi: Likewise.
55673         * doc/c-ctype.texi: Likewise.
55674         * doc/c-strcase.texi: Likewise.
55675         * doc/c-strcaseeq.texi: Likewise.
55676         * doc/c-strcasestr.texi: Likewise.
55677         * doc/c-strstr.texi: Likewise.
55678         * doc/c-strtod.texi: Likewise.
55679         * doc/c-strtold.texi: Likewise.
55680         * doc/ctime.texi: Likewise.
55681         * doc/error.texi: Likewise.
55682         * doc/fdl.texi: Likewise.
55683         * doc/gcd.texi: Likewise.
55684         * doc/getdate.texi: Likewise.
55685         * doc/gnulib-intro.texi: Likewise.
55686         * doc/gnulib-tool.texi: Likewise.
55687         * doc/gnulib.texi: Likewise.
55688         * doc/inet_ntoa.texi: Likewise.
55689         * doc/maintain.texi: Likewise.
55690         * doc/make-stds.texi: Likewise.
55691         * doc/quote.texi: Likewise.
55692         * doc/regexprops-generic.texi: Likewise.
55693         * doc/standards.texi: Likewise.
55694         * doc/verify.texi: Likewise.
55695         * doc/visibility.texi: Likewise.
55696         * doc/gnulib.texi (GNU Free Documentation License): Include
55697         fdl-1.3.texi instead of fdl.texi.
55698
55699 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55700
55701         * doc/fdl-1.3.texi: New file, from
55702         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55703         * modules/fdl-1.3: Add.
55704         * MODULES.html.sh: Add fdl-1.3.
55705
55706 2008-11-03  Bruno Haible  <bruno@clisp.org>
55707
55708         Make determination of absolute name of header file work with AIX xlc.
55709         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55710         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55711         preprocessing.
55712         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55713         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55714
55715 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55716
55717         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55718         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55719         <ludo@gnu.org>.
55720
55721 2008-11-02  Bruno Haible  <bruno@clisp.org>
55722
55723         Mark 'strpbrk' obsolete.
55724         * modules/strpbrk (Status, Notice): New sections.
55725         * modules/strtok_r (Depends-on): Add strpbrk.
55726
55727 2008-11-02  Bruno Haible  <bruno@clisp.org>
55728
55729         Mark 'strdup' obsolete.
55730         * modules/strdup (Status, Notice): New sections.
55731         * modules/findprog (Depends-on): Add strdup.
55732         * modules/getaddrinfo (Depends-on): Likewise.
55733         * modules/localename (Depends-on): Likewise.
55734         * modules/relocatable-lib (Depends-on): Likewise.
55735         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55736         * modules/relocatable-prog (Depends-on): Likewise.
55737         * modules/trim (Depends-on): Likewise.
55738         * modules/unictype/gen-ctype (Depends-on): Likewise.
55739         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55740
55741 2008-11-02  Bruno Haible  <bruno@clisp.org>
55742
55743         Mark 'strcspn' obsolete.
55744         * modules/strcspn (Status, Notice): New sections.
55745
55746 2008-11-02  Bruno Haible  <bruno@clisp.org>
55747
55748         Mark 'rmdir' obsolete.
55749         * modules/rmdir (Status, Notice): New sections.
55750         * modules/clean-temp (Depends-on): Add rmdir.
55751         * modules/openat (Depends-on): Likewise.
55752
55753 2008-11-02  Bruno Haible  <bruno@clisp.org>
55754
55755         Mark 'raise' obsolete.
55756         * modules/raise (Status, Notice): New sections.
55757         (Include): Specify <signal.h>.
55758         * modules/stdio (Depends-on): Add raise.
55759         * modules/write (Depends-on): Likewise.
55760
55761 2008-11-02  Bruno Haible  <bruno@clisp.org>
55762
55763         Mark 'memset' obsolete.
55764         * modules/memset (Status, Notice): New sections.
55765
55766 2008-11-02  Bruno Haible  <bruno@clisp.org>
55767
55768         Mark 'memmove' obsolete.
55769         * modules/memmove (Status, Notice): New sections.
55770         * modules/argp (Depends-on): Add memmove.
55771         * modules/argz (Depends-on): Likewise.
55772         * modules/canonicalize (Depends-on): Likewise.
55773         * modules/canonicalize-lgpl (Depends-on): Likewise.
55774         * modules/fts (Depends-on): Likewise.
55775         * modules/getcwd (Depends-on): Likewise.
55776         * modules/human (Depends-on): Likewise.
55777         * modules/regex (Depends-on): Likewise.
55778         * modules/striconveh (Depends-on): Likewise.
55779         * modules/trim (Depends-on): Likewise.
55780         * modules/unistr/u8-move (Depends-on): Likewise.
55781         * modules/unistr/u16-move (Depends-on): Likewise.
55782         * modules/unistr/u32-move (Depends-on): Likewise.
55783
55784 2008-11-02  Bruno Haible  <bruno@clisp.org>
55785
55786         Mark 'memcpy' obsolete.
55787         * modules/memcpy (Status, Notice): New sections.
55788
55789 2008-11-02  Bruno Haible  <bruno@clisp.org>
55790
55791         Mark 'memcmp' obsolete.
55792         * modules/memcmp (Status, Notice): New sections.
55793         * modules/argmatch (Depends-on): Add memchr.
55794         * modules/backupfile (Depends-on): Likewise.
55795         * modules/c-strcasestr (Depends-on): Likewise.
55796         * modules/crypto/des (Depends-on): Likewise.
55797         * modules/csharpcomp (Depends-on): Likewise.
55798         * modules/fnmatch (Depends-on): Likewise.
55799         * modules/git-merge-changelog (Depends-on): Likewise.
55800         * modules/isnand (Depends-on): Likewise.
55801         * modules/isnand-nolibm (Depends-on): Likewise.
55802         * modules/isnanf (Depends-on): Likewise.
55803         * modules/isnanf-nolibm (Depends-on): Likewise.
55804         * modules/isnanl (Depends-on): Likewise.
55805         * modules/isnanl-nolibm (Depends-on): Likewise.
55806         * modules/mbchar (Depends-on): Likewise.
55807         * modules/memcoll (Depends-on): Likewise.
55808         * modules/quotearg (Depends-on): Likewise.
55809         * modules/regex (Depends-on): Likewise.
55810         * modules/relocatable-prog (Depends-on): Likewise.
55811         * modules/same (Depends-on): Likewise.
55812         * modules/signbit (Depends-on): Likewise.
55813         * modules/strcasestr-simple (Depends-on): Likewise.
55814         * modules/unictype/gen-ctype (Depends-on): Likewise.
55815         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55816         * modules/uniname/uniname (Depends-on): Likewise.
55817         * modules/unistr/u8-cmp (Depends-on): Likewise.
55818
55819 2008-11-02  Bruno Haible  <bruno@clisp.org>
55820
55821         Mark 'memchr' obsolete.
55822         * modules/memchr (Status, Notice): New sections.
55823         * modules/argp (Depends-on): Add memchr.
55824         * modules/base64 (Depends-on): Likewise.
55825         * modules/c-strcasestr (Depends-on): Likewise.
55826         * modules/chdir-long (Depends-on): Likewise.
55827         * modules/fnmatch (Depends-on): Likewise.
55828         * modules/getsubopt (Depends-on): Likewise.
55829         * modules/git-merge-changelog (Depends-on): Likewise.
55830         * modules/glob (Depends-on): Likewise.
55831         * modules/strcasestr-simple (Depends-on): Likewise.
55832         * modules/strnlen (Depends-on): Likewise.
55833
55834 2008-11-02  Bruno Haible  <bruno@clisp.org>
55835
55836         Mark 'atexit' obsolete.
55837         * modules/atexit (Status, Notice): New sections.
55838         * modules/chdir-long (Depends-on): Add atexit.
55839         * modules/wait-process (Depends-on): Likewise.
55840
55841 2008-11-02  Bruno Haible  <bruno@clisp.org>
55842
55843         * gnulib-tool: New option --with-obsolete.
55844         (func_usage): Document it.
55845         (func_modules_transitive_closure): Drop obsolete dependencies if
55846         incobsolete is not true.
55847         (func_import): Read and save the incobsolete variable to the cache.
55848
55849 2008-11-02  Bruno Haible  <bruno@clisp.org>
55850
55851         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55852         * gnulib-tool: New option --extract-status.
55853         (func_usage): Document it.
55854         (sed_extract_prog): Recognize it.
55855         (func_get_status): New function.
55856
55857 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55858
55859         * modules/sockets (License): Change from LGPL to LGPLv2+.
55860
55861 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55862
55863         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55864
55865 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55866
55867         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55868         Mention times and sys_times.
55869         * modules/sys_times, modules/sys_times-tests: New modules.
55870         * modules/times, modules/times-tests: Likewise
55871         * m4/sys_times_h.m4: New file.
55872         * lib/sys_times.in.h: Likewise
55873         * lib/times.c: Likewise.
55874         * tests/test-sys_times.c: Likewise.
55875         * tests/test-times.c: Likewise.
55876         * doc/posix-headers/sys_times.texi: Update.
55877         * doc/posix-functions/times.texi: Update.
55878
55879 2008-10-28  Jim Meyering  <meyering@redhat.com>
55880
55881         * modules/tempname (Depends-on): Add lstat.
55882
55883         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55884
55885 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55886
55887         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55888         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55889         using idiom used elsewhere in gnulib.
55890
55891 2008-10-27  Jim Meyering  <meyering@redhat.com>
55892
55893         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55894
55895 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55896
55897         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55898         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55899         programs.
55900         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55901
55902 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55903
55904         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55905
55906 2008-10-27  Bruno Haible  <bruno@clisp.org>
55907
55908         * tests/test-lstat.c: Include <stdio.h>.
55909
55910 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55911
55912         * modules/lstat-tests: New module.
55913         * tests/test-lstat.c: New file.
55914
55915 2008-10-26  Jim Meyering  <meyering@redhat.com>
55916
55917         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55918
55919 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55920             Bruno Haible  <bruno@clisp.org>
55921
55922         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55923         * modules/configmake (Include): Add a note that the include must come
55924         after all system headers.
55925         * lib/javaversion.c: Include configmake.h after all other includes.
55926
55927 2008-10-26  Bruno Haible  <bruno@clisp.org>
55928
55929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55930         HAVE_STRUCT_RANDOM_DATA to 1.
55931         (gl_STDLIB_H): Simplify.
55932
55933 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55934
55935         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55936         substitute HAVE_STRUCT_RANDOM_DATA.
55937         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55938         random_data.
55939         * modules/stdlib (Makefile.am): Substitute
55940         HAVE_STRUCT_RANDOM_DATA.
55941
55942 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55943
55944         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55945         * doc/gnulib-intro.texi (Copyright): Likewise.
55946
55947 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55948
55949         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55950         findings.
55951
55952 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55953             Bruno Haible  <bruno@clisp.org>
55954
55955         * lib/unistd.in.h: Include <winsock2.h>.
55956         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55957         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55958         Provide dummy declarations.
55959         (gethostname): Override.
55960         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55961         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55962         gl_PREREQ_SYS_H_WINSOCK2.
55963         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55964         * doc/posix-functions/gethostname.texi: More details.
55965
55966 2008-10-25  Bruno Haible  <bruno@clisp.org>
55967
55968         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55969         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55970         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55971
55972         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55973         here ...
55974         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55975         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55976         gl_UNISTD_H_DEFAULTS.
55977
55978 2008-10-25  Eric Blake  <ebb9@byu.net>
55979
55980         signbit: avoid spurious compiler failure
55981         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55982         declarations inside function.
55983
55984 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55985             Bruno Haible  <bruno@clisp.org>
55986
55987         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55988         * modules/random_r (Depends-on): Add stdint.
55989
55990 2008-10-24  Bruno Haible  <bruno@clisp.org>
55991
55992         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55993         Eggert.
55994         * modules/strerror (License): Likewise.
55995
55996 2008-10-24  Jim Meyering  <meyering@redhat.com>
55997
55998         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55999         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
56000
56001 2008-10-24  Eric Blake  <ebb9@byu.net>
56002
56003         getgroups: fix compilation when getgroups is available
56004         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
56005         but with <config.h> override of getgroups disabled.
56006
56007 2008-10-24  Simon Josefsson  <simon@josefsson.org>
56008
56009         * doc/gnulib.texi (Header files): Add note about C++ problems.
56010         Explained by Bruno Haible <bruno@clisp.org>.
56011
56012 2008-10-23  Bruno Haible  <bruno@clisp.org>
56013
56014         Define a dummy SA_NODEFER macro on Interix.
56015         * lib/signal.in.h (SA_NODEFER): Define fallback.
56016         Reported by Aleksey Cheusov <cheusov@tut.by> via
56017         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
56018
56019 2008-10-23  Bruno Haible  <bruno@clisp.org>
56020
56021         * modules/freadahead (License): Change to LGPLv2+.
56022         Suggested by Simon Josefsson.
56023
56024 2008-10-23  Jim Meyering  <meyering@redhat.com>
56025
56026         random_r: new module
56027         * modules/random_r: New file.
56028         * m4/random_r.m4: New file.
56029         * lib/random_r.c: New file, from glibc.
56030         * modules/random_r-tests: New file.
56031         * tests/test-random_r.c: New file.
56032         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
56033          Declare.
56034         (RAND_MAX): Define.
56035         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
56036         * modules/stdlib: Substitute them, too.
56037         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
56038         * doc/glibc-functions/initstate_r.texi: Mention the new module.
56039         * doc/glibc-functions/random_r.texi: Likewise.
56040         * doc/glibc-functions/setstate_r.texi: Likewise.
56041         * doc/glibc-functions/srandom_r.texi: Likewise.
56042         * config/srclist.txt: Mention it.
56043
56044 2008-10-23  David Lutterkort  <lutter@redhat.com>
56045
56046         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
56047         link requirement
56048
56049 2008-10-23  Jim Meyering  <meyering@redhat.com>
56050
56051         selinux-h: mark parameters of stub functions as intentionally unused
56052         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
56053         * lib/se-context.in.h: Likewise.
56054
56055 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56056
56057         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
56058
56059 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56060
56061         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
56062
56063 2008-10-22  Eric Blake  <ebb9@byu.net>
56064
56065         glthread/thread: avoid compiler warning
56066         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
56067         Add unreachable abort to silence compiler.
56068
56069 2008-10-22  Eric Blake  <ebb9@byu.net>
56070
56071         netdb: also supply struct addrinfo for cygwin 1.5.x
56072         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
56073         older cygwin.
56074         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
56075         cygwin.
56076         * doc/posix-headers/netdb.texi (netdb.h): Document this.
56077
56078 2008-10-22  Bruno Haible  <bruno@clisp.org>
56079
56080         * users.txt: Update entry about pspp.
56081
56082 2008-10-21  Bruno Haible  <bruno@clisp.org>
56083
56084         Simplification.
56085         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
56086         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
56087
56088         Simplification.
56089         * lib/ioctl.c (ioctl): Don't undefine.
56090         * lib/socket.c (socket): Don't undefine.
56091
56092         Remove unused module indicator macros.
56093         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
56094         GNULIB_$1 as a C macro.
56095
56096         * doc/posix-functions/close.texi: Undo last change.
56097         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
56098         Windows platforms.
56099
56100 2008-10-21  Bruno Haible  <bruno@clisp.org>
56101
56102         Add gethostname() declaration to <unistd.h>.
56103         * lib/unistd.in.h (gethostname): New declaration.
56104         * lib/gethostname.c: Include <unistd.h>.
56105         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
56106         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
56107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
56108         and HAVE_GETHOSTNAME.
56109         * modules/gethostname (Depends-on): Add unistd.
56110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56111         (Include): Specify <unistd.h>.
56112         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
56113         HAVE_GETHOSTNAME.
56114         * tests/test-gethostname.c: Include <unistd.h> first.
56115
56116 2008-10-21  Bruno Haible  <bruno@clisp.org>
56117
56118         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
56119         * modules/select-tests (Depends-on): Likewise.
56120         Reported by Simon Josefsson.
56121
56122 2008-10-21  Simon Josefsson  <simon@josefsson.org>
56123
56124         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
56125         * lib/accept.c: New file, based on winsock.c.
56126         * lib/bind.c: New file, based on winsock.c.
56127         * lib/connect.c: New file, based on winsock.c.
56128         * lib/getpeername.c: New file, based on winsock.c.
56129         * lib/getsockname.c: New file, based on winsock.c.
56130         * lib/getsockopt.c: New file, based on winsock.c.
56131         * lib/ioctl.c: New file, based on winsock.c.
56132         * lib/listen.c: New file, based on winsock.c.
56133         * lib/recv.c: New file, based on winsock.c.
56134         * lib/recvfrom.c: New file, based on winsock.c.
56135         * lib/send.c: New file, based on winsock.c.
56136         * lib/sendto.c: New file, based on winsock.c.
56137         * lib/setsockopt.c: New file, based on winsock.c.
56138         * lib/shutdown.c: New file, based on winsock.c.
56139         * lib/socket.c: New file, based on winsock.c.
56140         * lib/w32sock.h: New file, based on winsock.c.
56141         * lib/winsock.c: Remove file.
56142         * modules/accept: Likewise.
56143         * modules/bind: Likewise.
56144         * modules/connect: Likewise.
56145         * modules/getpeername: Likewise.
56146         * modules/getsockname: Likewise.
56147         * modules/getsockopt: Likewise.
56148         * modules/ioctl: Likewise.
56149         * modules/listen: Likewise.
56150         * modules/recv: Likewise.
56151         * modules/recvfrom: Likewise.
56152         * modules/send: Likewise.
56153         * modules/sendto: Likewise.
56154         * modules/setsockopt: Likewise.
56155         * modules/shutdown: Likewise.
56156         * modules/socket: Use socket.c instead of winsock.c.
56157         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
56158         * doc/posix-functions/accept.texi: Doc fix.
56159         * doc/posix-functions/bind.texi: Doc fix.
56160         * doc/posix-functions/close.texi: Doc fix.
56161         * doc/posix-functions/connect.texi: Doc fix.
56162         * doc/posix-functions/getpeername.texi: Doc fix.
56163         * doc/posix-functions/getsockname.texi: Doc fix.
56164         * doc/posix-functions/getsockopt.texi: Doc fix.
56165         * doc/posix-functions/ioctl.texi: Doc fix.
56166         * doc/posix-functions/listen.texi: Doc fix.
56167         * doc/posix-functions/recv.texi: Doc fix.
56168         * doc/posix-functions/recvfrom.texi: Doc fix.
56169         * doc/posix-functions/send.texi: Doc fix.
56170         * doc/posix-functions/sendto.texi: Doc fix.
56171         * doc/posix-functions/setsockopt.texi: Doc fix.
56172         * doc/posix-functions/shutdown.texi: Doc fix.
56173         * doc/posix-functions/socket.texi: Doc fix.
56174
56175 2008-10-20  Bruno Haible  <bruno@clisp.org>
56176
56177         Take into account the role of SIGABRT_COMPAT on Windows 2008.
56178         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
56179         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
56180         as an alias for SIGABRT.
56181         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
56182         (sigaction): Map it to SIGABRT.
56183         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
56184
56185 2008-10-20  Bruno Haible  <bruno@clisp.org>
56186
56187         * lib/fts.c: Don't include lstat.h.
56188         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
56189
56190         Move the lstat() declaration to <sys/stat.h>.
56191         * lib/lstat.h: Remove file.
56192         * lib/sys_stat.in.h: Add special invocation convention.
56193         (lstat): New declaration.
56194         * lib/lstat.c (orig_lstat): New function.
56195         (rpl_lstat): Use orig_lstat instead of lstat.
56196         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
56197         AC_C_INLINE. Set REPLACE_LSTAT.
56198         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
56199         and REPLACE_LSTAT.
56200         * modules/lstat (Files): Remove lib/lstat.h.
56201         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56202         (Include): Specify <sys/stat.h> instead of lstat.h.
56203         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56204         REPLACE_LSTAT.
56205         * NEWS: Mention the change.
56206
56207 2008-10-20  Bruno Haible  <bruno@clisp.org>
56208
56209         * modules/posix_spawn-tests: New file.
56210         * tests/test-posix_spawn3.c: New file.
56211
56212 2008-10-20  Bruno Haible  <bruno@clisp.org>
56213
56214         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56215         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56216         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56217         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56218         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56219
56220 2008-10-20  Bruno Haible  <bruno@clisp.org>
56221
56222         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56223         of posix_spawn on AIX 5.3.
56224
56225 2008-10-20  Bruno Haible  <bruno@clisp.org>
56226
56227         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56228
56229 2008-10-20  Bruno Haible  <bruno@clisp.org>
56230
56231         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56232         of AC_LANG_PROGRAM.
56233
56234 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56235
56236         * lib/netdb.in.h: Don't define GNU specific constants until they
56237         are supported or needed.  Reported by Bruno Haible
56238         <bruno@clisp.org>.
56239
56240 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56241
56242         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56243
56244 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56245
56246         * lib/getaddrinfo.h: Remove file.
56247         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56248         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56249         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56250         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56251         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56252         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56253         * tests/test-getaddrinfo.c: Likewise.
56254         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56255         * NEWS: Mention change.
56256
56257 2008-10-19  Bruno Haible  <bruno@clisp.org>
56258
56259         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56260
56261 2008-10-19  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/wait-process.c: Include simply <sys/wait.h>.
56264         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56265         WIFSTOPPED): Remove fallback definitions.
56266         * modules/wait-process (Depends-on): Add sys_wait.
56267
56268         New module 'sys_wait'.
56269         * modules/sys_wait: New file.
56270         * lib/sys_wait.in.h: New file, partially copied from
56271         lib/wait-process.c.
56272         * m4/sys_wait_h.m4: New file.
56273         * doc/posix-headers/sys_wait.texi: Mention the new module.
56274
56275 2008-10-19  Bruno Haible  <bruno@clisp.org>
56276
56277         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56278
56279 2008-10-19  Bruno Haible  <bruno@clisp.org>
56280
56281         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56282         * lib/wait-process.c (WAIT_T): Remove type.
56283         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56284         (wait_subprocess): Update.
56285
56286 2008-10-19  Bruno Haible  <bruno@clisp.org>
56287
56288         New module 'atoll'.
56289         * modules/atoll: New file.
56290         * lib/stdlib.in.h (atoll): New declaration.
56291         * lib/atoll.c: New file, from glibc with modifications.
56292         * m4/atoll.m4: New file.
56293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56294         HAVE_ATOLL.
56295         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56296         * doc/posix-functions/atoll.texi: Mention the new module.
56297
56298 2008-10-19  Bruno Haible  <bruno@clisp.org>
56299
56300         Add strtoull() declaration to <stdlib.h>.
56301         * lib/stdlib.in.h (strtoull): New declaration.
56302         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56303         Set HAVE_STRTOULL.
56304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56305         HAVE_STRTOULL.
56306         * modules/strtoull (Depends-on): Add stdlib.
56307         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56308         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56309         HAVE_STRTOULL.
56310
56311 2008-10-19  Bruno Haible  <bruno@clisp.org>
56312
56313         Add strtoll() declaration to <stdlib.h>.
56314         * lib/stdlib.in.h (strtoll): New declaration.
56315         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56316         Set HAVE_STRTOLL.
56317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56318         HAVE_STRTOLL.
56319         * modules/strtoll (Depends-on): Add stdlib.
56320         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56321         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56322
56323 2008-10-19  Bruno Haible  <bruno@clisp.org>
56324
56325         * modules/bcopy (Depends-on): Add strings.
56326         (Include): Specify <strings.h>.
56327
56328 2008-10-19  Bruno Haible  <bruno@clisp.org>
56329
56330         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56331
56332 2008-10-19  Bruno Haible  <bruno@clisp.org>
56333
56334         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56335         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56336         mingw.
56337
56338 2008-10-19  Bruno Haible  <bruno@clisp.org>
56339
56340         * lib/atanl.c: Don't include isnanl.h.
56341         * lib/cosl.c: Likewise.
56342         * lib/ldexpl.c: Likewise.
56343         * lib/logl.c: Likewise.
56344         * lib/sinl.c: Likewise.
56345         * lib/sqrtl.c: Likewise.
56346         * lib/tanl.c: Likewise.
56347
56348         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56349         * lib/isnanf.h: Remove file.
56350         * lib/isnand.h: Remove file.
56351         * lib/isnanl.h: Remove file.
56352         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56353         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56354         macros.
56355         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56356         HAVE_ISNANF, don't define it as a C macro.
56357         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56358         HAVE_ISNAND, don't define it as a C macro.
56359         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56360         HAVE_ISNANL, don't define it as a C macro.
56361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56362         HAVE_ISNAN[FDL].
56363         * modules/isnanf (Files): Remove lib/isnanf.h.
56364         (Depends-on): Add math.
56365         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56366         (Include): Specify <math.h> instead of isnanf.h.
56367         * modules/isnand (Files): Remove lib/isnand.h.
56368         (Depends-on): Add math.
56369         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56370         (Include): Specify <math.h> instead of isnand.h.
56371         * modules/isnanl (Files): Remove lib/isnanl.h.
56372         (Depends-on): Add math.
56373         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56374         (Include): Specify <math.h> instead of isnanl.h.
56375         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56376         HAVE_ISNAN[FDL].
56377         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56378         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56379         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56380         * NEWS: Mention the change.
56381
56382 2008-10-18  Bruno Haible  <bruno@clisp.org>
56383
56384         Add getusershell(), setusershell(), endusershell() declarations to
56385         <unistd.h>.
56386         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56387         declarations.
56388         * lib/getusershell.c: Include unistd.h.
56389         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56390         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56391         HAVE_GETUSERSHELL.
56392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56393         and HAVE_GETUSERSHELL.
56394         * modules/getusershell (Depends-on): Add unistd, extensions.
56395         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56396         (Include): Specify <unistd.h>.
56397         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56398         HAVE_GETUSERSHELL.
56399
56400 2008-10-18  Bruno Haible  <bruno@clisp.org>
56401
56402         Add a getloadavg() declaration to <stdlib.h>.
56403         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56404         getloadavg declaration.
56405         (getloadavg): New declaration.
56406         * lib/getloadavg.c: Include <stdlib.h> first.
56407         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56408         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56409         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56411         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56412         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56413         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56414         (Include): Specify <stdlib.h>.
56415         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56416         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56417
56418 2008-10-18  Bruno Haible  <bruno@clisp.org>
56419
56420         * lib/dirchownmod.c: Don't include lchmod.h.
56421
56422         Move the lchmod() declaration to <sys/stat.h>.
56423         * lib/lchmod.h: Remove file.
56424         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56425         (lchmod): New declaration, moved here from lib/lchown.h.
56426         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56427         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56428         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56429         and HAVE_LCHMOD.
56430         * modules/lchmod (Files): Remove lib/lchmod.h.
56431         (Depends-on): Add sys_stat, extensions.
56432         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56433         (Include): Specify <sys/stat.h> instead of lchmod.h.
56434         * modules/sys_stat (Depends-on): Add link-warning.
56435         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56436         definition of GL_LINK_WARNING.
56437         * NEWS: Mention the change.
56438
56439 2008-10-18  Bruno Haible  <bruno@clisp.org>
56440
56441         * lib/fchdir.c: Don't include dirfd.h.
56442         * lib/fts.c: Likewise.
56443         * lib/getcwd.c: Likewise.
56444         * lib/glob.c: Likewise.
56445
56446         Move the dirfd() declaration to <dirent.h>.
56447         * lib/dirfd.h: Remove file.
56448         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56449         (dirfd): New declaration.
56450         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56452         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56453         HAVE_DECL_DIRFD.
56454         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56455         HAVE_DECL_DIRFD.
56456         * modules/dirfd (Files): Remove lib/dirfd.h.
56457         (Depends-on): Add dirent, extensions.
56458         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56459         (Include): Specify <dirent.h> instead of dirfd.h.
56460         * modules/dirent (Depends-on): Add link-warning.
56461         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56462         definition of GL_LINK_WARNING.
56463         * NEWS: Mention the change.
56464
56465 2008-10-18  Bruno Haible  <bruno@clisp.org>
56466
56467         Move the euidaccess() declaration to <unistd.h>.
56468         * lib/euidaccess.h: Remove file.
56469         * lib/unistd.in.h (euidaccess): New declaration.
56470         * lib/euidaccess.c: Don't include euidaccess.h.
56471         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56472         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56474         and HAVE_EUIDACCESS.
56475         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56476         (Depends-on): Add unistd.
56477         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56478         (Include): Specify <unistd.h> instead of euidaccess.h.
56479         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56480         HAVE_EUIDACCESS.
56481         * NEWS: Mention the change.
56482
56483 2008-10-18  Bruno Haible  <bruno@clisp.org>
56484
56485         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56486
56487         Move the getdomainname() declaration to <unistd.h>.
56488         * lib/getdomainname.h: Remove file.
56489         * lib/unistd.in.h (getdomainname): New declaration.
56490         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56491         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56492         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56493         HAVE_GETDOMAINNAME.
56494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56495         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56496         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56497         (Depends-on): Add unistd, extensions.
56498         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56499         (Includes): Specify <unistd.h> instead of getdomainname.h.
56500         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56501         HAVE_GETDOMAINNAME.
56502         * NEWS: Mention the change.
56503
56504 2008-10-18  Bruno Haible  <bruno@clisp.org>
56505
56506         * modules/dirent: New file.
56507         * m4/dirent_h.m4: New file.
56508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56509         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56510         * modules/fchdir (Files): Remove lib/dirent.in.h.
56511         (Depends-on): Add dirent.
56512         (Makefile.am): Move rules to modules/dirent.
56513         * doc/posix-headers/dirent.texi: Mention the new module.
56514
56515 2008-10-18  Bruno Haible  <bruno@clisp.org>
56516
56517         Avoid -Wunused-parameter warnings in public gnulib header files.
56518         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56519         macro.
56520         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56521
56522 2008-10-18  Bruno Haible  <bruno@clisp.org>
56523
56524         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56525         * doc/glibc-functions/error.texi: Mention the module 'error'.
56526         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56527         * doc/glibc-functions/getdomainname.texi: Mention the module
56528         'getdomainname'.
56529         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56530         * doc/glibc-functions/getpagesize.texi: Mention the module
56531         'getpagesize'.
56532         * doc/glibc-functions/getusershell.texi: Mention the module
56533         'getusershell'.
56534         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56535         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56536         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56537         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56538         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56539         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56540         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56541         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56542         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56543         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56544         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56545         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56546         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56547         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56548
56549 2008-10-17  Bruno Haible  <bruno@clisp.org>
56550
56551         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56552         HP-UX and IRIX, use -0.0L.
56553         * tests/test-ceill.c (minus_zero): Likewise.
56554         * tests/test-floorl.c (minus_zero): Likewise.
56555         * tests/test-frexpl.c (minus_zero): Likewise.
56556         * tests/test-isnan.c (minus_zerol): Likewise.
56557         * tests/test-isnanl.h (minus_zero): Likewise.
56558         * tests/test-ldexpl.c (minus_zero): Likewise.
56559         * tests/test-roundl.c (minus_zero): Likewise.
56560         * tests/test-signbit.c (minus_zerol): Likewise.
56561         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56562         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56563         * tests/test-truncl.c (minus_zero): Likewise.
56564         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56565         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56566         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56567         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56568
56569 2008-10-17  Bruno Haible  <bruno@clisp.org>
56570
56571         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56572         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56573         that it gets activated only for gcc >= 3.0.
56574         * lib/dirent.in.h: Likewise.
56575         * lib/errno.in.h: Likewise.
56576         * lib/fcntl.in.h: Likewise.
56577         * lib/float.in.h: Likewise.
56578         * lib/iconv.in.h: Likewise.
56579         * lib/inttypes.in.h: Likewise.
56580         * lib/locale.in.h: Likewise.
56581         * lib/math.in.h: Likewise.
56582         * lib/netdb.in.h: Likewise.
56583         * lib/netinet_in.in.h: Likewise.
56584         * lib/search.in.h: Likewise.
56585         * lib/signal.in.h: Likewise.
56586         * lib/spawn.in.h: Likewise.
56587         * lib/stdarg.in.h: Likewise.
56588         * lib/stdint.in.h: Likewise.
56589         * lib/stdio.in.h: Likewise.
56590         * lib/stdlib.in.h: Likewise.
56591         * lib/string.in.h: Likewise.
56592         * lib/strings.in.h: Likewise.
56593         * lib/sys_file.in.h: Likewise.
56594         * lib/sys_ioctl.in.h: Likewise.
56595         * lib/sys_select.in.h: Likewise.
56596         * lib/sys_socket.in.h: Likewise.
56597         * lib/sys_stat.in.h: Likewise.
56598         * lib/sys_time.in.h: Likewise.
56599         * lib/sysexits.in.h: Likewise.
56600         * lib/time.in.h: Likewise.
56601         * lib/unistd.in.h: Likewise.
56602         * lib/wchar.in.h: Likewise.
56603         * lib/wctype.in.h: Likewise.
56604         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56605
56606 2008-10-17  Jim Meyering  <meyering@redhat.com>
56607
56608         ignore-value: don't depend on inline module
56609         * modules/ignore-value (Depends-on): Remove 'inline'.
56610         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56611         Suggestion from Bruno Haible.
56612
56613 2008-10-17  Bruno Haible  <bruno@clisp.org>
56614
56615         New implementation of condition variables for Win32.
56616         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56617         (gl_linked_waitqueue_t): New type.
56618         (gl_cond_t): Use it.
56619         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56620         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56621         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56622         (glthread_cond_init_func, glthread_cond_wait_func,
56623         glthread_cond_timedwait_func, glthread_cond_signal_func,
56624         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56625         Reimplemented on the basis of gl_linked_waitqueue_t.
56626         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56627         gl_waitqueue_t.
56628         (gl_rwlock_t): Update.
56629         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56630
56631 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56632
56633         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56634         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56635
56636 2008-10-17  Jim Meyering  <meyering@redhat.com>
56637
56638         ignore-value: new module
56639         * modules/ignore-value: New file.
56640         * lib/ignore-value.h: New file.
56641         * MODULES.html.sh (Compiler warning management): New section,
56642         just for this module.  More to come.
56643
56644 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56645
56646         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56647         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56648         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56649
56650 2008-10-16  Jim Meyering  <meyering@redhat.com>
56651
56652         openat-die.c: avoid 'no previous prototype' warning
56653         * lib/openat-die.c: Include "openat.h".
56654         Reported by Reuben Thomas <rrt@sc3d.org>.
56655
56656 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56657
56658         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56659         * lib/netdb.in.h: Fix typo.
56660         Reported by Bruno Haible  <bruno@clisp.org>
56661
56662         * lib/netdb.in.h: Include sys/socket.h for platforms without
56663         netdb.h, to get structures like hostent on MinGW.
56664         * modules/netdb (Depends-on): Add sys_socket.
56665
56666 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56667
56668         * modules/netdb, modules/netdb-tests: New file.
56669         * m4/netdb_h.m4: New file.
56670         * lib/netdb.in.h: Add, currently just an empty file pending
56671         definitions.
56672         * tests/test-netdb.c: New file.
56673         * doc/posix-headers/netdb.texi: Mention that we replace it if
56674         needed.
56675         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56676         netdb.
56677
56678 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56679
56680         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56681         with code.
56682
56683 2008-10-13  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/glthread/cond.c (glthread_cond_wait_func,
56686         glthread_cond_timedwait_func): Add a comment.
56687
56688 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56689
56690         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56691         * tests/test-select.c: Likewise,
56692
56693 2008-10-13  Bruno Haible  <bruno@clisp.org>
56694
56695         * lib/glthread/cond.c (glthread_cond_wait_func,
56696         glthread_cond_timedwait_func): Fix variable name.
56697         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56698
56699 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56700
56701         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56702         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56703         struct sockaddr.sa_len.
56704         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56705
56706 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56707
56708         * build-aux/pmccabe2html: Add css and css_url parameters.
56709
56710 2008-10-12  Bruno Haible  <bruno@clisp.org>
56711
56712         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56713         calling aclx_get.
56714         Reported by Rainer Tammer <tammer@tammer.net>.
56715
56716 2008-10-12  Bruno Haible  <bruno@clisp.org>
56717
56718         Use msvcrt aware primitives for creation/termination of Win32 threads.
56719         * lib/glthread/thread.c: Include <process.h>.
56720         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56721         (wrapper_func): Update signature.
56722         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56723
56724 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56725             Bruno Haible  <bruno@clisp.org>
56726
56727         Provide a Win32 implementation of the 'cond' module.
56728         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56729         * lib/glthread/cond.c (glthread_cond_init_func,
56730         glthread_cond_wait_func, glthread_cond_timedwait_func,
56731         glthread_cond_signal_func, glthread_cond_broadcast_func,
56732         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56733         * modules/cond (Dependencies): Add gettimeofday.
56734
56735 2008-10-11  Bruno Haible  <bruno@clisp.org>
56736
56737         Make sleep work on older versions of mingw.
56738         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56739         only whether it exists.
56740         * doc/posix-functions/sleep.texi: Mention the problem with older
56741         versions of mingw.
56742
56743 2008-10-11  Bruno Haible  <bruno@clisp.org>
56744
56745         New module 'shutdown'.
56746         * modules/shutdown: New file.
56747         * lib/sys_socket.in.h (shutdown): New declaration.
56748         * lib/winsock.c (shutdown): New function.
56749         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56750         GNULIB_SHUTDOWN.
56751         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56752         * doc/posix-functions/shutdown.texi: Document the new module.
56753
56754 2008-10-11  Jim Meyering  <meyering@redhat.com>
56755
56756         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56757
56758 2008-10-11  Bruno Haible  <bruno@clisp.org>
56759
56760         New module 'fclose'.
56761         * modules/fclose: New file.
56762         * lib/stdio.in.h (fclose): New declaration.
56763         * lib/fclose.c: New file.
56764         * m4/fclose.m4: New file.
56765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56766         REPLACE_FCLOSE.
56767         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56768         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56769         REPLACE_FCLOSE.
56770         * modules/close (Depends-on): fclose.
56771         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56772
56773 2008-10-11  Bruno Haible  <bruno@clisp.org>
56774
56775         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56776         set errno and don't call _close.
56777
56778 2008-10-10  Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56781         ACL, not afterwards. Fixes test failure on Cygwin.
56782
56783 2008-10-09  Ben Pfaff  <blp@gnu.org>
56784
56785         * build-aux/announce-gen: Fix gnulib version related part of usage
56786         message.  Die with a useful error message if no tarballs are
56787         found.
56788
56789 2008-10-10  Jim Meyering  <meyering@redhat.com>
56790
56791         bootstrap: use git's --depth=N option only if it's supported
56792         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56793         recognize the --depth option.  Reported by Pádraig Brady.
56794
56795 2008-10-09  Bruno Haible  <bruno@clisp.org>
56796
56797         New module 'ioctl'.
56798         * modules/ioctl: New file.
56799         * lib/sys_socket.in.h (ioctl): Remove declaration.
56800         * lib/winsock.c: Include <sys/ioctl.h>.
56801         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56802         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56803         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56804         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56805         * doc/posix-functions/ioctl.texi: Mention the new module.
56806
56807 2008-10-09  Bruno Haible  <bruno@clisp.org>
56808
56809         New module 'sys_ioctl'.
56810         * lib/sys_ioctl.in.h: New file.
56811         * m4/sys_ioctl_h.m4: New file.
56812         * modules/sys_ioctl: New file.
56813         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56814
56815 2008-10-09  Bruno Haible  <bruno@clisp.org>
56816
56817         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56818         * lib/winsock.c: Include <stdarg.h>.
56819         (rpl_ioctl): Change to second argument 'int' and then varargs.
56820
56821 2008-10-09  Bruno Haible  <bruno@clisp.org>
56822
56823         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56824         when the sys_socket module is present and the system has <winsock2.h>.
56825
56826 2008-10-09  Bruno Haible  <bruno@clisp.org>
56827
56828         * doc/posix-functions/close.texi: Mention module 'close' instead of
56829         module 'sys_socket'.
56830
56831 2008-10-09  Bruno Haible  <bruno@clisp.org>
56832
56833         * doc/glibc-headers/sys_ioctl.texi: New file.
56834         * doc/gnulib.texi: Include it.
56835
56836 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56837             Bruno Haible  <bruno@clisp.org>
56838
56839         Combine the two replacements of 'close'.
56840         * lib/sys_socket.in.h (close): Define to a reminder to include
56841         <unistd.h>.
56842         (_gl_close_fd_maybe_socket): New declaration.
56843         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56844         * lib/winsock.c (close): Remove undefinition.
56845         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56846         needed for the gnulib module 'close'.
56847         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56848         define to an error symbol or to a warning, if suitable.
56849         * lib/close.c: Include <sys/socket.h>.
56850         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56851         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56852         UNISTD_H_HAVE_WINSOCK2_H.
56853         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56855         UNISTD_H_HAVE_WINSOCK2_H.
56856         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56857         (configure.ac): Set a module indicator.
56858         (Makefile.am): Substitute GNULIB_CLOSE.
56859         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56860         * modules/poll-tests (Depends-on): Add close.
56861         * modules/select-tests (Depends-on): Likewise.
56862
56863 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56864             Bruno Haible  <bruno@clisp.org>
56865
56866         New module 'close'.
56867         * modules/close: New file.
56868         * lib/unistd.in.h (close): Move declaration out of the
56869         FCHDIR_REPLACEMENT scope.
56870         (_gl_unregister_fd): New declaration.
56871         * lib/close.c: New file.
56872         * lib/fchdir.c (rpl_close): Remove function.
56873         * m4/close.m4: New file.
56874         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56875         close.
56876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56877         REPLACE_CLOSE.
56878         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56879         REPLACE_CLOSE.
56880         * modules/fchdir (Depends-on): Add close.
56881
56882 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56883             Bruno Haible  <bruno@clisp.org>
56884
56885         * lib/fcntl.in.h (open): Simplify conditionals.
56886         (_gl_register_fd): New declaration.
56887         * lib/fchdir.c (rpl_open): Remove function.
56888         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56889         also.
56890         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56892         open.
56893
56894 2008-10-09  Jim Meyering  <meyering@redhat.com>
56895
56896         GNUmakefile: use the more name-space-friendly "_version"
56897         * top/GNUmakefile (_dummy): Update.
56898         (_version): Rename from "version".
56899
56900 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56901             Bruno Haible  <bruno@clisp.org>
56902
56903         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56904         rpl_close.
56905         (_gl_register_fd): New function, extracted from rpl_open.
56906         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56907         (rpl_open, rpl_opendir): Use _gl_register_fd.
56908
56909 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56910
56911         Fix organization of 'open' replacement.
56912         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56913         (gl_FUNC_OPEN): Use it.
56914         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56915
56916 2008-10-08  Bruno Haible  <bruno@clisp.org>
56917
56918         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56919
56920 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56921
56922         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56923         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56924         listen).
56925
56926 2008-10-08  Eric Blake  <ebb9@byu.net>
56927
56928         GNUmakefile: add 'make version' target
56929         * top/GNUmakefile (_curr-ver): Split version update rules...
56930         (version): ...into a target.
56931
56932 2008-10-07  Bruno Haible  <bruno@clisp.org>
56933
56934         Use a more portable replacement expression for -0.0L.
56935         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56936         instead of -0.0L. Fix m4 quotation.
56937
56938         * tests/test-signbit.c: Include <float.h>.
56939         (minus_zero): New variable.
56940         (test_signbitl): Use minus_zero instead of -zero.
56941         * modules/signbit-tests (Depends-on): Add float.
56942
56943         * tests/test-ceill.c: Include <float.h>.
56944         (zero): Remove variable.
56945         (minus_zero): New variable.
56946         (main): Use minus_zero instead of -zero.
56947         * modules/ceill-tests (Depends-on): Add float.
56948
56949         * tests/test-floorl.c: Include <float.h>.
56950         (zero): Remove variable.
56951         (minus_zero): New variable.
56952         (main): Use minus_zero instead of -zero.
56953         * modules/floorl-tests (Depends-on): Add float.
56954
56955         * tests/test-roundl.c: Include <float.h>.
56956         (zero): Remove variable.
56957         (minus_zero): New variable.
56958         (main): Use minus_zero instead of -zero.
56959         * modules/roundl-tests (Depends-on): Add float.
56960
56961         * tests/test-truncl.c: Include <float.h>.
56962         (zero): Remove variable.
56963         (minus_zero): New variable.
56964         (main): Use minus_zero instead of -zero.
56965         * modules/truncl-tests (Depends-on): Add float.
56966
56967         * tests/test-frexpl.c (zero): Remove variable.
56968         (minus_zero): New variable.
56969         (main): Use minus_zero instead of -zero.
56970         * modules/frexpl-tests (Depends-on): Add float.
56971
56972         * tests/test-isnan.c (zerol): Remove variable.
56973         (minus_zerol): New variable.
56974         (test_long_double): Use minus_zerol instead of -zerol.
56975         * modules/isnan-tests (Depends-on): Add float.
56976
56977         * tests/test-isnanl.h (zero): Remove variable.
56978         (minus_zero): New variable.
56979         (main): Use minus_zero instead of -zero.
56980         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56981         * modules/isnanl-tests (Depends-on): Add float.
56982
56983         * tests/test-ldexpl.c (zero): Remove variable.
56984         (minus_zero): New variable.
56985         (main): Use minus_zero instead of -zero.
56986         * modules/ldexpl-tests (Depends-on): Add float.
56987
56988         * tests/test-snprintf-posix.h (zerol): Remove variable.
56989         (minus_zerol): New variable.
56990         (test_function): Use minus_zerol instead of -zerol.
56991         * modules/snprintf-posix-tests (Depends-on): Add float.
56992         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56993
56994         * tests/test-sprintf-posix.h (zerol): Remove variable.
56995         (minus_zerol): New variable.
56996         (test_function): Use minus_zerol instead of -zerol.
56997         * modules/sprintf-posix-tests (Depends-on): Add float.
56998         * modules/vsprintf-posix-tests (Depends-on): Add float.
56999
57000         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
57001         (minus_zerol): New variable.
57002         (test_function): Use minus_zerol instead of -zerol.
57003         * modules/vasnprintf-posix-tests (Depends-on): Add float.
57004
57005         * tests/test-vasprintf-posix.c (zerol): Remove variable.
57006         (minus_zerol): New variable.
57007         (test_function): Use minus_zerol instead of -zerol.
57008         * modules/vasprintf-posix-tests (Depends-on): Add float.
57009
57010 2008-10-07  Simon Josefsson  <simon@josefsson.org>
57011
57012         * MODULES.html.sh (Support for building documentation): Mention
57013         pmccabe2html.  Sort entries.
57014
57015         Add pmccabe2html module, from gnupdf.
57016         * build-aux/pmccabe.css: New file.
57017         * build-aux/pmccabe2html: New file.
57018         * m4/pmccabe2html.m4: New file.
57019         * modules/pmccabe2html: New file.
57020
57021 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
57022
57023         flock: new module
57024         * MODULES.html.sh: Add to list of modules.
57025         * lib/flock.c: flock implementation for Windows and Unix systems
57026         which have fcntl.
57027         * doc/glibc-functions/flock.texi: Update documentation.
57028         * lib/sys_file.in.h: <sys/file.h> header file.
57029         * m4/flock.m4: M4 macros.
57030         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
57031         * modules/flock: flock module.
57032         * modules/flock-tests: flock tests module.
57033         * modules/sys_file: sys/file.h module.
57034         * tests/test-flock.c: test suite for flock.
57035
57036 2008-10-06  Jim Meyering  <meyering@redhat.com>
57037
57038         bootstrap: check for LT_INIT more portably still ;-)
57039         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
57040         Spotted by Bruno Haible.
57041
57042 2008-10-06  Eric Blake  <ebb9@byu.net>
57043
57044         test-signbit: avoid tripping Irix cc bug on -0.0L
57045         * tests/test-signbit.c (minus_zerol): Delete, and replace with
57046         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
57047         entire testsuite consistent and avoids an Irix 6.2 bug.
57048
57049 2008-10-05  Bruno Haible  <bruno@clisp.org>
57050             Jim Meyering  <jim@meyering.net>
57051
57052         Add an option for ignoring EPIPE during close_stdout.
57053         * lib/closeout.h: Include <stdbool.h>.
57054         (close_stdout_set_ignore_EPIPE): New declaration.
57055         * lib/closeout.c: Include <stdbool.h>.
57056         (ignore_EPIPE): New variable.
57057         (close_stdout_set_ignore_EPIPE): New function.
57058         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
57059         * lib/close-stream.c (close_stream): Mention the possible EPIPE
57060         failure.
57061         * modules/closeout (Depends-on): Add stdbool.
57062
57063 2008-10-05  Bruno Haible  <bruno@clisp.org>
57064
57065         * modules/accept: New file.
57066         * modules/bind: New file.
57067         * modules/connect: New file.
57068         * modules/getpeername: New file.
57069         * modules/getsockname: New file.
57070         * modules/getsockopt: New file.
57071         * modules/listen: New file.
57072         * modules/recv: New file.
57073         * modules/recvfrom: New file.
57074         * modules/send: New file.
57075         * modules/sendto: New file.
57076         * modules/setsockopt: New file.
57077         * modules/socket: New file.
57078         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
57079         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
57080         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
57081         the particular module is requested. Add a link warning when the
57082         particular module is not requested.
57083         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
57084         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
57085         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
57086         the particular module is requested.
57087         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
57088         gl_SYS_SOCKET_H_DEFAULTS): New macros.
57089         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
57090         * modules/sys_socket (Depends-on): Add link-warning.
57091         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
57092         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
57093         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
57094         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
57095         GL_LINK_WARNING.
57096         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
57097         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
57098         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
57099         * doc/posix-functions/getpeername.texi: Mention the new module
57100         'getpeername'.
57101         * doc/posix-functions/getsockname.texi: Mention the new module
57102         'getsockname'.
57103         * doc/posix-functions/getsockopt.texi: Mention the new module
57104         'getsockopt'.
57105         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
57106         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
57107         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
57108         * doc/posix-functions/send.texi: Mention the new module 'send'.
57109         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
57110         * doc/posix-functions/setsockopt.texi: Mention the new module
57111         'setsockopt'.
57112         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
57113         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
57114         listen, connect, accept.
57115         * modules/select-tests (Depends-on): Likewise.
57116
57117 2008-10-05  Bruno Haible  <bruno@clisp.org>
57118
57119         * lib/winsock.c (strerror): Remove unused #undef.
57120         (rpl_close): Remove unused local variable.
57121
57122         * modules/sys_socket (Depends-on); Add errno.
57123
57124 2008-10-05  Bruno Haible  <bruno@clisp.org>
57125
57126         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
57127         (select): Add a link warning when the 'select' module is not used.
57128         * modules/sys_select (Depends-on): Add link-warning.
57129         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
57130         Suggested by Paolo Bonzini.
57131
57132 2008-10-05  Jim Meyering  <meyering@redhat.com>
57133
57134         bootstrap: check for LT_INIT more portably
57135         * build-aux/bootstrap: Avoid using grep -E, since it's not
57136         portable enough.  Suggestion from Bruno Haible.
57137
57138 2008-10-05  Bruno Haible  <bruno@clisp.org>
57139
57140         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
57141         as being fixed by gnulib.
57142
57143 2008-10-05  Bruno Haible  <bruno@clisp.org>
57144
57145         * modules/select-tests: New file, mostly copied from
57146         modules/sys_select-tests.
57147         * tests/test-select.c: New file, mostly copied from
57148         tests/test-sys_select.c.
57149         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
57150         * modules/sys_select-tests (Depends-on): Remove all dependencies.
57151         (Makefile.am): Remove test_sys_select_LDADD.
57152
57153         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
57154         to an undefined symbol, for an error message.
57155         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
57156         (gl_SYS_SELECT_H_DEFAULTS): New macro.
57157         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
57158         winsock-select.c here.
57159         * modules/sys_select (Files): Remove lib/winsock-select.c.
57160         (Depends-on): Remove alloca.
57161         (Makefile.am): Substitute GNULIB_SELECT.
57162         * modules/select: New file.
57163         * doc/posix-functions/select.texi: Update.
57164
57165 2008-10-05  Bruno Haible  <bruno@clisp.org>
57166
57167         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
57168         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
57169         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
57170         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
57171         getdtablesize.
57172         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57173         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57174
57175 2008-10-05  Bruno Haible  <bruno@clisp.org>
57176
57177         * modules/getdtablesize-tests: New file.
57178         * tests/test-getdtablesize.c: New file.
57179
57180         New module 'getdtablesize'.
57181         * lib/unistd.in.h (getdtablesize): New declaration.
57182         * lib/getdtablesize.c: New file.
57183         * m4/getdtablesize.m4: New file.
57184         * modules/getdtablesize: New file.
57185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57186         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
57187         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
57188         HAVE_GETDTABLESIZE.
57189         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
57190
57191 2008-10-05  Bruno Haible  <bruno@clisp.org>
57192
57193         * modules/sched (Makefile.am): Fix typo.
57194         Reported by Simon Josefsson.
57195
57196 2008-10-05  Jim Meyering  <meyering@redhat.com>
57197
57198         bootstrap: check for LT_INIT, too
57199         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
57200         are deprecated.  Suggestion from Ralf Wildenhues.
57201
57202 2008-10-05  Bruno Haible  <bruno@clisp.org>
57203
57204         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57205         overriding them by ours.
57206         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57207
57208 2008-10-05  Jim Meyering  <meyering@redhat.com>
57209
57210         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57211         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57212         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57213
57214 2008-10-04  Bruno Haible  <bruno@clisp.org>
57215
57216         * modules/dup2 (License): Change to LGPLv2+.
57217         * modules/sleep (License): Likewise.
57218         * modules/perror (License): Likewise.
57219         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57220         Blake.
57221         * modules/signal (License): Likewise.
57222         * modules/sigprocmask (License): Likewise.
57223         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57224         Meyering.
57225
57226 2008-10-04  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57229         Reported by Rainer Tammer <tammer@tammer.net>.
57230
57231 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57232             Bruno Haible  <bruno@clisp.org>
57233
57234         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57235         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57236         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57237
57238 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57239
57240         filevercmp: new module
57241         * lib/filevercmp.h: New function filevercmp comparing version strings.
57242         * lib/filevercmp.c: Implementation of filevercmp function.
57243         * modules/filevercmp: Module metadata.
57244         * tests/test-filevercmp.c: Unit test for new module.
57245         * modules/filevercmp-tests: Unit test metadata.
57246         * MODULES.html.sh: Add filevercmp module.
57247
57248 2008-10-03  Bruno Haible  <bruno@clisp.org>
57249
57250         * lib/c-ctype.h: Add comment.
57251         Reported by Jim Meyering.
57252
57253 2008-10-02  Bruno Haible  <bruno@clisp.org>
57254
57255         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57256
57257 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57258
57259         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57260         name of bootstrap.conf accordingly.
57261
57262 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57263
57264         * build-aux/bootstrap: Install git-merge-changelog configuration
57265         items into .gitconfig if needed.
57266
57267 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57268
57269         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57270         git repository, and initialize/update it accordingly.
57271
57272 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57273
57274         * modules/fsync-tests: New file.
57275         * tests/test-fsync.c: New file.
57276
57277         New module 'fsync'.
57278         * lib/fsync.c: New file.
57279         * m4/fsync.m4: New file.
57280         * modules/fsync: New file.
57281         * lib/unistd.in.h (fsync): New declaration.
57282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57283         GNULIB_FSYNC and HAVE_FSYNC.
57284         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57285         * MODULES.html.sh (posix_functions): Add fsync.
57286         * doc/posix-functions/fsync.texi: Mention the new module.
57287
57288 2008-10-02  Jim Meyering  <meyering@redhat.com>
57289
57290         fts.c: sync with similar code from coreutils' remove.c
57291         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57292         Guard also with "#if defined __linux__", since for now at least,
57293         this code is Linux-kernel-specific.
57294
57295 2008-10-02  Jim Meyering  <meyering@redhat.com>
57296
57297         fts: bug fixes
57298         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57299         Include <sys/vfs.h>, not <sys/statfs.h>.
57300
57301         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57302         Include <sys/vfs.h>, not <sys/statfs.h>.
57303
57304 2008-10-01  Bruno Haible  <bruno@clisp.org>
57305
57306         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57307         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57308         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57309         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57310         * doc/posix-functions/posix_spawnp.texi: Likewise.
57311         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57312         whether posix_spawn actually works.
57313         * m4/pipe.m4 (gl_PIPE): Likewise.
57314         * modules/execute (Files): Add m4/posix_spawn.m4.
57315         * modules/pipe (Files): Add m4/posix_spawn.m4.
57316         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57317
57318 2008-10-01  Jim Meyering  <meyering@redhat.com>
57319
57320         remove trailing spaces
57321         * NEWS: Likewise.
57322         * lib/poll.c (poll): Likewise.
57323         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57324         * lib/winsock.c (rpl_close): Likewise.
57325         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57326         * modules/yield: Likewise.
57327         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57328         * tests/test-sys_select.c (connect_to_socket): Likewise.
57329
57330         fts.c: adjust a new interface to be more generally useful
57331         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57332         (fts_build): Adjust caller.
57333
57334 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57335
57336         * modules/cond-tests: New file.
57337         * tests/test-cond.c: New file.
57338
57339 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57340             Bruno Haible  <bruno@clisp.org>
57341
57342         * modules/cond (Dependencies): Add errno, time.
57343         * lib/glthread/cond.h: Include <time.h>.
57344         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57345         across platforms.
57346
57347 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57348             Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57351
57352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57353             Bruno Haible  <bruno@clisp.org>
57354
57355         * modules/tls-tests (Depends-on): Add thread, yield.
57356         (configure.ac): Remove all checks.
57357         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57358         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57359         gl_thread_self): Remove definitions. Include glthread/thread.h and
57360         glthread/yield.h instead.
57361         (test_tls): Pass an additional NULL argument to gl_thread_join.
57362
57363 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57364             Bruno Haible  <bruno@clisp.org>
57365
57366         * modules/lock-tests (Depends-on): Add thread, yield.
57367         (configure.ac): Remove all checks.
57368         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57369         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57370         gl_thread_self): Remove definitions. Include glthread/thread.h and
57371         glthread/yield.h instead.
57372         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57373         additional NULL argument to gl_thread_join.
57374
57375 2008-09-30  Bruno Haible  <bruno@clisp.org>
57376
57377         Fix the Win32 implementation of the 'thread' module.
57378         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57379         pointer type.
57380         (gl_thread_self): Invoke gl_thread_self_func.
57381         (gl_thread_self_func): New declaration.
57382         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57383         (do_init_self_key, init_self_key): New functions.
57384         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57385         Remove some fields.
57386         (running_threads, running_lock): Remove variables.
57387         (get_current_thread_handle): New function.
57388         (gl_thread_self_func, wrapper_func, glthread_create_func,
57389         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57390         simplified.
57391
57392 2008-09-30  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57395         files.
57396
57397 2008-09-30  Jim Meyering  <meyering@redhat.com>
57398
57399         fts.m4: correct the test for statfs.f_type
57400         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57401         when checking for statfs.f_type.
57402
57403 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57404
57405         tests: avoid some compiler warnings
57406         * tests/test-memchr.c (main): Pass NULL indirectly.
57407         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57408
57409 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57410
57411         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57412         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57413         exactly specified dayshifts.
57414         (dayshift): New rule.
57415         (rel): Add dayshift.
57416         (relative_time_table) [tomorrow, yesterday, today, now]:
57417         Use tDAY_SHIFT in place of tDAY_UNIT.
57418         * tests/test-getdate.c: Add tests for now-disallowed countable
57419         dayshifts, e.g., "4 yesterday ago".
57420
57421 2008-09-29  Bruno Haible  <bruno@clisp.org>
57422
57423         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57424         * tests/test-posix_spawn1.in.sh: Renamed from
57425         tests/test-posix_spawn.in.sh.
57426         * tests/test-posix_spawn2.c: New file.
57427         * tests/test-posix_spawn2.in.sh: New file.
57428         * modules/posix_spawnp-tests (Files): Update.
57429         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57430
57431 2008-09-29  Bruno Haible  <bruno@clisp.org>
57432
57433         Propagate effects of putenv/setenv/unsetenv to child processes.
57434         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57435         * lib/pipe.c (create_pipe): Likewise.
57436
57437 2008-09-29  Bruno Haible  <bruno@clisp.org>
57438
57439         Enable use of shell scripts as executables in mingw.
57440         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57441         run the program as a shell script.
57442         * lib/pipe.c (create_pipe): Likewise.
57443         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57444         resulting array.
57445
57446 2008-09-29  Eric Blake  <ebb9@byu.net>
57447
57448         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57449
57450 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57451
57452         * doc/posix-functions/accept.texi: Update mingw problems.
57453         * doc/posix-functions/bind.texi: Update mingw problems.
57454         * doc/posix-functions/close.texi: Update mingw problems.
57455         * doc/posix-functions/connect.texi: Update mingw problems.
57456         * doc/posix-functions/getpeername.texi: Update mingw problems.
57457         * doc/posix-functions/getsockname.texi: Update mingw problems.
57458         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57459         * doc/posix-functions/ioctl.texi: Update mingw problems.
57460         * doc/posix-functions/listen.texi: Update mingw problems.
57461         * doc/posix-functions/recv.texi: Update mingw problems.
57462         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57463         * doc/posix-functions/select.texi: Update mingw problems.
57464         * doc/posix-functions/send.texi: Update mingw problems.
57465         * doc/posix-functions/sendto.texi: Update mingw problems.
57466         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57467         * doc/posix-functions/socket.texi: Update mingw problems.
57468
57469 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57470             Bruno Haible  <bruno@clisp.org>
57471
57472         * lib/sys_select.in.h: Include sys/time.h.
57473         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57474         * modules/sys_select: Depend on sys_time.
57475         * tests/test-sys_select.c: Test that sys/select.h defines struct
57476         timeval fully.
57477
57478 2008-09-29  Bruno Haible  <bruno@clisp.org>
57479
57480         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57481         * lib/sys_select.in.h: Likewise.
57482
57483 2008-09-29  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57486
57487 2008-09-29  Bruno Haible  <bruno@clisp.org>
57488
57489         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57490         Set LIBSOCKET instead of augmenting LIBS.
57491         * modules/sockets (Link): New section.
57492         * modules/sockets-tests (test_sockets_LDADD): New variable.
57493         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57494         * modules/poll-tests (test_poll_LDADD): New variable.
57495         * NEWS: Document the change.
57496
57497 2008-09-29  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57500         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57501         ARPA_INET_H directly.
57502         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57503
57504 2008-09-28  Bruno Haible  <bruno@clisp.org>
57505
57506         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57507         from gl_HEADER_SYS_SOCKET.
57508         (gl_HEADER_SYS_SOCKET): Invoke it.
57509         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57510
57511 2008-09-28  Bruno Haible  <bruno@clisp.org>
57512
57513         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57514         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57515         Needed on OSF/1 4.0.
57516
57517 2008-09-28  Bruno Haible  <bruno@clisp.org>
57518
57519         Override open more carefully.
57520         * lib/open.c (orig_open): New function.
57521         (rpl_open): Use orig_open instead of open.
57522         * lib/fcntl.in.h: Add special invocation convention.
57523         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57524         (gl_FUNC_OPEN): Invoke it.
57525
57526         Override freopen more carefully.
57527         * lib/freopen.c (orig_freopen): New function.
57528         (rpl_freopen): Use orig_freopen instead of freopen.
57529         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57530         (gl_FUNC_FREOPEN): Invoke it.
57531
57532         Override fopen more carefully.
57533         * lib/fopen.c (orig_fopen): New function.
57534         (rpl_fopen): Use orig_fopen instead of fopen.
57535         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57536         (gl_FUNC_FOPEN): Invoke it.
57537         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57538
57539 2008-09-28  Bruno Haible  <bruno@clisp.org>
57540
57541         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57542         SIGPIPE.
57543
57544 2008-09-28  Bruno Haible  <bruno@clisp.org>
57545
57546         * tests/test-sigaction.c (handler, main): Disable the check whether
57547         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57548         glibc systems with LinuxThreads.
57549
57550 2008-09-28  Bruno Haible  <bruno@clisp.org>
57551
57552         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57553
57554         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57555         with AIX xlc.
57556         * lib/fcntl.in.h (open): Likewise.
57557         Reported by Rainer Tammer <tammer@tammer.net>.
57558
57559 2008-09-28  Bruno Haible  <bruno@clisp.org>
57560
57561         * modules/posix_spawnp-tests: New file.
57562         * tests/test-posix_spawn.c: New file.
57563         * tests/test-posix_spawn.in.sh: New file.
57564
57565         New module 'posix_spawnp'.
57566         * modules/posix_spawnp: New file.
57567         * lib/spawnp.c: New file, from GNU libc with modifications.
57568         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57569
57570         New module 'posix_spawn'.
57571         * modules/posix_spawn: New file.
57572         * lib/spawn.c: New file, from GNU libc with modifications.
57573         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57574
57575         New module 'posix_spawnattr_destroy'.
57576         * modules/posix_spawnattr_destroy: New file.
57577         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57578         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57579         module.
57580
57581         New module 'posix_spawnattr_setsigmask'.
57582         * modules/posix_spawnattr_setsigmask: New file.
57583         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57584         modifications.
57585         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57586         new module.
57587
57588         New module 'posix_spawnattr_getsigmask'.
57589         * modules/posix_spawnattr_getsigmask: New file.
57590         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57591         modifications.
57592         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57593         new module.
57594
57595         New module 'posix_spawnattr_setsigdefault'.
57596         * modules/posix_spawnattr_setsigdefault: New file.
57597         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57598         modifications.
57599         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57600         new module.
57601
57602         New module 'posix_spawnattr_getsigdefault'.
57603         * modules/posix_spawnattr_getsigdefault: New file.
57604         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57605         modifications.
57606         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57607         new module.
57608
57609         New module 'posix_spawnattr_setschedpolicy'.
57610         * modules/posix_spawnattr_setschedpolicy: New file.
57611         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57612         modifications.
57613         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57614         new module.
57615
57616         New module 'posix_spawnattr_getschedpolicy'.
57617         * modules/posix_spawnattr_getschedpolicy: New file.
57618         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57619         modifications.
57620         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57621         new module.
57622
57623         New module 'posix_spawnattr_setschedparam'.
57624         * modules/posix_spawnattr_setschedparam: New file.
57625         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57626         modifications.
57627         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57628         new module.
57629
57630         New module 'posix_spawnattr_getschedparam'.
57631         * modules/posix_spawnattr_getschedparam: New file.
57632         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57633         modifications.
57634         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57635         new module.
57636
57637         New module 'posix_spawnattr_setpgroup'.
57638         * modules/posix_spawnattr_setpgroup: New file.
57639         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57640         modifications.
57641         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57642         module.
57643
57644         New module 'posix_spawnattr_getpgroup'.
57645         * modules/posix_spawnattr_getpgroup: New file.
57646         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57647         modifications.
57648         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57649         module.
57650
57651         New module 'posix_spawnattr_setflags'.
57652         * modules/posix_spawnattr_setflags: New file.
57653         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57654         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57655         module.
57656
57657         New module 'posix_spawnattr_getflags'.
57658         * modules/posix_spawnattr_getflags: New file.
57659         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57660         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57661         module.
57662
57663         New module 'posix_spawnattr_init'.
57664         * modules/posix_spawnattr_init: New file.
57665         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57666         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57667         module.
57668
57669         New module 'posix_spawn_file_actions_destroy'.
57670         * modules/posix_spawn_file_actions_destroy: New file.
57671         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57672         modifications.
57673         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57674         the new module.
57675
57676         New module 'posix_spawn_file_actions_addopen'.
57677         * modules/posix_spawn_file_actions_addopen: New file.
57678         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57679         modifications.
57680         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57681         the new module.
57682
57683         New module 'posix_spawn_file_actions_adddup2'.
57684         * modules/posix_spawn_file_actions_adddup2: New file.
57685         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57686         modifications.
57687         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57688         the new module.
57689
57690         New module 'posix_spawn_file_actions_addclose'.
57691         * modules/posix_spawn_file_actions_addclose: New file.
57692         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57693         modifications.
57694         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57695         the new module.
57696
57697         New module 'posix_spawn_file_actions_init'.
57698         * modules/posix_spawn_file_actions_init: New file.
57699         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57700         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57701         new module.
57702
57703         New module 'posix_spawn-internal'.
57704         * modules/posix_spawn-internal: New file.
57705         * lib/spawn_int.h: New file, from GNU libc with modifications.
57706         * lib/spawni.c: New file, from GNU libc with modifications.
57707         * m4/posix_spawn.m4: New file.
57708
57709         New module 'spawn'.
57710         * modules/spawn: New file.
57711         * lib/spawn.in.h: New file, from GNU libc with modifications.
57712         * m4/spawn_h.m4: New file.
57713         * doc/posix-headers/spawn.texi: Mention the new module.
57714
57715 2008-09-28  Bruno Haible  <bruno@clisp.org>
57716
57717         * modules/sched-tests: New file.
57718         * tests/test-sched.c: New file.
57719
57720         New module 'sched'.
57721         * modules/sched: New file.
57722         * lib/sched.in.h: New file.
57723         * m4/sched_h.m4: New file.
57724         * doc/posix-headers/sched.texi: Mention the new module.
57725
57726 2008-09-27  Eric Blake  <ebb9@byu.net>
57727
57728         Fix previous patch, and tweak references to $0.
57729         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57730         (func_version, func_gnulib_dir): Don't call this program
57731         gnulib-tool.
57732         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57733         with using $0 in function.
57734         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57735         (func_fatal_error): Reuse the name the user invoked us with.
57736
57737 2008-09-27  Bruno Haible  <bruno@clisp.org>
57738
57739         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57740         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57741         (gl_ICONV_H): Not here.
57742         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57743         instead of assigning ICONV_H directly.
57744
57745         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57747         WCHAR_H directly.
57748
57749 2008-09-27  Bruno Haible  <bruno@clisp.org>
57750
57751         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57752         * modules/arpa_inet (Depends-on): Add link-warning.
57753         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57754         * modules/unistd (Makefile.am): Likewise.
57755
57756 2008-09-26  Bruno Haible  <bruno@clisp.org>
57757
57758         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57759         variables.
57760         (func_version): Essentially copied from gnulib-tool.
57761         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57762         func_readlink): Copied from gnulib-tool.
57763
57764 2008-09-26  Bruno Haible  <bruno@clisp.org>
57765
57766         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57767         invoking git-version-gen.
57768
57769 2008-09-26  Bruno Haible  <bruno@clisp.org>
57770
57771         * posix-modules: Update to directory names changed on 2008-01-19.
57772         Remove commas in output before splitting into words. No more need to
57773         avoid 'ftruncate' since 2007-02-19.
57774
57775 2008-09-26  Bruno Haible  <bruno@clisp.org>
57776
57777         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57778
57779 2008-09-26  Bruno Haible  <bruno@clisp.org>
57780
57781         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57782         * modules/fwriteerror (Depends-on): Add errno.
57783
57784 2008-09-26  Bruno Haible  <bruno@clisp.org>
57785
57786         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57787         * tests/test-vc-list-files-cvs.sh: Likewise.
57788
57789 2008-09-26  Bruno Haible  <bruno@clisp.org>
57790
57791         * doc/posix-headers/sys_resource.texi: Reorder items.
57792
57793 2008-09-26  Jim Meyering  <meyering@redhat.com>
57794
57795         fts: tweak inode comparison function
57796         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57797         inode numbers, as documented.
57798
57799         fts: sort dirent entries on inode number before traversing
57800         This avoids a quadratic, seek-related performance penalty when
57801         operating on a directory containing many entries (measurable at 10k;
57802         3.5 hours at 2 million entries with a cold cache) on certain types
57803         of file systems, including ext3 and ext4, but not tmpfs.
57804         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57805         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57806         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57807         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57808         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57809         (fts_build): Set the stat.st_ino member from D_INO.
57810         If it is likely to be useful, sort dirent entries on inode number.
57811
57812         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57813         and the struct statfs.f_type member.
57814         * modules/fts (Depends-on): Add d-ino.
57815
57816 2008-09-26  Bruno Haible  <bruno@clisp.org>
57817
57818         * modules/sigpipe-die (Depends-on): Add sigpipe.
57819
57820         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57821         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57822         and GNULIB_STDIO_H_SIGPIPE are set.
57823         * lib/stdio-write.c: New file.
57824         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57825         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57826         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57827         REPLACE_STDIO_WRITE_FUNCS.
57828         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57829         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57830         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57831         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57832         * modules/stdio (Files): Add lib/stdio-write.c.
57833         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57834         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57835         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57836         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57837         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57838         REPLACE_FPRINTF_POSIX.
57839         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57840         REPLACE_PRINTF_POSIX.
57841         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57842         REPLACE_VFPRINTF_POSIX.
57843         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57844         REPLACE_VPRINTF_POSIX.
57845         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57846         SIGPIPE issue.
57847         * doc/posix-functions/fputc.texi: Likewise.
57848         * doc/posix-functions/fputs.texi: Likewise.
57849         * doc/posix-functions/fwrite.texi: Likewise.
57850         * doc/posix-functions/printf.texi: Likewise.
57851         * doc/posix-functions/putc.texi: Likewise.
57852         * doc/posix-functions/putchar.texi: Likewise.
57853         * doc/posix-functions/puts.texi: Likewise.
57854         * doc/posix-functions/vfprintf.texi: Likewise.
57855         * doc/posix-functions/vprintf.texi: Likewise.
57856
57857         * modules/safe-write (Depends-on): Add write.
57858
57859         * modules/sigpipe-tests: New file.
57860         * tests/test-sigpipe.c: New file.
57861         * tests/test-sigpipe.sh: New file.
57862
57863         * modules/write: New file.
57864         * lib/unistd.in.h: Include <sys/types.h>.
57865         (write): New declaration.
57866         * lib/write.c: New file.
57867         * m4/write.m4: New file.
57868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57869         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57870         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57871         GNULIB_WRITE, REPLACE_WRITE.
57872         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57873         and the SIGPIPE issue.
57874
57875         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57876         (raise): New declaration.
57877         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57878         (ext_signal): New function.
57879         (rpl_raise): New function.
57880         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57881         GNULIB_SIGNAL_H_SIGPIPE.
57882         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57883         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57884
57885         * modules/sigpipe: New file.
57886         * m4/sigpipe.m4: New file.
57887
57888 2008-09-25  Derek Price  <derek@ximbiot.com>
57889             Bruno Haible  <bruno@clisp.org>
57890
57891         * gnulib-tool (func_import): Report all license incompatibilities, not
57892         just the first one.
57893
57894 2008-09-25  Bruno Haible  <bruno@clisp.org>
57895
57896         * gnulib-tool (func_import): When computing the edits, consider not
57897         only the Makefile.ams that exist but also those that will be generated.
57898
57899 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57900
57901         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57902         fixes gnulib-tool --test warning about duplicate dependency.
57903
57904 2008-09-25  Bruno Haible  <bruno@clisp.org>
57905
57906         * gnulib-tool: Don't ask the user to perform edits in the generated
57907         Makefile.ams.
57908         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57909         apply to the Makefile.am being generated.
57910         (func_emit_tests_Makefile_am): Execute edits that apply to the
57911         Makefile.am being generated.
57912         (func_import): Setup list of Makefile.am edits before emitting the
57913         Makefile.ams, not at the end.
57914         (func_create_testdir): Update.
57915         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57916
57917 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57918
57919         * gnulib-tool (func_import): Store the --tests-base option in the
57920         comment in gnulib-cache.m4.
57921
57922 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57923
57924         * NEWS: Document increased portability that sys_select now provides.
57925
57926         * lib/sys_select.in.h: Install select wrapper.
57927         * lib/sys_socket.in.h: Use more descriptive name when there is no
57928         select wrapper.
57929         * lib/winsock-select.c: New.
57930         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57931         Require gl_HEADER_SYS_SOCKET.
57932         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57933         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57934         * tests/test-sys_select.c: Add functional tests.
57935
57936 2008-09-24  Eric Blake  <ebb9@byu.net>
57937
57938         open, fopen: close fd leak in last patch
57939         * lib/open.c (rpl_open): Close fd before returning error.
57940         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57941         * doc/posix-functions/open.texi (open): Document that Irix also
57942         has the bug.
57943         * doc/posix-functions/fopen.texi (fopen): Likewise.
57944         Reported by Paolo Bonzini.
57945
57946 2008-09-24  Bruno Haible  <bruno@clisp.org>
57947
57948         Ensure that a filename ending in a slash cannot be used to access a
57949         non-directory.
57950         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57951         to check whether it's really a directory.
57952         * lib/fopen.c: Include fcntl.h, unistd.h.
57953         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57954         and fdopen().
57955         * modules/fopen (Depends-on): Add unistd.
57956         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57957         * tests/test-fopen.c (main): Likewise.
57958         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57959         * doc/posix-functions/fopen.texi: Likewise.
57960         Reported by Eric Blake.
57961
57962 2008-09-23  Eric Blake  <ebb9@byu.net>
57963
57964         c-stack: avoid compiler optimizations when provoking overflow
57965         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57966         recursion harder to optimize, to ensure a stack overflow occurs.
57967         * tests/test-c-stack.c (recurse): Likewise.
57968         Borrowed from libsigsegv.
57969
57970         c-stack: work around Irix sigaltstack bug
57971         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57972         whether sigaltstack uses wrong end of stack_t (copied in part from
57973         libsigsegv).
57974         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57975         Irix bug, without requiring an over-allocation.
57976         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57977         bug.
57978
57979         fopen: document mingw bug on directories
57980         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57981         not allowing a stream visiting a directory, even though reading
57982         from such a stream is not portable.
57983
57984 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57985
57986         * lib/poll.c: Rewrite.
57987         * modules/poll: Depend on alloca.
57988
57989 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57990
57991         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57992         instead define prototypes for a full set of wrappers.  Ensure
57993         that Cygwin does not use the compatibility code, which is only
57994         for MinGW.
57995         * lib/winsock.c: New.
57996         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57997         * modules/sys_socket: Add lib/winsock.c.
57998
57999         * modules/poll-tests: Add errno and perror.
58000         * tests/test-poll.c: Use ioctl, not ioctlsocket.
58001
58002 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58003
58004         * tests/test-poll.c: Downgrade minimum needed Winsock version.
58005
58006 2008-09-23  Bruno Haible  <bruno@clisp.org>
58007
58008         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
58009         * doc/glibc-functions/*: Likewise.
58010
58011 2008-09-23  Simon Josefsson  <simon@josefsson.org>
58012
58013         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
58014         success.
58015
58016 2008-09-22  Eric Blake  <ebb9@byu.net>
58017             Bruno Haible  <bruno@clisp.org>
58018
58019         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
58020         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
58021         supply %A but mishandle pseudo-NaN.
58022         Reported by Simon Josefsson.
58023
58024 2008-09-21  Bruno Haible  <bruno@clisp.org>
58025
58026         * tests/test-lock.c (main): Tweak skip message.
58027         * tests/test-tls.c (main): Likewise.
58028
58029 2008-09-21  Bruno Haible  <bruno@clisp.org>
58030
58031         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
58032         whether 'struct sigaction' has sa_sigaction here...
58033         (gl_PREREQ_SIG_HANDLER_H): ... not here.
58034         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
58035
58036 2008-09-21  Bruno Haible  <bruno@clisp.org>
58037
58038         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
58039         section.
58040         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
58041         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
58042         the new section.
58043         (Support for obsolete systems lacking POSIX:2001): New section.
58044         (String handling <string.h>): Move strdup to the new section.
58045         Suggested by Simon Josefsson and Paolo Bonzini.
58046
58047 2008-09-21  Bruno Haible  <bruno@clisp.org>
58048
58049         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
58050         exponents in %e and %g results on 'long double'. Needed for mingw's
58051         improved *printf functions.
58052         * tests/test-vasprintf-posix.c (test_function): Likewise.
58053         * tests/test-snprintf-posix.h (test_function): Likewise.
58054         * tests/test-sprintf-posix.h (test_function): Likewise.
58055         Reported by Eric Blake.
58056
58057 2008-09-21  Bruno Haible  <bruno@clisp.org>
58058
58059         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
58060         * tests/test-sprintf-posix.h (test_function): Likewise.
58061
58062 2008-09-21  Bruno Haible  <bruno@clisp.org>
58063
58064         * modules/getpass (Depends-on): Add strdup-posix.
58065
58066         New module 'strdup-posix'.
58067         * modules/strdup-posix: New file.
58068         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
58069         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
58070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58071         REPLACE_STRDUP.
58072         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
58073         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
58074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58075         strdup-posix.
58076
58077         * modules/strdup (Depends-on): Remove malloc-posix.
58078
58079 2008-09-20  Bruno Haible  <bruno@clisp.org>
58080
58081         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
58082         Wildenhues.
58083
58084 2008-09-20  Bruno Haible  <bruno@clisp.org>
58085
58086         Ensure that wint_t gets defined on IRIX 5.3.
58087         * lib/wchar.in.h (wint_t): Define if not defined by the system.
58088         * lib/wctype.in.h (wint_t): Likewise.
58089         (__wctype_wint_t): Remove type.
58090         (isw*): Use wint_t instead of __wctype_wint_t.
58091         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
58092         * modules/wchar (Files): Add m4/wint_t.m4.
58093         (Makefile.am): Substitute HAVE_WINT_T.
58094         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
58095         * tests/test-wctype.c: Check that wint_t is defined.
58096         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
58097         * doc/posix-headers/wctype.texi: Likewise.
58098         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58099
58100 2008-09-18  Bruno Haible  <bruno@clisp.org>
58101
58102         * gnulib-tool (func_exit): Update comment.
58103
58104 2008-09-18  Simon Josefsson  <simon@josefsson.org>
58105
58106         * modules/getaddrinfo (Depends-on): Remove strdup, this module
58107         assumes strdup exists and does not depend on strdup to return
58108         ENOMEM on out of memory conditions.
58109
58110 2008-09-18  Bruno Haible  <bruno@clisp.org>
58111
58112         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
58113         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
58114         digits for the exponent.
58115
58116 2008-09-18  Jim Meyering  <meyering@redhat.com>
58117             Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/vasnprintf.c (decimal_point_char): Define also if
58120         NEED_PRINTF_INFINITE_LONG_DOUBLE.
58121
58122 2008-09-16  Bruno Haible  <bruno@clisp.org>
58123         and Eric Blake  <ebb9@byu.net>
58124
58125         vasnprintf: support Irix 5.3
58126         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
58127         that mishandle long double infinity.
58128         Reported by Tom G. Christensen.
58129
58130 2008-09-16  Bruno Haible  <bruno@clisp.org>
58131
58132         * doc/glibc-functions/scandir.texi: Mention the function is missing on
58133         Solaris 9.
58134         * doc/glibc-functions/alphasort.texi: Likewise.
58135         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
58136
58137 2008-09-16  Jim Meyering  <meyering@redhat.com>
58138
58139         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
58140         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
58141         a umask modification leak out of a subshell.  Otherwise, the
58142         opensolaris /bin/sh would be accepted and thus cause unwarranted
58143         failures in the coreutils test suite.
58144
58145 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
58146
58147         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
58148         to succeed.
58149
58150 2008-09-16  Jim Meyering  <meyering@redhat.com>
58151
58152         avoid spurious test failure when library is built without ACL support
58153         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
58154         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
58155         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
58156         * tests/test-copy-acl.sh: Likewise.
58157
58158 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58159
58160         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
58161         based on character occurrence counts.
58162
58163 2008-09-15  Eric Blake  <ebb9@byu.net>
58164
58165         tests: avoid some compiler warnings
58166         * tests/test-memchr.c (main): Pass NULL indirectly.
58167         * tests/test-closein.c (main): Avoid unused variable.
58168
58169 2008-09-15  Bruno Haible  <bruno@clisp.org>
58170
58171         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
58172         are missing on OpenBSD 4.0 individually.
58173         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58174
58175 2008-09-15  Bruno Haible  <bruno@clisp.org>
58176
58177         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
58178         * doc/posix-functions/strerror.texi: Mention also Cygwin.
58179         * doc/posix-functions/perror.texi: Likewise.
58180         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
58181         is missing.
58182         Reported by Eric Blake.
58183
58184         * lib/errno.in.h: Use replacement values >= 2000.
58185         Reported by Eric Blake.
58186
58187 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58188
58189         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
58190         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
58191         limit.
58192         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
58193         compareseq was aborted.
58194
58195 2008-09-14  Bruno Haible  <bruno@clisp.org>
58196
58197         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
58198         yvec_edit_count.
58199         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
58200         (fstrcmp_bounded): Simplify result computation accordingly.
58201
58202 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58203
58204         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58205         (fstrcmp): Define in terms of fstrcmp_bounded.
58206         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58207         lower_bound argument.
58208         Return quickly if the result is certainly < lower_bound.
58209         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58210
58211 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58212
58213         * lib/diffseq.h (EARLY_ABORT): New macro.
58214         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58215         evaluates to true.
58216
58217 2008-09-14  Bruno Haible  <bruno@clisp.org>
58218
58219         * modules/perror-tests: New file.
58220         * tests/test-perror.sh: New file.
58221         * tests/test-perror.c: New file.
58222
58223         New module 'perror'.
58224         * lib/stdio.in.h (perror): New declaration.
58225         * lib/perror.c: New file.
58226         * m4/perror.m4: New file.
58227         * modules/perror: New file.
58228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58229         * doc/posix-functions/perror.texi: Mention the perror module.
58230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58231         REPLACE_PERROR.
58232         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58233         REPLACE_PERROR.
58234
58235 2008-09-14  Bruno Haible  <bruno@clisp.org>
58236
58237         * modules/stdio (Makefile.am): Reorder to match the order in
58238         lib/stdio.in.h.
58239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58240
58241 2008-09-13  Bruno Haible  <bruno@clisp.org>
58242
58243         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58244
58245 2008-09-13  Bruno Haible  <bruno@clisp.org>
58246
58247         Extend strerror to cover the added errno values.
58248         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58249         (rpl_strerror): Provide error messages for the added errno values and
58250         for the WSA* values.
58251         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58252         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58253         strerror.
58254         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58255         * modules/strerror (Depends-on): Add errno.
58256         * doc/posix-functions/strerror.texi: Document the change.
58257         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58258         and EOVERFLOW.
58259
58260 2008-09-13  Bruno Haible  <bruno@clisp.org>
58261
58262         * modules/EOVERFLOW: Remove file.
58263         * m4/eoverflow.m4: Remove file.
58264         * modules/EOVERFLOW-tests: Remove file.
58265         * tests/test-EOVERFLOW.c: Remove file.
58266         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58267         * modules/ftell (Depends-on): Likewise.
58268         * modules/getdelim (Depends-on): Likewise.
58269         * modules/getugroups (Depends-on): Likewise.
58270         * modules/poll (Depends-on): Likewise.
58271         * modules/snprintf (Depends-on): Likewise.
58272         * modules/sprintf-posix (Depends-on): Likewise.
58273         * modules/vasnprintf (Depends-on): Likewise.
58274         * modules/vasprintf (Depends-on): Likewise.
58275         * modules/vfprintf-posix (Depends-on): Likewise.
58276         * modules/vsnprintf (Depends-on): Likewise.
58277         * modules/vsprintf-posix (Depends-on): Likewise.
58278         * modules/xvasprintf (Depends-on): Likewise.
58279         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58280         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58281         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58282         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58283         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58284         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58285         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58286         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58287         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58288         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58289         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58290         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58291         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58292         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58293         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58294         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58295         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58296         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58297         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58298         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58299         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58300         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58301         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58302         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58303         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58304         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58305         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58306         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58307         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58308         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58309         * MODULES.html.sh: Remove EOVERFLOW.
58310         * NEWS: Mention the change.
58311
58312 2008-09-13  Bruno Haible  <bruno@clisp.org>
58313
58314         * modules/errno-tests: New file.
58315         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58316
58317         * lib/errno.in.h: New file.
58318         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58319         * modules/errno: New file.
58320         * doc/posix-headers/errno.texi: Update documentation.
58321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58322
58323 2008-09-13  Bruno Haible  <bruno@clisp.org>
58324
58325         * tests/test-poll.c: Use #if for native Windows, rather than testing
58326         __MSVCRT__.
58327
58328 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58329             Bruno Haible  <bruno@clisp.org>
58330
58331         * lib/glob.c: Don't include <pwd.h> on native Windows.
58332         (WINDOWS32): New macro.
58333         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58334
58335 2008-09-13  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58338         (ETIMEDOUT): Remove macro.
58339         (glthread_cond_timedwait_multithreaded): New declaration.
58340         (glthread_cond_timedwait): Use it.
58341         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58342         (glthread_cond_timedwait_multithreaded): New function.
58343
58344 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58345
58346         * modules/poll-tests: Do not check for io.h.
58347         * tests/test-poll.c: Check for __MSVCRT__ instead.
58348
58349 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58350
58351         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58352         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58353         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58354
58355 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58356
58357         * modules/poll-tests: New.
58358         * tests/test-poll.c: New.
58359
58360 2008-09-12  Eric Blake  <ebb9@byu.net>
58361
58362         frexp: test for NetBSD failure on -0.0
58363         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58364         not all, bugs from NetBSD 3.0 have been fixed.
58365         * doc/posix-functions/frexp.texi (frexp): Document bug.
58366         Reported by Thomas Klausner.
58367
58368         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58369         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58370         literal -0.0.
58371         Reported by Jonathan C. Patschke <jp@centtech.com>.
58372
58373 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58374
58375         * lib/glthread/cond.h: Use dummy implementation also if
58376         USE_WIN32_THREADS.
58377
58378 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58379
58380         * modules/fnmatch-posix (License): Change to LGPLv2+.
58381         * modules/fnmatch-gnu (License): Likewise.
58382
58383 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58384
58385         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58386
58387 2008-09-11  Jim Meyering  <meyering@redhat.com>
58388
58389         * users.txt: Add gtk-vnc.
58390
58391 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58392
58393         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58394         rotate amounts.
58395
58396         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58397         required for 16-bit and 8-bit rotates.
58398         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58399         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58400         UINT8_MAX instead of hard-coded constants.
58401         Suggested by Paul Eggert.
58402
58403 2008-09-07  Bruno Haible  <bruno@clisp.org>
58404
58405         * tests/test-striconveh.c (main): Check behaviour when converting from
58406         UTF-7.
58407
58408         Make striconveh work better with stateful encodings.
58409         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58410         that iconv does not increment the inptr when returning -1/EINVAL.
58411
58412 2008-09-07  Bruno Haible  <bruno@clisp.org>
58413
58414         * build-aux/config.rpath: Update according to libtool-2.2.6.
58415         * build-aux/config.libpath: Likewise.
58416
58417 2008-09-06  Bruno Haible  <bruno@clisp.org>
58418
58419         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58420         * lib/freadptr.c (freadptr): Likewise.
58421         * lib/freadseek.c (freadptrinc): Likewise.
58422         Reported by Simon Josefsson.
58423
58424 2008-09-06  Bruno Haible  <bruno@clisp.org>
58425
58426         * modules/freadptr (License): Change to LGPLv2+.
58427         * modules/freadseek (License): Likewise.
58428         Suggested by Eric Blake.
58429
58430         * modules/memchr2 (License): Change to LGPLv2+.
58431         Approved by Eric Blake.
58432
58433 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58434             Bruno Haible  <bruno@clisp.org>
58435
58436         Make gnulib-tool work with native 'sed' on AIX.
58437         * gnulib-tool (sed_noop): New variable.
58438         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58439         func_add_or_update, func_create_testdir): Use it to initialize sed
58440         script variables.
58441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58442
58443 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58444             Bruno Haible  <bruno@clisp.org>
58445
58446         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58447         also works after #include directives.
58448
58449 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58450
58451         getdate.y: reject an out-of-range timezone value
58452         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58453         the range [-24...+24].  When specified with only one or two digits,
58454         * tests/test-getdate.c: Tests for the fix.
58455         * doc/getdate.texi: Document this change.
58456
58457 2008-09-03  Bruno Haible  <bruno@clisp.org>
58458
58459         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58460
58461 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58462
58463         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58464         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58465         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58466         Blake <ebb9@byu.net>.
58467
58468         * tests/test-bitrotate.c: Add more test vectors.
58469
58470 2008-09-02  Eric Blake  <ebb9@byu.net>
58471
58472         vasnprintf-posix: handle large precision via %.*d
58473         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58474         when handling it ourselves.
58475         * tests/test-vasnprintf-posix.c (test_function): Add test.
58476         * tests/test-snprintf-posix.h (test_function): Likewise.
58477         * tests/test-sprintf-posix.h (test_function): Likewise.
58478         * tests/test-vasprintf-posix.c (test_function): Likewise.
58479         Reported by Alain Guibert.
58480
58481 2008-09-01  Eric Blake  <ebb9@byu.net>
58482
58483         c-stack: make configure-time check more robust
58484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58485         successful sigaction call.
58486         Reported by Tom G. Christensen.
58487
58488 2008-09-01  Bruno Haible  <bruno@clisp.org>
58489
58490         New module 'findprog-lgpl'.
58491         * modules/findprog-lgpl: New file.
58492         * lib/findprog-lgpl.c: New file.
58493         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58494         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58495         to decide whether to use strdup or xstrdup, concatenated_filename or
58496         xconcatenated_filename.
58497
58498 2008-09-01  Bruno Haible  <bruno@clisp.org>
58499
58500         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58501         'xconcat-filename' (GPL).
58502         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58503         (License): Change to LGPLv2+.
58504         * modules/xconcat-filename: New file.
58505         * lib/concat-filename.h (concatenated_filename): Change specification.
58506         (xconcatenated_filename): New declaration.
58507         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58508         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58509         memory situations.
58510         * lib/xconcat-filename.c: New file.
58511         * NEWS: Mention the change.
58512         * lib/findprog.c: Include concat-filename.h, not filename.h.
58513         (find_in_path): Use xconcatenated_filename instead of
58514         concatenated_filename.
58515         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58516         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58517         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58518         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58519         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58520         instead of concatenated_filename.
58521         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58522         (execute_java_class): Use xconcatenated_filename instead of
58523         concatenated_filename.
58524         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58525         * modules/javacomp (Depends-on): Likewise.
58526         * modules/javaexec (Depends-on): Likewise.
58527
58528 2008-09-01  Bruno Haible  <bruno@clisp.org>
58529
58530         Split module 'filename' into 'filename' and 'concat-filename'.
58531         * modules/filename: Keep only lib/filename.h.
58532         (License): Change to LGPLv2+.
58533         * modules/concat-filename: New file, extracted from modules/filename.
58534         * lib/filename.h (concatenated_filename): Remove declaration.
58535         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58536         * lib/concat-filename.c: Include concat-filename.h.
58537         * NEWS: Mention the change.
58538
58539 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58540
58541         * lib/bitrotate.h (rotl8, rotr8): Add.
58542
58543         * modules/bitrotate (configure.ac): Need
58544         AC_REQUIRE([AC_C_INLINE]).
58545         (Description): Mention stdint.h.  Reported by Bruno Haible
58546         <bruno@clisp.org>.
58547
58548         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58549         Paolo Bonzini <bonzini@gnu.org>.
58550
58551 2008-08-31  Bruno Haible  <bruno@clisp.org>
58552
58553         Assume Solaris specific bi-arch conventions on Solaris systems.
58554         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58555         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58556         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58557         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58558         like acl_libdirstem.
58559         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58560         acl_libdirstem.
58561         * NEWS: Mention the change.
58562         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58563
58564 2008-08-31  Jim Meyering  <meyering@redhat.com>
58565
58566         * lib/strftime.h: Add comments describing the two added arguments.
58567
58568         remove duplicate #include directives
58569         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58570         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58571
58572 2008-08-31  Bruno Haible  <bruno@clisp.org>
58573
58574         New module 'sigpipe-die'.
58575         * modules/sigpipe-die: New file.
58576         * lib/sigpipe-die.h: New file.
58577         * lib/sigpipe-die.c: New file.
58578         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58579
58580 2008-08-31  Bruno Haible  <bruno@clisp.org>
58581
58582         Don't override previously installed signal handlers.
58583         * lib/fatal-signal.c (saved_sigactions): New variable.
58584         (uninstall_handlers): Reset the signal to the saved handler, not
58585         to SIG_DFL (except when ignored).
58586         (install_handlers): Save the previous handlers.
58587
58588 2008-08-30  Bruno Haible  <bruno@clisp.org>
58589
58590         * gnulib-tool (func_reset_sigpipe): New function.
58591         (func_get_automake_snippet, func_modules_transitive_closure,
58592         func_import): Invoke it before a join command that reads from stdin,
58593         to avoid "echo: write error: Broken pipe" error messages on stderr.
58594         Reported by Sam Steingold <sds@gnu.org>.
58595
58596 2008-08-30  Bruno Haible  <bruno@clisp.org>
58597
58598         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58599         Code copied from m4/open.m4.
58600         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58601         access and the filename ends in a slash. Code copied from lib/open.c.
58602         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58603         * tests/test-fopen.c (main): Check against bug with trailing slash.
58604
58605 2008-08-29  Bruno Haible  <bruno@clisp.org>
58606
58607         Avoid some "gcc -pedantic" warnings.
58608         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58609         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58610         * lib/dirent.in.h: Likewise.
58611         * lib/fcntl.in.h: Likewise.
58612         * lib/float.in.h: Likewise.
58613         * lib/iconv.in.h: Likewise.
58614         * lib/inttypes.in.h: Likewise.
58615         * lib/locale.in.h: Likewise.
58616         * lib/math.in.h: Likewise.
58617         * lib/netinet_in.in.h: Likewise.
58618         * lib/search.in.h: Likewise.
58619         * lib/signal.in.h: Likewise.
58620         * lib/stdarg.in.h: Likewise.
58621         * lib/stdint.in.h: Likewise.
58622         * lib/stdio.in.h: Likewise.
58623         * lib/stdlib.in.h: Likewise.
58624         * lib/string.in.h: Likewise.
58625         * lib/strings.in.h: Likewise.
58626         * lib/sys_select.in.h: Likewise.
58627         * lib/sys_socket.in.h: Likewise.
58628         * lib/sys_stat.in.h: Likewise.
58629         * lib/sys_time.in.h: Likewise.
58630         * lib/sysexits.in.h: Likewise.
58631         * lib/time.in.h: Likewise.
58632         * lib/unistd.in.h: Likewise.
58633         * lib/wchar.in.h: Likewise.
58634         * lib/wctype.in.h: Likewise.
58635         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58636         * modules/fchdir (Makefile.am): Likewise.
58637         * modules/fcntl (Makefile.am): Likewise.
58638         * modules/float (Makefile.am): Likewise.
58639         * modules/iconv_open (Makefile.am): Likewise.
58640         * modules/inttypes (Makefile.am): Likewise.
58641         * modules/locale (Makefile.am): Likewise.
58642         * modules/math (Makefile.am): Likewise.
58643         * modules/netinet_in (Makefile.am): Likewise.
58644         * modules/search (Makefile.am): Likewise.
58645         * modules/signal (Makefile.am): Likewise.
58646         * modules/stdarg (Makefile.am): Likewise.
58647         * modules/stdint (Makefile.am): Likewise.
58648         * modules/stdio (Makefile.am): Likewise.
58649         * modules/stdlib (Makefile.am): Likewise.
58650         * modules/string (Makefile.am): Likewise.
58651         * modules/strings (Makefile.am): Likewise.
58652         * modules/sys_select (Makefile.am): Likewise.
58653         * modules/sys_socket (Makefile.am): Likewise.
58654         * modules/sys_stat (Makefile.am): Likewise.
58655         * modules/sys_time (Makefile.am): Likewise.
58656         * modules/sysexits (Makefile.am): Likewise.
58657         * modules/time (Makefile.am): Likewise.
58658         * modules/unistd (Makefile.am): Likewise.
58659         * modules/wchar (Makefile.am): Likewise.
58660         * modules/wctype (Makefile.am): Likewise.
58661         Reported by Reuben Thomas <rrt@sc3d.org>.
58662
58663 2008-08-29  Bruno Haible  <bruno@clisp.org>
58664
58665         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58666         any more.
58667
58668 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58669
58670         * MODULES.html.sh (Misc): Add bitrotate.
58671
58672         * modules/bitrotate: New file.
58673
58674         * lib/bitrotate.h: New file.
58675
58676         * modules/bitrotate-tests: New file.
58677
58678         * tests/test-bitrotate.c: New file.
58679
58680         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58681         on the bitrotate module.
58682
58683         * lib/arctwo.c: Use new bitrotate module.
58684
58685 2008-08-29  Jim Meyering  <meyering@redhat.com>
58686
58687         bootstrap: merge changes from coreutils
58688         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58689         of copied files.  Remove a kludge, now that this is fixed.
58690         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58691         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58692         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58693
58694 2008-08-29  Bruno Haible  <bruno@clisp.org>
58695
58696         * MODULES.html.sh: Remove --cvs-urls option.
58697
58698 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58699
58700         maint.mk: adjust to file name change
58701         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58702
58703 2008-08-28  Jim Meyering  <meyering@redhat.com>
58704
58705         * modules/getndelim2 (License): Relicense to LGPLv2+.
58706         Approved by Richard Stallman for the version of 1995, and by
58707         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58708
58709 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58710
58711         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58712         dummy if one is not available.  Do not touch them if
58713         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58714         (getc_maybe_unlocked): New.
58715         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58716
58717 2008-08-26  Eric Blake  <ebb9@byu.net>
58718
58719         doc/INSTALL: resync from autoconf
58720         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58721         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58722         moving...
58723         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58724         * INSTALL: Regenerate.
58725         * INSTALL.ISO: New file.
58726         * INSTALL.UTF-8: Likewise.
58727
58728 2008-08-26  Jim Meyering  <meyering@redhat.com>
58729
58730         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58731         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58732         these definitions conditional, so that they may be overridden, too.
58733
58734 2008-08-26  Bruno Haible  <bruno@clisp.org>
58735
58736         Generate INSTALL file variants with prettier quotes.
58737         * doc/Makefile (INSTALL_PRELUDE): New macro.
58738         (INSTALL): Use it.
58739         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58740
58741 2008-08-26  Bruno Haible  <bruno@clisp.org>
58742
58743         Run makeinfo in an English locale.
58744         * doc/Makefile (MAKEINFO): New variable.
58745
58746 2008-08-26  Bruno Haible  <bruno@clisp.org>
58747
58748         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58749         Suggested by Eric Blake.
58750
58751 2008-08-25  Bruno Haible  <bruno@clisp.org>
58752
58753         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58754
58755 2008-08-25  Eric Blake  <ebb9@byu.net>
58756
58757         c-stack: test that stack overflow can be caught
58758         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58759         that platform allows handling stack overflow; at least OS/2 EMX
58760         has sigaltstack, but crashes before transferring control to
58761         handler on stack overflow.
58762         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58763         check for HAVE_STACK_OVERFLOW_HANDLING.
58764         Reported by Elbert Pol.
58765
58766 2008-08-25  Bruno Haible  <bruno@clisp.org>
58767
58768         * doc/posix-functions/strftime.texi: Fix description of strftime
58769         module.
58770
58771 2008-08-24  Bruno Haible  <bruno@clisp.org>
58772
58773         * tests/uniwidth/test-uc_width2.c: New file.
58774         * tests/uniwidth/test-uc_width2.sh: New file.
58775         * modules/uniwidth/width-tests (Files): Add the new files.
58776         (TESTS): Add uniwidth/test-uc_width2.sh.
58777         (TESTS_ENVIRONMENT): New variable.
58778         (check_PROGRAMS): Add test-uc_width2.
58779         (test_uc_width2_SOURCES): New variable.
58780
58781         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58782         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58783         not 0x00AB.
58784         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58785
58786 2008-08-22  Eric Blake  <ebb9@byu.net>
58787
58788         test-lock, test-tls: mention why a test is skipped
58789         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58790         skipped.
58791         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58792
58793         count-one-bits: relax license
58794         * modules/count-one-bits (License): Relicense to LGPLv2+.
58795         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58796
58797 2008-08-22  Andreas Schwab  <schwab@suse.de>
58798
58799         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58800         Remove spurious space in assignment.
58801
58802 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58803
58804         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58805         Paul Eggert <eggert@CS.UCLA.EDU>.
58806
58807 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58808
58809         * modules/gettext: Add m4/threadlib.m4.
58810
58811 2008-08-19  Eric Blake  <ebb9@byu.net>
58812
58813         test-c-stack: fix compilation failure on FreeBSD 5.0
58814         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58815         headers before <sys/resource.h>.
58816         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58817         the bug.
58818         Reported by Nelson H. F. Beebe.
58819
58820         strverscmp: migrate from "strverscmp.h" to <string.h>
58821         * modules/string (Makefile.am): Add new hooks.
58822         * modules/strverscmp (Files): Remove strverscmp.h.
58823         (Depends-on): Add string.
58824         (configure.ac): Add indicator.
58825         (Include): Mention new header.
58826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58827         defaults.
58828         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58829         results.
58830         * lib/strverscmp.h: Delete.
58831         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58832         * tests/test-strverscmp.c (includes): Adjust client.
58833         * lib/check-version.c (includes): Likewise.
58834         * NEWS: Document the change.
58835
58836         strverscmp: add unit test
58837         * modules/strverscmp-tests: New file.
58838         * tests/test-strverscmp.c: Likewise.
58839
58840 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58841
58842         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58843         regarding Windows crypto stuff, from Mono.
58844
58845 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58846
58847         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58848         if present, for intel RND.  Return error on failures.
58849
58850 2008-08-18  Ben Pfaff  <blp@gnu.org>
58851
58852         gitlog-to-changelog: give better diagnostic for failed pipe-open
58853         * build-aux/gitlog-to-changelog: Improve error message: suggest
58854         that the version of Git may be too old.
58855
58856 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58857
58858         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58859         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58860
58861 2008-08-18  Bruno Haible  <bruno@clisp.org>
58862
58863         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58864         pthread_in_use().
58865
58866 2008-08-18  Bruno Haible  <bruno@clisp.org>
58867
58868         * lib/glthread/threadlib.c: Include <pthread.h>.
58869
58870 2008-08-18  Bruno Haible  <bruno@clisp.org>
58871
58872         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58873         glthread_recursive_lock_* macros.
58874         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58875         Fix syntax error.
58876
58877 2008-08-18  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/glthread/thread.c: Avoid forcing a context switch right after
58880         thread creation.
58881
58882 2008-08-17  Bruno Haible  <bruno@clisp.org>
58883
58884         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58885         * lib/glthread/thread.h: Provide Win32 specific implementation.
58886         * modules/thread (Files): Add lib/glthread/thread.c.
58887         (Depends-on): Add lock.
58888         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58889
58890 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58891
58892         New module 'yield'.
58893         * modules/yield: New file.
58894         * lib/glthread/yield.h: New file.
58895         * m4/yield.m4: New file.
58896         * MODULES.html.sh (Multithreading): Add yield.
58897
58898 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58899
58900         New module 'thread'.
58901         * modules/thread: New file.
58902         * lib/glthread/thread.h: New file.
58903         * m4/thread.m4: New file.
58904         * MODULES.html.sh (Multithreading): Add thread.
58905
58906 2008-08-17  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/glthread/lock.h: Include <stdlib.h> always.
58909         * lib/glthread/tls.h: Likewise.
58910         * lib/glthread/cond.h: Likewise.
58911
58912 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58913
58914         New module 'cond'.
58915         * modules/cond: New file.
58916         * lib/glthread/cond.h: New file.
58917         * lib/glthread/cond.c: New file.
58918         * m4/cond.m4: New file.
58919         * MODULES.html.sh (Multithreading): Add cond.
58920
58921 2008-08-16  Eric Blake  <ebb9@byu.net>
58922
58923         c-stack: fix regression on Irix 5.3 from 2008-06-21
58924         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58925         sa_sigaction...
58926         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58927         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58928         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58929         * modules/signal (Makefile.am): Use the value.
58930         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58931         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58932         * doc/posix-headers/signal.texi (signal.h): Document this
58933         portability issue.
58934         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58935         Reported by Tom G. Christensen.
58936
58937 2008-08-17  Bruno Haible  <bruno@clisp.org>
58938
58939         New module 'threadlib'.
58940         * modules/threadlib: New file.
58941         * lib/glthread/threadlib.c: New file, extracted from
58942         lib/glthread/lock.c.
58943         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58944         functions.
58945         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58946         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58947         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58948         macros.
58949         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58950         (gl_DISABLE_THREADS): Remove macro.
58951         * modules/lock (Files): Remove build-aux/config.rpath.
58952         (Depends-on): Remove havelib. Add threadlib.
58953         (configure.ac-early): Remove section.
58954         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58955         * modules/tls (Depends-on): Remove lock. Add threadlib.
58956         (Link): New section, copied from threadlib.
58957         * MODULES.html.sh (Multithreading): Add threadlib.
58958
58959 2008-08-14  Bruno Haible  <bruno@clisp.org>
58960
58961         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58962         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58963         glthread_rwlock_unlock, glthread_rwlock_destroy,
58964         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58965         glthread_recursive_lock_destroy): Define as macros always.
58966         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58967         glthread_lock_lock.
58968         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58969         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58970         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58971         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58972         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58973         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58974         (glthread_recursive_lock_lock_func): Renamed from
58975         glthread_recursive_lock_lock.
58976         (glthread_recursive_lock_unlock_func): Renamed from
58977         glthread_recursive_lock_unlock.
58978         (glthread_recursive_lock_destroy_func): Renamed from
58979         glthread_recursive_lock_destroy.
58980
58981 2008-08-14  Bruno Haible  <bruno@clisp.org>
58982
58983         * lib/glthread/lock.h: Renamed from lib/lock.h.
58984         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58985         * lib/glthread/tls.h: Renamed from lib/tls.h.
58986         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58987         * lib/fstrcmp.c: Update includes.
58988         * lib/strsignal.c: Update includes.
58989         * modules/lock (Files, Makefile.am): Update.
58990         (Include): Change to "glthread/lock.h".
58991         * modules/tls (Files, Makefile.am): Update.
58992         (Include): Change to "glthread/tls.h".
58993         * tests/test-lock.c: Update includes.
58994         * tests/test-tls.c: Update includes.
58995         * NEWS: Mention the renamed header files.
58996
58997 2008-08-11  Jim Meyering  <meyering@redhat.com>
58998
58999         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
59000
59001 2008-08-11  Eric Blake  <ebb9@byu.net>
59002
59003         test-c-stack: avoid C99-ism
59004         * tests/test-c-stack.c (main): Fix whitespace, move declaration
59005         before statement.
59006         Reported by Alain Guibert.
59007
59008 2008-08-10  Jim Meyering  <meyering@redhat.com>
59009
59010         ensure that return value of uinttostr et al are not ignored
59011         * lib/inttostr.h (__GNUC_PREREQ): Define.
59012         (__attribute_warn_unused_result__): Define.
59013         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
59014
59015 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
59016
59017         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
59018         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
59019
59020 2008-08-07  Jim Meyering  <meyering@redhat.com>
59021
59022         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
59023
59024         * modules/mkstemp (License): Relicense under LGPLv2+.
59025         * modules/tempname (License): Likewise.
59026
59027 2008-08-06  Bruno Haible  <bruno@clisp.org>
59028
59029         * lib/poll.c (poll): Further micro-optimization.
59030
59031 2008-08-06  Jim Meyering  <meyering@redhat.com>
59032
59033         inet_pton.c: use locale-independent tolower
59034         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
59035         (inet_pton6): Use c_tolower rather than tolower.
59036         * modules/inet_pton (Depends-on): Add c-ctype.
59037
59038 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
59039
59040         * lib/poll.c (poll): Avoid division when timeout is 0, cache
59041         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
59042
59043 2008-08-06  Jim Meyering  <meyering@redhat.com>
59044
59045         * modules/inet_pton (License): Relicense under LGPLv2+.
59046
59047 2008-08-03  Bruno Haible  <bruno@clisp.org>
59048
59049         Additional non-aborting API for lock and tls.
59050         * lib/lock.h: Include <errno.h>.
59051         (glthread_lock_init): New macro/function.
59052         (gl_lock_init): Define as wrapper around glthread_lock_init.
59053         (glthread_lock_lock): New macro/function.
59054         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
59055         (glthread_lock_unlock): New macro/function.
59056         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
59057         (glthread_lock_destroy): New macro/function.
59058         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
59059         (glthread_rwlock_init): New macro/function.
59060         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
59061         (glthread_rwlock_rdlock): New macro/function.
59062         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
59063         (glthread_rwlock_wrlock): New macro/function.
59064         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
59065         (glthread_rwlock_unlock): New macro/function.
59066         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
59067         (glthread_rwlock_destroy): New macro/function.
59068         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
59069         (glthread_recursive_lock_init): New macro/function.
59070         (gl_recursive_lock_init): Define as wrapper around
59071         glthread_recursive_lock_init.
59072         (glthread_recursive_lock_lock): New macro/function.
59073         (gl_recursive_lock_lock): Define as wrapper around
59074         glthread_recursive_lock_lock.
59075         (glthread_recursive_lock_unlock): New macro/function.
59076         (gl_recursive_lock_unlock): Define as wrapper around
59077         glthread_recursive_lock_unlock.
59078         (glthread_recursive_lock_destroy): New macro/function.
59079         (gl_recursive_lock_destroy): Define as wrapper around
59080         glthread_recursive_lock_destroy.
59081         (glthread_once): New macro/function.
59082         (gl_once): Define as wrapper around glthread_once.
59083         Update function declarations.
59084         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
59085         glthread_rwlock_init. Return error code.
59086         (glthread_rwlock_rdlock_multithreaded): Renamed from
59087         glthread_rwlock_rdlock. Return error code.
59088         (glthread_rwlock_wrlock_multithreaded): Renamed from
59089         glthread_rwlock_wrlock. Return error code.
59090         (glthread_rwlock_unlock_multithreaded): Renamed from
59091         glthread_rwlock_unlock. Return error code.
59092         (glthread_rwlock_destroy_multithreaded): Renamed from
59093         glthread_rwlock_destroy. Return error code.
59094         (glthread_recursive_lock_init_multithreaded): Renamed from
59095         glthread_recursive_lock_init. Return error code.
59096         (glthread_recursive_lock_lock_multithreaded): Renamed from
59097         glthread_recursive_lock_lock. Return error code.
59098         (glthread_recursive_lock_unlock_multithreaded): Renamed from
59099         glthread_recursive_lock_unlock. Return error code.
59100         (glthread_recursive_lock_destroy_multithreaded): Renamed from
59101         glthread_recursive_lock_destroy. Return error code.
59102         (glthread_once_call): Make static.
59103         (glthread_once_multithreaded): Renamed from glthread_once.
59104         * lib/tls.h: Include <errno.h>.
59105         (glthread_tls_key_init): New macro/function.
59106         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
59107         (glthread_tls_set): New macro/function.
59108         (gl_tls_set): Define as wrapper around glthread_tls_set.
59109         (glthread_tls_key_destroy): New macro/function.
59110         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
59111         Update function declarations.
59112         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
59113         glthread_tls_get.
59114         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59115
59116 2008-08-04  Eric Blake  <ebb9@byu.net>
59117
59118         gnumakefile: use space, not TAB, outside of targets
59119         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
59120
59121 2008-08-02  Jim Meyering  <meyering@redhat.com>
59122
59123         getdate.y: avoid locale-dependent date parsing failure
59124         In Turkish locales, getdate would fail to recognize keywords
59125         containing a lowercase "i".  The solution is not to rely on
59126         locale-sensitive case-conversion.
59127         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
59128         (lookup_word): Use c_toupper in place of toupper.
59129         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
59130         Reported by Vefa Bicakci <bicave@superonline.com> in
59131         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
59132         * modules/getdate (Depends-on): Add c-ctype.
59133
59134 2008-08-02  Bruno Haible  <bruno@clisp.org>
59135
59136         * gnulib-tool (func_import): When updating or creating a .gitignore
59137         file, prepend each added line with a slash, and ignore leading slashes
59138         from the existing lines.
59139         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59140
59141 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59142
59143         Portability fix for GNU make 3.79.1.
59144         * top/GNUmakefile: Avoid 'else COND', which older GNU make
59145         versions do not understand.
59146
59147 2008-08-01  Bruno Haible  <bruno@clisp.org>
59148
59149         Work around bug of HP-UX 10.20 cc with -0.0 literal.
59150         * tests/test-isnanf.h (zero): New variable.
59151         (main): Avoid literal -0.0f.
59152         * tests/test-isnand.h (zero): New variable.
59153         (main): Avoid literal -0.0.
59154         * tests/test-isnanl.h (zero): New variable.
59155         (main): Avoid literal -0.0L.
59156         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
59157         (test_float, test_double, test_long_double): Avoid literals -0.0f,
59158         -0.0, -0.0L.
59159         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
59160         (test_signbitd): Avoid literal -0.0.
59161         (test_signbitl): Avoid literal -0.0L.
59162         * tests/test-ceilf1.c (zero): New variable.
59163         (main): Avoid literal -0.0f.
59164         * tests/test-ceill.c (zero): New variable.
59165         (main): Avoid literal -0.0L.
59166         * tests/test-floorf1.c (zero): New variable.
59167         (main): Avoid literal -0.0f.
59168         * tests/test-floorl.c (zero): New variable.
59169         (main): Avoid literal -0.0L.
59170         * tests/test-roundf1.c (zero): New variable.
59171         (main): Avoid literal -0.0f.
59172         * tests/test-round1.c (zero): New variable.
59173         (main): Avoid literal -0.0.
59174         * tests/test-roundl.c (zero): New variable.
59175         (main): Avoid literal -0.0L.
59176         * tests/test-truncf1.c (zero): New variable.
59177         (main): Avoid literal -0.0f.
59178         * tests/test-trunc1.c (zero): New variable.
59179         (main): Avoid literal -0.0.
59180         * tests/test-truncl.c (zero): New variable.
59181         (main): Avoid literal -0.0L.
59182         * tests/test-frexp.c (zero): New variable.
59183         (main): Avoid literal -0.0.
59184         * tests/test-frexpl.c (zero): New variable.
59185         (main): Avoid literal -0.0L.
59186         * tests/test-ldexpl.c (zero): New variable.
59187         (main): Avoid literal -0.0L.
59188         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59189         (zerod, zerol): New variables.
59190         (test_function): Avoid literals -0.0, -0.0L.
59191         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59192         (zerod, zerol): New variables.
59193         (test_function): Avoid literals -0.0, -0.0L.
59194         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59195         (zerod, zerol): New variables.
59196         (test_function): Avoid literals -0.0, -0.0L.
59197         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59198         (zerod, zerol): New variables.
59199         (test_function): Avoid literals -0.0, -0.0L.
59200         * tests/test-strtod.c (zero): New variable.
59201         (main): Avoid literal -0.0.
59202         Reported by Jonathan C. Patschke <jp@centtech.com>.
59203
59204 2008-07-31  Jim Meyering  <meyering@redhat.com>
59205
59206         sha256.h: correct definition of SHA224_DIGEST_SIZE
59207         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59208         Reported by Paulie Pena IV <paulie4@gmail.com>.
59209         Define as 224 / 8, rather than as a literal.
59210         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59211         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59212         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59213
59214 2008-07-31  Bruno Haible  <bruno@clisp.org>
59215
59216         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59217         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59218         Reported by Jonathan Patschke <jp@centtech.com>.
59219
59220 2008-07-31  Bruno Haible  <bruno@clisp.org>
59221
59222         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59223         Reported by Paolo Bonzini <bonzini@gnu.org>.
59224
59225 2008-07-30  Eric Blake  <ebb9@byu.net>
59226
59227         test-strtod: allow compilation without -lm
59228         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59229         Reported by Dennis Clarke <blastwave@gmail.com>.
59230
59231 2008-07-28  Jim Meyering  <meyering@redhat.com>
59232
59233         bootstrap: work also when there are no .po files in po/
59234         * build-aux/bootstrap (update_po_files): Complete the change
59235         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59236
59237 2008-07-27  Jim Meyering  <meyering@redhat.com>
59238
59239         * users.txt: Add zile.
59240
59241 2008-07-26  Ben Pfaff  <blp@gnu.org>
59242
59243         Add missing dependencies on new m4/exponent[fdl].m4 files.
59244         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59245         * modules/isnand-nolibm: Add m4/exponentd.m4.
59246         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59247         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59248         m4/isnan[fdl].m4, because the macros actually used moved.
59249         Reported by Jim Meyering.
59250
59251 2008-07-14  Ben Pfaff  <blp@gnu.org>
59252
59253         Add isinf module.
59254         * lib/isinf.c: New file.
59255         * lib/math.in.h: Define isinf macro if we have decided to replace
59256         it.
59257         * m4/isinf.m4: New file.
59258         * m4/math_h.m4: Initialize and substitute variables for isinf
59259         module.
59260         * modules/isinf: New file.
59261         * modules/isinf-tests: New file.
59262         * modules/math: Add substitutions for new module.
59263         * tests/test-isinf.c: New file.
59264         * doc/posix-functions/isinf.texi: Mention new module.
59265         * MODULES.html.sh: Mention new module.
59266
59267 2008-07-14  Ben Pfaff  <blp@gnu.org>
59268
59269         Factor out some macros for use by additional modules.
59270         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59271         exponentf.m4.
59272         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59273         exponentd.m4.
59274         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59275         file exponentl.m4.
59276         * m4/exponentf.m4: New file.
59277         * m4/exponentd.m4: New file.
59278         * m4/exponentl.m4: New file.
59279         * modules/isnanf: Use new file m4/exponentf.m4.
59280         * modules/isnand: Use new file m4/exponentd.m4.
59281         * modules/isnanl: Use new file m4/exponentl.m4.
59282
59283 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59284
59285         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59286         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59287         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59288         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59289
59290         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59291         readlink on platforms without PATH_MAX.
59292
59293 2008-07-21  Eric Blake  <ebb9@byu.net>
59294
59295         Warn, not fail, on stale version.
59296         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59297
59298         Don't allow installation with stale devel version number.
59299         * top/GNUmakefile (_is-install-target): New macro.
59300         (_curr-ver): Forbid installation with stale version number.
59301
59302 2008-07-20  Bruno Haible  <bruno@clisp.org>
59303
59304         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59305         TESTS_ENVIRONMENT.
59306         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59307
59308 2008-07-20  Bruno Haible  <bruno@clisp.org>
59309
59310         * lib/c-stack.h (c_stack_action): Add documentation.
59311         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59312
59313 2008-07-20  Bruno Haible  <bruno@clisp.org>
59314
59315         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59316         * modules/readlink (License): Likewise.
59317
59318 2008-07-17  Eric Blake  <ebb9@byu.net>
59319
59320         * modules/c-stack (Link): Fix typo.
59321
59322         Make c-stack use libsigsegv, when available.
59323         * modules/c-stack (Depends-on): Add libsigsegv.
59324         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59325         needed.
59326         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59327         (segv_handler, overflow_handler, c_stack_action)
59328         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59329         implementation when libsigsegv is available, but only when using
59330         the library is necessary.
59331         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59332         comment, explaining why XSI check fails on Linux.
59333         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59334         * tests/test-c-stack2.sh: Tweak skip message.
59335         * NEWS: Document new link-time requirements.
59336
59337 2008-07-16  Eric Blake  <ebb9@byu.net>
59338
59339         c-stack: Expose false positives when not using libsigsegv.
59340         * modules/c-stack-tests (Files): Expand test.
59341         * tests/test-c-stack.c (main): Add means to conditionally trigger
59342         non-overflow SIGSEGV.
59343         * tests/test-c-stack2.sh: New file.
59344
59345 2008-07-14  Bruno Haible  <bruno@clisp.org>
59346
59347         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59348         Reported by Eric Blake.
59349
59350 2008-07-14  Sam Steingold  <sds@gnu.org>
59351             Bruno Haible  <bruno@clisp.org>
59352
59353         New module libsigsegv.
59354         * modules/libsigsegv: New file.
59355         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59356         modifications.
59357         * MODULES.html.sh (Signal handling): New section.
59358
59359 2008-07-14  Bruno Haible  <bruno@clisp.org>
59360
59361         * modules/unictype/ctype-* (Description): Add the word "function".
59362         Improves the resulting doc in MODULES.html.
59363
59364 2008-07-12  Ben Pfaff  <blp@gnu.org>
59365
59366         Add longlong module.
59367         * modules/longlong: New file.
59368
59369 2008-07-12  Bruno Haible  <bruno@clisp.org>
59370
59371         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59372         to empty.
59373
59374 2008-07-10  Ben Pfaff  <blp@gnu.org>
59375
59376         Add isnan module.
59377         * doc/posix-functions/isnan.texi: Mention new module.
59378         * lib/math.in.h: Define isnan macro if we have decided to replace
59379         it.
59380         * m4/isnan.m4: New file.
59381         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59382         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59383         also.
59384         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59385         redundancy.
59386         * m4/math_h.m4: Initialize and substitute variables for isnan
59387         module.
59388         * modules/isnan: New file.
59389         * modules/isnan-tests: New file.
59390         * modules/math: Add substitutions for new module.
59391         * tests/test-isnan.c: New file.
59392         * MODULES.html.sh: Mention new module.
59393
59394 2008-07-10  Ben Pfaff  <blp@gnu.org>
59395
59396         Add isnanf module.
59397         * lib/isnanf.m4: New file.
59398         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59399         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59400         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59401         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59402         * modules/isnanf: New file.
59403         * modules/isnanf-tests: New file.
59404         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59405         files.
59406         * tests/test-isnanf-nolibm.c: factored most of its contents into
59407         new file tests/test-isnanf.h.
59408         * tests/test-isnanf.h: New file.
59409         * tests/test-isnanf.c: New file.
59410         * MODULES.html.sh: Mention new module.
59411         * doc/glibc-functions/isnanf.texi: Mention new module.
59412
59413 2008-07-10  Ben Pfaff  <blp@gnu.org>
59414
59415         Add isnand module.
59416         * lib/isnand.h: New file.
59417         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59418         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59419         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59420         functionality also.
59421         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59422         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59423         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59424         * modules/isnand: New file.
59425         * modules/isnand-tests: New file.
59426         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59427         files.
59428         * tests/test-isnand-nolibm.c: factored most of its contents into
59429         new file tests/test-isnand.h.
59430         * tests/test-isnand.h: New file.
59431         * tests/test-isnand.c: New file.
59432         * MODULES.html.sh: Mention new module.
59433
59434 2008-07-10  Ben Pfaff  <blp@gnu.org>
59435
59436         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59437         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59438         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59439         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59440         * modules/isnanf-nolibm: Update references to renamed files.
59441         * modules/isnand-nolibm: Likewise.
59442         * modules/isnanf-nolibm-tests: Likewise.
59443         * modules/isnand-nolibm-tests: Likewise.
59444         * lib/frexp.c: Likewise.
59445         * lib/isfinite.c: Likewise.
59446         * lib/signbitd.c: Likewise.
59447         * lib/signbitf.c: Likewise.
59448         * lib/vasnprintf.c: Likewise.
59449         * tests/test-ceilf1.c: Likewise.
59450         * tests/test-ceilf2.c: Likewise.
59451         * tests/test-floorf1.c: Likewise.
59452         * tests/test-floorf2.c: Likewise.
59453         * tests/test-frexp.c: Likewise.
59454         * tests/test-round1.c: Likewise.
59455         * tests/test-round2.c: Likewise.
59456         * tests/test-roundf1.c: Likewise.
59457         * tests/test-strtod.c: Likewise.
59458         * tests/test-trunc1.c: Likewise.
59459         * tests/test-trunc2.c: Likewise.
59460         * tests/test-truncf1.c: Likewise.
59461         * tests/test-truncf2.c: Likewise.
59462         * NEWS: Mention the renamed header files.
59463
59464 2008-07-11  Jim Meyering  <meyering@redhat.com>
59465
59466         vc-list-files: make the last-resort awk code more portable
59467         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59468         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59469         does not support it.
59470
59471 2008-07-10  Eric Blake  <ebb9@byu.net>
59472
59473         Work with tar's bootstrap.
59474         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59475         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59476         an m4 comment.
59477
59478 2008-07-09  Jim Meyering  <meyering@redhat.com>
59479
59480         posix-shell.m4: fix typo that made this test malfunction
59481         * m4/posix-shell.m4: Remove capitalization in variable name.
59482
59483 2008-07-08  Bruno Haible  <bruno@clisp.org>
59484
59485         * m4/onceonly.m4: Update comments.
59486         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59487
59488 2008-07-04  Jim Meyering  <meyering@redhat.com>
59489
59490         * users.txt: Add vc-dwim.
59491         (bison, coreutils): Use the gitweb URL.
59492
59493 2008-07-03  Jim Meyering  <meyering@redhat.com>
59494
59495         * users.txt: Add libffcall.  From Sam Steingold.
59496
59497 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59498
59499         getdate.y: do not ignore TZ with relative day, month or year offset
59500         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59501         relative-date-handling, since otherwise, the latter would clobber the
59502         sole output (an updated Start value) of the tz-handling block.
59503         * tests/test-getdate.c: Tests for the fix
59504
59505 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59506
59507         Recognize 'foo_LIBRARIES += libgnu.a'.
59508         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59509         makefile snippet has already specified an installation location,
59510         also using '+='.
59511
59512 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59513
59514         getdate.y: factor out common actions
59515         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59516         Use them in place of open-coded actions.
59517
59518 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59519
59520         Add self-test for getdate module.
59521         * modules/getdate-tests: New file.
59522         * tests/test-getdate.c: New file.
59523
59524 2008-06-29  Bruno Haible  <bruno@clisp.org>
59525
59526         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59527         .gitignore.
59528         Reported by Sylvain Beucler <beuc@beuc.net>.
59529
59530 2008-06-29  Bruno Haible  <bruno@clisp.org>
59531
59532         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59533         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59534
59535 2008-06-29  Bruno Haible  <bruno@clisp.org>
59536
59537         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59538         EXTRA_DIST.
59539         Reported by Sylvain Beucler <beuc@beuc.net>.
59540
59541 2008-06-26  Jim Meyering  <meyering@redhat.com>
59542
59543         make several modules depend on the "open" module
59544         This provides slightly increased consistency when opening-for-write
59545         the name of a non-directory spelled with a trailing slash.
59546         * modules/chdir-safer: Likewise.
59547         * modules/chown: Likewise.
59548         * modules/clean-temp: Likewise.
59549         * modules/copy-file: Likewise.
59550         * modules/fchdir: Likewise.
59551         * modules/fcntl-safer: Likewise.
59552         * modules/pipe: Likewise.
59553         * modules/utime: Likewise.
59554         Prompted by Eric Blake and Bruno Haible.
59555
59556 2008-06-24  Andreas Schwab  <schwab@suse.de>
59557
59558         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59559         literals can be used as initializers for global variables.
59560
59561 2008-06-23  Eric Blake  <ebb9@byu.net>
59562
59563         Make gnulib-cache.m4 easier to diff.
59564         * gnulib-tool (func_import): Allow newlines when reading cached
59565         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59566
59567 2008-06-23  Bruno Haible  <bruno@clisp.org>
59568
59569         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59570         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59571         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59572         m4/signalblocking.m4.
59573         (gl_PREREQ_SIGACTION): Don't invoke it.
59574         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59575         gl_PREREQ_SIG_HANDLER_H.
59576         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59577         Don't check for sigaction here.
59578
59579 2008-06-23  Bruno Haible  <bruno@clisp.org>
59580
59581         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59582         (install_handlers): Don't set the SA_RESETHAND flag.
59583
59584 2008-06-23  Bruno Haible  <bruno@clisp.org>
59585
59586         * m4/sigaction.m4: Comment fixes.
59587         * lib/signal.in.h: Likewise.
59588
59589 2008-06-23  Eric Blake  <ebb9@byu.net>
59590
59591         Fix typo.
59592         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59593
59594         Avoid SA_ namespace.
59595         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59596         Reported by Ralf Wildenhues.
59597
59598         Avoid test failure due to SA_RESTORER.
59599         * tests/test-sigaction.c (SA_MASK): New macro.
59600         (main): Avoid failing due to extension flags being set.
59601         Reported by Jim Meyering.
59602
59603         Revert use of sig-handler.h in sigprocmask.c.
59604         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59605         it requires the existence of struct sigaction.
59606         * lib/sigprocmask.c (handler_t): Restore typedef.
59607         (rpl_signal, old_handlers): Use local type.
59608
59609 2008-06-22  Bruno Haible  <bruno@clisp.org>
59610
59611         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59612         conditionally.
59613         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59614
59615 2008-06-22  Bruno Haible  <bruno@clisp.org>
59616
59617         * doc/posix-functions/siginterrupt.texi: Move note.
59618
59619         * lib/signal.in.h (SA_RESTART): New macro.
59620         * lib/sigaction.c: Update comment.
59621
59622         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59623
59624         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59625         (gl_PREREQ_SIGPROCMASK): Invoke it.
59626         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59627
59628         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59629
59630         * lib/sigprocmask.c: Update a comment.
59631
59632 2008-06-21  Eric Blake  <ebb9@byu.net>
59633
59634         Use sigaction module rather than signal().
59635         * modules/c-stack (Depends-on): Add sigaction.
59636         * modules/fatal-signal (Depends-on): Likewise.
59637         * modules/nanosleep (Depends-on): Likewise.
59638         * modules/sigprocmask (Files): Add sig-handler.h.
59639         * modules/sigaction (Files): Likewise.
59640         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59641         Eggert.
59642         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59643         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59644         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59645         (init_fatal_signals): Likewise.
59646         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59647         (siginterrupt): Delete fallback.
59648         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59649         instead.
59650         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59651         siginterrupt.
59652
59653         New module sigaction, for mingw.
59654         * modules/sigaction: New module...
59655         * modules/sigaction-tests: ...and its test.
59656         * m4/sigaction.m4: New file.
59657         * lib/sigaction.c: Likewise.
59658         * tests/test-sigaction.c: Likewise.
59659         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59660         * modules/signal (Makefile.am): Likewise.
59661         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59662         needed.
59663         * doc/posix-headers/signal.texi (signal.h): Mention provided
59664         types.
59665         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59666         that sigaction is preferable.
59667         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59668         module.
59669         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59670         sigaction.
59671
59672         Improve robustness of sigprocmask by overriding signal.
59673         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59674         is in use.
59675         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59676         (SIGKILL, SIGSTOP): Provide fallbacks.
59677         (rpl_signal): Implement.
59678         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59679         signal can be called inside handlers.
59680
59681         Fix nanosleep module on mingw.
59682         * modules/nanosleep (Depends-on): Add sys_select.
59683         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59684
59685         Fix licensing of sigprocmask.
59686         * modules/raise (License): Relicense as LGPL.
59687
59688 2008-06-21  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59691         result if it contains question marks.
59692         Reported by Michael Geng <linux@michaelgeng.de>.
59693
59694 2008-06-19  Bruno Haible  <bruno@clisp.org>
59695
59696         Fix CVS-ism.
59697         * doc/gnulib.texi: Include updated-stamp.texi.
59698         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59699         (updated-stamp.texi): New rule.
59700         (gnulib.info): Depend on it.
59701         * doc/.gitignore: Add updated-stamp.texi.
59702         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59703
59704 2008-06-19  Bruno Haible  <bruno@clisp.org>
59705
59706         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59707         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59708
59709 2008-06-19  Eric Blake  <ebb9@byu.net>
59710
59711         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59712         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59713         Reported by Stepan Kasal.
59714
59715 2008-06-18  Bruno Haible  <bruno@clisp.org>
59716
59717         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59718         Reported by Eric Blake.
59719
59720 2008-06-18  Eric Blake  <ebb9@byu.net>
59721
59722         Work around cygwin 1.5.25 strsignal bug.
59723         * tests/test-strsignal.c: Allow for const char *.
59724         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59725
59726 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59727
59728         * users.txt: Update URL to article and add author/date
59729         information.
59730
59731 2008-06-17  Bruno Haible  <bruno@clisp.org>
59732
59733         New macro gl_DISABLE_THREADS.
59734         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59735         if the user did not pass --enable-threads or --disable-threads option.
59736         (gl_DISABLE_THREADS): New macro.
59737         Reported by Eric Blake <ebb9@byu.net>.
59738
59739 2008-06-17  Bruno Haible  <bruno@clisp.org>
59740
59741         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59742         when the macro ignores it.
59743         Based on a patch by Eric Blake <ebb9@byu.net>.
59744
59745 2008-06-17  Bruno Haible  <bruno@clisp.org>
59746
59747         * modules/tls (License): Change to LGPLv2+.
59748         Reported by Eric Blake.
59749
59750 2008-06-17  Eric Blake  <ebb9@byu.net>
59751
59752         Simplify c-stack prerequisites.
59753         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59754         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59755         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59756         check.
59757         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59758         <sys/resource.h>.
59759
59760         Move c-stack test into testsuite.
59761         * modules/c-stack-tests: New file.
59762         * lib/c-stack.c [DEBUG]: Move test program...
59763         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59764         fail test if sigaltstack is lacking.
59765         * tests/test-c-stack.sh: New driver file.
59766
59767 2008-06-16  Eric Blake  <ebb9@byu.net>
59768
59769         Use raise module consistently.
59770         * modules/fatal-signal (Depends-on): Add raise.
59771         * modules/sigprocmask (Depends-on): Likewise.
59772         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59773         * lib/sigprocmask.c (sigprocmask): Likewise.
59774         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59775         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59776
59777         Fix compliance bug in sigpending.
59778         * lib/sigprocmask.c (sigpending): Return pending array via
59779         parameter, not return value.
59780
59781 2008-06-14  Eric Blake  <ebb9@byu.net>
59782
59783         Improve obstack-printf test code.
59784         * tests/test-obstack-printf.c (test_function): Fix comment, and
59785         simplify usage of obstack_* in macros.  Add a test for coverage.
59786         Reported by Bruno Haible.
59787
59788 2008-06-14  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59791         array size as a constant, not as a const variable.
59792         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59793         AC_USE_SYSTEM_EXTENSIONS.
59794         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59795         Test whether the obstack_printf function actually exists.
59796         * modules/obstack-printf (Depends-on): Add extensions.
59797         (Include): Remove obstack.h.
59798         * modules/obstack-printf-posix (Depends-on): Add extensions.
59799         (Include): Remove obstack.h.
59800
59801 2008-06-13  Eric Blake  <ebb9@byu.net>
59802
59803         Add obstack-printf and obstack-printf-posix modules.
59804         * modules/obstack-printf: New file.
59805         * modules/obstack-printf-posix: Likewise.
59806         * MODULES.html.sh (Misc): Mention them.
59807         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59808         Likewise.
59809         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59810         Likewise.
59811         * modules/stdio (Makefile.am): Accomodate new modules.
59812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59813         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59814         Declare.
59815         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59816         functions.
59817         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59818         (gl_REPLACE_OBSTACK_PRINTF): New macros
59819         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59820         * tests/test-obstack-printf.c: New file.
59821         * modules/obstack-printf-tests: Likewise.
59822         * modules/obstack-printf-posix-tests: Likewise.
59823
59824 2008-06-11  Bruno Haible  <bruno@clisp.org>
59825
59826         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59827         * lib/open.c: Include errno.h.
59828         (open): Fail when attempting to write to a file that has a trailing
59829         slash.
59830         * tests/test-open.c (main): Test against trailing slash bug.
59831         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59832
59833 2008-06-10  Bruno Haible  <bruno@clisp.org>
59834
59835         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59836         for $? to work inside the trap command, with various /bin/sh-s.
59837         * tests/test-vc-list-files-cvs.sh: Likewise.
59838
59839 2008-06-10  Bruno Haible  <bruno@clisp.org>
59840
59841         * lib/acl-internal.h: Don't include gettext.h here.
59842         * lib/set-mode-acl.c: Include gettext.h here.
59843         * lib/copy-acl.c: Likewise.
59844
59845 2008-06-10  Bruno Haible  <bruno@clisp.org>
59846
59847         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59848         * lib/wait-process.c (wait_subprocess): Likewise.
59849         * lib/execute.h (execute): Add termsigp argument.
59850         * lib/execute.c (execute): Likewise.
59851         * lib/csharpcomp.c (compile_csharp_using_pnet,
59852         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59853         * lib/csharpexec.c (execute_csharp_using_pnet,
59854         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59855         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59856         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59857         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59858         is_jikes_present): Update.
59859         * lib/javaexec.c (execute_java_class): Update.
59860         * lib/javaversion.c (execute_and_read_line): Update.
59861         * NEWS: Document the changes.
59862         Reported by Eric Blake.
59863
59864 2008-06-10  Eric Blake  <ebb9@byu.net>
59865
59866         Add missing include.
59867         * tests/test-strstr.c (includes): Add <signal.h>.
59868         * tests/test-strcasestr.c (includes): Likewise.
59869         * tests/test-memmem.c (includes): Likewise.
59870
59871 2008-06-10  Bruno Haible  <bruno@clisp.org>
59872
59873         * lib/wait-process.c (wait_subprocess): Add an assertion.
59874
59875 2008-06-10  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59878
59879 2008-06-10  Bruno Haible  <bruno@clisp.org>
59880
59881         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59882         using alarm().
59883         * tests/test-strcasestr.c (main): Likewise.
59884         * tests/test-strstr.c (main): Likewise.
59885
59886 2008-06-09  Bruno Haible  <bruno@clisp.org>
59887
59888         Work around the Solaris 10 ACE ACLs ABI change.
59889         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59890         declare if ACL_NO_TRIVIAL is present.
59891         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59892         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59893         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59894         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59895         define if ACL_NO_TRIVIAL is present.
59896         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59897         and use the current ABI.
59898         (file_has_acl): Use same #if condition as elsewhere.
59899         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59900         in use, and use the current ABI.
59901         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59902         Reported by Jim Meyering.
59903
59904 2008-06-09  Eric Blake  <ebb9@byu.net>
59905
59906         Work around environments that (stupidly) ignore SIGALRM.
59907         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59908         before using alarm().
59909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59910         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59911         Reported by Ian Beckwith <ianb@erislabs.net>.
59912
59913         Produce autobuild blurb earlier in log.
59914         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59915
59916 2008-06-09  Jim Meyering  <meyering@redhat.com>
59917         and Ondřej Vašík  <ovasik@redhat.com>
59918
59919         utimens.c: correct kernel bug work-around
59920         Ondřej Vašík found that the invalid return value of 280 indicates
59921         failure, not success, and the kernel bug we're trying to work
59922         around affects not just the utimensat call, but also the fallback
59923         futimens call.
59924         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59925         not success.
59926         [HAVE_FUTIMENS]: Use the same work-around, here.
59927
59928 2008-06-09  Jim Meyering  <meyering@redhat.com>
59929
59930         add more guards around definition of ACE_-related code
59931         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59932         ALLOW and ACE_OWNER are also defined.
59933
59934 2008-06-08  Bruno Haible  <bruno@clisp.org>
59935
59936         * lib/acl-internal.h: Add me as co-author.
59937         * lib/file-has-acl.c: Likewise.
59938         * lib/set-mode-acl.c: Likewise.
59939         * lib/copy-acl.c: Likewise.
59940
59941 2008-06-08  Bruno Haible  <bruno@clisp.org>
59942
59943         Add support for AIX ACLs.
59944         * lib/acl-internal.h (acl_nontrivial): New declaration.
59945         * lib/file-has-acl.c (acl_nontrivial): New function.
59946         (file_has_acl): Add implementation using AIX 4 ACL API.
59947         * lib/set-mode-acl.c (qset_acl): Likewise.
59948         * lib/copy-acl.c (qcopy_acl): Likewise.
59949
59950 2008-06-08  Bruno Haible  <bruno@clisp.org>
59951
59952         Add support for HP-UX ACLs.
59953         * lib/acl-internal.h (acl_nontrivial): New declaration.
59954         * lib/file-has-acl.c (acl_nontrivial): New function.
59955         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59956         * lib/set-mode-acl.c (qset_acl): Likewise.
59957         * lib/copy-acl.c (qcopy_acl): Likewise.
59958
59959 2008-06-08  Bruno Haible  <bruno@clisp.org>
59960
59961         Add support for Cygwin ACLs.
59962         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59963         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59964         the chmod_or_fchmod call.
59965         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59966
59967 2008-06-08  Bruno Haible  <bruno@clisp.org>
59968
59969         Fix bug with setuid modes in Solaris 10+ code.
59970         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59971         succeeded, when the mode contains some special bits.
59972
59973 2008-06-08  Bruno Haible  <bruno@clisp.org>
59974
59975         Add support for Solaris 7..10 ACLs.
59976         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59977         declarations.
59978         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59979         functions.
59980         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59981         * lib/set-mode-acl.c (qset_acl): Likewise.
59982         * lib/copy-acl.c (qcopy_acl): Likewise.
59983
59984 2008-06-08  Bruno Haible  <bruno@clisp.org>
59985
59986         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59987         declaration.
59988         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59989         (acl_access_nontrivial): Remove MacOS X case.
59990         (file_has_acl): Use acl_extended_nontrivial.
59991         * lib/copy-acl.c (qcopy_acl): Likewise.
59992
59993 2008-06-08  Bruno Haible  <bruno@clisp.org>
59994
59995         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59996
59997 2008-06-08  Jim Meyering  <meyering@redhat.com>
59998
59999         * modules/acl (Maintainer): Add Bruno Haible.
60000
60001 2008-06-07  Bruno Haible  <bruno@clisp.org>
60002
60003         Improve support for Tru64 ACLs.
60004         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
60005         ACL on OSF/1.
60006
60007 2008-06-07  Bruno Haible  <bruno@clisp.org>
60008
60009         Add support for MacOS X ACLs.
60010         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
60011         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
60012         * lib/set-mode-acl.c (qset_acl): Likewise.
60013         * lib/copy-acl.c (qcopy_acl): Likewise.
60014
60015 2008-06-07  Bruno Haible  <bruno@clisp.org>
60016
60017         Fix memory leak introduced on 2008-05-22.
60018         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
60019         use.
60020
60021 2008-06-07  Bruno Haible  <bruno@clisp.org>
60022
60023         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
60024         to construct an empty ACL.
60025
60026 2008-06-07  Bruno Haible  <bruno@clisp.org>
60027
60028         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
60029         precisely.
60030         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
60031
60032 2008-06-07  Bruno Haible  <bruno@clisp.org>
60033
60034         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
60035         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
60036
60037 2008-06-07  Bruno Haible  <bruno@clisp.org>
60038
60039         * doc/posix-functions/_setjmp.texi: Explain the use of this function
60040         regardless of POSIX.
60041         * doc/posix-functions/_longjmp.texi: Likewise.
60042         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
60043         SystemV platform in this case.
60044
60045 2008-06-06  Eric Blake  <ebb9@byu.net>
60046
60047         Document abort() bugs.
60048         * doc/posix-functions/abort.texi (abort): Mention anomalies.
60049
60050         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
60051         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
60052         sigsetjmp.
60053         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
60054         siglongjmp, but only as a macro.
60055         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
60056         is obsolete.
60057         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
60058
60059         Tweak documentation to cover cygwin argz bugs.
60060         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
60061         argz bug fix; no code change needed since no cygwin releases
60062         occurred between the last fix and the bug being tested.
60063         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
60064         module and recently fixed cygwin bugs.
60065         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
60066         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
60067         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
60068         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
60069         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
60070         Likewise.
60071         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
60072         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
60073         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
60074         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
60075         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
60076         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
60077         Likewise.
60078
60079         Avoid gcc warning on cygwin.
60080         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
60081         !ACL_NO_TRIVIAL]: Avoid unused variable.
60082
60083 2008-06-05  Eric Blake  <ebb9@byu.net>
60084
60085         Be tolerant of UNKNOWN version in gnulib-tool test dir.
60086         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
60087         git-version-gen fails to come up with a version.
60088         Reported by Simon Josefsson.
60089
60090 2008-06-05  Jim Meyering  <meyering@redhat.com>
60091             Paul Eggert  <eggert@cs.ucla.edu>
60092
60093         utimens.c: work around a probable Linux kernel bug
60094         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
60095         appears to be a kernel bug that causes utimensat to return 280
60096         instead of 0, indicating success.
60097
60098 2008-06-04  Bruno Haible  <bruno@clisp.org>
60099
60100         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
60101         2008-06-01 commit.
60102
60103 2008-06-04  Bruno Haible  <bruno@clisp.org>
60104
60105         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
60106         * lib/file-has-acl.c (acl_access_nontrivial): New function.
60107         (file_has_acl): Use it. Save errno afterwards.
60108         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
60109
60110 2008-06-03  Bruno Haible  <bruno@clisp.org>
60111
60112         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
60113         draft code. Simplify #ifs.
60114         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
60115         Put Solaris code after POSIX-draft code. Fix comments regarding
60116         Solaris 10, HP-UX. Mention Cygwin.
60117         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
60118
60119 2008-06-03  Eric Blake  <ebb9@byu.net>
60120
60121         Provide fallback for older kernels.
60122         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
60123         Provide runtime fallback if kernel lacks support.
60124         Reported by Mike Frysinger.
60125
60126 2008-06-02  Bruno Haible  <bruno@clisp.org>
60127
60128         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
60129         it exists.
60130
60131 2008-06-02  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
60134         * lib/copy-acl.c (qcopy_acl): Update comment.
60135
60136 2008-06-02  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
60139         like ACL APIs.
60140
60141 2008-06-02  Bruno Haible  <bruno@clisp.org>
60142
60143         * tests/test-file-has-acl.sh: Use different code for Cygwin.
60144         * tests/test-set-mode-acl.sh: Likewise.
60145         * tests/test-copy-acl.sh: Likewise.
60146         * tests/test-copy-file.sh: Likewise.
60147
60148 2008-06-02  Bruno Haible  <bruno@clisp.org>
60149
60150         * tests/test-file-has-acl.sh: Remove unused code.
60151
60152 2008-06-01  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
60155         (copy_acl): Just a wrapper around qcopy_acl that emits the error
60156         messages.
60157         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
60158
60159 2008-06-01  Bruno Haible  <bruno@clisp.org>
60160
60161         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
60162         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
60163         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
60164         APIs.
60165         * modules/acl-tests (configure.ac): Remove tests now contained in
60166         m4/acl.m4.
60167
60168 2008-06-02  Jim Meyering  <meyering@redhat.com>
60169
60170         announce-gen: use a better key-server host name
60171         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
60172         it may be more consistently reliable.  Suggested by Werner Koch
60173         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
60174
60175 2008-06-01  Bruno Haible  <bruno@clisp.org>
60176
60177         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
60178         Reported by Voroskoi Andras <voroskoi@gmail.com>.
60179
60180 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
60181
60182         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
60183
60184 2008-06-01  Bruno Haible  <bruno@clisp.org>
60185
60186         New ACL tests.
60187         * tests/test-file-has-acl.sh: New file.
60188         * tests/test-file-has-acl.c: New file.
60189         * tests/test-set-mode-acl.sh: New file.
60190         * tests/test-set-mode-acl.c: New file.
60191         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
60192         * tests/test-copy-acl.c: New file.
60193         * modules/acl-tests: New file, based on modules/copy-file-tests.
60194         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
60195         (Depends-on): Add acl-tests.
60196         (configure.ac): Remove checks.
60197         (Makefile.am): Don't create test-sameacls program here any more.
60198
60199 2008-06-01  Bruno Haible  <bruno@clisp.org>
60200
60201         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
60202         * tests/test-sameacls.c: Include progname.h.
60203         (main): Invoke set_program_name. Portability fixes for MacOS X,
60204         Solaris, HP-UX.
60205
60206 2008-06-01  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60209         function.
60210         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60211
60212 2008-06-01  Bruno Haible  <bruno@clisp.org>
60213
60214         * modules/rpmatch (Depends-on): Add strdup.
60215
60216 2008-06-01  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/pipe.c: Include unistd-safer.h.
60219         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60220         * modules/pipe (Depends-on): Add unistd-safer.
60221
60222 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60223
60224         * modules/autobuild (configure.ac): Call AB_INIT.
60225
60226 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60227
60228         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60229         Suggested by Bruno Haible <bruno@clisp.org>.
60230
60231 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60232
60233         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60234         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60235         <bruno@clisp.org>.
60236
60237 2008-05-29  Eric Blake  <ebb9@byu.net>
60238
60239         Prefer new POSIX 200x interfaces over futimesat.
60240         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60241         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60242         when available.
60243         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60244
60245 2008-05-28  Bruno Haible  <bruno@clisp.org>
60246
60247         * modules/stpcpy (License): Change to LGPLv2+.
60248         Requested by David Lutterkort <dlutter@redhat.com>.
60249
60250 2008-05-27  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60253         current mingw.
60254         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60255
60256 2008-05-27  Bruno Haible  <bruno@clisp.org>
60257
60258         * modules/iconv_open (Link): New section, from module 'iconv'.
60259         * modules/striconv (Link): Likewise.
60260         * modules/striconveh (Link): Likewise.
60261         * modules/xstriconv (Link): Likewise.
60262         * modules/unicodeio (Link): Likewise.
60263         * modules/propername (Link): Likewise.
60264         Reported by Jim Meyering.
60265
60266 2008-05-26  Jim Meyering  <meyering@redhat.com>
60267
60268         sha256: do not artificially restrict buffer length to be < 2^32
60269         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60270         uint32_t to size_t.
60271         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60272         to match.
60273
60274         avoid unaligned access errors, e.g., on sparc
60275         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60276         direct access through a possibly-unaligned uint64* pointer.
60277         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60278         direct access through a possibly-unaligned uint32* pointer.
60279         Prompted by this patch from Tom "spot" Callaway:
60280         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60281
60282         sha512.c: fix typo in comment
60283         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60284
60285 2008-05-25  Bruno Haible  <bruno@clisp.org>
60286
60287         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60288         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60289         (Makefile.am): Update lib_SOURCES.
60290
60291 2008-05-25  Bruno Haible  <bruno@clisp.org>
60292
60293         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60294
60295 2008-05-25  Jim Meyering  <meyering@redhat.com>
60296
60297         useless-if-before-free: freed expr may have white-space differences
60298         * build-aux/useless-if-before-free: Recognize cases in which the
60299         freed expression differs from the tested one in embedded white
60300         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60301         $1 was used, so we can't make any regexp shy.  Improved tests now
60302         detect this.
60303
60304         useless-if-before-free: accept white space in the expression.
60305         * build-aux/useless-if-before-free: For now, any white space
60306         in the expression must be identical in the free argument.
60307
60308         useless-if-before-free: efficiency tweak
60309         * build-aux/useless-if-before-free: Make the expression-matching
60310         regexp "shy".
60311         Make the *outer* regexp shy, not the expr-matching one.
60312
60313         update code-in-comment to accept cast of free arg
60314         * build-aux/useless-if-before-free: Update regexp.
60315
60316 2008-05-25  Bruno Haible  <bruno@clisp.org>
60317
60318         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60319         * modules/copy-file-tests (Files, Makefile.am): Update.
60320         * tests/test-copy-file.c (func_test_copy): Update.
60321
60322 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60323
60324         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60325
60326 2008-05-23  Bruno Haible  <bruno@clisp.org>
60327
60328         Improve support for ACLs on OSF/1.
60329         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60330         Remove fallback for unknown flavors of ACLs.
60331
60332 2008-05-22  Bruno Haible  <bruno@clisp.org>
60333
60334         Add support for ACLs on OSF/1.
60335         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60336         replacements.
60337         (acl_free_text): New macro fallback.
60338         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60339         acl_free.
60340         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60341         acl_free_text function. Require AC_C_INLINE.
60342
60343 2008-05-22  Bruno Haible  <bruno@clisp.org>
60344
60345         Make copy_acl work on MacOS X 10.5.
60346         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60347         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60348         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60349         If MODE_INSIDE_ACL, don't assume that every system has the same text
60350         representation for ACLs as FreeBSD.
60351         * lib/copy-acl.c (copy_acl): Add support for platforms with
60352         !MODE_INSIDE_ACL.
60353         * lib/file-has-acl.c (file_has_acl): Likewise.
60354         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60355         FreeBSD, MacOS X, or IRIX, respectively.
60356
60357 2008-05-22  Bruno Haible  <bruno@clisp.org>
60358
60359         * lib/acl.h: Don't include <sys/acl.h>.
60360         (GETACLCNT): Move fallback to lib/acl-internal.h.
60361         * lib/acl-internal.h: Include <sys/acl.h> here.
60362         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60363
60364 2008-05-22  Bruno Haible  <bruno@clisp.org>
60365
60366         Split off copy_acl function to separate file.
60367         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60368         * lib/acl.c (copy_acl): Moved function to separate file.
60369         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60370         * modules/acl (Files): Add lib/copy-acl.c.
60371         (Makefiles.am): Augment lib_SOURCES.
60372
60373 2008-05-22  Bruno Haible  <bruno@clisp.org>
60374
60375         * modules/copy-file-tests: New file.
60376         * tests/test-copy-file.sh: New file.
60377         * tests/test-copy-file.c: New file.
60378         * tests/test-copy-file-sameacls.c: New file.
60379
60380 2008-05-22  Eric Blake  <ebb9@byu.net>
60381
60382         Avoid gcc warning.
60383         * tests/test-memcmp.c (main): Pass NULL indirectly.
60384
60385 2008-05-21  Bruno Haible  <bruno@clisp.org>
60386
60387         Add reference doc about ACLs.
60388         * doc/acl-resources.txt: New file.
60389         * doc/acl-cygwin.txt: New file.
60390
60391 2008-05-21  Bruno Haible  <bruno@clisp.org>
60392
60393         Avoid one more warning from gcc.
60394         * lib/vasnprintf.c (IF_LINT): Update comments.
60395         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60396
60397 2008-05-21  Jim Meyering  <meyering@redhat.com>
60398
60399         avoid a warning from gcc
60400         * lib/vasnprintf.c (IF_LINT): Define.
60401         (scale10_round_decimal_long_double):
60402         Use it to avoid a "may be used uninitialized" warning.
60403         (scale10_round_decimal_double): Likewise.
60404
60405 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60406
60407         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60408         declared.
60409
60410 2008-05-20  Bruno Haible  <bruno@clisp.org>
60411
60412         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60413         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60414
60415 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60416
60417         * modules/memcmp-tests: New file.
60418         * tests/test-memcmp.c: New file.
60419
60420 2008-05-19  Bruno Haible  <bruno@clisp.org>
60421
60422         * modules/propername (Notice, configure.ac): Put quoted "..." into
60423         --keyword option.
60424         * lib/propername.h: Update comments accordingly.
60425         Reported by Eric Blake.
60426
60427 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60428
60429         * modules/getpass-gnu (Depends-on): Add fseeko.
60430
60431 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60432
60433         * modules/base64-tests: New file.
60434
60435 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60436
60437         * lib/base64.c (base64_decode_ctx): If a decode context structure
60438         was passed in use it to ignore newlines.  If a context structure
60439         was _not_ passed in, continue to treat newlines as garbage (this
60440         is the historical behavior).  Formerly base64_decode.
60441         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60442         takes a decode context structure.
60443         * lib/base64.h (base64_decode): Macro for four-argument calls.
60444         (base64_decode_alloc): Likewise.
60445         * lib/base64.c (base64_decode_ctx): If a decode context structure
60446         was passed in use it to ignore newlines.  If a context structure
60447         was _not_ passed in, continue to treat newlines as garbage (this
60448         is the historical behavior).  Formerly base64_decode.
60449         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60450         takes a decode context structure.
60451         * lib/base64.h (base64_decode): Macro for four-argument calls.
60452         (base64_decode_alloc): Likewise.
60453
60454 2008-05-19  Jim Meyering  <meyering@redhat.com>
60455
60456         avoid a warning from gcc
60457         * lib/trim.c (IF_LINT): Define.
60458         (trim2): Use it to avoid a "may be used uninitialized" warning.
60459
60460         Fix doc typo.
60461         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60462
60463 2008-05-19  Bruno Haible  <bruno@clisp.org>
60464
60465         * doc/glibc-functions/getpass.texi: Document limits of other
60466         implementations.
60467
60468 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60469             Bruno Haible <bruno@clisp.org>
60470
60471         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60472
60473 2008-05-18  Bruno Haible  <bruno@clisp.org>
60474
60475         * modules/propername: New file, from GNU gettext.
60476         * lib/propername.h: New file, from GNU gettext.
60477         * lib/propername.c: New file, from GNU gettext.
60478         * MODULES.html.sh (Internationalization functions): Add propername.
60479
60480 2008-05-16  Jim Meyering  <meyering@redhat.com>
60481             Bruno Haible  <bruno@clisp.org>
60482
60483         Avoid some warnings from "gcc -Wshadow".
60484         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60485
60486 2008-05-15  Eric Blake  <ebb9@byu.net>
60487
60488         Extend previous patch to cygwin 1.7.0.
60489         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60490         fast implementation in cygwin >= 1.7.0.
60491         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60493
60494 2008-05-15  Bruno Haible  <bruno@clisp.org>
60495
60496         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60497         implementation in glibc >= 2.9.
60498         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60500
60501 2008-05-15  Bruno Haible  <bruno@clisp.org>
60502
60503         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60504         (Unicode string functions): Add unilbrk/*.
60505         Reported by Karl Berry.
60506
60507 2008-05-15  Eric Blake  <ebb9@byu.net>
60508
60509         Fix violation of <stdbool.h> replacement in regex.
60510         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60511         * lib/regexec.c (re_search_internal): Likewise.
60512         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60513
60514 2008-05-15  Jim Meyering  <meyering@redhat.com>
60515
60516         avoid distracting test output when git or cvs is not found
60517         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60518         * tests/test-vc-list-files-git.sh: Likewise.
60519
60520 2008-05-15  Eric Blake  <ebb9@byu.net>
60521
60522         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60523         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60524         glibc version.
60525         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60526         * doc/posix-functions/strstr.texi (strstr): Likewise.
60527         * lib/str-two-way.h (MAX): Sychronize with glibc.
60528
60529 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60530
60531         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60532         opr.ctx_type.
60533         (calc_first): Initialize constraint field.
60534         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60535         Fix grammar.
60536         (duplicate_node): Merge constraint field for all node types.
60537         (calc_eclosure_iter): Look at constraint field for all node types.
60538         * lib/regex_internal.c (create_cd_newstate): Don't look at
60539         opr.ctx_type.
60540
60541 2008-05-14  Bruno Haible  <bruno@clisp.org>
60542
60543         Help GCC to do better code generation.
60544         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60545         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60546         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60547         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60548         Declare with attribute 'malloc' if supported.
60549
60550 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60551
60552         use "echo STR|wc -c" rather than unportable "expr length STR"
60553         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60554         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60555
60556 2008-05-14  Jim Meyering  <meyering@redhat.com>
60557
60558         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60559         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60560         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60561         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60562         via Collin Lasse.
60563
60564 2008-05-14  Eric Blake  <ebb9@byu.net>
60565
60566         Avoid quadratic growth in gl_LIBSOURCES.
60567         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60568         Suggested by Bruno Haible.
60569
60570         Test xmemdup0.
60571         * modules/xmemdup0-tests: New file.
60572         * tests/test-xmemdup0.c: Likewise.
60573
60574 2008-05-13  Eric Blake  <ebb9@byu.net>
60575
60576         Split xmemdup0 into its own module.
60577         * modules/xmemdup0: New file.
60578         * lib/xmemdup0.h: Likewise.
60579         * lib/xmemdup0.c: Likewise.
60580         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60581         * lib/xalloc.h (xmemdup0): Remove.
60582         * lib/xmalloc.c (xmemdup0): Likewise.
60583
60584 2008-05-13  Eric Blake  <ebb9@byu.net>
60585             Bruno Haible  <bruno@clisp.org>
60586
60587         Reduce number of forks required during autoconf.
60588         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60589         and gl_LIBSOURCES_DIR.
60590         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60591         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60592         m4_syscmd per file.
60593         <m4_foreach_w>: Move...
60594         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60595
60596 2008-05-13  Eric Blake  <ebb9@byu.net>
60597
60598         * gnulib-tool: Fix various comment typos.
60599
60600 2008-05-12  Bruno Haible  <bruno@clisp.org>
60601
60602         Tailor the linebreaking algorithm.
60603         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60604
60605 2008-05-12  Bruno Haible  <bruno@clisp.org>
60606
60607         Update to Unicode 5.0.0.
60608         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60609         LBP_JV, LBP_JT. Redistribute values.
60610         (unilbrk_table): Change size.
60611         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60612         Unicode TR#14 rev. 22.
60613         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60614         LBP_JV, LBP_JT. Redistribute values.
60615         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60616         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60617         Update.
60618         * lib/unilbrk/lbrkprop1.h: Regenerated.
60619         * lib/unilbrk/lbrkprop2.h: Regenerated.
60620         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60621         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60622         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60623         Likewise.
60624         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60625         Likewise.
60626         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60627         result.
60628         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60629         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60630         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60631         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60632         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60633         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60634
60635 2008-05-11  Bruno Haible  <bruno@clisp.org>
60636
60637         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60638
60639 2008-05-11  Bruno Haible  <bruno@clisp.org>
60640
60641         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60642         * modules/unilbrk/gen-lbrk: New file.
60643
60644 2008-05-11  Bruno Haible  <bruno@clisp.org>
60645
60646         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60647         * m4/sha512.m4 (gl_SHA512): Likewise.
60648
60649 2008-05-11  Jim Meyering  <meyering@redhat.com>
60650
60651         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60652         * modules/crypto/sha256: New file.
60653         * modules/crypto/sha512: Likewise.
60654         * lib/sha256.c: Likewise.
60655         * lib/sha256.h: Likewise.
60656         * lib/sha512.c: Likewise.
60657         * lib/sha512.h: Likewise.
60658         * lib/u64.h: Likewise.
60659         * m4/sha256.m4: Likewise.
60660         * m4/sha512.m4: Likewise.
60661         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60662
60663 2008-05-10  Bruno Haible  <bruno@clisp.org>
60664
60665         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60666         (Input/Output <stdio.h>): Add xprintf.
60667         (Signal handling <signal.h>): Add strsignal.
60668         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60669         (Core language properties): Add func.
60670         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60671         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60672         strings.
60673         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60674         (Input/output): New section.
60675         (File system functions): Add openat-die, stat-macros.
60676         (Networking functions): Add sockets.
60677         (Unicode string functions): Add unictype/*.
60678         (Support for building libraries and executables): Add gperf.
60679         (Support for building documentation): Add agpl-3.0.
60680         (Misc): Add nocrash.
60681
60682 2008-05-10  Bruno Haible  <bruno@clisp.org>
60683
60684         * modules/unictype/gen-ctype: New file.
60685
60686 2008-05-10  Jim Meyering  <meyering@redhat.com>
60687
60688         Make chdir-safer.c more efficient on a system with no symlinks.
60689         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60690         also if ELOOP is zero.  Suggested by Bruno Haible.
60691
60692         Make chdir-safer.c slightly safer.
60693         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60694         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60695
60696         Avoid compile failure on systems without ELOOP (like mingw).
60697         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60698         Reported by Bruno Haible.
60699
60700 2008-05-10  Bruno Haible  <bruno@clisp.org>
60701
60702         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60703         (is_utf8_encoding): Use a case-insensitive comparison.
60704         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60705         streq.
60706
60707 2008-05-10  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60710         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60711         * lib/unilbrk/ulc-common.h (iconv_string_length,
60712         iconv_string_keeping_offsets): Remove declarations.
60713         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60714         Don't include <iconv.h>, streq.h, xsize.h.
60715         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60716         conversion.
60717         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60718         <iconv.h>, streq.h, xsize.h.
60719         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60720         conversion.
60721         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60722         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60723         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60724         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60725
60726 2008-05-10  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60729         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60730
60731         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60732         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60733
60734         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60735         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60736
60737         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60738         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60739
60740         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60741         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60742
60743         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60744         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60745
60746         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60747         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60748
60749         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60750         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60751
60752 2008-05-10  Bruno Haible  <bruno@clisp.org>
60753
60754         Split up 'linebreak' module.
60755         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60756         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60757         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60758         modifications.
60759         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60760         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60761         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60762         lib/linebreak.c.
60763         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60764         lib/linebreak.c.
60765         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60766         lib/linebreak.c.
60767         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60768         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60769         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60770         lib/linebreak.c.
60771         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60772         lib/linebreak.c.
60773         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60774         lib/linebreak.c.
60775         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60776         lib/linebreak.c.
60777         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60778         lib/linebreak.c.
60779         * modules/unilbrk/base: New file.
60780         * modules/unilbrk/tables: New file.
60781         * modules/unilbrk/u8-possible-linebreaks: New file.
60782         * modules/unilbrk/u16-possible-linebreaks: New file.
60783         * modules/unilbrk/u32-possible-linebreaks: New file.
60784         * modules/unilbrk/ulc-common: New file.
60785         * modules/unilbrk/ulc-possible-linebreaks: New file.
60786         * modules/unilbrk/u8-width-linebreaks: New file.
60787         * modules/unilbrk/u16-width-linebreaks: New file.
60788         * modules/unilbrk/u32-width-linebreaks: New file.
60789         * modules/unilbrk/ulc-width-linebreaks: New file.
60790         * lib/linebreak.h: Remove file.
60791         * lib/linebreak.c: Remove file.
60792         * m4/linebreak.m4: Remove file.
60793         * modules/linebreak: Remove file.
60794         * NEWS: Mention the changes.
60795
60796 2008-05-09  Eric Blake  <ebb9@byu.net>
60797
60798         Add xmemdup0.
60799         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60800         implementation.
60801         * lib/xmalloc.c (xmemdup0): New C implementation.
60802
60803 2008-05-08  Bruno Haible  <bruno@clisp.org>
60804
60805         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60806
60807 2008-05-07  Eric Blake  <ebb9@byu.net>
60808
60809         Support cross-compilation of <wctype.h>.
60810         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60811         AC_CACHE_CHECK.
60812
60813 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60814
60815         * build-aux/vc-list-files: Add support for bzr.
60816
60817 2008-05-03  Jim Meyering  <meyering@redhat.com>
60818
60819         avoid failed assertion with tight malloc
60820         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60821
60822 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60823
60824         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60825         are needed from arpa/inet.h.
60826         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60827         Reported by Bruno Haible.
60828
60829 2008-05-02  Jim Meyering  <meyering@redhat.com>
60830
60831         avoid compilation error on FreeBSD 6
60832         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60833
60834 2008-05-01  Jim Meyering  <meyering@redhat.com>
60835
60836         useless-if-before-free: correct --help's exit status description
60837         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60838         for one or more matches, etc.  Reported by Bruno Haible.
60839
60840         vc-list-files: make the stand-alone gnulib test work
60841         * modules/vc-list-files-tests (configure.ac):
60842         Define and AC_SUBST abs_aux_dir.
60843         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60844         $(abs_top_srcdir) to each script and having each of them
60845         duplicate the work of setting PATH, set PATH here, using
60846         the new variable, abs_aux_dir instead.
60847         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60848         * tests/test-vc-list-files-git.sh: Likewise.
60849         Reported by Bruno Haible.
60850
60851 2008-05-01  Bruno Haible  <bruno@clisp.org>
60852
60853         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60854         reallocation. Rename 'done' to 'found_delimiter'.
60855
60856 2008-05-01  Jim Meyering  <meyering@redhat.com>
60857
60858         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60859         * build-aux/vc-list-files: Use `...`, not $(...).
60860
60861 2008-04-30  Jim Meyering  <meyering@redhat.com>
60862
60863         add tests for vc-list-files
60864         * modules/vc-list-files-tests: New module.
60865         * tests/test-vc-list-files-cvs.sh: New file.
60866         * tests/test-vc-list-files-git.sh: New file.
60867
60868         avoid a warning from gcc
60869         * lib/getndelim2.c (IF_LINT): Define.
60870         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60871
60872         vc-list-files: work properly with build-aux/cvsu, too
60873         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60874         to all cvs-based clauses.
60875
60876         vc-list-files: work properly in the CVS+awk case, too
60877         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60878
60879         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60880         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60881         take more than one file argument, so .  Add quotes, just in case $dir
60882         ever contains a shell meta-character.  Prompted by Soren Hansen in
60883         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60884
60885 2008-04-29  Eric Blake  <ebb9@byu.net>
60886
60887         Optimize getndelim2 to use block operations when possible.
60888         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60889         freadseek, and memchr2.
60890         * lib/getndelim2.c (getndelim2): Use them for block reads.
60891
60892 2008-04-29  Bruno Haible  <bruno@clisp.org>
60893
60894         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60895         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60896         * modules/inet_ntop (Depends-on): Add extensions.
60897         * modules/inet_pton (Depends-on): Likewise.
60898         Reported by Simon Josefsson.
60899
60900 2008-04-29  Jim Meyering  <meyering@redhat.com>
60901
60902         When the is more than one match in a block, match all of them.
60903         * build-aux/useless-if-before-free: Iterate through each block
60904         until there are no more matches.
60905
60906         Fix broken useless-if-before-free script.
60907         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60908         the expression to match cast of argument to free-like function.
60909
60910 2008-04-29  Eric Blake  <ebb9@byu.net>
60911
60912         Use new header.
60913         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60914
60915 2008-04-29  Jim Meyering  <meyering@redhat.com>
60916
60917         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60918         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60919         by gnulib to exist and to declare e.g., inet_ntop.
60920         Don't include "inet_ntop.h", now removed.
60921
60922         * m4/arpa_inet_h.m4: Remove trailing blanks.
60923
60924 2008-04-29  Eric Blake  <ebb9@byu.net>
60925
60926         Silence valgrind on safe reads beyond potential array bounds.
60927         * lib/rawmemchr.valgrind: New file.
60928         * lib/strchrnul.valgrind: Likewise.
60929         * modules/rawmemchr (Files): Distribute new file.
60930         * modules/strchrnul (Files): Likewise.
60931         Suggested by Bruno Haible.
60932
60933 2008-04-29  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60936         (inet_ntop, inet_pton): Change portability warning's wording.
60937         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60938         Invoke gl_CHECK_NEXT_HEADERS.
60939         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60940         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60941         set ARPA_INET_H.
60942         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60943         * modules/arpa_inet (Description): No longer only for systems that
60944         lack it.
60945         (Depends-on): Add include_next.
60946         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60947         HAVE_ARPA_INET_H.
60948
60949 2008-04-29  Jim Meyering  <meyering@redhat.com>
60950
60951         * modules/mkdir (License): Re-license as LGPLv2+.
60952
60953 2008-04-29  Bruno Haible  <bruno@clisp.org>
60954
60955         * modules/rawmemchr (Maintainer): Set to Eric.
60956         * modules/strchrnul (Maintainer): Likewise.
60957
60958 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60959
60960         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60961         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60962
60963         * modules/arpa_inet (arpa/inet.h): Use them.
60964
60965 2008-04-28  Eric Blake  <ebb9@byu.net>
60966
60967         Test getndelim2.
60968         * modules/getndelim2-tests: New file.
60969         * tests/test-getndelim2.c: Likewise.
60970         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60971         stream.
60972         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60973
60974         * MODULES.html.sh: Document new module.
60975
60976 2008-04-20  Bruno Haible  <bruno@clisp.org>
60977
60978         * lib/c-stack.c (die): Use raise.
60979         * modules/c-stack (Depends-on): Add raise.
60980
60981 2008-04-28  Bruno Haible  <bruno@clisp.org>
60982
60983         Expect rpmatch to be declared.
60984         * lib/yesno.c (rpmatch): Remove declaration.
60985
60986         Declare rpmatch.
60987         * lib/stdlib.in.h (rpmatch): New declaration.
60988         * lib/rpmatch.c: Include <stdlib.h> first.
60989         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60990         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60992         HAVE_RPMATCH.
60993         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60994         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60995         (Include): Set to <stdlib.h>.
60996         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60997         HAVE_RPMATCH.
60998         * NEWS: Document the change.
60999
61000 2008-04-28  Bruno Haible  <bruno@clisp.org>
61001
61002         Change rpmatch to use nl_langinfo when appropriate.
61003         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
61004         (N_): New macro.
61005         (localized_pattern): New function/macro.
61006         (try): Remove match, nomatch arguments. Copy the pattern into safe
61007         memory before caching it.
61008         (rpmatch): Use localized_pattern. Add translator comments.
61009         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
61010         Suggested by Eric Blake.
61011         * modules/rpmatch (Depends-on): Add stdbool.
61012
61013 2008-04-28  Eric Blake  <ebb9@byu.net>
61014
61015         Add rawmemchr module, matching glibc.
61016         * modules/string (Makefile.am): New indicator.
61017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
61018         * lib/string.in.h (rawmemchr): Declare when appropriate.
61019         * modules/rawmemchr: New file.
61020         * m4/rawmemchr.m4: Likewise.
61021         * lib/rawmemchr.c: Likewise.
61022         * modules/rawmemchr-tests: Likewise.
61023         * tests/test-rawmemchr.c: Likewise.
61024         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
61025         module.
61026         * modules/strchrnul (Depends-on): Add rawmemchr.
61027         * lib/strchrnul.c (strchrnul): Optimize a corner case.
61028
61029         Whitespace cleanup.
61030         * tests/test-strchrnul.c: Reindent.
61031         * lib/strchrnul.c: Likewise.
61032
61033         Optimize and test strchrnul.
61034         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
61035         * modules/strchrnul-tests: New file.
61036         * tests/test-strchrnul.c: Likewise.
61037
61038         Remove intprops dependency.
61039         * modules/memchr (Depends-on): Remove intprops.
61040         * modules/memrchr (Depends-on): Likewise.
61041         * modules/memchr2 (Depends-on): Likewise.
61042         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
61043         * lib/memrchr.c (__memrchr): Likewise.
61044         * lib/memrchr2.c (memchr2): Likewise.
61045         Reported by Simon Josefsson.
61046
61047 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61048
61049         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
61050         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61051
61052 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61053
61054         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
61055
61056         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
61057
61058         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
61059
61060         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
61061         declarations.
61062         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
61063
61064         * m4/inet_pton.m4: Don't check for header files.
61065
61066         * m4/inet_ntop.m4: Don't check for header files.
61067
61068 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61069
61070         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
61071         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
61072         trigger for cygwin).
61073         Reported by Bruno Haible  <bruno@clisp.org>.
61074
61075 2008-04-28  Bruno Haible  <bruno@clisp.org>
61076
61077         * doc/posix-functions/strdup.texi: Mention mingw problem.
61078
61079 2008-04-27  Bruno Haible  <bruno@clisp.org>
61080
61081         * modules/stat-time-tests (Depends-on): Add sleep.
61082         * tests/test-stat-time.c (force_unlink): New function.
61083         (cleanup): Use it.
61084         (test_mtime): Remove the ctime related tests.
61085         (test_ctime): New function, containing the ctime related tests.
61086         (main): Call test_ctime, except on native Windows platforms.
61087
61088 2008-04-27  Bruno Haible  <bruno@clisp.org>
61089
61090         * lib/rpmatch.c (rpmatch): Add some comments.
61091         Reported by James Youngman <jay@gnu.org>.
61092
61093 2008-04-27  Bruno Haible  <bruno@clisp.org>
61094
61095         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
61096         quiet NaNs.
61097
61098 2008-04-27  Bruno Haible  <bruno@clisp.org>
61099
61100         Make test-yesno.sh work on mingw.
61101         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
61102         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
61103         (main): Set stdin to binary mode.
61104         * modules/yesno-tests (Depends-on): Add binary-io.
61105
61106 2008-04-27  Bruno Haible  <bruno@clisp.org>
61107
61108         Fix 'isfinite' on x86, x86_64, ia64 platforms.
61109         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
61110         argument that lie outside the IEEE 854 domain.
61111         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
61112         (gl_ISFINITE): Use it.
61113         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
61114
61115 2008-04-27  Bruno Haible  <bruno@clisp.org>
61116
61117         Allow local renaming in config.h.
61118         * lib/memrchr.c (memrchr): Don't undefine outside libc.
61119
61120 2008-04-27  Bruno Haible  <bruno@clisp.org>
61121
61122         * lib/memchr.c (__memchr): Change type of 'i'.
61123         * lib/memchr2.c (memchr2): Likewise.
61124
61125 2008-04-26  Eric Blake  <ebb9@byu.net>
61126         and Bruno Haible  <bruno@clisp.org>
61127
61128         Optimize and test memrchr.
61129         * modules/memrchr (Depends-on): Add intprops.
61130         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
61131         * modules/memrchr-tests: New file.
61132         * tests/test-memrchr.c: New file.
61133
61134 2008-04-26  Bruno Haible  <bruno@clisp.org>
61135
61136         Add tentative support for DragonFly BSD.
61137         * lib/stdio-impl.h: Add macros for DragonFly BSD.
61138         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
61139         fp.
61140         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61141         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
61142         * lib/fpurge.c (fpurge): Likewise.
61143         * lib/freadable.c (freaadable): Likewise.
61144         * lib/freadahead.c (freadahead): Likewise.
61145         * lib/freading.c (freading): Likewise.
61146         * lib/freadptr.c (freadptr): Likewise.
61147         * lib/freadseek.c (freadptrinc): Likewise.
61148         * lib/fseeko.c (fseeko): Likewise.
61149         * lib/fseterr.c (fseterr): Likewise.
61150         * lib/fwritable.c (fwritable): Likewise.
61151         * lib/fwriting.c (fwriting): Likewise.
61152
61153 2008-04-26  Bruno Haible  <bruno@clisp.org>
61154
61155         * lib/stdio-impl.h: New file.
61156         * lib/fbufmode.c: Include stdio-impl.h.
61157         (fbufmode): Use fp_, remove redundant #defines.
61158         * lib/fflush.c: Include stdio-impl.h.
61159         (clear_ungetc_buffer): Remove redundant #defines.
61160         * lib/fpurge.c: Include stdio-impl.h.
61161         (fpurge): Remove redundant #defines.
61162         * lib/freadable.c: Include stdio-impl.h.
61163         (freadable): Remove redundant #defines.
61164         * lib/freadahead.c: Include stdio-impl.h.
61165         (freadahead): Remove redundant #defines.
61166         * lib/freading.c: Include stdio-impl.h.
61167         (freading): Remove redundant #defines.
61168         * lib/freadptr.c: Include stdio-impl.h.
61169         (freadptr): Remove redundant #defines.
61170         * lib/freadseek.c: Include stdio-impl.h.
61171         (freadptrinc): Remove redundant #defines.
61172         * lib/fseeko.c: Include stdio-impl.h.
61173         (rpl_fseeko): Remove redundant #defines.
61174         * lib/fseterr.c: Include stdio-impl.h.
61175         (fseterr): Remove redundant #defines.
61176         * lib/fwritable.c: Include stdio-impl.h.
61177         (fwritable: Remove redundant #defines.
61178         * lib/fwriting.c: Include stdio-impl.h.
61179         (fwriting): Remove redundant #defines.
61180         * modules/fbufmode (Files): Add lib/stdio-impl.h.
61181         * modules/fflush (Files): Likewise.
61182         * modules/fpurge (Files): Likewise.
61183         * modules/freadable (Files): Likewise.
61184         * modules/freadahead (Files): Likewise.
61185         * modules/freading (Files): Likewise.
61186         * modules/freadptr (Files): Likewise.
61187         * modules/freadseek (Files): Likewise.
61188         * modules/fseeko (Files): Likewise.
61189         * modules/fseterr (Files): Likewise.
61190         * modules/fwritable (Files): Likewise.
61191         * modules/fwriting (Files): Likewise.
61192
61193 2008-04-26  Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61196         restore_seek_optimization, update_fpos_cache): New functions, extracted
61197         from rpl_fflush.
61198         (rpl_fflush): Use them.
61199         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
61200         (gl_REPLACE_FFLUSH): Use it.
61201
61202 2008-04-26  Bruno Haible  <bruno@clisp.org>
61203
61204         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61205         on Solaris.
61206         * tests/test-xstrtoimax.sh: Likewise.
61207         * tests/test-xstrtoumax.sh: Likewise.
61208         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61209
61210 2008-04-26  Bruno Haible  <bruno@clisp.org>
61211
61212         * modules/memchr-tests: New file.
61213         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61214
61215 2008-04-26  Eric Blake  <ebb9@byu.net>
61216             Bruno Haible  <bruno@clisp.org>
61217
61218         * lib/memchr.c: Include intprops.h.
61219         (__memchr): Optimize parallel detection of matching bytes. Rename local
61220         variables. Add explanatory comments.
61221
61222 2008-04-26  Bruno Haible  <bruno@clisp.org>
61223
61224         Fix module 'memchr', broken since 2000-10-28.
61225         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61226
61227 2008-04-26  Bruno Haible  <bruno@clisp.org>
61228
61229         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61230         comments.
61231
61232 2008-04-25  Eric Blake  <ebb9@byu.net>
61233
61234         Use native fstatat on cygwin 1.7.0.
61235         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61236         first.
61237
61238 2008-04-23  Eric Blake  <ebb9@byu.net>
61239
61240         Improve memchr2 performance.
61241         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61242         NUL bytes.
61243         * modules/memchr2 (Depends-on): Use intprops.h.
61244
61245 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61246
61247         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61248         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61249         <blp@cs.stanford.edu>.
61250
61251 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61252
61253         * lib/arpa_inet.in.h: New file.
61254
61255         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61256         (Makefile.am): Sed in substitute header file.
61257
61258         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61259         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61260
61261         * modules/inet_ntop (configure.ac): Use
61262         gl_ARPA_INET_MODULE_INDICATOR.
61263
61264         * modules/inet_pton (configure.ac): Use
61265         gl_ARPA_INET_MODULE_INDICATOR.
61266
61267 2008-04-22  Jim Meyering  <meyering@redhat.com>
61268
61269         * modules/verify (License): Re-license as LGPLv2+.
61270
61271 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61272
61273         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61274         parameter to void* as per POSIX standard (MinGW uses char*).
61275
61276 2008-04-21  Bruno Haible  <bruno@clisp.org>
61277
61278         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61279         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61280         Define to replacements if REPLACE_ISWCNTRL is 1.
61281         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61282         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61283         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61284         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61285         what it fixes.
61286         * doc/posix-functions/iswalpha.texi: Likewise.
61287         * doc/posix-functions/iswblank.texi: Likewise.
61288         * doc/posix-functions/iswcntrl.texi: Likewise.
61289         * doc/posix-functions/iswdigit.texi: Likewise.
61290         * doc/posix-functions/iswgraph.texi: Likewise.
61291         * doc/posix-functions/iswlower.texi: Likewise.
61292         * doc/posix-functions/iswprint.texi: Likewise.
61293         * doc/posix-functions/iswpunct.texi: Likewise.
61294         * doc/posix-functions/iswspace.texi: Likewise.
61295         * doc/posix-functions/iswupper.texi: Likewise.
61296         * doc/posix-functions/iswxdigit.texi: Likewise.
61297         Reported by Alain Guibert.
61298
61299 2008-04-21  Bruno Haible  <bruno@clisp.org>
61300
61301         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61302         Patch by Alain Guibert.
61303
61304 2008-04-21  Bruno Haible  <bruno@clisp.org>
61305
61306         Fix test failures on mingw.
61307         * tests/test-xstrtol.c (print_no_progname): New function.
61308         (main): Install it in error_print_progname hook.
61309         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61310         * tests/test-xstrtoimax.sh: Likewise.
61311         * tests/test-xstrtoumax.sh: Likewise.
61312
61313 2008-04-21  Bruno Haible  <bruno@clisp.org>
61314
61315         Fix test failure on mingw.
61316         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61317
61318 2008-04-21  Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61321         Actually assign a value.
61322
61323 2008-04-20  Bruno Haible  <bruno@clisp.org>
61324
61325         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61326         take 2.
61327         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61328         'canonicalize-lgpl' module is also used.
61329         * lib/canonicalize-lgpl.c: Undo last change.
61330         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61331
61332 2008-04-20  Bruno Haible  <bruno@clisp.org>
61333
61334         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61335         config.h. Provide _mkdir based fallback for mingw.
61336         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61337         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61338         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61339         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61340         rather than defining mkdir in config.h.
61341         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61342         (gl_SYS_STAT_H_DEFAULTS): New macro.
61343         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61344         HAVE_IO_H any more.
61345         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61346         HAVE_DECL_MKDIR and HAVE_IO_H.
61347
61348 2008-04-20  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/isapipe.c: Port to native Windows platforms.
61351
61352 2008-04-20  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61355
61356 2008-04-21  Eric Blake  <ebb9@byu.net>
61357
61358         Work around preprocessors that don't handle UINTMAX_MAX.
61359         * lib/memchr2.c (memchr2): Avoid embedded #if.
61360         Reported by Alain Guibert, fix suggested by Bruno Haible.
61361
61362 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61363
61364         * doc/posix-functions/strftime.texi (strftime): Explain better
61365         Windows incompatibility.  Suggested by Micah Cowan
61366         <micah@cowan.name>.
61367
61368 2008-04-20  Bruno Haible  <bruno@clisp.org>
61369
61370         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61371         unistr/u8-mblen.
61372
61373 2008-04-20  Bruno Haible  <bruno@clisp.org>
61374
61375         Fix test failure on platforms with non-GNU iconv.
61376         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61377         (U_TO_U8): Use it, rather than u16_to_u8.
61378         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61379         units at the end of the input string.
61380         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61381
61382 2008-04-20  Bruno Haible  <bruno@clisp.org>
61383
61384         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61385         when the resulting length is 0.
61386         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61387
61388 2008-04-20  Bruno Haible  <bruno@clisp.org>
61389
61390         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61391         works.
61392         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61393
61394 2008-04-20  Bruno Haible  <bruno@clisp.org>
61395
61396         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61397         * modules/tsearch-tests (configure.ac): Test for initstate function.
61398
61399 2008-04-20  Bruno Haible  <bruno@clisp.org>
61400
61401         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61402         for nlink_t if missing.
61403         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61404
61405 2008-04-19  Bruno Haible  <bruno@clisp.org>
61406
61407         Work around snprintf bug on Linux libc5.
61408         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61410         gl_SNPRINTF_SIZE1.
61411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61412         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61413         that test failed.
61414         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61415         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61416         * modules/snprintf (Files): Add m4/printf.m4.
61417         * modules/vsnprintf (Files): Likewise.
61418         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61419         * doc/posix-functions/vsnprintf.texi: Likewise.
61420
61421 2008-04-19  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61424         from 0.0058 to less than 10^-7.
61425
61426 2008-04-19  Bruno Haible  <bruno@clisp.org>
61427
61428         Fix rounding when a precision is given.
61429         * lib/vasnprintf.c (is_borderline): New function.
61430         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61431         9...9x.
61432         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61433         %e, %g.
61434         * tests/test-vasprintf-posix.c (test_function): Likewise.
61435         * tests/test-snprintf-posix.h (test_function): Likewise.
61436         * tests/test-sprintf-posix.h (test_function): Likewise.
61437         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61438         * tests/test-printf-posix.h (test_function): Likewise.
61439         * tests/test-printf-posix.output: Update.
61440         Reported by John Darrington <john@darrington.wattle.id.au> via
61441         Ben Pfaff <blp@cs.stanford.edu>.
61442
61443 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61444
61445         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61446         Suggested by Bruno Haible <bruno@clisp.org>.
61447
61448 2008-04-17  Bruno Haible  <bruno@clisp.org>
61449
61450         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61451         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61452         implementation.
61453         Patch by Bruce Merry <bmerry@gmail.com>.
61454
61455 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61456
61457         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61458         doesn't work under Windows.
61459
61460 2008-04-16  Bruno Haible  <bruno@clisp.org>
61461
61462         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61463         New macros.
61464         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61465         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61466         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61467         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61468         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61469         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61470         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61471         macros.
61472         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61473         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61474         Northern Sotho, Uighur.
61475
61476 2008-04-16  Bruno Haible  <bruno@clisp.org>
61477
61478         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61479         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61480         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61481         Reported by Daniel Bergström <daniel@octocode.com>.
61482
61483 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61484             Bruno Haible  <bruno@clisp.org>
61485
61486         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61487         function.
61488         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61489         New functions, mostly extracted from gl_locale_name_default.
61490         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61491
61492 2008-04-16  Eric Blake  <ebb9@byu.net>
61493
61494         Adjust strtod detection to catch glibc 2.7 bug.
61495         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61496         Reported by John Gatewood Ham.
61497
61498 2008-04-16  Bruno Haible  <bruno@clisp.org>
61499
61500         Add tentative support for Linux libc5.
61501         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61502         * lib/fpurge.c (fpurge): Likewise.
61503         * lib/freadable.c (freadable): Likewise.
61504         * lib/freadahead.c (freadahead): Likewise.
61505         * lib/freading.c (freading): Likewise.
61506         * lib/freadptr.c (freadptr): Likewise.
61507         * lib/freadseek.c (freadptrinc): Likewise.
61508         * lib/fseeko.c (rpl_fseeko): Likewise.
61509         * lib/fseterr.c (fseterr): Likewise.
61510         * lib/fwritable.c (fwritable): Likewise.
61511         * lib/fwriting.c (fwriting): Likewise.
61512         Reported by Alain Guibert <alguibert+bts@free.fr>.
61513
61514 2008-04-15  Bruno Haible  <bruno@clisp.org>
61515
61516         * modules/mathl (configure.ac): Define module indicator.
61517
61518 2008-04-15  Bruno Haible  <bruno@clisp.org>
61519
61520         * lib/logl.c (logl): Remove unused variables.
61521
61522 2008-04-15  Bruno Haible  <bruno@clisp.org>
61523
61524         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61525         fails.
61526
61527 2008-04-15  Bruno Haible  <bruno@clisp.org>
61528
61529         * lib/trim.c (trim2): Fix argument of isspace() macro.
61530
61531 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61532
61533         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61534         to 0.
61535         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61536
61537 2008-04-14  Bruno Haible  <bruno@clisp.org>
61538
61539         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61540         AC_LANG_PROGRAM argument.
61541         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61542         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61544         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61545         * m4/math_h.m4 (gl_MATH_H): Likewise.
61546         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61547         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61548         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61549         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61550         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61551         * m4/regex.m4 (gl_REGEX): Likewise.
61552         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61553         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61554         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61555         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61556         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61557         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61560
61561 2008-04-14  Jim Meyering  <meyering@redhat.com>
61562
61563         test-strtod: fix typos: s/abs/fabs/
61564         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61565
61566 2008-04-13  Bruno Haible  <bruno@clisp.org>
61567
61568         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61569         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61570         module is also used and while not building the reloc-wrapper.
61571
61572 2008-04-13  Bruno Haible  <bruno@clisp.org>
61573
61574         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61575
61576 2008-04-13  Bruno Haible  <bruno@clisp.org>
61577
61578         Fix AIX compilation failure introduced on 2008-04-02.
61579         * tests/test-frexp.c (exp): Undefine before redefining.
61580         * tests/test-frexpl.c (exp): Likewise.
61581
61582 2008-04-13  Bruno Haible  <bruno@clisp.org>
61583
61584         Work around a HP-UX stdio bug.
61585         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61586         * tests/test-ftello.c (main): Likewise.
61587         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61588         * doc/posix-functions/ftello.texi: Likewise.
61589
61590 2008-04-13  Bruno Haible  <bruno@clisp.org>
61591
61592         Make test-signbit pass on HP-UX/hppa.
61593         * tests/test-signbit.c (minus_zerol): New variable.
61594         (test_signbitl): Use it.
61595
61596 2008-04-13  Bruno Haible  <bruno@clisp.org>
61597
61598         Make truncl work on OSF/1 4.0.
61599         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61600         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61601         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61603         HAVE_DECL_TRUNCL.
61604         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61605         HAVE_DECL_TRUNCL.
61606         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61607
61608 2008-04-13  Bruno Haible  <bruno@clisp.org>
61609
61610         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61611
61612 2008-04-13  Bruno Haible  <bruno@clisp.org>
61613
61614         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61615         expression, so as to avoid HP-UX 11 cc compiler bug.
61616
61617 2008-04-13  Bruno Haible  <bruno@clisp.org>
61618
61619         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61620
61621 2008-04-13  Bruno Haible  <bruno@clisp.org>
61622
61623         * lib/git-merge-changelog.c: Remove empty declaration outside of
61624         functions.
61625
61626 2008-04-13  Bruno Haible  <bruno@clisp.org>
61627
61628         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61629
61630 2008-04-13  Bruno Haible  <bruno@clisp.org>
61631
61632         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61633         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61634         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61635         also if it exists but lacks definitions of the SHUT_* macros.
61636         * modules/sys_socket (Description): Update.
61637         Reported by Elbert Pol <e.pol@chello.nl>.
61638
61639 2008-04-13  Bruno Haible  <bruno@clisp.org>
61640
61641         * lib/localcharset.c (OS2): Don't redefine if already defined.
61642         Reported by Elbert Pol <e.pol@chello.nl>.
61643
61644 2008-04-13  Bruno Haible  <bruno@clisp.org>
61645
61646         * lib/binary-io.h [__EMX__]: Include <io.h>.
61647         Reported by Elbert Pol <e.pol@chello.nl>.
61648
61649 2008-04-12  Bruno Haible  <bruno@clisp.org>
61650
61651         * lib/fpucw.h: Enable the definitions also for x86_64.
61652         Needed for NetBSD/x86_64.
61653         Reported by Thomas Klausner <tk@giga.or.at>.
61654
61655 2008-04-12  Bruno Haible  <bruno@clisp.org>
61656
61657         * tests/test-strtod.c: Include isnand.h.
61658         (main): Use isnand instead of isnan.
61659         Reported by Jim Meyering.
61660
61661 2008-04-12  Bruno Haible  <bruno@clisp.org>
61662
61663         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61664         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61665
61666 2008-04-12  Jim Meyering  <meyering@redhat.com>
61667
61668         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61669
61670 2008-04-12  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61673         Reported by Elbert Pol <e.pol@chello.nl>.
61674
61675 2008-04-12  Eric Blake  <ebb9@byu.net>
61676
61677         Work around Solaris 10 math.h bug.
61678         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61679         (gl_MATH_H_DEFAULTS): Set up default.
61680         * modules/math (Makefile.am): Replace new indicators.
61681         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61682         * tests/test-math.c (main): Test this.
61683         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61684         * doc/posix-headers/math.texi (math.h): Mention bug.
61685         Reported by Nelson H. F. Beebe and Jim Meyering.
61686
61687 2008-04-11  Bruno Haible  <bruno@clisp.org>
61688
61689         Adapt to future versions of Apple GCC.
61690         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61691         Reported by Peter O'Gorman <peter@pogma.com>.
61692
61693 2008-04-11  Bruno Haible  <bruno@clisp.org>
61694
61695         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61696
61697 2008-04-11  Bruno Haible  <bruno@clisp.org>
61698
61699         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61700
61701         * modules/getaddrinfo-tests (Makefile.am): Define
61702         test_getaddrinfo_LDADD.
61703
61704 2008-04-11  Bruno Haible  <bruno@clisp.org>
61705
61706         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61707         (init): Fix syntax error.
61708         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61709         is declared.
61710
61711 2008-04-11  Bruno Haible  <bruno@clisp.org>
61712
61713         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61714         * modules/glob (Depends-on): Add stdbool.
61715
61716 2008-04-11  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/trim.c: Include <string.h>.
61719
61720 2008-04-11  Eric Blake  <ebb9@byu.net>
61721
61722         Avoid compile failure on OS/2.
61723         * lib/regex_internal.h (internal_function): Disable optimization
61724         on OS/2 (__EMX__), where it caused compiler error.
61725         Reported by Elbert Pol.
61726
61727 2008-04-11  Bruno Haible  <bruno@clisp.org>
61728
61729         Flush the standard error stream before aborting. Needed on mingw.
61730         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61731         * tests/test-array_list.c (ASSERT): Likewise.
61732         * tests/test-array_oset.c (ASSERT): Likewise.
61733         * tests/test-avltree_list.c (ASSERT): Likewise.
61734         * tests/test-avltree_oset.c (ASSERT): Likewise.
61735         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61736         * tests/test-binary-io.c (ASSERT): Likewise.
61737         * tests/test-byteswap.c (ASSERT): Likewise.
61738         * tests/test-c-ctype.c (ASSERT): Likewise.
61739         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61740         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61741         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61742         * tests/test-c-strstr.c (ASSERT): Likewise.
61743         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61744         * tests/test-canonicalize.c (ASSERT): Likewise.
61745         * tests/test-carray_list.c (ASSERT): Likewise.
61746         * tests/test-ceilf1.c (ASSERT): Likewise.
61747         * tests/test-ceilf2.c (ASSERT): Likewise.
61748         * tests/test-ceill.c (ASSERT): Likewise.
61749         * tests/test-count-one-bits.c (ASSERT): Likewise.
61750         * tests/test-fbufmode.c (ASSERT): Likewise.
61751         * tests/test-fflush2.c (ASSERT): Likewise.
61752         * tests/test-floorf1.c (ASSERT): Likewise.
61753         * tests/test-floorf2.c (ASSERT): Likewise.
61754         * tests/test-floorl.c (ASSERT): Likewise.
61755         * tests/test-fopen.c (ASSERT): Likewise.
61756         * tests/test-fpending.c (ASSERT): Likewise.
61757         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61758         * tests/test-fpurge.c (ASSERT): Likewise.
61759         * tests/test-freadable.c (ASSERT): Likewise.
61760         * tests/test-freadahead.c (ASSERT): Likewise.
61761         * tests/test-freading.c (ASSERT): Likewise.
61762         * tests/test-freadptr.c (ASSERT): Likewise.
61763         * tests/test-freadptr2.c (ASSERT): Likewise.
61764         * tests/test-freadseek.c (ASSERT): Likewise.
61765         * tests/test-freopen.c (ASSERT): Likewise.
61766         * tests/test-frexp.c (ASSERT): Likewise.
61767         * tests/test-frexpl.c (ASSERT): Likewise.
61768         * tests/test-fseek.c (ASSERT): Likewise.
61769         * tests/test-fseeko.c (ASSERT): Likewise.
61770         * tests/test-fstrcmp.c (ASSERT): Likewise.
61771         * tests/test-ftell.c (ASSERT): Likewise.
61772         * tests/test-ftello.c (ASSERT): Likewise.
61773         * tests/test-func.c (ASSERT): Likewise.
61774         * tests/test-fwritable.c (ASSERT): Likewise.
61775         * tests/test-fwriting.c (ASSERT): Likewise.
61776         * tests/test-getdelim.c (ASSERT): Likewise.
61777         * tests/test-getline.c (ASSERT): Likewise.
61778         * tests/test-i-ring.c (ASSERT): Likewise.
61779         * tests/test-iconv-utf.c (ASSERT): Likewise.
61780         * tests/test-iconv.c (ASSERT): Likewise.
61781         * tests/test-isfinite.c (ASSERT): Likewise.
61782         * tests/test-isnand.c (ASSERT): Likewise.
61783         * tests/test-isnanf.c (ASSERT): Likewise.
61784         * tests/test-isnanl.h (ASSERT): Likewise.
61785         * tests/test-ldexpl.c (ASSERT): Likewise.
61786         * tests/test-linked_list.c (ASSERT): Likewise.
61787         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61788         * tests/test-localename.c (ASSERT): Likewise.
61789         * tests/test-lseek.c (ASSERT): Likewise.
61790         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61791         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61792         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61793         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61794         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61795         * tests/test-mbschr.c (ASSERT): Likewise.
61796         * tests/test-mbscspn.c (ASSERT): Likewise.
61797         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61798         * tests/test-mbspbrk.c (ASSERT): Likewise.
61799         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61800         * tests/test-mbsrchr.c (ASSERT): Likewise.
61801         * tests/test-mbsspn.c (ASSERT): Likewise.
61802         * tests/test-mbsstr1.c (ASSERT): Likewise.
61803         * tests/test-mbsstr2.c (ASSERT): Likewise.
61804         * tests/test-mbsstr3.c (ASSERT): Likewise.
61805         * tests/test-memchr2.c (ASSERT): Likewise.
61806         * tests/test-memmem.c (ASSERT): Likewise.
61807         * tests/test-open.c (ASSERT): Likewise.
61808         * tests/test-printf-frexp.c (ASSERT): Likewise.
61809         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61810         * tests/test-printf-posix.c (ASSERT): Likewise.
61811         * tests/test-quotearg.c (ASSERT): Likewise.
61812         * tests/test-rbtree_list.c (ASSERT): Likewise.
61813         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61814         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61815         * tests/test-round1.c (ASSERT): Likewise.
61816         * tests/test-roundf1.c (ASSERT): Likewise.
61817         * tests/test-roundl.c (ASSERT): Likewise.
61818         * tests/test-signbit.c (ASSERT): Likewise.
61819         * tests/test-sleep.c (ASSERT): Likewise.
61820         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61821         * tests/test-snprintf.c (ASSERT): Likewise.
61822         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61823         * tests/test-stat-time.c (ASSERT): Likewise.
61824         * tests/test-strcasestr.c (ASSERT): Likewise.
61825         * tests/test-strerror.c (ASSERT): Likewise.
61826         * tests/test-striconv.c (ASSERT): Likewise.
61827         * tests/test-striconveh.c (ASSERT): Likewise.
61828         * tests/test-striconveha.c (ASSERT): Likewise.
61829         * tests/test-strsignal.c (ASSERT): Likewise.
61830         * tests/test-strstr.c (ASSERT): Likewise.
61831         * tests/test-strtod.c (ASSERT): Likewise.
61832         * tests/test-trunc1.c (ASSERT): Likewise.
61833         * tests/test-trunc2.c (ASSERT): Likewise.
61834         * tests/test-truncf1.c (ASSERT): Likewise.
61835         * tests/test-truncf2.c (ASSERT): Likewise.
61836         * tests/test-truncl.c (ASSERT): Likewise.
61837         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61838         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61839         * tests/test-vasnprintf.c (ASSERT): Likewise.
61840         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61841         * tests/test-vasprintf.c (ASSERT): Likewise.
61842         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61843         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61844         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61845         * tests/test-vsnprintf.c (ASSERT): Likewise.
61846         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61847         * tests/test-wcwidth.c (ASSERT): Likewise.
61848         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61849         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61850         * tests/test-xvasprintf.c (ASSERT): Likewise.
61851         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61852         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61853         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61854         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61855         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61856         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61857         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61858         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61859         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61860         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61861         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61862         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61863         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61864         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61865         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61866         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61867         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61868         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61869         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61870         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61871         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61872         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61873         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61874         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61875         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61876         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61877         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61878         * tests/unictype/test-combining.c (ASSERT): Likewise.
61879         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61880         * tests/unictype/test-digit.c (ASSERT): Likewise.
61881         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61882         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61883         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61884         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61885         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61886         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61887         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61888         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61889         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61890         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61891         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61892         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61893         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61894         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61895         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61896         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61897         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61898         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61899         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61900         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61901         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61902         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61903         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61904         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61905         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61906         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61907         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61908         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61909         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61910         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61911         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61912         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61913         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61914         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61915         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61916         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61917         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61918         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61919         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61920         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61921         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61922         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61923         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61924         Reported by Eric Blake.
61925
61926 2008-04-11  Bruno Haible  <bruno@clisp.org>
61927
61928         * lib/wchar.in.h: Tweak comment.
61929
61930 2008-04-11  Bruno Haible  <bruno@clisp.org>
61931
61932         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61933         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61934         gl_COMMON.
61935         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61936
61937 2008-04-11  Bruno Haible  <bruno@clisp.org>
61938
61939         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61940
61941 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61942
61943         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61944         of attempting to use non-existing /dev/*random.  Based on patch
61945         from Adam Strzelecki <ono@java.pl> in
61946         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61947
61948 2008-04-08  Bruno Haible  <bruno@clisp.org>
61949
61950         Add tentative support for emx+gcc.
61951         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61952         * lib/fpurge.c (fpurge): Likewise.
61953         * lib/freadable.c (freadable): Likewise.
61954         * lib/freadahead.c (freadahead): Likewise.
61955         * lib/freading.c (freading): Likewise.
61956         * lib/freadptr.c (freadptr): Likewise.
61957         * lib/freadseek.c (freadptrinc): Likewise.
61958         * lib/fseeko.c (rpl_fseeko): Likewise.
61959         * lib/fseterr.c (fseterr): Likewise.
61960         * lib/fwritable.c (fwritable): Likewise.
61961         * lib/fwriting.c (fwriting): Likewise.
61962         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61963
61964 2008-04-09  Eric Blake  <ebb9@byu.net>
61965
61966         Avoid some autoconf warnings.
61967         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61968         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61969         * m4/afs.m4 (gl_AFS): Likewise.
61970         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61971         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61972         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61973         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61974         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61975         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61976         (AC_CHECK_DECLS_ONCE): Likewise.
61977         Rename file...
61978         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61979         gnulib-tool requires autoconf 2.59 or better.
61980         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61981
61982 2008-04-08  Eric Blake  <ebb9@byu.net>
61983
61984         Use 'git describe --match' if present (added in git 1.5.5).
61985         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61986         if possible.
61987
61988 2008-04-08  Bruno Haible  <bruno@clisp.org>
61989
61990         Add tentative support for OpenServer.
61991         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61992         _ptr, _cnt.
61993         * lib/fpurge.c (fpurge): Likewise.
61994         * lib/freadable.c (freadable): Likewise.
61995         * lib/freadahead.c (freadahead): Likewise.
61996         * lib/freading.c (freading): Likewise.
61997         * lib/freadptr.c (freadptr): Likewise.
61998         * lib/freadseek.c (freadptrinc): Likewise.
61999         * lib/fseeko.c (rpl_fseeko): Likewise.
62000         * lib/fseterr.c (fseterr): Likewise.
62001         * lib/fwritable.c (fwritable): Likewise.
62002         * lib/fwriting.c (fwriting): Likewise.
62003         Reported by Roger Cornelius <rac@tenzing.org> and
62004         Brian K. White <brian@aljex.com>.
62005
62006 2008-04-06  Jim Meyering  <meyering@redhat.com>
62007
62008         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
62009
62010 2008-04-06  Bruno Haible  <bruno@clisp.org>
62011
62012         Avoid possible error with non-ASCII bytes in UTF-8 locales.
62013         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
62014         * tests/test-printf-posix.sh: Likewise.
62015         * tests/test-vfprintf-posix.sh: Likewise.
62016         * tests/test-vprintf-posix.sh: Likewise.
62017         * tests/test-xprintf-posix.sh: Likewise.
62018
62019 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62020
62021         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
62022         hide error from 'ls', needed on OS/2.
62023         Report by Elbert Pol <elbert.pol@gmail.com>.
62024
62025 2008-04-04  Eric Blake  <ebb9@byu.net>
62026
62027         Make test-fseeko.c failures meaningful.
62028         * tests/test-fseeko.c: Print line number on failure.
62029         * tests/test-fseek.c: Likewise.
62030         Reported by Nelson H. F. Beebe.
62031
62032         Improve strtod bug detection check.
62033         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
62034         required for Solaris 10.
62035         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
62036
62037 2008-04-04  Bruno Haible  <bruno@clisp.org>
62038
62039         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
62040         by m4/setenv.m4.
62041
62042 2008-04-03  Eric Blake  <ebb9@byu.net>
62043
62044         Ensure sane .version contents.
62045         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
62046         version string.
62047         * build-aux/git-version-gen: Improve documentation.
62048
62049         Make GNU make output nicer.
62050         * top/GNUmakefile [!_have-Makefile]: Add dependency on
62051         MAKECMDGOALS to enforce message for all command line targets.  Set
62052         srcdir for use in maint.mk.
62053
62054         Another maintainer tweak.
62055         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
62056         a target that regenerates version.
62057
62058 2008-04-03  Jim Meyering  <meyering@redhat.com>
62059
62060         vc-list-files: don't cause coreutils "make po-check" failure
62061         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
62062
62063 2008-04-03  Eric Blake  <ebb9@byu.net>
62064
62065         Allow VPATH usage of vc-list-files.
62066         * build-aux/vc-list-files (scriptversion): Add timestamp.
62067         (options): Add --help, --version, -C.
62068         (CVS): Support installed cvsu.
62069
62070 2008-04-02  Bruno Haible  <bruno@clisp.org>
62071
62072         Avoid some "statement with no effect" warnings from gcc.
62073         * tests/test-wctype.c (main): Explicitly ignore unused values.
62074         Reported by Jim Meyering.
62075
62076 2008-04-02  Jim Meyering  <meyering@redhat.com>
62077
62078         Avoid some warnings from "gcc -Wshadow".
62079         * tests/test-frexp.c (exp): Define to a different identifier.
62080         * tests/test-frexpl.c (exp): Likewise.
62081
62082 2008-04-03  Jim Meyering  <meyering@redhat.com>
62083
62084         bootstrap: remove dangling *.[ch] symlinks from lib
62085         * build-aux/bootstrap [dangling symlink removal]: Move find's
62086         -depth option to precede all others, to avoid a warning.
62087         Remove *.[ch] files too, and from "$source_base" (usually lib/).
62088
62089 2008-04-02  Bruno Haible  <bruno@clisp.org>
62090
62091         Avoid some warnings from "gcc -Wshadow".
62092         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
62093         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
62094         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
62095         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
62096         Reported by Jim Meyering.
62097
62098 2008-04-01  Bruno Haible  <bruno@clisp.org>
62099
62100         Fix test to work on IRIX 6.5 with cc.
62101         * tests/test-math.c (numeric_equal): New function.
62102         (main): Use it.
62103
62104 2008-04-01  Bruno Haible  <bruno@clisp.org>
62105
62106         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
62107
62108 2008-04-01  Bruno Haible  <bruno@clisp.org>
62109
62110         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
62111         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62112         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
62113         (Depends-on): Remove math.
62114
62115         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
62116         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62117         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
62118         (Depends-on): Remove math.
62119
62120         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
62121         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62122         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
62123         (Depends-on): Remove math.
62124         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
62125         (Depends-on): Remove math.
62126
62127         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
62128         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62129         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
62130         (Depends-on): Remove math.
62131         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
62132         (Depends-on): Remove math.
62133
62134         * tests/test-round1.c: Include nan.h.
62135         (main): Use NaNd instead of NAN.
62136         * modules/round-tests (Files): Add tests/nan.h.
62137
62138         * tests/test-trunc1.c: Include nan.h.
62139         (main): Use NaNd instead of NAN.
62140         * modules/trunc-tests (Files): Add tests/nan.h.
62141
62142         * tests/test-roundf1.c: Include nan.h.
62143         (main): Use NaNf instead of NAN.
62144         * modules/roundf-tests (Files): Add tests/nan.h.
62145
62146         * tests/test-truncf1.c: Include nan.h.
62147         (main): Use NaNf instead of NAN.
62148         * modules/truncf-tests (Files): Add tests/nan.h.
62149
62150         * tests/test-ceilf1.c: Include nan.h.
62151         (main): Use NaNf instead of NAN.
62152         * modules/ceilf-tests (Files): Add tests/nan.h.
62153
62154         * tests/test-floorf1.c: Include nan.h.
62155         (main): Use NaNf instead of NAN.
62156         * modules/floorf-tests (Files): Add tests/nan.h.
62157
62158         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62159         (main): Use NaNf instead of NAN.
62160         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
62161
62162         * tests/test-isnand.c: Include nan.h instead of <math.h>.
62163         (main): Use NaNd instead of NAN.
62164         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
62165
62166         * tests/test-frexp.c: Include nan.h.
62167         (main): Use NaNd instead of NAN.
62168         * modules/frexp-tests (Files): Add tests/nan.h.
62169
62170         * lib/isnan.c: Don't include <math.h>.
62171         (FUNC): Don't use NAN macro.
62172         * modules/isnand-nolibm (Depends-on): Remove math.
62173         * modules/isnanf-nolibm (Depends-on): Remove math.
62174         * modules/isnanl (Depends-on): Remove math.
62175         * modules/isnanl-nolibm (Depends-on): Remove math.
62176
62177         * tests/nan.h: New file.
62178
62179 2008-04-01  Eric Blake  <ebb9@byu.net>
62180
62181         Fix typos.
62182         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
62183         values to be the right type.
62184
62185         For now, cater to gnulib strtod inaccuracies.
62186         * tests/test-strtod.c (main): Allow 1-ulp error on expected
62187         fractional results.  While not as nice from a QoI perspective, it
62188         is a quicker patch than correctly implementing decimal to binary
62189         rounding.
62190
62191 2008-03-31  Eric Blake  <ebb9@byu.net>
62192
62193         Guarantee a definition of NAN.
62194         * lib/math.in.h (NAN): Define if missing.
62195         * tests/test-math.c (main): Test it.
62196         * doc/posix-headers/math.texi (math.h): Document this.
62197         * lib/isnan.c (rpl_isnand): Use it.
62198         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
62199         * tests/test-floorf1.c (NaN): Likewise.
62200         * tests/test-frexp.c (NaN): Likewise.
62201         * tests/test-isnand.c (NaN): Likewise.
62202         * tests/test-isnanf.c (NaN): Likewise.
62203         * tests/test-round1.c (NaN): Likewise.
62204         * tests/test-roundf1.c (NaN): Likewise.
62205         * tests/test-snprintf-posix.h (NaN): Likewise.
62206         * tests/test-sprintf-posix.h (NaN): Likewise.
62207         * tests/test-trunc1.c (NaN): Likewise.
62208         * tests/test-truncf1.c (NaN): Likewise.
62209         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62210         * tests/test-vasprintf-posix.c (NaN): Likewise.
62211         * modules/isnand-nolibm (Depends-on): Add math.
62212         * modules/isnanf-nolibm (Depends-on): Likewise.
62213         * modules/isnanl (Depends-on): Likewise.
62214         * modules/isnanl-nolibm (Depends-on): Likewise.
62215         * modules/snprintf-posix-tests (Depends-on): Likewise.
62216         * modules/sprintf-posix-tests (Depends-on): Likewise.
62217         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62218         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62219         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62220         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62221
62222 2008-03-31  Bruno Haible  <bruno@clisp.org>
62223
62224         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62225         * doc/posix-functions/strtod.texi: Likewise.
62226
62227 2008-03-31  Bruno Haible  <bruno@clisp.org>
62228
62229         * tests/test-strtod.c (main): Don't use C99 syntax.
62230
62231 2008-03-31  Bruno Haible  <bruno@clisp.org>
62232
62233         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62234         Reported by Eric Blake.
62235
62236 2008-03-31  Jim Meyering  <meyering@redhat.com>
62237
62238         Don't compare actual signbit return values.
62239         * tests/test-strtod.c (main): Rather, compare only their
62240         zero/non-zero nature.
62241
62242 2008-03-31  Eric Blake  <ebb9@byu.net>
62243
62244         More strtod documentation.
62245         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62246         failures as distinct bugs.
62247
62248 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62249
62250         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62251         Problem reported by Erik Benada in
62252         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62253
62254 2008-03-30  Bruno Haible  <bruno@clisp.org>
62255
62256         * tests/test-strtod.c: Add comments about which assertion fails on which
62257         platform.
62258         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62259
62260 2008-03-30  Eric Blake  <ebb9@byu.net>
62261
62262         Test signbit behavior on zeros.
62263         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62264         (test_signbitd, test_signbitl): Likewise.
62265
62266         More strtod touchups.
62267         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62268         sign of negative underflow, for now.  Use .5, not .1.
62269         * doc/posix-functions/strtod.texi (strtod): Mention these
62270         limitations.
62271         Reported by Jim Meyering.
62272
62273 2008-03-30  Bruno Haible  <bruno@clisp.org>
62274
62275         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62276         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62277
62278 2008-03-30  Bruno Haible  <bruno@clisp.org>
62279
62280         Avoid failure when attempting to return empty iconv results on some
62281         platforms.
62282         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62283         allocation, don't report ENOMEM when the resulting string is empty.
62284
62285 2008-03-30  Bruno Haible  <bruno@clisp.org>
62286
62287         Fix buffer overrun.
62288         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62289         Don't consider the width for tmp_length. Check count against tmp_length
62290         before doing the padding. Ensure enough allocation during padding.
62291
62292 2008-03-30  Eric Blake  <ebb9@byu.net>
62293
62294         strtod touchups.
62295         * lib/strtod.c (strtod): Avoid compiler warnings.
62296         Reported by Jim Meyering.
62297
62298 2008-03-30  Bruno Haible  <bruno@clisp.org>
62299
62300         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62301         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62302         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62303         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62304         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62305         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62306         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62307         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62308
62309         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62310         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62311         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62312         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62313         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62314         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62315         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62316         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62317
62318         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62319         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62320         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62321         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62322         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62323         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62324         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62325         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62326
62327         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62328         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62329
62330         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62331         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62332
62333         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62334         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62335
62336         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62337         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62338         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62339
62340         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62342         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62343
62344         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62345         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62346         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62347
62348         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62350         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62351
62352         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62353         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62355         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62356         (Depends-on): Add EOVERFLOW.
62357         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62358         (Depends-on): Add EOVERFLOW.
62359         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62360         (Depends-on): Add EOVERFLOW.
62361         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62362         (Depends-on): Add EOVERFLOW.
62363         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62364         (Depends-on): Add EOVERFLOW.
62365         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62366         (Depends-on): Add EOVERFLOW.
62367         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62368         (Depends-on): Add EOVERFLOW.
62369         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62370         (Depends-on): Add EOVERFLOW.
62371
62372         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62373         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62374         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62375
62376         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62378         * modules/snprintf (Depends-on): Add EOVERFLOW.
62379
62380         * lib/poll.c (EOVERFLOW): Remove fallback.
62381         * modules/poll (Depends-on): Add EOVERFLOW.
62382
62383         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62384         * modules/getugroups (Depends-on): Add EOVERFLOW.
62385
62386         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62387         * modules/getdelim (Depends-on): Add EOVERFLOW.
62388
62389         * lib/ftell.c (EOVERFLOW): Remove fallback.
62390         * modules/ftell (Depends-on): Add EOVERFLOW.
62391
62392         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62393         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62394         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62395
62396         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62397
62398         * modules/EOVERFLOW-tests: New file.
62399         * tests/test-EOVERFLOW.c: New file.
62400
62401         * modules/EOVERFLOW: New file.
62402         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62403
62404 2008-03-30  Bruno Haible  <bruno@clisp.org>
62405
62406         Fix bug introduced on 2007-06-10.
62407         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62408         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62409
62410 2008-03-30  Bruno Haible  <bruno@clisp.org>
62411
62412         Improve freadseek's efficiency after ungetc.
62413         * lib/freadseek.c: Include freadahead.h.
62414         (freadptrinc): New function, extracted from freadseek.
62415         (freadseek): Use it in a loop. Use freadahead to determine the number
62416         of loop iterations.
62417         * modules/freadseek (Depends-on): Add freadahead.
62418         (configure.ac): Require AC_C_INLINE.
62419
62420 2008-03-30  Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/freadseek.c (freadseek): Don't ignore the return value of
62423         freadptr.
62424
62425 2008-03-29  Eric Blake  <ebb9@byu.net>
62426
62427         Add hex float support.
62428         * modules/strtod (Depends-on): Add c-ctype.
62429         (Link): Mention POW_LIB.
62430         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62431         whitespace between 'e' and exponent.
62432         * tests/test-strtod.c (main): Enable hex float tests.
62433         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62434         now provides.
62435
62436         Document various strtod bugs, with some fixes.
62437         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62438         "-0x", "inf", "nan", and hex constants.
62439         * doc/posix-functions/atof.texi (atof): Likewise.
62440         * modules/stdlib (Makefile.am): Support strtod.
62441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62442         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62443         detect additional strtod bugs.
62444         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62445         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62446         bool where appropriate.  Parse 'inf' and 'nan'.
62447         * tests/test-strtod.c: New file.
62448         * modules/strtod (Depends-on): Add stdbool, stdlib.
62449         (configure.ac): Turn on module indicator.
62450         * modules/strtod-tests: New module.
62451
62452 2008-03-29  Eric Blake  <ebb9@byu.net>
62453
62454         Fix ftell on mingw.
62455         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62456         * modules/ftell-tests (Depends-on): Add binary-io.
62457         * modules/ftello-tests (Depends-on): Likewise.
62458         * tests/test-ftell.c (main): Enhance test to cover behavior after
62459         ungetc.  Enforce binary mode.
62460         * tests/test-ftello.c (main): Likewise.
62461
62462         Pass test-freadseek on cygwin.
62463         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62464         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62465         ungetc buffer.
62466
62467         * tests/test-fflush2.c (main): Fix typo.
62468
62469 2008-03-29  Bruno Haible  <bruno@clisp.org>
62470
62471         * tests/test-fflush2.c (main): Temporarily disable the contents of
62472         this test.
62473         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62474         Reported by Eric Blake.
62475
62476 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62477
62478         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62479         (GC_SHA224_DIGEST_SIZE): Add.
62480
62481         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62482         (gc_hash_digest_length): Likewise.
62483         (gc_hash_buffer): Likewise.
62484
62485 2008-03-25  Bruno Haible  <bruno@clisp.org>
62486
62487         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62488         detail which gettext release to use.
62489         Reported by Simon Josefsson.
62490
62491 2008-03-26  Jim Meyering  <meyering@redhat.com>
62492
62493         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62494         * modules/gnumakefile (clean-GNUmakefile): Also, use
62495         test ... && ... || : syntax rather than if-then ... fi.
62496
62497         gnumakefile: Don't double-quote-expand $(VPATH) value.
62498         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62499
62500 2008-03-24  Eric Blake  <ebb9@byu.net>
62501
62502         Alter GNUmakefile to install into top directory.
62503         * modules/maintainer-makefile: Split, and add dependency...
62504         * modules/gnumakefile: to this new module.
62505         * build-aux/GNUmakefile: Move...
62506         * top/GNUmakefile: ...here.
62507         * build-aux/maint.mk: Move...
62508         * top/maint.mk: ...here.
62509         * MODULES.html.sh (Support for maintaining...): Document new
62510         module.
62511
62512 2008-03-23  Bruno Haible  <bruno@clisp.org>
62513
62514         * gnulib-tool: New options --vc-files, --no-vc-files.
62515         (func_usage): Document them.
62516         (vc_files): New variable.
62517         (func_import): Consider vc_files.
62518         (func_create_testdir): Set vc_files to empty.
62519         Suggested by Jim Meyering and Karl Berry.
62520
62521 2008-03-23  Bruno Haible  <bruno@clisp.org>
62522
62523         Fix regex compilation error on HP-UX 11.
62524         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62525         * modules/regex (Files): Add m4/mbstate_t.m4.
62526         Reported by Ton Voon <ton.voon@altinity.com>.
62527
62528 2008-03-23  Bruno Haible  <bruno@clisp.org>
62529
62530         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62531
62532 2008-03-23  Eric Blake  <ebb9@byu.net>
62533             Bruno Haible  <bruno@clisp.org>
62534
62535         Install files from top/ in the destination directory.
62536         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62537         augmentation also for the files from top/.
62538         (func_import, func_create_testdir): Rewrite file names:
62539         top/filename -> filename.
62540
62541 2008-03-23  Bruno Haible  <bruno@clisp.org>
62542
62543         Tweak "gnulib --version" output.
62544         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62545
62546 2008-03-23  Bruno Haible  <bruno@clisp.org>
62547
62548         Tweak "gnulib --version" output.
62549         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62550         rather than contents of ChangeLog, when possible.
62551
62552 2008-03-21  Eric Blake  <ebb9@byu.net>
62553
62554         More --version tweaks.
62555         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62556         date of last ChangeLog entry.
62557
62558 2008-03-21  Jim Meyering  <meyering@redhat.com>
62559
62560         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62561
62562 2008-03-20  Eric Blake  <ebb9@byu.net>
62563
62564         VPATH fix.
62565         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62566
62567 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62568
62569         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62570         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62571
62572 2008-03-20  Eric Blake  <ebb9@byu.net>
62573
62574         Sync GNUmakefile with coreutils.
62575         * build-aux/GNUmakefile (have-Makefile): Rename...
62576         (_have-Makefile): ...to this, for namespace consideration.
62577         (GNUmakefile.cfg): Include, if present.
62578         (_autoreconf): Define a default.
62579         (_is-dist-target): New rule for rebuilds to pick up intra-release
62580         version.
62581         (maint-cfg.mk): Rename...
62582         (cfg.mk): ...to this.
62583
62584 2008-03-18  Jim Meyering  <meyering@redhat.com>
62585
62586         New script and module: mktempd
62587         * MODULES.html.sh (maint+release support): Add mktempd.
62588         * build-aux/mktempd: New file.
62589         * modules/mktempd: New file.
62590
62591 2008-03-15  Jim Meyering  <meyering@redhat.com>
62592
62593         Undo last change.
62594         * lib/sha1.c, lib/md5.c: 63 != ~63.
62595         Reported by Andreas Schwab.
62596
62597         sha1.c, md5.c: Hoist a redundant expression.
62598         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62599         "ctx->buflen" only once, before calling *_process_block.
62600         * lib/md5.c (md5_process_bytes): Likewise.
62601
62602 2008-03-14  Eric Blake  <ebb9@byu.net>
62603
62604         Bump copyright year in files generated by gnulib-tool.
62605         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62606         gnulib-tool, rather than hard-coding it.
62607
62608         Fix 'gnulib-tool --version' output to work with git.
62609         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62610         (startup): ...here.
62611         (func_version): Use it to invoke git-version-gen, rather than
62612         relying on CVS keyword expansion.  Modernize wording.
62613         (cvsdatestamp, last_checkin_date, version): Kill unused
62614         variables.
62615
62616 2008-03-12  Jim Meyering  <meyering@redhat.com>
62617
62618         Recognize optional cast of the argument to free.
62619         * build-aux/useless-if-before-free: Update regexps.
62620
62621         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62622
62623 2008-03-11  Bruno Haible  <bruno@clisp.org>
62624
62625         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62626         by a single package.
62627         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62628         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62629         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62630         Reported by Sam Steingold <sds@gnu.org>.
62631
62632 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62633
62634         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62635         repositories.
62636
62637 2008-03-11  Bruno Haible  <bruno@clisp.org>
62638
62639         Avoid conflicts between local macro definitions.
62640         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62641         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62642
62643 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62644             Bruno Haible  <bruno@clisp.org>
62645
62646         Make va_copy work with some version of xlc on AIX 5.1.
62647         * lib/stdarg.in.h: New file.
62648         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62649         On AIX, use a <stdarg.h> file substitute.
62650         * modules/stdarg (Files): Add lib/stdarg.in.h.
62651         (Depends-on): Add include_next.
62652         (Makefile.am): Build a stdarg.h substitute if requested.
62653         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62654
62655 2008-03-10  Bruno Haible  <bruno@clisp.org>
62656
62657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62658         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62659         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62660
62661 2008-03-10  Bruno Haible  <bruno@clisp.org>
62662
62663         * modules/stdlib (Depends-on): Add include_next, remove
62664         absolute-header.
62665
62666 2008-03-09  Bruno Haible  <bruno@clisp.org>
62667
62668         * lib/freadahead.h (freadahead): Document more precisely.
62669         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62670         the sum of both buffer sizes.
62671         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62672         * NEWS: Document the change.
62673
62674 2008-03-09  Bruno Haible  <bruno@clisp.org>
62675
62676         Extend freadptr to return also the buffer size.
62677         * lib/freadptr.h (freadptr): Add sizep argument.
62678         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62679         (freadptr): Add sizep argument. Determine buffer size like freadahead
62680         does.
62681         * tests/test-freadptr.c: Don't include freadahead.h.
62682         (main): Adapt for new calling convention of freadptr.
62683         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62684         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62685         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62686         tests/test-freadptr2.sh.
62687         (Depends): Remove freadahead.
62688         (TESTS): Add test-freadptr2.sh.
62689         (check_PROGRAMS): Add test-freadptr2.
62690
62691 2008-03-09  Bruno Haible  <bruno@clisp.org>
62692
62693         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62694         Report and solution by Simon Josefsson.
62695
62696 2008-03-06  Bruno Haible  <bruno@clisp.org>
62697
62698         Make fflush after ungetc work on BSD platforms.
62699         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62700         * tests/test-fflush2.c: New file.
62701         * tests/test-fflush2.sh: New file.
62702         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62703         tests/test-fflush2.c.
62704         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62705         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62706
62707 2008-03-06  Eric Blake  <ebb9@byu.net>
62708
62709         Likewise for ftello.
62710         * modules/ftello (Dependencies): Add extensions.
62711         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62712
62713 2008-03-06  Bruno Haible  <bruno@clisp.org>
62714
62715         * modules/fseeko (Dependencies): Add extensions.
62716         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62717         Needed on glibc systems.
62718
62719 2008-03-06  Bruno Haible  <bruno@clisp.org>
62720
62721         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62722         email address.
62723         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62724
62725 2008-03-06  Bruno Haible  <bruno@clisp.org>
62726
62727         * users.txt: Add libgnupdf.
62728
62729 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62730
62731         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62732         (Header File Substitutes, Function Substitutes,
62733         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62734         (Build robot for gnulib): Fix typo.
62735
62736 2008-03-06  Bruno Haible  <bruno@clisp.org>
62737
62738         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62739         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62740
62741 2008-03-06  Bruno Haible  <bruno@clisp.org>
62742
62743         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62744         * doc/gnulib.texi: Include it.
62745
62746 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62747
62748         * modules/func (License): Change license to unlimited; there was
62749         no LGPL parts in the module anyway.
62750
62751 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62752
62753         * modules/__func__: Renamed to modules/func.
62754         * modules/__func__-tests: Renamed to modules/func-tests.
62755         * tests/test-__func__.c: Renamed to tests/test-func.c.
62756         * m4/__func__.m4: Renamed to m4/func.m4.
62757         * doc/gnulib.texi (__func__): Section renamed to func.
62758         Suggested by Eric Blake <ebb9@byu.net>.
62759
62760 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62761
62762         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62763         about __func__.  Make example self-contained.  Suggested by Eric
62764         Blake <ebb9@byu.net>.
62765
62766         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62767         Suggested by Eric Blake <ebb9@byu.net>.
62768
62769 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62770
62771         * modules/__func__: New file.
62772         * modules/__func__-tests: New file.
62773         * tests/test-__func__.c: New file.
62774         * m4/__func__.m4: New file.
62775         * doc/gnulib.texi (__func__): Document __func__ module.
62776
62777 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62778
62779         * modules/byteswap (License): Re-license as LGPLv2+.
62780
62781 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62782
62783         * doc/Makefile: Add pdf target.
62784
62785 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62786
62787         * modules/inline (License): Use 'unlimited', since there are only
62788         *.m4 files in this module.
62789
62790 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62791             Bruno Haible  <bruno@clisp.org>
62792
62793         Add support for HP C 7.1 on OpenVMS 8.3.
62794         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62795
62796 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62797
62798         Update VMS specifics.
62799         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62800
62801 2008-03-02  Jim Meyering  <meyering@redhat.com>
62802
62803         Remove the last dependency on the "free" module.
62804         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62805         Reported by Bob Proulx.
62806
62807         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62808
62809         Remove useless "if" tests before free.  Deprecate "free" module.
62810         * doc/posix-functions/free.texi: Mention that this
62811         module is no longer useful.
62812         * modules/free (Notice): Say this module is obsolete.
62813         * modules/readutmp (Depends-on): Remove free.
62814         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62815         * lib/putenv.c (putenv): Likewise.
62816         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62817         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62818         * tests/test-c-strcasestr.c (main): Likewise.
62819         * tests/test-c-strstr.c (main): Likewise.
62820         * tests/test-mbscasestr1.c (main): Likewise.
62821         * tests/test-mbscasestr2.c (main): Likewise.
62822         * tests/test-mbsstr1.c (main): Likewise.
62823         * tests/test-mbsstr2.c (main): Likewise.
62824         * tests/test-memmem.c (main): Likewise.
62825         * tests/test-strcasestr.c (main): Likewise.
62826         * tests/test-striconv.c (main): Likewise.
62827         * tests/test-striconveh.c (main): Likewise.
62828         * tests/test-striconveha.c (main): Likewise.
62829         * tests/test-strstr.c (main): Likewise.
62830
62831         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62832
62833         bootstrap: sync from coreutils again
62834         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62835
62836 2008-03-01  Jim Meyering  <meyering@redhat.com>
62837
62838         bootstrap: sync from coreutils
62839         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62840         also when the target doesn't exist.
62841
62842 2008-03-01  Eric Blake  <ebb9@byu.net>
62843
62844         Fix bugs in last patch.
62845         * lib/memchr2.c (memchr2): Fix typo.
62846         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62847         extension.
62848         Reported by Bruce Korb.
62849
62850         New module 'memchr2'.
62851         * modules/memchr2: New file.
62852         * modules/memchr2-tests: Likewise.
62853         * lib/memchr2.h: Likewise.
62854         * lib/memchr2.c: Likewise, based on memchr.c.
62855         * tests/test-memchr2.c: New test.
62856         * MODULES.html.sh (String handling): Add memchr2.
62857
62858 2008-02-29  Bruno Haible  <bruno@clisp.org>
62859
62860         * modules/freadseek-tests: New file.
62861         * tests/test-freadseek.sh: New file.
62862         * tests/test-freadseek.c: New file.
62863
62864         New module 'freadseek'.
62865         * modules/freadseek: New file.
62866         * lib/freadseek.h: New file.
62867         * lib/freadseek.c: New file.
62868         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62869
62870 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62871
62872         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62873         wydawca.
62874
62875         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62876         program_invocation_name and program_invocation_short_name are
62877         present.
62878
62879 2008-02-28  Bruno Haible  <bruno@clisp.org>
62880
62881         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62882         * tests/test-freadptr.sh: Also test non-seekable stdin.
62883
62884 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62885
62886         * build-aux/bootstrap (source_base, m4_base)
62887         (doc_base, tests_base): New variables.
62888         (gnulib_tool_options): Do not hardcode base directories, use
62889         the above variables instead.
62890
62891 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62892
62893         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62894
62895 2008-02-28  Bruno Haible  <bruno@clisp.org>
62896
62897         * modules/freadptr-tests: New file.
62898         * tests/test-freadptr.sh: New file.
62899         * tests/test-freadptr.c: New file.
62900
62901         New module 'freadptr'.
62902         * modules/freadptr: New file.
62903         * lib/freadptr.h: New file.
62904         * lib/freadptr.c: New file.
62905         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62906
62907 2008-02-26  Karl Berry  <karl@freefriends.org>
62908
62909         Sync from Libtool:
62910         * libltdl/argz.c (argz_add, argz_count): New functions.
62911         * libltdl/argz.in.h: Declare them.
62912         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62913
62914 2008-02-22  Bruno Haible  <bruno@clisp.org>
62915
62916         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62917         is a pointer type.  Needed for HP-UX 10.
62918         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62919         * doc/posix-functions/gmtime_r.texi: Likewise.
62920         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62921
62922 2008-02-24  Bruno Haible  <bruno@clisp.org>
62923
62924         * modules/environ-tests: New file.
62925         * tests/test-environ.c: New file.
62926
62927         New module 'environ'.
62928         * modules/environ: New file.
62929         * lib/unistd.in.h (environ): New declaration.
62930         * m4/environ.m4: New file.
62931         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62932         after use.
62933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62934         HAVE_DECL_ENVIRON.
62935         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62936         HAVE_DECL_ENVIRON.
62937         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62938         wrong claim that 'environ' is missing on some systems.
62939         * modules/execute (Depends-on): Add environ.
62940         * lib/execute.c (environ): Remove fallback declaration.
62941         * modules/pipe (Depends-on): Add environ.
62942         * lib/pipe.c (environ): Remove fallback declaration.
62943         * modules/setenv (Depends-on): Add environ.
62944         * lib/setenv.c (environ): Remove fallback declaration.
62945         * modules/unsetenv (Depends-on): Add environ.
62946         * lib/unsetenv.c (environ): Remove fallback declaration.
62947         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62948         m4/environ.m4.
62949         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62950         (gl_PREREQ_UNSETENV): Likewise.
62951
62952 2008-02-24  Bruno Haible  <bruno@clisp.org>
62953
62954         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62955
62956 2008-02-20  Bob Proulx  <bob@proulx.com>
62957
62958         Enable use of older two part flavor 'git describe'.
62959         * build-aux/git-version-gen: If using the older two part flavor of
62960         git version then recreate the third part now present in the
62961         newer three part flavor of git describe.
62962
62963 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62964
62965         * lib/fts.c (fts_build): Typo correction to comment.
62966
62967 2008-02-17  Bruno Haible  <bruno@clisp.org>
62968
62969         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62970         generating no-op conflicts.
62971
62972 2008-02-17  Bruno Haible  <bruno@clisp.org>
62973
62974         Speed up by 10%.
62975         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62976         result_entries, rather than an index-based loop.
62977
62978 2008-02-17  Bruno Haible  <bruno@clisp.org>
62979
62980         Speed up by 25%.
62981         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62982         'hashcode_cached'.
62983         (entry_create): New function.
62984         (entry_hashcode): Use the cached hashcode if possible.
62985         (read_changelog_file, try_split_merged_entry): Use entry_create.
62986
62987 2008-02-17  Bruno Haible  <bruno@clisp.org>
62988
62989         Speed up from O(n^2) to O(n) for long ChangeLog files.
62990         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62991         (read_changelog_file): Change implementation of entries_reversed list
62992         to rbtreehash.
62993         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62994
62995 2008-02-17  Bruno Haible  <bruno@clisp.org>
62996
62997         New option --split-merged-entry.
62998         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62999         (find_paragraph_end, try_split_merged_entry): New functions.
63000         (long_options): Add option --split-merged-entry.
63001         (usage): Document option --split-merged-entry.
63002         (main): Implement option --split-merged-entry.
63003         Reported by Eric Blake.
63004
63005 2008-02-17  Bruno Haible  <bruno@clisp.org>
63006
63007         * lib/git-merge-changelog.c: Include c-strstr.h.
63008         (main): Support the "git pull --rebase" situation.
63009         * modules/git-merge-changelog (Depends-on): Add c-strstr.
63010         Reported by Eric Blake.
63011
63012 2008-02-16  Eric Blake  <ebb9@byu.net>
63013
63014         Avoid doubling \ in common case of "c-maybe" quoting style.
63015         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
63016         eliding outer quotes.
63017         * lib/quotearg.h: Document this.
63018         * tests/test-quotearg.c (result_strings, inputs, results_g)
63019         (flag_results, locale_results): Test it by adding a new string to
63020         each test group.
63021         (compare_strings): Test new string.
63022
63023 2008-02-13  Eric Blake  <ebb9@byu.net>
63024
63025         Avoid trigraph quoting in default output.
63026         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
63027         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
63028         unless explicitly requested.
63029         * tests/test-quotearg.c (flag_results, main): Add additional tests.
63030
63031 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
63032
63033         Don't rely on signed integer overflowing to negative value.
63034         * lib/getugroups.c (getugroups): Include <limits.h>.
63035         Instead, compare against INT_MAX, and increment only if the test passes.
63036
63037 2008-02-13  Jim Meyering  <meyering@redhat.com>
63038         and Eric Blake  <ebb9@byu.net>
63039
63040         Avoid shadowing warning and compile errors on Linux.
63041         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
63042         forwarding macros on Linux.
63043         (dcgettext): Define a stub, for Linux.
63044         (results_g, main): Avoid warnings.
63045
63046 2008-02-12  Eric Blake  <ebb9@byu.net>
63047
63048         Silence warning in last patch.
63049         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
63050
63051         Quotearg part 4: add tests, fix c-maybe colon quoting.
63052         * lib/quotearg.h: Improve documentation.
63053         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
63054         escapes when adding outer quotes.  When quoting trigraphs, use
63055         valid C notation.  When quoting NUL, omit extra characters if next
63056         character is not digit.  Alter prototype.
63057         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
63058         callers.
63059         * modules/quotearg-tests: New module.
63060         * tests/test-quotearg.c: New test.
63061
63062 2008-02-07  Eric Blake  <ebb9@byu.net>
63063
63064         Quotearg part 3: add flag to control outer quote elision.
63065         * lib/quotearg.h (c_maybe_quoting_style): New style.
63066         (enum quoting_flags): Better documentation of flags.
63067         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
63068         c-maybe style.
63069         (quotearg_buffer_restyled): Handle new flag to elide outer
63070         quotes.
63071
63072         Quotearg part 2: add flag that can control NUL elision.
63073         * lib/quotearg.h (set_quoting_flags): New prototype.
63074         * lib/quotearg.c (struct quoting_options): Add flag field.
63075         (set_quoting_flags): New function.
63076         (quotearg_buffer_restyled): Add flags parameter.
63077         (quotearg_alloc_mem): Set the flag if length cannot be returned.
63078         (quotearg_n_options): Set the flag, since length cannot be
63079         returned.
63080         (quoting_options_from_style): Default flags correctly.
63081
63082         Quotearg part 1: more wrappers, restore quotearg_char state.
63083         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
63084         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
63085         (quotearg_colon_mem): New wrappers.
63086         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
63087         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
63088         functions.
63089         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
63090         (quotearg_colon_mem): New functions.
63091
63092 2008-02-11  Bruno Haible  <bruno@clisp.org>
63093
63094         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
63095         library in the current directory: it does not work with parallel make.
63096         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63097
63098 2008-02-11  Bruno Haible  <bruno@clisp.org>
63099
63100         * .gitattributes: New file.
63101
63102 2008-02-11  Jim Meyering  <meyering@redhat.com>
63103
63104         useless-if-before-free: Fix reversed exit values.
63105         * build-aux/useless-if-before-free: Use correct values
63106         for EXIT_MATCH and EXIT_NO_MATCH.
63107
63108         * build-aux/useless-if-before-free: Close stdout carefully.
63109
63110 2008-02-10  Bruno Haible  <bruno@clisp.org>
63111
63112         New module 'git-merge-changelog'.
63113         * modules/git-merge-changelog: New file.
63114         * lib/git-merge-changelog.c: New file.
63115
63116 2008-02-10  Jim Meyering  <meyering@redhat.com>
63117
63118         useless-if-before-free: New option: --list (-l).
63119
63120         useless-if-before-free: Don't exit immediately upon open failure.
63121         * build-aux/useless-if-before-free: Exit 2 for errors.
63122         Upon failure to open a file, don't exit immediately.
63123         Rather, just warn and continue with any remaining files.
63124
63125 2008-02-10  Bruno Haible  <bruno@clisp.org>
63126
63127         New abstract list operation 'node_set_value'.
63128         * lib/gl_list.h (gl_list_node_set_value): New function.
63129         (struct gl_list_implementation): New field node_set_value.
63130         * lib/gl_list.c (gl_list_node_set_value): New function.
63131         * lib/gl_array_list.c (gl_array_node_set_value): New function.
63132         (gl_array_list_implementation): Update.
63133         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
63134         (gl_carray_list_implementation): Update.
63135         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
63136         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63137         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63138         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
63139         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63140         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63141         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63142         Update.
63143         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63144         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
63145         (gl_sublist_list_implementation): Update.
63146
63147 2008-02-10  Bruno Haible  <bruno@clisp.org>
63148
63149         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
63150         Needed when ELEMENT is #defined to 'some_type *'.
63151
63152 2008-02-10  Jim Meyering  <meyering@redhat.com>
63153
63154         New script and module: useless-if-before-free
63155         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
63156         * build-aux/useless-if-before-free: New file.
63157         * modules/useless-if-before-free: New file.
63158
63159         * build-aux/gitlog-to-changelog: Use committer date, not author date.
63160
63161         xstrtol_error: Fix typo.
63162         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
63163         s/exit_failure/exit_status/.
63164
63165 2008-02-09  Jim Meyering  <meyering@redhat.com>
63166
63167         New script and module: gitlog-to-changelog
63168         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
63169         * modules/gitlog-to-changelog: New file.
63170         * build-aux/gitlog-to-changelog: New file.
63171
63172 2008-02-08  Jim Meyering  <meyering@redhat.com>
63173
63174         Avoid two "parameter unused" warnings.
63175         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
63176         Mark "st" as used.
63177
63178         Use "git COMMAND", not "git-COMMAND".
63179         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
63180         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
63181         * build-aux/git-version-gen: Use "git status", not "git-status".
63182
63183 2008-02-07  Bruno Haible  <bruno@clisp.org>
63184
63185         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
63186         Avoids a crash on Windows Vista.
63187         Reported by Adam Strzelecki <ono@java.pl> via
63188         Simon Josefsson <simon@josefsson.org>.
63189
63190 2008-02-06  Bruno Haible  <bruno@clisp.org>
63191
63192         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
63193         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
63194         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
63195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
63196         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63197         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63198         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
63199         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
63200         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63201         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63202         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63203         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63204         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63205         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63206         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63207         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63208         left-adjust flag.
63209         * tests/test-snprintf-posix.h (test_function): Likewise.
63210         * tests/test-sprintf-posix.h (test_function): Likewise.
63211         * tests/test-vasprintf-posix.c (test_function): Likewise.
63212         * doc/posix-functions/fprintf.texi: Update.
63213         * doc/posix-functions/printf.texi: Update.
63214         * doc/posix-functions/snprintf.texi: Update.
63215         * doc/posix-functions/sprintf.texi: Update.
63216         * doc/posix-functions/vfprintf.texi: Update.
63217         * doc/posix-functions/vprintf.texi: Update.
63218         * doc/posix-functions/vsnprintf.texi: Update.
63219         * doc/posix-functions/vsprintf.texi: Update.
63220         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63221
63222 2008-02-06  Bruno Haible  <bruno@clisp.org>
63223
63224         Fix bug introduced on 2008-01-26.
63225         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63226
63227 2008-02-06  Bruno Haible  <bruno@clisp.org>
63228
63229         Fix bug introduced on 2007-06-10.
63230         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63231         !NEED_PRINTF_FLAG_ZERO.
63232
63233 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63234
63235         getloadavg: use libperfstat on AIX5
63236         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63237
63238 2008-02-03  Bruno Haible  <bruno@clisp.org>
63239
63240         * lib/diffseq.h: Add comments about required #includes.
63241         Reported by Michael Biggs <gnulib@doubleplum.net>.
63242
63243 2008-02-01  Bruno Haible  <bruno@clisp.org>
63244
63245         * users.txt: Add gnuit.
63246
63247 2008-01-31  Bruno Haible  <bruno@clisp.org>
63248
63249         * lib/md4.c (set_uint32): Mark as inline.
63250         * lib/md5.c (set_uint32): Likewise.
63251         * lib/sha1.c (set_uint32): Likewise.
63252         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63253         * m4/md5.m4 (gl_MD5): Likewise.
63254         * m4/sha1.m4 (gl_SHA1): Likewise.
63255
63256 2008-01-31  Jim Meyering  <meyering@redhat.com>
63257
63258         Use "sizeof VAR", rather than a literal "4".
63259         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63260         * lib/md4.c (md4_read_ctx): Likewise.
63261         * lib/sha1.c (sha1_read_ctx): Likewise.
63262
63263 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63264
63265         * tests/test-sha1.c: New file, based on test-md5.c.
63266
63267         * modules/crypto/sha1-tests: New file.
63268
63269 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63270
63271         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63272
63273 2008-01-31  Jim Meyering  <meyering@redhat.com>
63274
63275         Prefer "sizeof v" over the equivalent "4".
63276         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63277         * lib/md5.c (set_uint32): Likewise.
63278         * lib/sha1.c (set_uint32): Likewise.
63279
63280 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63281
63282         * lib/sha1.c (set_uint32): Mark function as static.
63283
63284 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63285
63286         md2: clarify comments to say that alignment is not required.
63287         * lib/md2.h: Remove warning about alignment in comment.
63288         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63289         never been required.
63290
63291 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63292
63293         md4: adapt alignment constraint fix from sha1.
63294         * lib/md4.c (set_uint32): New function, from sha1.c
63295         (md4_read_ctx): Use it.
63296         (md4_finish_ctx): Doc fix.
63297         * lib/md4.h: Doc fix.
63298
63299 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63300
63301         md5: adapt alignment constraint fix from sha1.
63302         * lib/md5.c (set_uint32): New function, from sha1.c
63303         (md5_read_ctx): Use it.
63304         (md5_finish_ctx): Doc fix.
63305         * lib/md5.h: Doc fix.
63306
63307 2008-01-30  Peter Palfrader  <weasel@debian.org>
63308
63309         sha1: remove the result buffer alignment constraint
63310         * lib/sha1.c (set_uint32): New function.
63311         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63312         constraint.
63313         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63314         * lib/sha1.h: Likewise.
63315
63316 2008-01-30  Andreas Schwab  <schwab@suse.de>
63317             Bruno Haible  <bruno@clisp.org>
63318
63319         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63320         correct definition of LDBL_MIN_EXP.
63321
63322 2008-01-30  Karl Berry  <karl@gnu.org>
63323
63324         * config/srclist-update: try to preserve x bit on updates.
63325         * config/srclistvars.sh: update for karl.
63326
63327 2008-01-29  Jim Meyering  <meyering@redhat.com>
63328
63329         vasnprintf.c: Avoid warning about unused label
63330         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63331         "overflow" label definition and associated code with the
63332         same cpp condition that guards the sole use of that label.
63333
63334 2008-01-26  Bruno Haible  <bruno@clisp.org>
63335
63336         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63337         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63338         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63339         * lib/isnanl-nolibm.h (isnanl): Likewise.
63340         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63341
63342 2008-01-26  Bruno Haible  <bruno@clisp.org>
63343
63344         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63345         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63346
63347 2008-01-26  Bruno Haible  <bruno@clisp.org>
63348
63349         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63350         GCC >= 4.0 built-in.
63351         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63352
63353 2008-01-26  Bruno Haible  <bruno@clisp.org>
63354
63355         Rename isnan, applicable to 'double' only, to isnand.
63356         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63357         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63358         (configure.ac): Update.
63359         (Include): Replace "isnan.h" with "isnand.h".
63360         * m4/isnand.m4: Renamed from m4/isnan.m4.
63361         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63362         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63363         instead of isnan.c.
63364         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63365         instead of HAVE_ISNAN_IN_LIBC.
63366         (isnand): Renamed from isnan.
63367         * lib/isnand.c: New file.
63368         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63369         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63370         (Makefile.am): Update.
63371         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63372         Include isnand.h instead of isnan.h.
63373         (main): Test isnand instead of isnan.
63374         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63375         isnan-nolibm.
63376         * modules/frexp (Depends-on): Likewise.
63377         * modules/frexp-tests (Depends-on): Likewise.
63378         * modules/frexp-nolibm (Depends-on): Likewise.
63379         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63380         * modules/isfinite (Depends-on): Likewise.
63381         * modules/round-tests (Depends-on): Likewise.
63382         * modules/signbit (Depends-on): Likewise.
63383         * modules/signbit-tests (Depends-on): Likewise.
63384         * modules/snprintf-posix (Depends-on): Likewise.
63385         * modules/sprintf-posix (Depends-on): Likewise.
63386         * modules/trunc-tests (Depends-on): Likewise.
63387         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63388         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63389         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63390         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63391         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63392         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63393         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63394         * modules/vasnprintf-posix (Depends-on): Likewise.
63395         * modules/vasprintf-posix (Depends-on): Likewise.
63396         * modules/vfprintf-posix (Depends-on): Likewise.
63397         * modules/vsnprintf-posix (Depends-on): Likewise.
63398         * modules/vsprintf-posix (Depends-on): Likewise.
63399         * lib/frexp.c: Include isnand.h instead of isnan.h.
63400         (ISNAN): Set to isnand instead of isnan.
63401         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63402         (gl_isfinited): Use isnand instead of isnan.
63403         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63404         (gl_signbitd): Use isnand instead of isnan.
63405         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63406         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63407         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63408         (main): Use isnand instead of isnan.
63409         * tests/test-round1.c: Include isnand.h.
63410         (main): Use isnand instead of isnan.
63411         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63412         (ISNAN): Set to isnand instead of isnan.
63413         * tests/test-trunc1.c: Include isnand.h.
63414         (main): Use isnand instead of isnan.
63415         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63416         (equal): Use isnand instead of isnan.
63417         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63418         isnand-nolibm.
63419         * NEWS: Mention the change.
63420
63421 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63422             Bruno Haible  <bruno@clisp.org>
63423
63424         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63425         the GCC builtins for signbits are present and set
63426         REPLACE_SIGNBIT_USING_GCC if so.
63427         * lib/math.in.h (signbit): Define using GCC builtins if
63428         REPLACE_SIGNBIT_USING_GCC is set.
63429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63430         REPLACE_SIGNBIT_USING_GCC.
63431         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63432
63433 2008-01-25  Jim Meyering  <meyering@redhat.com>
63434
63435         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63436         * lib/poll.c: Include <config.h>, not "config.h".
63437         * tests/test-getaddrinfo.c: Likewise.
63438
63439 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63440
63441         * modules/sockets-tests: New file.
63442
63443 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63444
63445         * modules/sockets: New module, can be used to call WSA_Startup and
63446         WSA_Cleanup when needed.
63447
63448         * lib/sockets.h, lib/sockets.c: New files.
63449
63450         * m4/sockets.m4: New file.
63451
63452         * tests/test-sockets.c: New file.
63453
63454 2008-01-19  Bruno Haible  <bruno@clisp.org>
63455
63456         * doc/posix-headers: Renamed from doc/headers.
63457         * doc/posix-functions: Renamed from doc/functions.
63458         * doc/gnulib.texi: Update.
63459
63460 2008-01-19  Bruno Haible  <bruno@clisp.org>
63461
63462         * doc/glibc-functions/strcasestr.texi: Include contents of
63463         doc/functions/strcasestr.texi, fixing the list of platforms.
63464         * doc/functions/strcasestr.texi: Remove file.
63465
63466 2008-01-19  Bruno Haible  <bruno@clisp.org>
63467
63468         * doc/glibc-functions/memmem.texi: Include contents of
63469         doc/functions/memmem.texi.
63470         * doc/functions/memmem.texi: Remove file.
63471
63472 2008-01-18  Bruno Haible  <bruno@clisp.org>
63473
63474         * doc/glibc-functions/*.texi: New files.
63475         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63476         to use the new files.
63477
63478 2008-01-17  Bruno Haible  <bruno@clisp.org>
63479
63480         * tests/test-gethostname.c (main): Fix printf statement.
63481
63482 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63483
63484         * modules/gethostname-tests: New file.
63485
63486         * tests/test-gethostname.c: New file.
63487
63488 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63489
63490         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63491         used by the UNAME case.  Reported by Bruno Haible
63492         <bruno@clisp.org>.
63493
63494 2008-01-17  Eric Blake  <ebb9@byu.net>
63495
63496         Convert c-strcasestr to be more efficient.
63497         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63498         (Depends-on): Add c-strcase, remove malloca, strnlen.
63499         * tests/test-c-strcasestr.c (main): Enhance test.
63500         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63501
63502 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63503
63504         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63505         Use it in creating po/Makevars.
63506
63507 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63508
63509         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63510         Applications that requires it should initialize libgcrypt
63511         manually.
63512
63513 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63514
63515         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63516
63517 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         Fix problem with getdate on mingw32 reported by Simon Josefsson
63520         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63521         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63522         tzname", when deciding whether to declare tzname.
63523         * lib/strftime.c (tzname): Likewise.
63524
63525 2008-01-15  Bruno Haible  <bruno@clisp.org>
63526
63527         Work around a MacOS X 10.5 bug in frexpl().
63528         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63529         * doc/functions/frexpl.texi: Document the bug.
63530         Reported by Elias Pipping <pipping@gentoo.org>.
63531
63532 2008-01-14  Eric Blake  <ebb9@byu.net>
63533
63534         Touch up previous patch.
63535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63536         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63537
63538         Convert strcasestr module to use Two-Way algorithm.
63539         * modules/strcasestr-simple: New module, based on the old
63540         strcasestr, but with Two-Way rather than KMP.
63541         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63542         * lib/string.in.h (rpl_strcasestr): Declare.
63543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63544         performance.
63545         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63546         * modules/string (Makefile.am): Support strcasestr.
63547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63548         * modules/strcasestr-tests (Depends-on): Check for alarm.
63549         * tests/test-strcasestr.c: Augment test.
63550         * lib/str-two-way.h: Clean up stray macro.
63551         * NEWS: Document new module.
63552         * MODULES.html.sh (string handling): Likewise.
63553         * doc/functions/strcasestr.texi: New file.
63554         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63555         here, since it is not a POSIX function.
63556
63557 2008-01-14  Colin Watson  <cjwatson@debian.org>
63558             Bruno Haible  <bruno@clisp.org>
63559
63560         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63561         works fine; if not, set REPLACE_STRSIGNAL.
63562         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63564         REPLACE_STRSIGNAL.
63565         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63566         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63567         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63568
63569 2008-01-14  Bruno Haible  <bruno@clisp.org>
63570
63571         * modules/strsignal (Include): Change to <string.h>.
63572
63573 2008-01-14  Colin Watson  <cjwatson@debian.org>
63574
63575         * modules/argp (Notice): Add a notice recommending to change
63576         XGETTEXT_OPTIONS.
63577         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63578
63579 2008-01-13  Colin Watson  <cjwatson@debian.org>
63580
63581         * modules/strsignal-tests: New file.
63582         * tests/test-strsignal.c: New file.
63583
63584         * lib/strsignal.c: New file, from glibc with modifications.
63585         * lib/siglist.h: New file, from glibc with modifications.
63586         * lib/string.in.h (strsignal): New declaration.
63587         * m4/strsignal.m4: New file.
63588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63589         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63590         * modules/strsignal: New file.
63591         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63592         HAVE_DECL_STRSIGNAL.
63593
63594 2008-01-13  Bruno Haible  <bruno@clisp.org>
63595
63596         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63597         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63598         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63599         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63600
63601 2008-01-13  Bruno Haible  <bruno@clisp.org>
63602
63603         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63604         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63605         * lib/argp.h (__attribute__): Likewise.
63606         * lib/c-stack.c (__attribute__): Likewise.
63607         * lib/error.h (__attribute__): Likewise.
63608         * lib/fts.c (__attribute__): Likewise.
63609         * lib/openat.h (__attribute__): Likewise.
63610         * lib/stdio.in.h (__attribute__): Likewise.
63611         * lib/string.in.h (__attribute__): Likewise.
63612         * lib/utimens.c (__attribute__): Likewise.
63613         * lib/vasnprintf.h (__attribute__): Likewise.
63614         * lib/xalloc.h (__attribute__): Likewise.
63615         * lib/xprintf.h (__attribute__): Likewise.
63616         * lib/xstrtol.h (__attribute__): Likewise.
63617         * lib/xvasprintf.h (__attribute__): Likewise.
63618
63619 2008-01-12  Bruno Haible  <bruno@clisp.org>
63620
63621         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63622         * doc/glibc-headers/a.out.texi: New file.
63623         * doc/glibc-headers/aliases.texi: New file.
63624         * doc/glibc-headers/alloca.texi: New file.
63625         * doc/glibc-headers/ar.texi: New file.
63626         * doc/glibc-headers/argp.texi: New file.
63627         * doc/glibc-headers/argz.texi: New file.
63628         * doc/glibc-headers/byteswap.texi: New file.
63629         * doc/glibc-headers/crypt.texi: New file.
63630         * doc/glibc-headers/endian.texi: New file.
63631         * doc/glibc-headers/envz.texi: New file.
63632         * doc/glibc-headers/err.texi: New file.
63633         * doc/glibc-headers/error.texi: New file.
63634         * doc/glibc-headers/execinfo.texi: New file.
63635         * doc/glibc-headers/fpu_control.texi: New file.
63636         * doc/glibc-headers/fstab.texi: New file.
63637         * doc/glibc-headers/fts.texi: New file.
63638         * doc/glibc-headers/getopt.texi: New file.
63639         * doc/glibc-headers/ieee754.texi: New file.
63640         * doc/glibc-headers/ifaddrs.texi: New file.
63641         * doc/glibc-headers/libintl.texi: New file.
63642         * doc/glibc-headers/mcheck.texi: New file.
63643         * doc/glibc-headers/mntent.texi: New file.
63644         * doc/glibc-headers/obstack.texi: New file.
63645         * doc/glibc-headers/paths.texi: New file.
63646         * doc/glibc-headers/printf.texi: New file.
63647         * doc/glibc-headers/pty.texi: New file.
63648         * doc/glibc-headers/resolv.texi: New file.
63649         * doc/glibc-headers/shadow.texi: New file.
63650         * doc/glibc-headers/sysexits.texi: New file.
63651         * doc/glibc-headers/ttyent.texi: New file.
63652
63653 2008-01-12  Jim Meyering  <meyering@redhat.com>
63654
63655         announce-gen: emit Gnulib's git-based version string.
63656         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63657         New option --gnulib-version=V, where V is expected to be
63658         the output of running git describe in the gnulib directory.
63659         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63660         not useful, and plan to stop publishing an xdelta file with each
63661         coreutils release.
63662
63663         * build-aux/announce-gen: Also check for lzma-compressed files.
63664
63665 2008-01-11  Bruno Haible  <bruno@clisp.org>
63666
63667         * tests/test-memmem.c (main): Increase maximum allowed time.
63668         * tests/test-strstr.c (main): Likewise.
63669
63670 2008-01-11  Bruno Haible  <bruno@clisp.org>
63671
63672         * doc/functions/memmem.texi: Add more precisions about platforms.
63673         * doc/functions/strstr.texi: Likewise.
63674
63675 2008-01-10  Eric Blake  <ebb9@byu.net>
63676
63677         * m4/strstr.m4: Delete cruft from copy-n-paste.
63678         Reported by Bruno Haible.
63679
63680 2008-01-10  Bruno Haible  <bruno@clisp.org>
63681
63682         Make c-strstr rely on strstr.
63683         * lib/c-strstr.c: Don't include str-kmp.h.
63684         (c_strstr): Define in terms of strstr.
63685         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63686         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63687
63688 2008-01-10  Bruno Haible  <bruno@clisp.org>
63689
63690         * doc/gnulib.texi (String Functions in C Locale): New section.
63691         * doc/c-ctype.texi: New file.
63692         * doc/c-strcase.texi: New file.
63693         * doc/c-strcaseeq.texi: New file.
63694         * doc/c-strcasestr.texi: New file.
63695         * doc/c-strstr.texi: New file.
63696         * doc/c-strtod.texi: New file.
63697         * doc/c-strtold.texi: New file.
63698
63699 2008-01-10  Eric Blake  <ebb9@byu.net>
63700
63701         * lib/relocatable.h: Fix a comment.
63702
63703 2008-01-10  Eric Blake  <ebb9@byu.net>
63704
63705         Share two-way algorithm.
63706         * lib/str-two-way.h: New file, merged from...
63707         * lib/memmem.c: ...here...
63708         * lib/strstr.c: ...and here.
63709         * modules/memmem (Files): Use it.
63710         * modules/strstr (Files): Likewise.
63711
63712         Avoid quadratic strstr implementations.
63713         * lib/strstr.c: New file.
63714         * m4/strstr.m4: Likewise.
63715         * modules/strstr: Likewise.
63716         * modules/strstr-tests: Likewise.
63717         * tests/test-strstr.c: Likewise.
63718         * lib/string.in.h (rpl_strstr): Declare.
63719         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63721         * modules/string (Makefile.am): Likewise.
63722         * MODULES.html.sh (string handling): Mention new module.
63723         * doc/functions/strstr.texi (strstr): Document the bug.
63724
63725 2008-01-10  Bruno Haible  <bruno@clisp.org>
63726
63727         * lib/relocatable.h (relocate): State whether result is freshly
63728         allocated or not.
63729         * lib/relocatable.c (relocate): Return a freshly allocated string
63730         instead of a pointer to a privately held string.
63731         Reported by Sylvain Beucler <beuc@gnu.org>.
63732
63733 2008-01-10  Colin Watson  <cjwatson@debian.org>
63734
63735         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63736         s/S_ISNLK/S_ISLNK/.
63737
63738 2008-01-09  Bruno Haible  <bruno@clisp.org>
63739
63740         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63741         and other files.
63742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63743         if it's only a guess.
63744         * modules/memmem: Simplify by depending on memmem-simple.
63745
63746 2008-01-09  Bruno Haible  <bruno@clisp.org>
63747
63748         Work around OpenBSD 4.0 tdelete() bug.
63749         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63750         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63751         macros and don't redefine the enum values.
63752         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63753         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63754         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63755
63756 2008-01-09  Bruno Haible  <bruno@clisp.org>
63757
63758         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63759         (main): Don't perform the tests if setlocale did not install a UTF-8
63760         locale. Needed on OpenBSD 4.0.
63761         * modules/wcwidth-tests (Depends-on): Add localcharset.
63762
63763 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63764
63765         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63766         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63767         * NEWS: announce this.
63768         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63769
63770 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63771         and Eric Blake  <ebb9@byu.net>
63772
63773         Add memmem-simple module.
63774         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63775         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63776         * modules/memmem-simple: New file.
63777         * modules/memmem (Description): Tweak.
63778         * MODULES.html.sh (string handling): Mention new module.
63779         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63780         addressed by memmem-simple.
63781         * NEWS: Document the difference.
63782
63783 2008-01-09  Eric Blake  <ebb9@byu.net>
63784
63785         Give gcc some memmem optimization hints.
63786         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63787         (strcasestr): Declare as pure.
63788         * modules/memmem (Maintainer): Claim my implementation.
63789
63790 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63791
63792         Support AIX 6.1 and higher.
63793         * build-aux/config.libpath: Likewise.
63794         * build-aux/config.rpath: Likewise.
63795
63796 2008-01-08  Jim Meyering  <meyering@redhat.com>
63797             Bruno Haible  <bruno@clisp.org>
63798
63799         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63800         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63801         Reported by Peter Fales in
63802         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63803
63804 2008-01-08  Bruno Haible  <bruno@clisp.org>
63805
63806         * modules/unictype/category-of (Depends-on): Add
63807         unictype/category-none.
63808         * modules/unictype/category-and-tests (Depends-on): Add
63809         unictype/category-{L,N,Lu,Nd}.
63810         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63811         * modules/unictype/category-or-tests (Depends-on): Add
63812         unictype/category-{L,N}.
63813         * modules/unictype/category-name-tests (Depends-on): Add
63814         unictype/category-{Z,Nl}.
63815         Reported by Simon Josefsson.
63816
63817 2008-01-08  Bruno Haible  <bruno@clisp.org>
63818
63819         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63820         convention better.
63821         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63822         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63823         Reported by Peter Miller <millerp@canb.auug.org.au>.
63824
63825 2008-01-08  Eric Blake  <ebb9@byu.net>
63826
63827         Rewrite memmem to guarantee linear complexity without malloc.
63828         * lib/memmem.c (memmem): Use Two-Way rather than
63829         Knuth-Morris-Pratt, to allow O(1) space usage.
63830         (critical_factorization, two_way_short_needle)
63831         (two_way_long_needle): New functions.
63832         (knuth_morris_pratt): Delete.
63833         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63834         Add stdint.
63835         * tests/test-memmem.c (main): Add tests for periodic needle and
63836         sublinear performance.
63837         * doc/functions/memmem.texi (memmem): Document other deficiencies
63838         in cygwin and older glibc.
63839
63840 2008-01-08  Bruno Haible  <bruno@clisp.org>
63841
63842         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63843         augmentation.
63844
63845 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63846
63847         Add a configure time option: --disable-acl.
63848         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63849         AC_ARG_ENABLE(acl).
63850
63851 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63852
63853         * tests/test-localename.c: Don't include obsolete "setenv.h".
63854
63855         * modules/localename-tests (Depends-on): Need unsetenv.
63856
63857 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63858
63859         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63860
63861 2008-01-06  Colin Watson  <cjwatson@debian.org>
63862
63863         * users.txt: Add man-db.
63864
63865 2008-01-07  Bruno Haible  <bruno@clisp.org>
63866
63867         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63868         previous section name.
63869
63870 2008-01-07  Bruno Haible  <bruno@clisp.org>
63871
63872         * lib/progname.c (set_program_name): Don't strip off a leading
63873         "lt-" prefix outside a .libs directory.
63874         Suggested by Paul Eggert.
63875
63876 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63877             Bruno Haible  <bruno@clisp.org>
63878
63879         Improve memory cleanup in 'relocatable' module.
63880         * lib/relocatable.h (compute_curr_prefix): Change return type to
63881         'char *'.
63882         * lib/relocatable.c (compute_curr_prefix): Change return type to
63883         'char *'. Free curr_installdir after use.
63884         (relocate): Free curr_prefix_better after use.
63885         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63886
63887 2008-01-01  Bruno Haible  <bruno@clisp.org>
63888
63889         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63890         failure on older glibc systems.
63891         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63892
63893 2008-01-05  Eric Blake  <ebb9@byu.net>
63894
63895         Avoid quadratic system memmem.
63896         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63897         Reported by Ralf Wildenhues.
63898
63899         Fix memmem test for mingw.
63900         * modules/memmem-tests (configure.ac): Check for alarm.
63901         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63902         it.
63903         * doc/functions/memmem.texi: New file.
63904         * doc/gnulib.texi (Function Substitutes): Add memmem.
63905         Reported by Bruno Haible.
63906
63907 2008-01-04  Bruno Haible  <bruno@clisp.org>
63908
63909         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63910         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63911         gl_HEADER_STRING_H_DEFAULTS.
63912
63913 2008-01-04  Eric Blake  <ebb9@byu.net>
63914
63915         Shorten duration of memmem test.
63916         * tests/test-memmem.c (main): Use alarm to declare failure if test
63917         is taking too long.
63918         Reported by Ralf Wildenhues.
63919
63920 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63921
63922         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63923         string, needed by strerror.
63924
63925 2008-01-03  Colin Watson  <cjwatson@debian.org>
63926             Bruno Haible  <bruno@clisp.org>
63927
63928         * doc/gnulib-tool.texi (Localization): New section.
63929
63930 2008-01-02  Bruno Haible  <bruno@clisp.org>
63931
63932         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63933         variables to 'unsigned char *' type.
63934         Reported by Paul Eggert.
63935
63936 2008-01-02  Jim Meyering  <jim@meyering.net>
63937
63938         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63939
63940 2007-12-31  Jim Meyering  <jim@meyering.net>
63941
63942         Avoid use of private FTS type name.
63943         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63944
63945 2007-12-30  Karl Berry  <karl@gnu.org>
63946
63947         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63948         work around defect in Texinfo and/or the standalone Info browser.
63949
63950 2007-12-30  Bruno Haible  <bruno@clisp.org>
63951
63952         Unify 5 copies of the KMP code.
63953         * lib/str-kmp.h: New file.
63954         * lib/c-strcasestr.c: Include str-kmp.h.
63955         (knuth_morris_pratt): Remove function.
63956         (c_strcasestr): Update.
63957         * lib/c-strstr.c: Include str-kmp.h.
63958         (knuth_morris_pratt): Remove function.
63959         (c_strcasestr): Update.
63960         * lib/mbscasestr.c: Include str-kmp.h.
63961         (knuth_morris_pratt_unibyte): Remove function.
63962         * lib/mbsstr.c: Include str-kmp.h.
63963         (knuth_morris_pratt_unibyte): Remove function.
63964         * lib/strcasestr.c: Include str-kmp.h.
63965         (knuth_morris_pratt): Remove function.
63966         (strcasestr): Update.
63967         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63968         * modules/c-strstr (Files): Likewise.
63969         * modules/mbscasestr (Files): Likewise.
63970         * modules/mbsstr (Files): Likewise.
63971         * modules/strcasestr (Files): Likewise.
63972         Suggested by Paul Eggert.
63973
63974 2007-12-30  Bruno Haible  <bruno@clisp.org>
63975
63976         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63977         defined.
63978
63979 2007-12-30  Bruno Haible  <bruno@clisp.org>
63980
63981         * lib/xmalloca.h: Include xalloc.h.
63982         (xnmalloca): New macro.
63983
63984 2007-12-30  Bruno Haible  <bruno@clisp.org>
63985
63986         * lib/malloca.h (nmalloca): New macro.
63987         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63988         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63989         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63990         knuth_morris_pratt_multibyte): Likewise.
63991         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63992         knuth_morris_pratt_multibyte): Likewise.
63993         * lib/memmem.c (knuth_morris_pratt): Likewise.
63994         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63995
63996 2007-12-25  Bruno Haible  <bruno@clisp.org>
63997
63998         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63999         * lib/glob.c: Don't include openat.h.
64000         (link_exists2_p): Add back the code that deals with the
64001         !GLOB_ALTDIRFUNC case.
64002         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
64003         let it do the filename concatenation.
64004         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
64005         * modules/glob (Depends-on): Remove openat.
64006
64007 2007-12-31  Bruno Haible  <bruno@clisp.org>
64008
64009         * modules/dirfd (License): Change to LGPLv2+.
64010         Approved by Jim Meyering.
64011
64012 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64013
64014         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
64015         when multiplying M by sizeof (size_t).
64016
64017 2007-12-10  Martin Lambers  <marlam@marlam.de>
64018
64019         Override getpagesize on mingw.
64020         * lib/getpagesize.c: New file.
64021         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
64022         * modules/getpagesize (Files): Add lib/getpagesize.c.
64023         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
64024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64025         REPLACE_GETPAGESIZE.
64026         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
64027
64028 2007-12-25  Bruno Haible  <bruno@clisp.org>
64029
64030         * modules/localcharset (Notice): New field.
64031         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
64032         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
64033
64034 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64035             Bruno Haible  <bruno@clisp.org>
64036
64037         Avoid using the syntax symbol() in formatted documentation.
64038         * MODULES.html.sh (func_module): When replacing symbol() with a
64039         hyperlink, remove the parentheses. Show an error if some remain.
64040         Recognize and render the '...' syntax.
64041         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
64042         Rework. Add paragraph about GCC's inlining.
64043         * doc/alloca.texi: Likewise.
64044         * doc/error.texi: Remove parentheses from symbol reference.
64045         * doc/gnulib-intro.texi: Likewise.
64046         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
64047         * modules/fnmatch (Description): Reword to say "the ... function".
64048         * modules/full-read (Description): Likewise.
64049         * modules/full-write (Description): Likewise.
64050         * modules/safe-read (Description): Likewise.
64051         * modules/safe-write (Description): Likewise.
64052         * modules/strchrnul (Description): Likewise.
64053         * modules/trim (Description): Likewise.
64054         * modules/error (Description): Remove parentheses from symbol
64055         references.
64056         * modules/verror (Description): Likewise.
64057         Reported by Karl Berry.
64058
64059 2007-12-25  Bruno Haible  <bruno@clisp.org>
64060
64061         Fixup after 2007-10-16 commit.
64062         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
64063
64064 2007-12-24  Bruno Haible  <bruno@clisp.org>
64065
64066         Make --enable-relocatable work with DESTDIR.
64067         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
64068         to compute installdir from destprog.
64069         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
64070         also set the RELOC_DESTDIR variable.
64071         Reported by Левашев Иван <octagram@bluebottle.com>.
64072
64073 2007-12-24  Bruno Haible  <bruno@clisp.org>
64074
64075         Fix link error due to xalloc_die().
64076         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
64077         of xreadlink.
64078         * lib/relocwrapper.c: Update comments.
64079         * build-aux/install-reloc: Remove xreadlink.c from file list.
64080         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
64081         xreadlink.c.
64082         Reported by Левашев Иван <octagram@bluebottle.com>.
64083
64084 2007-12-24  Bruno Haible  <bruno@clisp.org>
64085
64086         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
64087         * lib/setenv.h: Remove file.
64088         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
64089         lib/setenv.h.
64090         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
64091         (Depends-on): Add stdlib.
64092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
64093         gl_FUNC_UNSETENV.
64094         (Include): Replace setenv.h with <stdlib.h>.
64095         * modules/unsetenv: New file.
64096         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
64097         * lib/unsetenv.c: Include <stdlib.h> first.
64098         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
64099         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
64100         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
64101         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
64102         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
64103         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64104         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
64105         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64106         * doc/functions/unsetenv.texi: Update.
64107         * modules/xsetenv (Depends-on): Add unsetenv.
64108         * modules/getdate (Depends-on): Likewise.
64109         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
64110         * lib/xsetenv.c: Don't include setenv.h.
64111         * lib/getdate.y: Likewise.
64112         * lib/relocwrapper.c: Likewise.
64113         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
64114         (Depends-on): Add stdlib.
64115         * NEWS: Mention the changes.
64116         Reported by Левашев Иван <octagram@bluebottle.com>.
64117
64118 2007-12-23  Bruno Haible  <bruno@clisp.org>
64119
64120         * lib/memmem.c (memmem): Use lowercase variable names. Tab
64121         indentation.
64122
64123 2007-12-23  Bruno Haible  <bruno@clisp.org>
64124
64125         * lib/c-strcasestr.c: Add more comments.
64126         * lib/c-strstr.c: Likewise.
64127         * lib/mbscasestr.c: Likewise.
64128         * lib/mbsstr.c: Likewise.
64129         * lib/strcasestr.c: Likewise.
64130         * lib/memmem.c: Likewise.
64131
64132 2007-12-23  Bruno Haible  <bruno@clisp.org>
64133
64134         * tests/test-memmem.c: Include <string.h> first.
64135
64136 2007-12-22  Bruno Haible  <bruno@clisp.org>
64137
64138         * gnulib-tool (func_create_testdir): Change $auxdir while generating
64139         the contents of $testsbase.
64140         Reported by Ralf Wildenhues.
64141
64142 2007-12-22  Bruno Haible  <bruno@clisp.org>
64143
64144         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
64145         two variables local_ldadd_before, local_ldadd_last.
64146
64147 2007-12-20  Eric Blake  <ebb9@byu.net>
64148
64149         Work around circular library issue when cross-compiling.
64150         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
64151         that progname.o does not need to pull in rpl_memcmp.
64152
64153 2007-12-19  Eric Blake  <ebb9@byu.net>
64154
64155         Fix memmem to avoid O(n^2) worst-case complexity.
64156         * lib/memmem.c (knuth_morris_pratt): New function.
64157         (memmem): Use it if first few naive iterations fail.
64158         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
64159         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
64160         * modules/memchr (License): Likewise.
64161         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
64162         malloca.
64163         * tests/test-memmem.c: Rewrite, borrowing ideas from
64164         test-mbsstr1.c; the old version wouldn't even compile!
64165         * modules/memmem-tests: New file.
64166         * lib/string.in.h (rpl_memmem): Add declaration.
64167         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
64168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
64169         REPLACE_MEMMEM.
64170
64171 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
64174         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
64175         before any system include files, and undef after them all.  This
64176         should fix a problem on VMS reported by John E. Malmberg in
64177         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
64178
64179 2007-12-17  Eric Blake  <ebb9@byu.net>
64180
64181         Revert addition of verify, for BSD/OS.
64182         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
64183         can't handle large files, for the sake of obsolete platforms.
64184         * modules/fseeko (Depends-on): Remove verify.
64185         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
64186         * doc/functions/ftello.texi (ftello): Likewise.
64187         * doc/functions/fgetpos.texi (fgetpos): Likewise.
64188         Reported by Larry Jones.
64189
64190 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
64191
64192         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
64193         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
64194
64195 2007-12-17  Jim Meyering  <meyering@redhat.com>
64196
64197         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
64198         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
64199         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
64200         * modules/getcwd (Depends-on): Add openat.
64201         Reported by Petr Salinger.
64202
64203 2007-12-17  Bruno Haible  <bruno@clisp.org>
64204
64205         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64206         avoid a segmentation fault of the configure test on x86_64 systems.
64207
64208 2007-12-15  Jim Meyering  <meyering@redhat.com>
64209
64210         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64211
64212 2007-12-13  Eric Blake  <ebb9@byu.net>
64213
64214         Another fseek test.
64215         * tests/test-fseek.c (main): Also test ungetc handling.
64216         * tests/test-fseeko.c (main): Likewise.
64217         * modules/fseeko (Depends-on): Add verify.
64218         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64219         large.
64220         Reported by Larry Jones.
64221
64222         Fix fseeko on mingw.
64223         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64224         seek.
64225
64226         Beef up fseek tests.
64227         * tests/test-fseek.c (main): Also test eof handling.
64228         * tests/test-fseeko.c (main): Likewise.
64229         Reported by Larry Jones.
64230
64231 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64232
64233         Fix fseeko on BSD-based platforms.
64234         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64235         successful seek.
64236
64237 2007-12-12  Eric Blake  <ebb9@byu.net>
64238
64239         Allow circular dependency of separate libtests.a
64240         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64241         when use_libtests.
64242
64243 2007-12-11  Eric Blake  <ebb9@byu.net>
64244
64245         Fix bug with -0.0L in previous patch.
64246         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64247         * tests/test-isnan.c (main): Also test on zeroes.
64248         * tests/test-isnanf.c (main): Likewise.
64249         * tests/test-isnanl.h (main): Likewise.
64250
64251         Detect pseudo-denormals on x86 even when cross-compiling.
64252         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64253         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64254         invalid bit patterns that happen to satisfy ==.
64255
64256         Avoid link failures with separate libtests.a.
64257         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64258         last, to satisfy circular dependencies.
64259
64260 2007-12-11  Eric Blake  <ebb9@byu.net>
64261         and Bruno Haible  <bruno@clisp.org>
64262
64263         Fix OpenBSD 4.0 <float.h> handling of long double.
64264         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64265         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64266         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64267
64268 2007-12-11  Jim Meyering  <meyering@redhat.com>
64269
64270         * users.txt: Add libvirt.
64271
64272         Support versions of autoconf prior to 2.59c.
64273         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64274         if it is not already defined.
64275
64276 2007-12-09  Bruno Haible  <bruno@clisp.org>
64277
64278         Let 'gnulib-tool --import' collect sources needed for the tests in
64279         tests/ rather than in lib/.
64280         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64281         argument. If true, add rules to generate libtests.a, and put libtests.a
64282         into $(LDADD). Consider source files in subdirectories and set
64283         uses_subdirs.
64284         (func_emit_initmacro_start, func_emit_initmacro_end,
64285         func_emit_initmacro_done): Pass all arguments explicitly.
64286         (func_import): Determine two module lists main_modules,
64287         testsrelated_modules. Determine use_libtests. Determine two variables
64288         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64289         instead of just sed_transform_lib_file. Determine two variables
64290         main_files and testsrelated_files. Compute 'files' as the union of
64291         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64292         func_add_or_update. In the generated gnulib-comp.m4, collect the
64293         object files for tests/ in different variables than those for lib/.
64294         Substitute LIBTESTS_LIBDEPS.
64295         (func_create_testdir): Combine the uses_subdirs results from
64296         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64297
64298 2007-12-09  Bruno Haible  <bruno@clisp.org>
64299
64300         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64301         the build-aux directory.
64302
64303 2007-12-09  Bruno Haible  <bruno@clisp.org>
64304
64305         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64306         introduced on 2006-09-09.
64307
64308 2007-12-07  Jim Meyering  <meyering@redhat.com>
64309
64310         Let these macros work also with autoconf-2.59.
64311         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64312         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64313         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64314
64315 2007-12-06  Jim Meyering  <meyering@redhat.com>
64316
64317         Avoid a configure-time syntax error in gl_FUNC_ACL.
64318         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64319         function in each branch, before testing the cache variable.
64320
64321 2007-12-04  Eric Blake  <ebb9@byu.net>
64322
64323         Make scripts executable.
64324         * build-aux/config.guess: Add execute permissions.
64325         * build-aux/config.sub: Likewise.
64326         * build-aux/gendocs.sh: Likewise.
64327
64328         Fix frexp on mingw.
64329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64330         cross-compiling.
64331         * doc/functions/frexp.texi (frexp): Document the bug.
64332
64333         Make cygwin fseeko check more reliable.
64334         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64335         version numbers, rather than unrelated feature check.
64336         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64337         * doc/functions/ftello.texi (ftello): Likewise.
64338         Reported by Bruno Haible.
64339
64340         * m4/strerror.m4: Bump version number.
64341
64342 2007-12-03  Bruno Haible  <bruno@clisp.org>
64343
64344         * doc/functions/mprotect.texi: Mention the mingw problem.
64345
64346 2007-12-03  Eric Blake  <ebb9@byu.net>
64347
64348         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64349         REPLACE_STRERROR is initialized before this macro.
64350
64351 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64354         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64355         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64356         put -lsec in even for programs other than 'ls'.  This fixes a problem
64357         for gettext reported by Bruno Haible in
64358         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64359         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64360         Add support for Solaris 10.  This isn't efficient, but should get the
64361         job done for now.
64362
64363 2007-12-03  James Youngman  <jay@gnu.org>
64364
64365         * doc/regexprops-generic.texi: change "an close-group" to "a
64366         close-group" and "illegal" to "not allowed".
64367
64368 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64369
64370         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64371         pr_byname.h. Needed for the rare case when the maintainer has done
64372         "make maintainer-clean" in the source directory and then attempts a
64373         build outside the source directory.
64374         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64375         scripts_byname.h.
64376
64377 2007-12-02  Martin Lambers <marlam@marlam.de>
64378             Bruno Haible  <bruno@clisp.org>
64379
64380         * lib/getpagesize.h: Remove file.
64381         * lib/unistd.in.h: Include declaration of getpagesize here.
64382         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64383         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64384         HAVE_SYS_PARAM_H.
64385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64386         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64387         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64388         (Depends-on): Add unistd.
64389         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64390         (Include): Use <unistd.h> instead of getpagesize.h.
64391         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64392         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64393         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64394         gl_GETPAGESIZE invocation, already handled by module dependency.
64395         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64396
64397 2007-12-02  Bruno Haible  <bruno@clisp.org>
64398
64399         * modules/strings-tests: New file.
64400         * tests/test-strings.c: New file.
64401
64402         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64403         * lib/strings.in.h: New file.
64404         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64405         * m4/strings_h.m4: New file.
64406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64407         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64408         * modules/strings: New file.
64409         * modules/string (Makefile.am): Update.
64410         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64411         Reported by Karl Berry.
64412
64413 2007-12-01  Eric Blake  <ebb9@byu.net>
64414
64415         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64416         accommodate fix in cygwin 1.5.25.
64417
64418 2007-12-01  Jim Meyering  <meyering@redhat.com>
64419
64420         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64421         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64422         that would inhibit utf8-optimization of a regexp containing line-
64423         or buffer-anchors, e.g., `^', `$'.
64424
64425 2007-11-30  Bruno Haible  <bruno@clisp.org>
64426
64427         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64428         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64429         glthread_recursive_lock_init.
64430         * lib/lock.c (glthread_recursive_lock_init)
64431         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64432         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64433
64434 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64435
64436         New function qset_acl, like set_acl but with syscall semantics.
64437         * lib/acl.h (qset_acl): New decl.
64438         * lib/acl.c (qset_acl): New function.
64439         (set_acl): Use new function.  Use more-consistent diagnostics.
64440
64441 2007-11-28  Jim Meyering  <meyering@redhat.com>
64442
64443         * modules/physmem (License): Change from GPL to LGPLv2+.
64444
64445 2007-11-26  Bruno Haible  <bruno@clisp.org>
64446
64447         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64448         'long double' type has excess precision.
64449         Reported by Jim Meyering in
64450         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64451
64452 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64453
64454         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64455         Sync from <http://gnu.org/licenses>.
64456         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64457         with license text from same location.
64458         * doc/maintain.texi, doc/standards.texi:  Sync from
64459         <http://savannah.gnu.org/projects/gnustandards>.
64460
64461 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64462         and Jim Meyering  <meyering@redhat.com>
64463
64464         Adjust getdate' grammar to accept a slightly more regular language.
64465         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64466         Before, the former was rejected.
64467         * lib/getdate.y (digits_to_date_time): New function, factored
64468         out of ...
64469         (number): ...here.  Just call digits_to_date_time.
64470         (hybrid): New non-terminal to handle an <unsigned number,
64471         signed relative offset> sequence consistently.
64472
64473 2007-11-18  Jim Meyering  <meyering@redhat.com>
64474
64475         Pull my changes from coreutils:
64476         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64477         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64478         use of $gnulib_tool_option_extras, so that it's separated from the
64479         preceding argument.
64480
64481         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64482         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64483         parent destination directories before copying a file into place.
64484
64485 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64486
64487         bootstrap: work also with 4-argument variant of AC_INIT
64488         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64489
64490 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64491
64492         Port test-getaddrinfo to Solaris.
64493         Problem reported by Bruno Haible in
64494         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64495         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64496         explanation of setting 'hints'.
64497         Don't reject an implementation merely because it returns EAI_SERVICE.
64498         (EAI_SERVICE): Define to 0 if not defined.
64499
64500 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64501
64502         The license of gnu-make and posix-shell is now "GPLed build tool".
64503         * modules/gnu-make (License): Likewise.
64504         * modules/posix-shell (License): Likewise.
64505
64506         New module posix-shell, for determining a POSIX shell
64507         or perhaps something that is close enough to a POSIX shell.
64508         * m4/posix-shell.m4: New file.
64509         * modules/posix-shell: New file.
64510
64511         * MODULES.html.sh: Mention new module.
64512
64513         New module gnu-make, for determining whether we're using GNU Make.
64514         * m4/gnu-make.m4: New file.
64515         * modules/gnu-make: New file.
64516         * MODULES.html.sh: Mention new module.
64517
64518 2007-11-14  Jim Meyering  <meyering@redhat.com>
64519
64520         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64521         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64522         use this macro to create a function _definition_.
64523         Remove useless "#undef ARGMATCH_DIE".
64524
64525 2007-11-14  Bruno Haible  <bruno@clisp.org>
64526
64527         * lib/config.charset: Update for OpenBSD 4.1.
64528         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64529
64530 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64531
64532         Document 64-bit #if problems in stdint.texi.
64533         * doc/headers/stdint.texi (stdint.h): Mention problems with
64534         64-bit-#if, and how to work around them.
64535
64536         Don't insist on 'long long int' support in the preprocessor.  It
64537         breaks too many things.  For example, PRIdMAX still uses a 'long
64538         long int' format with the latest Sun compiler, even though
64539         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64540         preprocessor problem.  This causes the latest coreutils to dump
64541         core on Solaris 10 sparc with the Sun C compiler.
64542         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64543         the troublesome expressions at configure-time, not at #if-time.
64544         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64545         preprocessor.
64546         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64547         compile-time C checks, done at 'configure'-time.
64548         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64549         * modules/inttypes (Makefile): Substitute the new symbols that
64550         gl_INTTYPES_H now generates.
64551         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64552
64553 2007-11-12  Bruno Haible  <bruno@clisp.org>
64554
64555         Tests for Unicode character classification functions.
64556
64557         * modules/unictype/bidicategory-byname-tests: New file.
64558         * modules/unictype/bidicategory-name-tests: New file.
64559         * modules/unictype/bidicategory-of-tests: New file.
64560         * modules/unictype/bidicategory-test-tests: New file.
64561         * modules/unictype/block-list-tests: New file.
64562         * modules/unictype/block-of-tests: New file.
64563         * modules/unictype/block-test-tests: New file.
64564         * modules/unictype/category-C-tests: New file.
64565         * modules/unictype/category-Cc-tests: New file.
64566         * modules/unictype/category-Cf-tests: New file.
64567         * modules/unictype/category-Cn-tests: New file.
64568         * modules/unictype/category-Co-tests: New file.
64569         * modules/unictype/category-Cs-tests: New file.
64570         * modules/unictype/category-L-tests: New file.
64571         * modules/unictype/category-Ll-tests: New file.
64572         * modules/unictype/category-Lm-tests: New file.
64573         * modules/unictype/category-Lo-tests: New file.
64574         * modules/unictype/category-Lt-tests: New file.
64575         * modules/unictype/category-Lu-tests: New file.
64576         * modules/unictype/category-M-tests: New file.
64577         * modules/unictype/category-Mc-tests: New file.
64578         * modules/unictype/category-Me-tests: New file.
64579         * modules/unictype/category-Mn-tests: New file.
64580         * modules/unictype/category-N-tests: New file.
64581         * modules/unictype/category-Nd-tests: New file.
64582         * modules/unictype/category-Nl-tests: New file.
64583         * modules/unictype/category-No-tests: New file.
64584         * modules/unictype/category-P-tests: New file.
64585         * modules/unictype/category-Pc-tests: New file.
64586         * modules/unictype/category-Pd-tests: New file.
64587         * modules/unictype/category-Pe-tests: New file.
64588         * modules/unictype/category-Pf-tests: New file.
64589         * modules/unictype/category-Pi-tests: New file.
64590         * modules/unictype/category-Po-tests: New file.
64591         * modules/unictype/category-Ps-tests: New file.
64592         * modules/unictype/category-S-tests: New file.
64593         * modules/unictype/category-Sc-tests: New file.
64594         * modules/unictype/category-Sk-tests: New file.
64595         * modules/unictype/category-Sm-tests: New file.
64596         * modules/unictype/category-So-tests: New file.
64597         * modules/unictype/category-Z-tests: New file.
64598         * modules/unictype/category-Zl-tests: New file.
64599         * modules/unictype/category-Zp-tests: New file.
64600         * modules/unictype/category-Zs-tests: New file.
64601         * modules/unictype/category-and-not-tests: New file.
64602         * modules/unictype/category-and-tests: New file.
64603         * modules/unictype/category-byname-tests: New file.
64604         * modules/unictype/category-name-tests: New file.
64605         * modules/unictype/category-none-tests: New file.
64606         * modules/unictype/category-of-tests: New file.
64607         * modules/unictype/category-or-tests: New file.
64608         * modules/unictype/category-test-withtable-tests: New file.
64609         * modules/unictype/combining-class-tests: New file.
64610         * modules/unictype/ctype-alnum-tests: New file.
64611         * modules/unictype/ctype-alpha-tests: New file.
64612         * modules/unictype/ctype-blank-tests: New file.
64613         * modules/unictype/ctype-cntrl-tests: New file.
64614         * modules/unictype/ctype-digit-tests: New file.
64615         * modules/unictype/ctype-graph-tests: New file.
64616         * modules/unictype/ctype-lower-tests: New file.
64617         * modules/unictype/ctype-print-tests: New file.
64618         * modules/unictype/ctype-punct-tests: New file.
64619         * modules/unictype/ctype-space-tests: New file.
64620         * modules/unictype/ctype-upper-tests: New file.
64621         * modules/unictype/ctype-xdigit-tests: New file.
64622         * modules/unictype/decimal-digit-tests: New file.
64623         * modules/unictype/digit-tests: New file.
64624         * modules/unictype/mirror-tests: New file.
64625         * modules/unictype/numeric-tests: New file.
64626         * modules/unictype/property-alphabetic-tests: New file.
64627         * modules/unictype/property-ascii-hex-digit-tests: New file.
64628         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64629         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64630         * modules/unictype/property-bidi-block-separator-tests: New file.
64631         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64632         * modules/unictype/property-bidi-common-separator-tests: New file.
64633         * modules/unictype/property-bidi-control-tests: New file.
64634         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64635         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64636         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64637         * modules/unictype/property-bidi-european-digit-tests: New file.
64638         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64639         * modules/unictype/property-bidi-left-to-right-tests: New file.
64640         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64641         * modules/unictype/property-bidi-other-neutral-tests: New file.
64642         * modules/unictype/property-bidi-pdf-tests: New file.
64643         * modules/unictype/property-bidi-segment-separator-tests: New file.
64644         * modules/unictype/property-bidi-whitespace-tests: New file.
64645         * modules/unictype/property-byname-tests: New file.
64646         * modules/unictype/property-combining-tests: New file.
64647         * modules/unictype/property-composite-tests: New file.
64648         * modules/unictype/property-currency-symbol-tests: New file.
64649         * modules/unictype/property-dash-tests: New file.
64650         * modules/unictype/property-decimal-digit-tests: New file.
64651         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64652         * modules/unictype/property-deprecated-tests: New file.
64653         * modules/unictype/property-diacritic-tests: New file.
64654         * modules/unictype/property-extender-tests: New file.
64655         * modules/unictype/property-format-control-tests: New file.
64656         * modules/unictype/property-grapheme-base-tests: New file.
64657         * modules/unictype/property-grapheme-extend-tests: New file.
64658         * modules/unictype/property-grapheme-link-tests: New file.
64659         * modules/unictype/property-hex-digit-tests: New file.
64660         * modules/unictype/property-hyphen-tests: New file.
64661         * modules/unictype/property-id-continue-tests: New file.
64662         * modules/unictype/property-id-start-tests: New file.
64663         * modules/unictype/property-ideographic-tests: New file.
64664         * modules/unictype/property-ids-binary-operator-tests: New file.
64665         * modules/unictype/property-ids-trinary-operator-tests: New file.
64666         * modules/unictype/property-ignorable-control-tests: New file.
64667         * modules/unictype/property-iso-control-tests: New file.
64668         * modules/unictype/property-join-control-tests: New file.
64669         * modules/unictype/property-left-of-pair-tests: New file.
64670         * modules/unictype/property-line-separator-tests: New file.
64671         * modules/unictype/property-logical-order-exception-tests: New file.
64672         * modules/unictype/property-lowercase-tests: New file.
64673         * modules/unictype/property-math-tests: New file.
64674         * modules/unictype/property-non-break-tests: New file.
64675         * modules/unictype/property-not-a-character-tests: New file.
64676         * modules/unictype/property-numeric-tests: New file.
64677         * modules/unictype/property-other-alphabetic-tests: New file.
64678         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64679         * modules/unictype/property-other-grapheme-extend-tests: New file.
64680         * modules/unictype/property-other-id-continue-tests: New file.
64681         * modules/unictype/property-other-id-start-tests: New file.
64682         * modules/unictype/property-other-lowercase-tests: New file.
64683         * modules/unictype/property-other-math-tests: New file.
64684         * modules/unictype/property-other-uppercase-tests: New file.
64685         * modules/unictype/property-paired-punctuation-tests: New file.
64686         * modules/unictype/property-paragraph-separator-tests: New file.
64687         * modules/unictype/property-pattern-syntax-tests: New file.
64688         * modules/unictype/property-pattern-white-space-tests: New file.
64689         * modules/unictype/property-private-use-tests: New file.
64690         * modules/unictype/property-punctuation-tests: New file.
64691         * modules/unictype/property-quotation-mark-tests: New file.
64692         * modules/unictype/property-radical-tests: New file.
64693         * modules/unictype/property-sentence-terminal-tests: New file.
64694         * modules/unictype/property-soft-dotted-tests: New file.
64695         * modules/unictype/property-space-tests: New file.
64696         * modules/unictype/property-terminal-punctuation-tests: New file.
64697         * modules/unictype/property-test-tests: New file.
64698         * modules/unictype/property-titlecase-tests: New file.
64699         * modules/unictype/property-unassigned-code-value-tests: New file.
64700         * modules/unictype/property-unified-ideograph-tests: New file.
64701         * modules/unictype/property-uppercase-tests: New file.
64702         * modules/unictype/property-variation-selector-tests: New file.
64703         * modules/unictype/property-white-space-tests: New file.
64704         * modules/unictype/property-xid-continue-tests: New file.
64705         * modules/unictype/property-xid-start-tests: New file.
64706         * modules/unictype/property-zero-width-tests: New file.
64707         * modules/unictype/scripts-tests: New file.
64708         * modules/unictype/syntax-c-ident-tests: New file.
64709         * modules/unictype/syntax-c-whitespace-tests: New file.
64710         * modules/unictype/syntax-java-ident-tests: New file.
64711         * modules/unictype/syntax-java-whitespace-tests: New file.
64712         * tests/unictype/test-bidi_byname.c: New file.
64713         * tests/unictype/test-bidi_name.c: New file.
64714         * tests/unictype/test-bidi_of.c: New file.
64715         * tests/unictype/test-bidi_test.c: New file.
64716         * tests/unictype/test-block_list.c: New file.
64717         * tests/unictype/test-block_of.c: New file.
64718         * tests/unictype/test-block_test.c: New file.
64719         * tests/unictype/test-categ_and.c: New file.
64720         * tests/unictype/test-categ_and_not.c: New file.
64721         * tests/unictype/test-categ_byname.c: New file.
64722         * tests/unictype/test-categ_name.c: New file.
64723         * tests/unictype/test-categ_none.c: New file.
64724         * tests/unictype/test-categ_of.c: New file.
64725         * tests/unictype/test-categ_or.c: New file.
64726         * tests/unictype/test-categ_test_withtable.c: New file.
64727         * tests/unictype/test-combining.c: New file.
64728         * tests/unictype/test-decdigit.c: New file.
64729         * tests/unictype/test-digit.c: New file.
64730         * tests/unictype/test-mirror.c: New file.
64731         * tests/unictype/test-numeric.c: New file.
64732         * tests/unictype/test-pr_byname.c: New file.
64733         * tests/unictype/test-pr_test.c: New file.
64734         * tests/unictype/test-predicate-part1.h: New file.
64735         * tests/unictype/test-predicate-part2.h: New file.
64736         * tests/unictype/test-scripts.c: New file.
64737         * tests/unictype/test-sy_c_ident.c: New file.
64738         * tests/unictype/test-sy_java_ident.c: New file.
64739
64740         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64741         for Unicode 5.0.0.
64742         * tests/unictype/test-categ_Cc.c: Likewise.
64743         * tests/unictype/test-categ_Cf.c: Likewise.
64744         * tests/unictype/test-categ_Cn.c: Likewise.
64745         * tests/unictype/test-categ_Co.c: Likewise.
64746         * tests/unictype/test-categ_Cs.c: Likewise.
64747         * tests/unictype/test-categ_L.c: Likewise.
64748         * tests/unictype/test-categ_Ll.c: Likewise.
64749         * tests/unictype/test-categ_Lm.c: Likewise.
64750         * tests/unictype/test-categ_Lo.c: Likewise.
64751         * tests/unictype/test-categ_Lt.c: Likewise.
64752         * tests/unictype/test-categ_Lu.c: Likewise.
64753         * tests/unictype/test-categ_M.c: Likewise.
64754         * tests/unictype/test-categ_Mc.c: Likewise.
64755         * tests/unictype/test-categ_Me.c: Likewise.
64756         * tests/unictype/test-categ_Mn.c: Likewise.
64757         * tests/unictype/test-categ_N.c: Likewise.
64758         * tests/unictype/test-categ_Nd.c: Likewise.
64759         * tests/unictype/test-categ_Nl.c: Likewise.
64760         * tests/unictype/test-categ_No.c: Likewise.
64761         * tests/unictype/test-categ_P.c: Likewise.
64762         * tests/unictype/test-categ_Pc.c: Likewise.
64763         * tests/unictype/test-categ_Pd.c: Likewise.
64764         * tests/unictype/test-categ_Pe.c: Likewise.
64765         * tests/unictype/test-categ_Pf.c: Likewise.
64766         * tests/unictype/test-categ_Pi.c: Likewise.
64767         * tests/unictype/test-categ_Po.c: Likewise.
64768         * tests/unictype/test-categ_Ps.c: Likewise.
64769         * tests/unictype/test-categ_S.c: Likewise.
64770         * tests/unictype/test-categ_Sc.c: Likewise.
64771         * tests/unictype/test-categ_Sk.c: Likewise.
64772         * tests/unictype/test-categ_Sm.c: Likewise.
64773         * tests/unictype/test-categ_So.c: Likewise.
64774         * tests/unictype/test-categ_Z.c: Likewise.
64775         * tests/unictype/test-categ_Zl.c: Likewise.
64776         * tests/unictype/test-categ_Zp.c: Likewise.
64777         * tests/unictype/test-categ_Zs.c: Likewise.
64778         * tests/unictype/test-ctype_alnum.c: Likewise.
64779         * tests/unictype/test-ctype_alpha.c: Likewise.
64780         * tests/unictype/test-ctype_blank.c: Likewise.
64781         * tests/unictype/test-ctype_cntrl.c: Likewise.
64782         * tests/unictype/test-ctype_digit.c: Likewise.
64783         * tests/unictype/test-ctype_graph.c: Likewise.
64784         * tests/unictype/test-ctype_lower.c: Likewise.
64785         * tests/unictype/test-ctype_print.c: Likewise.
64786         * tests/unictype/test-ctype_punct.c: Likewise.
64787         * tests/unictype/test-ctype_space.c: Likewise.
64788         * tests/unictype/test-ctype_upper.c: Likewise.
64789         * tests/unictype/test-ctype_xdigit.c: Likewise.
64790         * tests/unictype/test-decdigit.h: Likewise.
64791         * tests/unictype/test-digit.h: Likewise.
64792         * tests/unictype/test-numeric.h: Likewise.
64793         * tests/unictype/test-pr_alphabetic.c: Likewise.
64794         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64795         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64796         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64797         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64798         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64799         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64800         * tests/unictype/test-pr_bidi_control.c: Likewise.
64801         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64802         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64803         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64804         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64805         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64806         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64807         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64808         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64809         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64810         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64811         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64812         * tests/unictype/test-pr_combining.c: Likewise.
64813         * tests/unictype/test-pr_composite.c: Likewise.
64814         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64815         * tests/unictype/test-pr_dash.c: Likewise.
64816         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64817         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64818         * tests/unictype/test-pr_deprecated.c: Likewise.
64819         * tests/unictype/test-pr_diacritic.c: Likewise.
64820         * tests/unictype/test-pr_extender.c: Likewise.
64821         * tests/unictype/test-pr_format_control.c: Likewise.
64822         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64823         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64824         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64825         * tests/unictype/test-pr_hex_digit.c: Likewise.
64826         * tests/unictype/test-pr_hyphen.c: Likewise.
64827         * tests/unictype/test-pr_id_continue.c: Likewise.
64828         * tests/unictype/test-pr_id_start.c: Likewise.
64829         * tests/unictype/test-pr_ideographic.c: Likewise.
64830         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64831         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64832         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64833         * tests/unictype/test-pr_iso_control.c: Likewise.
64834         * tests/unictype/test-pr_join_control.c: Likewise.
64835         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64836         * tests/unictype/test-pr_line_separator.c: Likewise.
64837         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64838         * tests/unictype/test-pr_lowercase.c: Likewise.
64839         * tests/unictype/test-pr_math.c: Likewise.
64840         * tests/unictype/test-pr_non_break.c: Likewise.
64841         * tests/unictype/test-pr_not_a_character.c: Likewise.
64842         * tests/unictype/test-pr_numeric.c: Likewise.
64843         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64844         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64845         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64846         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64847         * tests/unictype/test-pr_other_id_start.c: Likewise.
64848         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64849         * tests/unictype/test-pr_other_math.c: Likewise.
64850         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64851         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64852         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64853         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64854         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64855         * tests/unictype/test-pr_private_use.c: Likewise.
64856         * tests/unictype/test-pr_punctuation.c: Likewise.
64857         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64858         * tests/unictype/test-pr_radical.c: Likewise.
64859         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64860         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64861         * tests/unictype/test-pr_space.c: Likewise.
64862         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64863         * tests/unictype/test-pr_titlecase.c: Likewise.
64864         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64865         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64866         * tests/unictype/test-pr_uppercase.c: Likewise.
64867         * tests/unictype/test-pr_variation_selector.c: Likewise.
64868         * tests/unictype/test-pr_white_space.c: Likewise.
64869         * tests/unictype/test-pr_xid_continue.c: Likewise.
64870         * tests/unictype/test-pr_xid_start.c: Likewise.
64871         * tests/unictype/test-pr_zero_width.c: Likewise.
64872         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64873         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64874
64875 2007-11-12  Bruno Haible  <bruno@clisp.org>
64876
64877         Unicode character classification functions.
64878         * lib/unictype.h: New file.
64879         * modules/unictype/base: New file.
64880         * modules/unictype/category-L: New file.
64881         * modules/unictype/category-Lu: New file.
64882         * modules/unictype/category-Ll: New file.
64883         * modules/unictype/category-Lt: New file.
64884         * modules/unictype/category-Lm: New file.
64885         * modules/unictype/category-Lo: New file.
64886         * modules/unictype/category-M: New file.
64887         * modules/unictype/category-Mn: New file.
64888         * modules/unictype/category-Mc: New file.
64889         * modules/unictype/category-Me: New file.
64890         * modules/unictype/category-N: New file.
64891         * modules/unictype/category-Nd: New file.
64892         * modules/unictype/category-Nl: New file.
64893         * modules/unictype/category-No: New file.
64894         * modules/unictype/category-P: New file.
64895         * modules/unictype/category-Pc: New file.
64896         * modules/unictype/category-Pd: New file.
64897         * modules/unictype/category-Ps: New file.
64898         * modules/unictype/category-Pe: New file.
64899         * modules/unictype/category-Pi: New file.
64900         * modules/unictype/category-Pf: New file.
64901         * modules/unictype/category-Po: New file.
64902         * modules/unictype/category-S: New file.
64903         * modules/unictype/category-Sm: New file.
64904         * modules/unictype/category-Sc: New file.
64905         * modules/unictype/category-Sk: New file.
64906         * modules/unictype/category-So: New file.
64907         * modules/unictype/category-Z: New file.
64908         * modules/unictype/category-Zs: New file.
64909         * modules/unictype/category-Zl: New file.
64910         * modules/unictype/category-Zp: New file.
64911         * modules/unictype/category-C: New file.
64912         * modules/unictype/category-Cc: New file.
64913         * modules/unictype/category-Cf: New file.
64914         * modules/unictype/category-Cs: New file.
64915         * modules/unictype/category-Co: New file.
64916         * modules/unictype/category-Cn: New file.
64917         * modules/unictype/category-or: New file.
64918         * modules/unictype/category-of: New file.
64919         * modules/unictype/category-test: New file.
64920         * modules/unictype/category-test-withtable: New file.
64921         * modules/unictype/category-byname: New file.
64922         * modules/unictype/category-none: New file.
64923         * modules/unictype/category-and: New file.
64924         * modules/unictype/category-and-not: New file.
64925         * modules/unictype/category-name: New file.
64926         * modules/unictype/combining-class: New file.
64927         * modules/unictype/category-all: New file.
64928         * modules/unictype/bidicategory-all: New file.
64929         * modules/unictype/bidicategory-byname: New file.
64930         * modules/unictype/bidicategory-name: New file.
64931         * modules/unictype/bidicategory-of: New file.
64932         * modules/unictype/bidicategory-test: New file.
64933         * modules/unictype/decimal-digit: New file.
64934         * modules/unictype/digit: New file.
64935         * modules/unictype/numeric: New file.
64936         * modules/unictype/mirror: New file.
64937         * modules/unictype/property-white-space: New file.
64938         * modules/unictype/property-alphabetic: New file.
64939         * modules/unictype/property-other-alphabetic: New file.
64940         * modules/unictype/property-not-a-character: New file.
64941         * modules/unictype/property-default-ignorable-code-point: New file.
64942         * modules/unictype/property-other-default-ignorable-code-point: New
64943         file.
64944         * modules/unictype/property-deprecated: New file.
64945         * modules/unictype/property-logical-order-exception: New file.
64946         * modules/unictype/property-variation-selector: New file.
64947         * modules/unictype/property-private-use: New file.
64948         * modules/unictype/property-unassigned-code-value: New file.
64949         * modules/unictype/property-uppercase: New file.
64950         * modules/unictype/property-other-uppercase: New file.
64951         * modules/unictype/property-lowercase: New file.
64952         * modules/unictype/property-other-lowercase: New file.
64953         * modules/unictype/property-titlecase: New file.
64954         * modules/unictype/property-soft-dotted: New file.
64955         * modules/unictype/property-id-start: New file.
64956         * modules/unictype/property-other-id-start: New file.
64957         * modules/unictype/property-id-continue: New file.
64958         * modules/unictype/property-other-id-continue: New file.
64959         * modules/unictype/property-xid-start: New file.
64960         * modules/unictype/property-xid-continue: New file.
64961         * modules/unictype/property-pattern-white-space: New file.
64962         * modules/unictype/property-pattern-syntax: New file.
64963         * modules/unictype/property-join-control: New file.
64964         * modules/unictype/property-grapheme-base: New file.
64965         * modules/unictype/property-grapheme-extend: New file.
64966         * modules/unictype/property-other-grapheme-extend: New file.
64967         * modules/unictype/property-grapheme-link: New file.
64968         * modules/unictype/property-bidi-control: New file.
64969         * modules/unictype/property-bidi-left-to-right: New file.
64970         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64971         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64972         * modules/unictype/property-bidi-european-digit: New file.
64973         * modules/unictype/property-bidi-eur-num-separator: New file.
64974         * modules/unictype/property-bidi-eur-num-terminator: New file.
64975         * modules/unictype/property-bidi-arabic-digit: New file.
64976         * modules/unictype/property-bidi-common-separator: New file.
64977         * modules/unictype/property-bidi-block-separator: New file.
64978         * modules/unictype/property-bidi-segment-separator: New file.
64979         * modules/unictype/property-bidi-whitespace: New file.
64980         * modules/unictype/property-bidi-non-spacing-mark: New file.
64981         * modules/unictype/property-bidi-boundary-neutral: New file.
64982         * modules/unictype/property-bidi-pdf: New file.
64983         * modules/unictype/property-bidi-embedding-or-override: New file.
64984         * modules/unictype/property-bidi-other-neutral: New file.
64985         * modules/unictype/property-hex-digit: New file.
64986         * modules/unictype/property-ascii-hex-digit: New file.
64987         * modules/unictype/property-ideographic: New file.
64988         * modules/unictype/property-unified-ideograph: New file.
64989         * modules/unictype/property-radical: New file.
64990         * modules/unictype/property-ids-binary-operator: New file.
64991         * modules/unictype/property-ids-trinary-operator: New file.
64992         * modules/unictype/property-zero-width: New file.
64993         * modules/unictype/property-space: New file.
64994         * modules/unictype/property-non-break: New file.
64995         * modules/unictype/property-iso-control: New file.
64996         * modules/unictype/property-format-control: New file.
64997         * modules/unictype/property-dash: New file.
64998         * modules/unictype/property-hyphen: New file.
64999         * modules/unictype/property-punctuation: New file.
65000         * modules/unictype/property-line-separator: New file.
65001         * modules/unictype/property-paragraph-separator: New file.
65002         * modules/unictype/property-quotation-mark: New file.
65003         * modules/unictype/property-sentence-terminal: New file.
65004         * modules/unictype/property-terminal-punctuation: New file.
65005         * modules/unictype/property-currency-symbol: New file.
65006         * modules/unictype/property-math: New file.
65007         * modules/unictype/property-other-math: New file.
65008         * modules/unictype/property-paired-punctuation: New file.
65009         * modules/unictype/property-left-of-pair: New file.
65010         * modules/unictype/property-combining: New file.
65011         * modules/unictype/property-composite: New file.
65012         * modules/unictype/property-decimal-digit: New file.
65013         * modules/unictype/property-numeric: New file.
65014         * modules/unictype/property-diacritic: New file.
65015         * modules/unictype/property-extender: New file.
65016         * modules/unictype/property-ignorable-control: New file.
65017         * modules/unictype/property-test: New file.
65018         * modules/unictype/property-byname: New file.
65019         * modules/unictype/property-all: New file.
65020         * modules/unictype/scripts: New file.
65021         * modules/unictype/scripts-all: New file.
65022         * modules/unictype/block-of: New file.
65023         * modules/unictype/block-test: New file.
65024         * modules/unictype/block-list: New file.
65025         * modules/unictype/block-all: New file.
65026         * modules/unictype/syntax-c-whitespace: New file.
65027         * modules/unictype/syntax-java-whitespace: New file.
65028         * modules/unictype/syntax-c-ident: New file.
65029         * modules/unictype/syntax-java-ident: New file.
65030         * modules/unictype/ctype-alnum: New file.
65031         * modules/unictype/ctype-alpha: New file.
65032         * modules/unictype/ctype-cntrl: New file.
65033         * modules/unictype/ctype-digit: New file.
65034         * modules/unictype/ctype-graph: New file.
65035         * modules/unictype/ctype-lower: New file.
65036         * modules/unictype/ctype-print: New file.
65037         * modules/unictype/ctype-punct: New file.
65038         * modules/unictype/ctype-space: New file.
65039         * modules/unictype/ctype-upper: New file.
65040         * modules/unictype/ctype-xdigit: New file.
65041         * modules/unictype/ctype-blank: New file.
65042         * lib/unictype/bidi_byname.c: New file.
65043         * lib/unictype/bidi_name.c: New file.
65044         * lib/unictype/bidi_of.c: New file.
65045         * lib/unictype/bidi_test.c: New file.
65046         * lib/unictype/bitmap.h: New file.
65047         * lib/unictype/block_test.c: New file.
65048         * lib/unictype/blocks.c: New file.
65049         * lib/unictype/categ_C.c: New file.
65050         * lib/unictype/categ_Cc.c: New file.
65051         * lib/unictype/categ_Cf.c: New file.
65052         * lib/unictype/categ_Cn.c: New file.
65053         * lib/unictype/categ_Co.c: New file.
65054         * lib/unictype/categ_Cs.c: New file.
65055         * lib/unictype/categ_L.c: New file.
65056         * lib/unictype/categ_Ll.c: New file.
65057         * lib/unictype/categ_Lm.c: New file.
65058         * lib/unictype/categ_Lo.c: New file.
65059         * lib/unictype/categ_Lt.c: New file.
65060         * lib/unictype/categ_Lu.c: New file.
65061         * lib/unictype/categ_M.c: New file.
65062         * lib/unictype/categ_Mc.c: New file.
65063         * lib/unictype/categ_Me.c: New file.
65064         * lib/unictype/categ_Mn.c: New file.
65065         * lib/unictype/categ_N.c: New file.
65066         * lib/unictype/categ_Nd.c: New file.
65067         * lib/unictype/categ_Nl.c: New file.
65068         * lib/unictype/categ_No.c: New file.
65069         * lib/unictype/categ_P.c: New file.
65070         * lib/unictype/categ_Pc.c: New file.
65071         * lib/unictype/categ_Pd.c: New file.
65072         * lib/unictype/categ_Pe.c: New file.
65073         * lib/unictype/categ_Pf.c: New file.
65074         * lib/unictype/categ_Pi.c: New file.
65075         * lib/unictype/categ_Po.c: New file.
65076         * lib/unictype/categ_Ps.c: New file.
65077         * lib/unictype/categ_S.c: New file.
65078         * lib/unictype/categ_Sc.c: New file.
65079         * lib/unictype/categ_Sk.c: New file.
65080         * lib/unictype/categ_Sm.c: New file.
65081         * lib/unictype/categ_So.c: New file.
65082         * lib/unictype/categ_Z.c: New file.
65083         * lib/unictype/categ_Zl.c: New file.
65084         * lib/unictype/categ_Zp.c: New file.
65085         * lib/unictype/categ_Zs.c: New file.
65086         * lib/unictype/categ_and.c: New file.
65087         * lib/unictype/categ_and_not.c: New file.
65088         * lib/unictype/categ_byname.c: New file.
65089         * lib/unictype/categ_name.c: New file.
65090         * lib/unictype/categ_none.c: New file.
65091         * lib/unictype/categ_of.c: New file.
65092         * lib/unictype/categ_or.c: New file.
65093         * lib/unictype/categ_test.c: New file.
65094         * lib/unictype/combining.c: New file.
65095         * lib/unictype/ctype_alnum.c: New file.
65096         * lib/unictype/ctype_alpha.c: New file.
65097         * lib/unictype/ctype_blank.c: New file.
65098         * lib/unictype/ctype_cntrl.c: New file.
65099         * lib/unictype/ctype_digit.c: New file.
65100         * lib/unictype/ctype_graph.c: New file.
65101         * lib/unictype/ctype_lower.c: New file.
65102         * lib/unictype/ctype_print.c: New file.
65103         * lib/unictype/ctype_punct.c: New file.
65104         * lib/unictype/ctype_space.c: New file.
65105         * lib/unictype/ctype_upper.c: New file.
65106         * lib/unictype/ctype_xdigit.c: New file.
65107         * lib/unictype/decdigit.c: New file.
65108         * lib/unictype/digit.c: New file.
65109         * lib/unictype/identsyntaxmap.h: New file.
65110         * lib/unictype/mirror.c: New file.
65111         * lib/unictype/numeric.c: New file.
65112         * lib/unictype/pr_alphabetic.c: New file.
65113         * lib/unictype/pr_ascii_hex_digit.c: New file.
65114         * lib/unictype/pr_bidi_arabic_digit.c: New file.
65115         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
65116         * lib/unictype/pr_bidi_block_separator.c: New file.
65117         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
65118         * lib/unictype/pr_bidi_common_separator.c: New file.
65119         * lib/unictype/pr_bidi_control.c: New file.
65120         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
65121         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
65122         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
65123         * lib/unictype/pr_bidi_european_digit.c: New file.
65124         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
65125         * lib/unictype/pr_bidi_left_to_right.c: New file.
65126         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
65127         * lib/unictype/pr_bidi_other_neutral.c: New file.
65128         * lib/unictype/pr_bidi_pdf.c: New file.
65129         * lib/unictype/pr_bidi_segment_separator.c: New file.
65130         * lib/unictype/pr_bidi_whitespace.c: New file.
65131         * lib/unictype/pr_byname.c: New file.
65132         * lib/unictype/pr_byname.gperf: New file.
65133         * lib/unictype/pr_combining.c: New file.
65134         * lib/unictype/pr_composite.c: New file.
65135         * lib/unictype/pr_currency_symbol.c: New file.
65136         * lib/unictype/pr_dash.c: New file.
65137         * lib/unictype/pr_decimal_digit.c: New file.
65138         * lib/unictype/pr_default_ignorable_code_point.c: New file.
65139         * lib/unictype/pr_deprecated.c: New file.
65140         * lib/unictype/pr_diacritic.c: New file.
65141         * lib/unictype/pr_extender.c: New file.
65142         * lib/unictype/pr_format_control.c: New file.
65143         * lib/unictype/pr_grapheme_base.c: New file.
65144         * lib/unictype/pr_grapheme_extend.c: New file.
65145         * lib/unictype/pr_grapheme_link.c: New file.
65146         * lib/unictype/pr_hex_digit.c: New file.
65147         * lib/unictype/pr_hyphen.c: New file.
65148         * lib/unictype/pr_id_continue.c: New file.
65149         * lib/unictype/pr_id_start.c: New file.
65150         * lib/unictype/pr_ideographic.c: New file.
65151         * lib/unictype/pr_ids_binary_operator.c: New file.
65152         * lib/unictype/pr_ids_trinary_operator.c: New file.
65153         * lib/unictype/pr_ignorable_control.c: New file.
65154         * lib/unictype/pr_iso_control.c: New file.
65155         * lib/unictype/pr_join_control.c: New file.
65156         * lib/unictype/pr_left_of_pair.c: New file.
65157         * lib/unictype/pr_line_separator.c: New file.
65158         * lib/unictype/pr_logical_order_exception.c: New file.
65159         * lib/unictype/pr_lowercase.c: New file.
65160         * lib/unictype/pr_math.c: New file.
65161         * lib/unictype/pr_non_break.c: New file.
65162         * lib/unictype/pr_not_a_character.c: New file.
65163         * lib/unictype/pr_numeric.c: New file.
65164         * lib/unictype/pr_other_alphabetic.c: New file.
65165         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
65166         * lib/unictype/pr_other_grapheme_extend.c: New file.
65167         * lib/unictype/pr_other_id_continue.c: New file.
65168         * lib/unictype/pr_other_id_start.c: New file.
65169         * lib/unictype/pr_other_lowercase.c: New file.
65170         * lib/unictype/pr_other_math.c: New file.
65171         * lib/unictype/pr_other_uppercase.c: New file.
65172         * lib/unictype/pr_paired_punctuation.c: New file.
65173         * lib/unictype/pr_paragraph_separator.c: New file.
65174         * lib/unictype/pr_pattern_syntax.c: New file.
65175         * lib/unictype/pr_pattern_white_space.c: New file.
65176         * lib/unictype/pr_private_use.c: New file.
65177         * lib/unictype/pr_punctuation.c: New file.
65178         * lib/unictype/pr_quotation_mark.c: New file.
65179         * lib/unictype/pr_radical.c: New file.
65180         * lib/unictype/pr_sentence_terminal.c: New file.
65181         * lib/unictype/pr_soft_dotted.c: New file.
65182         * lib/unictype/pr_space.c: New file.
65183         * lib/unictype/pr_terminal_punctuation.c: New file.
65184         * lib/unictype/pr_test.c: New file.
65185         * lib/unictype/pr_titlecase.c: New file.
65186         * lib/unictype/pr_unassigned_code_value.c: New file.
65187         * lib/unictype/pr_unified_ideograph.c: New file.
65188         * lib/unictype/pr_uppercase.c: New file.
65189         * lib/unictype/pr_variation_selector.c: New file.
65190         * lib/unictype/pr_white_space.c: New file.
65191         * lib/unictype/pr_xid_continue.c: New file.
65192         * lib/unictype/pr_xid_start.c: New file.
65193         * lib/unictype/pr_zero_width.c: New file.
65194         * lib/unictype/scripts.c: New file.
65195         * lib/unictype/sy_c_ident.c: New file.
65196         * lib/unictype/sy_c_whitespace.c: New file.
65197         * lib/unictype/sy_java_ident.c: New file.
65198         * lib/unictype/sy_java_whitespace.c: New file.
65199
65200         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
65201         Unicode 5.0.0.
65202         * lib/unictype/blocks.h: Likewise.
65203         * lib/unictype/categ_C.h: Likewise.
65204         * lib/unictype/categ_Cc.h: Likewise.
65205         * lib/unictype/categ_Cf.h: Likewise.
65206         * lib/unictype/categ_Cn.h: Likewise.
65207         * lib/unictype/categ_Co.h: Likewise.
65208         * lib/unictype/categ_Cs.h: Likewise.
65209         * lib/unictype/categ_L.h: Likewise.
65210         * lib/unictype/categ_Ll.h: Likewise.
65211         * lib/unictype/categ_Lm.h: Likewise.
65212         * lib/unictype/categ_Lo.h: Likewise.
65213         * lib/unictype/categ_Lt.h: Likewise.
65214         * lib/unictype/categ_Lu.h: Likewise.
65215         * lib/unictype/categ_M.h: Likewise.
65216         * lib/unictype/categ_Mc.h: Likewise.
65217         * lib/unictype/categ_Me.h: Likewise.
65218         * lib/unictype/categ_Mn.h: Likewise.
65219         * lib/unictype/categ_N.h: Likewise.
65220         * lib/unictype/categ_Nd.h: Likewise.
65221         * lib/unictype/categ_Nl.h: Likewise.
65222         * lib/unictype/categ_No.h: Likewise.
65223         * lib/unictype/categ_P.h: Likewise.
65224         * lib/unictype/categ_Pc.h: Likewise.
65225         * lib/unictype/categ_Pd.h: Likewise.
65226         * lib/unictype/categ_Pe.h: Likewise.
65227         * lib/unictype/categ_Pf.h: Likewise.
65228         * lib/unictype/categ_Pi.h: Likewise.
65229         * lib/unictype/categ_Po.h: Likewise.
65230         * lib/unictype/categ_Ps.h: Likewise.
65231         * lib/unictype/categ_S.h: Likewise.
65232         * lib/unictype/categ_Sc.h: Likewise.
65233         * lib/unictype/categ_Sk.h: Likewise.
65234         * lib/unictype/categ_Sm.h: Likewise.
65235         * lib/unictype/categ_So.h: Likewise.
65236         * lib/unictype/categ_Z.h: Likewise.
65237         * lib/unictype/categ_Zl.h: Likewise.
65238         * lib/unictype/categ_Zp.h: Likewise.
65239         * lib/unictype/categ_Zs.h: Likewise.
65240         * lib/unictype/categ_of.h: Likewise.
65241         * lib/unictype/combining.h: Likewise.
65242         * lib/unictype/ctype_alnum.h: Likewise.
65243         * lib/unictype/ctype_alpha.h: Likewise.
65244         * lib/unictype/ctype_blank.h: Likewise.
65245         * lib/unictype/ctype_cntrl.h: Likewise.
65246         * lib/unictype/ctype_digit.h: Likewise.
65247         * lib/unictype/ctype_graph.h: Likewise.
65248         * lib/unictype/ctype_lower.h: Likewise.
65249         * lib/unictype/ctype_print.h: Likewise.
65250         * lib/unictype/ctype_punct.h: Likewise.
65251         * lib/unictype/ctype_space.h: Likewise.
65252         * lib/unictype/ctype_upper.h: Likewise.
65253         * lib/unictype/ctype_xdigit.h: Likewise.
65254         * lib/unictype/decdigit.h: Likewise.
65255         * lib/unictype/digit.h: Likewise.
65256         * lib/unictype/mirror.h: Likewise.
65257         * lib/unictype/numeric.h: Likewise.
65258         * lib/unictype/pr_alphabetic.h: Likewise.
65259         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65260         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65261         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65262         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65263         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65264         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65265         * lib/unictype/pr_bidi_control.h: Likewise.
65266         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65267         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65268         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65269         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65270         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65271         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65272         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65273         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65274         * lib/unictype/pr_bidi_pdf.h: Likewise.
65275         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65276         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65277         * lib/unictype/pr_combining.h: Likewise.
65278         * lib/unictype/pr_composite.h: Likewise.
65279         * lib/unictype/pr_currency_symbol.h: Likewise.
65280         * lib/unictype/pr_dash.h: Likewise.
65281         * lib/unictype/pr_decimal_digit.h: Likewise.
65282         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65283         * lib/unictype/pr_deprecated.h: Likewise.
65284         * lib/unictype/pr_diacritic.h: Likewise.
65285         * lib/unictype/pr_extender.h: Likewise.
65286         * lib/unictype/pr_format_control.h: Likewise.
65287         * lib/unictype/pr_grapheme_base.h: Likewise.
65288         * lib/unictype/pr_grapheme_extend.h: Likewise.
65289         * lib/unictype/pr_grapheme_link.h: Likewise.
65290         * lib/unictype/pr_hex_digit.h: Likewise.
65291         * lib/unictype/pr_hyphen.h: Likewise.
65292         * lib/unictype/pr_id_continue.h: Likewise.
65293         * lib/unictype/pr_id_start.h: Likewise.
65294         * lib/unictype/pr_ideographic.h: Likewise.
65295         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65296         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65297         * lib/unictype/pr_ignorable_control.h: Likewise.
65298         * lib/unictype/pr_iso_control.h: Likewise.
65299         * lib/unictype/pr_join_control.h: Likewise.
65300         * lib/unictype/pr_left_of_pair.h: Likewise.
65301         * lib/unictype/pr_line_separator.h: Likewise.
65302         * lib/unictype/pr_logical_order_exception.h: Likewise.
65303         * lib/unictype/pr_lowercase.h: Likewise.
65304         * lib/unictype/pr_math.h: Likewise.
65305         * lib/unictype/pr_non_break.h: Likewise.
65306         * lib/unictype/pr_not_a_character.h: Likewise.
65307         * lib/unictype/pr_numeric.h: Likewise.
65308         * lib/unictype/pr_other_alphabetic.h: Likewise.
65309         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65310         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65311         * lib/unictype/pr_other_id_continue.h: Likewise.
65312         * lib/unictype/pr_other_id_start.h: Likewise.
65313         * lib/unictype/pr_other_lowercase.h: Likewise.
65314         * lib/unictype/pr_other_math.h: Likewise.
65315         * lib/unictype/pr_other_uppercase.h: Likewise.
65316         * lib/unictype/pr_paired_punctuation.h: Likewise.
65317         * lib/unictype/pr_paragraph_separator.h: Likewise.
65318         * lib/unictype/pr_pattern_syntax.h: Likewise.
65319         * lib/unictype/pr_pattern_white_space.h: Likewise.
65320         * lib/unictype/pr_private_use.h: Likewise.
65321         * lib/unictype/pr_punctuation.h: Likewise.
65322         * lib/unictype/pr_quotation_mark.h: Likewise.
65323         * lib/unictype/pr_radical.h: Likewise.
65324         * lib/unictype/pr_sentence_terminal.h: Likewise.
65325         * lib/unictype/pr_soft_dotted.h: Likewise.
65326         * lib/unictype/pr_space.h: Likewise.
65327         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65328         * lib/unictype/pr_titlecase.h: Likewise.
65329         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65330         * lib/unictype/pr_unified_ideograph.h: Likewise.
65331         * lib/unictype/pr_uppercase.h: Likewise.
65332         * lib/unictype/pr_variation_selector.h: Likewise.
65333         * lib/unictype/pr_white_space.h: Likewise.
65334         * lib/unictype/pr_xid_continue.h: Likewise.
65335         * lib/unictype/pr_xid_start.h: Likewise.
65336         * lib/unictype/pr_zero_width.h: Likewise.
65337         * lib/unictype/scripts.h: Likewise.
65338         * lib/unictype/scripts_byname.gperf: Likewise.
65339         * lib/unictype/sy_c_ident.h: Likewise.
65340         * lib/unictype/sy_c_whitespace.h: Likewise.
65341         * lib/unictype/sy_java_ident.h: Likewise.
65342         * lib/unictype/sy_java_whitespace.h: Likewise.
65343
65344         * lib/unictype/Makefile: New file.
65345         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65346         glibc.
65347         * lib/unictype/3level.h: New file, copied from glibc.
65348         * lib/unictype/3levelbit.h: New file.
65349
65350 2007-11-11  Bruno Haible  <bruno@clisp.org>
65351
65352         * modules/gperf: New file.
65353         * modules/iconv_open (Depends-on): Add it.
65354         (Makefile.am): Remove the GPERF definition.
65355
65356 2007-11-11  Bruno Haible  <bruno@clisp.org>
65357
65358         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65359         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65360
65361 2007-11-11  Bruno Haible  <bruno@clisp.org>
65362
65363         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65364         (usage): Remove function.
65365
65366 2007-11-11  Bruno Haible  <bruno@clisp.org>
65367
65368         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65369         gl_FUNC_CEILF_LIBS.
65370         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65371         gl_FUNC_CEIL_LIBS.
65372         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65373         gl_FUNC_CEILL_LIBS.
65374         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65375         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65376         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65377
65378 2007-11-11  Bruno Haible  <bruno@clisp.org>
65379
65380         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65381         roundf were declared but do not exist on functions.
65382         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65383         roundl were declared but do not exist on functions.
65384         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65385         HAVE_FLOORL_AND_CEILL, respectively.
65386         Needed for Sun C on Solaris 10.
65387
65388 2007-11-11  Bruno Haible  <bruno@clisp.org>
65389
65390         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65391         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65392         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65393         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65394         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65395         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65396         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65397         HAVE_DECL_ROUNDF.
65398         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65399         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65401         of HAVE_DECL_ROUND*.
65402         * modules/math (Makefile.am): Update.
65403
65404 2007-11-10  Bruno Haible  <bruno@clisp.org>
65405
65406         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65407         ptrdiff_t as m4/intl.m4.
65408
65409 2007-11-10  Jim Meyering  <meyering@redhat.com>
65410
65411         Avoid link failure for the argmatch test.
65412         * tests/test-argmatch.c (usage): Define function to avoid a link
65413         failure: argmatch_die requires a usage function.
65414
65415 2007-11-09  Bruno Haible  <bruno@clisp.org>
65416
65417         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65418         * doc/functions/vsnprintf.texi: Likewise.
65419         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65420         with a size argument < 2.
65421
65422 2007-11-09  Bruno Haible  <bruno@clisp.org>
65423
65424         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65425         buffer. Fixes an inefficiency introduced on 2007-11-03.
65426
65427 2007-11-09  Bruno Haible  <bruno@clisp.org>
65428
65429         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65430         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65431
65432 2007-11-08  Jim Meyering  <meyering@redhat.com>
65433
65434         Change cache variable name prefix "jm_" to "gl_" everywhere.
65435         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65436         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65437         * m4/uptime.m4: s/gl_/jm_/
65438
65439 2007-11-07  Bruno Haible  <bruno@clisp.org>
65440
65441         Update to GNU gettext 0.17.
65442         * m4/intl.m4: Update to GNU gettext 0.17.
65443         * m4/po.m4: Likewise.
65444         * modules/gettext (Files): Remove m4/ulonglong.m4.
65445         (configure.ac): Require gettext infrastructure from version 0.17.
65446
65447 2007-11-06  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65450         symbolic values are not defined in a public header.
65451         * lib/freadable.c (freadable) [QNX]: Likewise.
65452         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65453         * lib/freading.c (freading) [QNX]: Likewise.
65454         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65455         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65456         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65457         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65458         Reported by Alain Magloire.
65459
65460         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65461
65462 2007-11-05  Bruno Haible  <bruno@clisp.org>
65463
65464         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65465         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65466         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65467         Reported by Eric Blake.
65468
65469 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65470             Bruno Haible  <bruno@clisp.org>
65471
65472         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65473         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65474         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65475         (malloc): Undefine also before including <stdlib.h>.
65476         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65477         Needed on OSF/1 4.0.
65478
65479 2007-11-05  Jim Meyering  <meyering@redhat.com>
65480
65481         git-version-gen: sync from coreutils.
65482         * build-aux/git-version-gen: Add comments.
65483         Change the first '-' to '.' in the snapshot version string,
65484         e.g., 6.9-377-08144 -> 6.9.377-08144
65485         Remove first parameter.
65486         Don't declare a version "-dirty" merely because a time
65487         stamp has changed.
65488
65489 2007-11-04  Bruno Haible  <bruno@clisp.org>
65490
65491         * lib/lock.h: Protect all macro definitions containing an 'if'
65492         statement through a "do { ... } while (0)".
65493         * lib/tls.h: Likewise.
65494
65495 2007-11-04  Bruno Haible  <bruno@clisp.org>
65496
65497         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65498
65499 2007-11-04  Bruno Haible  <bruno@clisp.org>
65500
65501         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65502         * modules/fprintf-posix (Depends-on): Add nocrash.
65503         * modules/snprintf-posix (Depends-on): Likewise.
65504         * modules/sprintf-posix (Depends-on): Likewise.
65505         * modules/vasnprintf-posix (Depends-on): Likewise.
65506         * modules/vasprintf-posix (Depends-on): Likewise.
65507         * modules/vfprintf-posix (Depends-on): Likewise.
65508         * modules/vsnprintf-posix (Depends-on): Likewise.
65509         * modules/vsprintf-posix (Depends-on): Likewise.
65510         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65511         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65512         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65513         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65514         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65515         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65516         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65517
65518 2007-11-04  Bruno Haible  <bruno@clisp.org>
65519
65520         * modules/nocrash: New file.
65521         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65522         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65523
65524 2007-11-04  Bruno Haible  <bruno@clisp.org>
65525
65526         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65527         precision handling.
65528         * tests/test-vasprintf-posix.c (test_function): Likewise.
65529         * tests/test-snprintf-posix.h (test_function): Likewise.
65530         * tests/test-sprintf-posix.h (test_function): Likewise.
65531
65532         Fix *printf behaviour for large precisions on mingw and BeOS.
65533         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65534         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65536         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65538         gl_PRINTF_PRECISION and test its result. Invoke
65539         gl_PREREQ_VASNPRINTF_PRECISION.
65540         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65541         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65547         * doc/functions/fprintf.texi: Update.
65548         * doc/functions/printf.texi: Update.
65549         * doc/functions/snprintf.texi: Update.
65550         * doc/functions/sprintf.texi: Update.
65551         * doc/functions/vfprintf.texi: Update.
65552         * doc/functions/vprintf.texi: Update.
65553         * doc/functions/vsnprintf.texi: Update.
65554         * doc/functions/vsprintf.texi: Update.
65555
65556 2007-11-04  Bruno Haible  <bruno@clisp.org>
65557
65558         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65559
65560 2007-11-04  Bruno Haible  <bruno@clisp.org>
65561
65562         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65563         Reported by Sylvain Beucler <beuc@gnu.org>.
65564
65565 2007-11-03  Bruno Haible  <bruno@clisp.org>
65566
65567         * tests/test-fprintf-posix2.sh: New file.
65568         * tests/test-fprintf-posix2.c: New file.
65569         * modules/fprintf-posix-tests (Files): Add them.
65570         (TESTS): Add test-fprintf-posix2.sh.
65571         (configure.ac): Check for getrlimit and setrlimit.
65572         (check_PROGRAMS): Add test-fprintf-posix2.
65573
65574         * tests/test-printf-posix2.sh: New file.
65575         * tests/test-printf-posix2.c: New file.
65576         * modules/printf-posix-tests (Files): Add them.
65577         (TESTS): Add test-printf-posix2.sh.
65578         (configure.ac): Check for getrlimit and setrlimit.
65579         (check_PROGRAMS): Add test-printf-posix2.
65580
65581         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65582         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65583         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65584         (decode_double): New function, copied from decode_long_double.
65585         (scale10_round_decimal_decoded): New function, extracted from
65586         scale10_round_decimal_long_double.
65587         (scale10_round_decimal_long_double): Use it.
65588         (scale10_round_decimal_double): New function.
65589         (floorlog10): New function.
65590         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65592         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65593         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65594         gl_PRINTF_ENOMEM and test its result. Invoke
65595         gl_PREREQ_VASNPRINTF_ENOMEM.
65596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65597         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65598         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65599         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65600         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65601         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65602         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65603         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65604         * modules/snprintf-posix (Depends-on): Likewise.
65605         * modules/sprintf-posix (Depends-on): Likewise.
65606         * modules/vasnprintf-posix (Depends-on): Likewise.
65607         * modules/vasprintf-posix (Depends-on): Likewise.
65608         * modules/vfprintf-posix (Depends-on): Likewise.
65609         * modules/vsnprintf-posix (Depends-on): Likewise.
65610         * modules/vsprintf-posix (Depends-on): Likewise.
65611         * doc/functions/fprintf.texi: Update.
65612         * doc/functions/printf.texi: Update.
65613         * doc/functions/snprintf.texi: Update.
65614         * doc/functions/sprintf.texi: Update.
65615         * doc/functions/vfprintf.texi: Update.
65616         * doc/functions/vprintf.texi: Update.
65617         * doc/functions/vsnprintf.texi: Update.
65618         * doc/functions/vsprintf.texi: Update.
65619
65620 2007-11-03  Bruno Haible  <bruno@clisp.org>
65621
65622         * modules/frexp-nolibm-tests: New file.
65623
65624         * modules/frexp-nolibm: New file.
65625         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65626
65627 2007-11-03  Bruno Haible  <bruno@clisp.org>
65628
65629         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65630         value is C99 compliant.
65631         Needed for OSF/1 5.1.
65632
65633 2007-11-03  Bruno Haible  <bruno@clisp.org>
65634
65635         Fix out-of-memory handling of vasnprintf.
65636         * lib/printf-parse.c: Include <errno.h>.
65637         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65638         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65639         is already set.
65640
65641 2007-11-02  Eric Blake  <ebb9@byu.net>
65642
65643         Fix tests on cygwin.
65644         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65645
65646 2007-11-01  Bruno Haible  <bruno@clisp.org>
65647
65648         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65649         warning.
65650         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65651         needed for POSIX compatibility.
65652
65653 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65654
65655         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65656         for compatibility with GNU.
65657
65658 2007-11-01  Bruno Haible  <bruno@clisp.org>
65659
65660         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65661         (putenv): Renamed from rpl_putenv. Change argument type from
65662         'const char *' to 'char *'.
65663         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65664         of defining putenv in config.h, just set REPLACE_PUTENV.
65665         * modules/putenv (Depends-on): Add stdlib.
65666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65667         (Include): Use <stdlib.h>.
65668         * lib/stdlib.in.h (putenv): New declaration.
65669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65670         REPLACE_PUTENV.
65671         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65672         REPLACE_PUTENV.
65673         Needed for MacOS X 10.5.0.
65674         Reported by Peter O'Gorman <peter@pogma.com>.
65675
65676 2007-11-01  Jim Meyering  <meyering@redhat.com>
65677
65678         Treat an empty date string exactly like "0".
65679         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65680         if the remaining date string (to be parsed) is empty, use "0".
65681         Reported by Mischa Molhoek and discussed in this thread:
65682         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65683
65684 2007-10-31  Bruno Haible  <bruno@clisp.org>
65685
65686         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65687         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65688         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65689         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65690         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65691         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65692
65693 2007-10-31  Bruno Haible  <bruno@clisp.org>
65694
65695         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65696         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65697         (AC_TYPE_LONG_LONG_INT): Use it.
65698         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65699         it as well.
65700         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65701         to m4/longlong.m4.
65702         * modules/stdint (Files): Remove m4/ulonglong.m4.
65703         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65704         m4/ulonglong.m4.
65705         * modules/strtoumax (Files): Likewise.
65706
65707 2007-10-30  Bruno Haible  <bruno@clisp.org>
65708
65709         * modules/xvasprintf-posix: New file.
65710         Suggested by Eric Blake.
65711
65712 2007-10-30  Bruno Haible  <bruno@clisp.org>
65713
65714         * modules/xprintf-posix-tests: New file.
65715         * tests/test-xprintf-posix.sh: New file.
65716         * tests/test-xprintf-posix.c: New file.
65717         * tests/test-xfprintf-posix.c: New file.
65718
65719         * modules/xprintf-posix: New file.
65720
65721 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65722
65723         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65724         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65725         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65726
65727 2007-10-29  Bruno Haible  <bruno@clisp.org>
65728
65729         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65730         contain the special marker '_cv_'.
65731         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65732         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65733         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65734         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65735         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65736         Reported by Ralf Wildenhues.
65737
65738 2007-10-29  Bruno Haible  <bruno@clisp.org>
65739
65740         * gnulib-tool (func_import): When --lgpl is not specified, set
65741         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65742         GPLv3.
65743         Reported by Simon Josefsson.
65744
65745 2007-10-28  Bruno Haible  <bruno@clisp.org>
65746
65747         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65748         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65749         HAVE_DECL_ISFINITE.
65750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65751         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65752         HAVE_DECL_ISFINITE.
65753
65754 2007-10-28  Bruno Haible  <bruno@clisp.org>
65755
65756         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65757         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65758
65759 2007-10-28  Bruno Haible  <bruno@clisp.org>
65760
65761         Fix link errors with Sun C 5.0 on Solaris 10.
65762         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65763         function is declared but not present in the compiler's libm.
65764         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65765         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65766         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65767         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65768         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65769         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65770         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65772         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65773         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65774         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65775         HAVE_DECL_FLOORL.
65776
65777 2007-10-28  Bruno Haible  <bruno@clisp.org>
65778
65779         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65780         gl_FUNC_FLOORL. Cache the result.
65781         (gl_FUNC_FLOORL): Use it.
65782         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65783         gl_FUNC_CEILL. Cache the result.
65784         (gl_FUNC_CEILL): Use it.
65785
65786         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65787         gl_FUNC_FLOOR. Cache the result.
65788         (gl_FUNC_FLOOR): Use it.
65789         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65790         gl_FUNC_CEIL. Cache the result.
65791         (gl_FUNC_CEIL): Use it.
65792
65793         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65794         gl_FUNC_FLOORF. Cache the result.
65795         (gl_FUNC_FLOORF): Use it.
65796         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65797         gl_FUNC_CEILF. Cache the result.
65798         (gl_FUNC_CEILF): Use it.
65799
65800 2007-10-28  Bruno Haible  <bruno@clisp.org>
65801
65802         * gnulib-tool: Allow specifying the LGPL version number through
65803         --lgpl=2 or --lgpl=3.
65804         (func_usage): Document --lgpl with argument.
65805         Handle --lgpl=... arguments.
65806         (func_import): Recognize also gl_LGPL calls with an argument. When
65807         --lgpl=2 is used and the module's license is just LGPL, report an
65808         error. Set sed_transform_lib_file according to the lgpl variable. In
65809         the generated files, use --lgpl or gl_LGPL invocations with argument,
65810         if necessary.
65811         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65812         an LGPv2+ license.
65813         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65814         gl_LGPL macro.
65815
65816 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65817             Bruno Haible  <bruno@clisp.org>
65818
65819         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65820         (u16_uctomb_aux): Likewise.
65821         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65822         !HAVE_INLINE.
65823         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65824
65825 2007-10-28  Bruno Haible  <bruno@clisp.org>
65826
65827         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65828         Invoke AM_GETTEXT_OPTION if it exists.
65829         * modules/vasprintf: Likewise.
65830         * modules/verror: Likewise.
65831         * modules/xprintf: Likewise.
65832         * modules/xvasprintf: Likewise.
65833
65834 2007-10-27  Ben Pfaff  <blp@gnu.org>
65835
65836         * lib/math.in.h: Define isfinite macro and prototypes for
65837         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65838         implementations.
65839         * m4/math_h.m4: New substitutions for isfinite module.
65840         * lib/isfinite.c: New file.
65841         * m4/isfinite.m4: New file.
65842         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65843         * modules/isfinite: New file.
65844         * modules/isfinite-tests: New file.
65845         * tests/tests-isfinite.c: New file.
65846         * doc/functions/isfinite.texi: Mention isfinite module.
65847         * MODULES.html.sh: Mention new module.
65848
65849 2007-10-27  Ben Pfaff  <blp@gnu.org>
65850
65851         Ralf Wildenhues reported that Tru64 4.0D declares the round
65852         functions but does not have definitions.
65853         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65854         cannot be found in any library, set the output variable to
65855         "missing" instead of "".
65856         * m4/round.m4: Also use our substitute if we cannot find round in
65857         any library, even if it is declared.
65858         * m4/roundf.m4: Likewise for roundf.
65859         * m4/roundl.m4: Likewise for roundl.
65860         * lib/math.in.h: Undefine roundf, round, roundl before defining
65861         their replacements, to allow for hypothetical systems where these
65862         may be defined as macros but not available in libraries.
65863
65864 2007-10-27  Bruno Haible  <bruno@clisp.org>
65865
65866         * doc/gnulib.texi: Invoke @firstparagraphindent.
65867         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65868         changes in gnulib.
65869         (Source changes): New section.
65870
65871 2007-10-26  Bruno Haible  <bruno@clisp.org>
65872
65873         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65874         borrowed from autoconf.
65875
65876 2007-10-26  Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65879         strerror returned the empty string. Needed on HP-UX 11.00.
65880
65881 2007-10-24  Micah Cowan  <micah@cowan.name>
65882
65883         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65884         * build-aux/bootstrap: Remove support for now-unnecessary option,
65885         --cvs-user, and envvars CVS_USER, CVS_RSH.
65886
65887 2007-10-24  Jim Meyering  <meyering@redhat.com>
65888
65889         Avoid diagnostics from sha1sum when there is no cached checksum.
65890         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65891         if the po.s1 file hasn't been created yet.
65892
65893         * build-aux/bootstrap: Sync from coreutils:
65894         2007-10-24  Jim Meyering  <meyering@redhat.com>
65895         Get gnulib from the git repository, not from an obsolete cvs one.
65896         * build-aux/bootstrap: Suggestion from Micah Cowan.
65897         2007-10-04  Jim Meyering  <jim@meyering.net>
65898         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65899         (update_po_files): Work also when there are no .po files in po/.
65900
65901 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65902
65903         * README: Append ".git" to git and cg examples.
65904         Problem reported by Benoit Sigoure.
65905
65906 2007-10-23  Micah Cowan  <micah@cowan.name>
65907
65908         * users.txt: Add wget.
65909
65910 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65911
65912         Fix linking of some unistdio tests on FreeBSD.
65913         * modules/unistdio/u16-vsnprintf-tests
65914         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65915         * modules/unistdio/u16-vsprintf-tests
65916         (test_u16_vsnprintf1_LDADD): Likewise.
65917         * modules/unistdio/u32-vsnprintf-tests
65918         (test_u32_vsnprintf1_LDADD): Likewise.
65919         * modules/unistdio/u32-vsprintf-tests
65920         (test_u32_vsprintf1_LDADD): Likewise.
65921         * modules/unistdio/u8-vsnprintf-tests
65922         (test_u8_vsnprintf1_LDADD): Likewise.
65923         * modules/unistdio/u8-vsprintf-tests
65924         (test_u8_vsprintf1_LDADD): Likewise.
65925         * modules/unistdio/ulc-vsnprintf-tests
65926         (test_ulc_vsnprintf1_LDADD): Likewise.
65927         * modules/unistdio/ulc-vsprintf-tests
65928         (test_ulc_vsprintf1_LDADD): Likewise.
65929
65930         Fix linking of some uniconv tests on FreeBSD.
65931         * modules/uniconv/u16-conv-from-enc-tests
65932         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65933         * modules/uniconv/u16-conv-to-enc-tests
65934         (test_u16_conv_to_enc_LDADD): Likewise.
65935         * modules/uniconv/u16-strconv-from-enc-tests
65936         (test_u16_strconv_from_enc_LDADD): Likewise.
65937         * modules/uniconv/u16-strconv-to-enc-tests
65938         (test_u16_strconv_to_enc_LDADD): Likewise.
65939         * modules/uniconv/u32-conv-from-enc-tests
65940         (test_u32_conv_from_enc_LDADD): Likewise.
65941         * modules/uniconv/u32-conv-to-enc-tests
65942         (test_u32_conv_to_enc_LDADD): Likewise.
65943         * modules/uniconv/u32-strconv-from-enc-tests
65944         (test_u32_strconv_from_enc_LDADD): Likewise.
65945         * modules/uniconv/u32-strconv-to-enc-tests
65946         (test_u32_strconv_to_enc_LDADD): Likewise.
65947         * modules/uniconv/u8-conv-from-enc-tests
65948         (test_u8_conv_from_enc_LDADD): Likewise.
65949         * modules/uniconv/u8-conv-to-enc-tests
65950         (test_u8_conv_to_enc_LDADD): Likewise.
65951         * modules/uniconv/u8-strconv-from-enc-tests
65952         (test_u8_strconv_from_enc_LDADD): Likewise.
65953         * modules/uniconv/u8-strconv-to-enc-tests
65954         (test_u8_strconv_to_enc_LDADD): Likewise.
65955
65956 2007-10-22  Bruno Haible  <bruno@clisp.org>
65957
65958         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65959         size.
65960
65961 2007-10-22  Eric Blake  <ebb9@byu.net>
65962
65963         Tweak x*printf documentation.
65964         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65965         variable name and comments.
65966         Suggested by Bruno Haible.
65967
65968 2007-10-22  Bruno Haible  <bruno@clisp.org>
65969
65970         * lib/acl.c (copy_acl): Fix file name in comment.
65971
65972 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65973
65974         Fix Tru64 problem with stdbool.h.
65975         * lib/stdbool.in.h (false, true):
65976         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65977         Don't declare as an enum in this situation; it runs afoul of Tru64.
65978         Problem reported by Steven M. Schweda in
65979         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65980
65981 2007-10-22  Eric Blake  <ebb9@byu.net>
65982
65983         Also wrap vf?printf.
65984         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65985         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65986         (xvprintf, xvfprintf): New functions.
65987
65988 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65989
65990         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65991         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65992
65993         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65994         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65995
65996 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65999         by Bruno Haible.
66000
66001 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66002
66003         * lib/getloadavg.c
66004         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
66005         Undef `sys' after including sys/table.h, for Tru64 4.0D.
66006
66007         * tests/test-i-ring.c: Work for C89.
66008
66009 2007-10-22  Bruno Haible  <bruno@clisp.org>
66010
66011         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
66012         -1u, in preprocessor expression, so that we don't test for the bug
66013         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
66014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
66015
66016 2007-10-22  Eric Blake  <ebb9@byu.net>
66017
66018         * tests/test-yesno.sh: Silence stderr during test.
66019
66020 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66021
66022         * modules/crypto/gc-camellia: New file.
66023
66024         * m4/gc-camellia.m4: New file.
66025
66026         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
66027
66028         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
66029
66030 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66031
66032         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
66033         --help to stdout.  Reported by sms@antinode.org (Steven
66034         M. Schweda).
66035
66036 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66037
66038         * users.txt: Fix link to libksba.
66039
66040 2007-10-21  Ben Pfaff  <blp@gnu.org>
66041
66042         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
66043         round.c roundf implementation that depends on floorf and ceilf to
66044         be tested unconditionally.
66045
66046 2007-10-21  Ben Pfaff  <blp@gnu.org>
66047
66048         * m4/check-libm-func.m4: Removed.
66049         * m4/check-math-lib.m4: New file.
66050         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
66051         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
66052         definition and lack of AC_LIBOBJ([roundf]).
66053         * m4/roundl.m4: Ditto, and similarly for roundl.
66054         * modules/round: Reference new m4 file.
66055         * modules/roundf: Ditto.
66056         * modules/roundl: Ditto.
66057         * tests/test-round2.c (main): Use ROUND instead of round.
66058         Bug report from Bruno Haible.
66059
66060 2007-10-21  Bruno Haible  <bruno@clisp.org>
66061
66062         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
66063         context.
66064
66065 2007-10-21  Bruno Haible  <bruno@clisp.org>
66066
66067         * tests/test-wcwidth.c (main): Allow negative result for some control
66068         characters.
66069
66070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
66071         Needed on OSF/1 5.1.
66072
66073 2007-10-21  Bruno Haible  <bruno@clisp.org>
66074
66075         * tests/test-floorf1.c: Include isnanf.h.
66076         (main): Use isnanf() instead of isnan().
66077         * tests/test-ceilf1.c: Include isnanf.h.
66078         (main): Use isnanf() instead of isnan().
66079         * tests/test-truncf1.c: Include isnanf.h.
66080         (main): Use isnanf() instead of isnan().
66081         * tests/test-roundf1.c: Include isnanf.h.
66082         (main): Use isnanf() instead of isnan().
66083
66084 2007-10-21  Eric Blake  <ebb9@byu.net>
66085
66086         * users.txt: Update URL for m4.
66087
66088 2007-10-21  Bruno Haible  <bruno@clisp.org>
66089
66090         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
66091
66092 2007-10-21  Bruno Haible  <bruno@clisp.org>
66093
66094         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
66095         Git's management files if the CVS files are not present.
66096
66097 2007-10-20  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
66100         gcc-3.4.x.
66101
66102 2007-10-20  Ben Pfaff  <blp@gnu.org>
66103
66104         * lib/math.in.h: Declare round, roundf, roundl if we are providing
66105         implementations.
66106         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
66107         * lib/round.c: New file.
66108         * lib/roundf.c: New file.
66109         * lib/roundl.c: New file.
66110         * m4/round.m4: New file.
66111         * m4/roundf.m4: New file.
66112         * m4/roundl.m4: New file.
66113         * m4/check-libm-func-m4: New file.
66114         * modules/math: Replace round, roundf, roundl related @VARS@ in
66115         math.in.h.
66116         * modules/round: New file.
66117         * modules/round-tests: New file.
66118         * modules/roundf: New file.
66119         * modules/roundf-tests: New file.
66120         * modules/roundl: New file.
66121         * modules/roundl-tests: New file.
66122         * tests/test-round1.c: New file.
66123         * tests/test-round2.c: New file.
66124         * tests/test-roundf1.c: New file.
66125         * tests/test-roundf2.c: New file.
66126         * tests/test-roundl.c: New file.
66127         * doc/functions/round.texi: Mention round module.
66128         * doc/functions/roundf.texi: Mention roundf module.
66129         * doc/functions/roundl.texi: Mention roundl module.
66130         * MODULES.html.sh: Mention new modules.
66131         Thanks to Bruno Haible for suggestions.
66132
66133 2007-10-20  Jim Meyering  <meyering@redhat.com>
66134
66135         * lib/xprintf.c: Include <config.h> unconditionally.
66136
66137         Change xprintf's license to GPL.
66138         * modules/xprintf (License): s/LGPL/GPL/, since this module
66139         depends on modules (exit and exitfail) which are GPL.
66140         Suggestion from Bruno Haible.
66141
66142         xprintf fixes.
66143         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
66144         Use a clearer diagnostic.
66145         Patch from Bruno Haible.
66146
66147 2007-10-20  Bruno Haible  <bruno@clisp.org>
66148
66149         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
66150         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
66151         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66152
66153 2007-10-20  Bruno Haible  <bruno@clisp.org>
66154
66155         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
66156         precision in the comparison result > x - 1 or similar.
66157         * tests/test-ceilf2.c (correct_result_p): Likewise.
66158         * tests/test-truncf2.c (correct_result_p): Likewise.
66159         * tests/test-trunc2.c (correct_result_p): Likewise.
66160         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66161
66162 2007-10-20  Bruno Haible  <bruno@clisp.org>
66163
66164         * modules/ceil: New file.
66165         * m4/ceil.m4: New file.
66166         * doc/functions/ceil.texi: Mention the 'ceil' module.
66167
66168 2007-10-20  Bruno Haible  <bruno@clisp.org>
66169
66170         * modules/floor: New file.
66171         * m4/floor.m4: New file.
66172         * doc/functions/floor.texi: Mention the 'floor' module.
66173
66174 2007-10-20  Bruno Haible  <bruno@clisp.org>
66175
66176         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
66177         of %a.
66178         * modules/floorf-tests (Depends-on): Likewise.
66179         * modules/truncf-tests (Depends-on): Likewise.
66180         * modules/trunc-tests (Depends-on): Likewise.
66181         Reported by Ben Pfaff.
66182
66183 2007-10-19  Jim Meyering  <meyering@redhat.com>
66184
66185         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
66186         Don't bother testing specific errno values.  Just test ferror.
66187
66188         New module: xprintf
66189         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
66190
66191 2007-10-19  Bruno Haible  <bruno@clisp.org>
66192
66193         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
66194         syntax.
66195         * modules/javaexec (Makefile.am): Likewise.
66196         * modules/relocatable-prog (Makefile.am): Likewise.
66197         Suggested by Jim Meyering.
66198
66199 2007-10-18  Bruno Haible  <bruno@clisp.org>
66200
66201         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
66202         Reported by Jim Meyering.
66203
66204 2007-10-18  Eric Blake  <ebb9@byu.net>
66205
66206         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66207
66208 2007-10-18  Bruno Haible  <bruno@clisp.org>
66209
66210         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66211         the format string into writable memory. Needed in Fortify conditions.
66212
66213 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66214             Bruno Haible  <bruno@clisp.org>
66215
66216         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66217         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66218         * modules/trim (Depends-on): Add mbchar.
66219         (configure.ac): Add gl_FUNC_MBRTOWC.
66220         (Makefile.am): Augment lib_SOURCES.
66221
66222 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66223
66224         Modify glob.c to use fstatat and dirfd, to simplify it.
66225         Suggested by Eric Blake.
66226         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66227         Don't include <stdbool.h>; not used.
66228         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66229         (link_exists_p): Simplify implementation, since we can now assume
66230         dirfd and fstatat.
66231         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66232
66233 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66234
66235         * gnulib-tool (func_get_dependencies): Fix sed script to
66236         match only tests.
66237
66238 2007-10-17  Bruno Haible  <bruno@clisp.org>
66239
66240         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66241         allow locale names without encoding suffix.
66242         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66243         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66244
66245 2007-10-16  Bruno Haible  <bruno@clisp.org>
66246
66247         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66248         * lib/getgroups.c (getgroups): Likewise.
66249         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66250
66251 2007-10-16  Bruno Haible  <bruno@clisp.org>
66252
66253         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66254         * modules/malloc-posix (License): Likewise.
66255         * modules/realloc-posix (License): Likewise.
66256         * modules/calloc-posix (License): Likewise.
66257         * modules/intprops (License): Change from GPL to LGPL, with
66258         Paul Eggert's approval.
66259
66260 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         Merge glibc changes into lib/glob.c.
66263
66264         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66265         2007-10-15 04:59:03 UTC.  Here are the changes:
66266
66267         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66268
66269         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66270
66271         * lib/glob.c: Add some branch prediction throughout.
66272
66273         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66274
66275         [BZ #5103]
66276         * lib/glob.c (glob): Recognize patterns starting \/.
66277
66278         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66279
66280         [BZ #3996]
66281         * lib/glob.c (attribute_hidden): Define if not defined.
66282         (glob): Unescape dirname, filename or username when needed and not
66283         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66284         is NULL.  Handle unescaped [ in pattern without closing ].
66285         Don't pass GLOB_CHECK down to recursive glob for directories.
66286         (__glob_pattern_type): New function.
66287         (__glob_pattern_p): Implement using __glob_pattern_type.
66288         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66289         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66290         Remove unreachable code.
66291
66292         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66293
66294         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66295         explain why there are no leaks.
66296
66297         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66298
66299         [BZ #3253]
66300         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66301         time, rather allocate increasingly bigger arrays of pointers, if
66302         possible with alloca, if too large with malloc.
66303
66304 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66305
66306         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66307         Problem reported by H.Merijn Brand in
66308         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66309         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66310         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66311
66312 2007-10-15  Bruno Haible  <bruno@clisp.org>
66313
66314         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66315         with explicit rpl_ prefix.
66316         * lib/fopen.c (fopen): Likewise.
66317         * lib/freopen.c (freopen): Likewise.
66318         * lib/iconv.c (iconv): Likewise.
66319         * lib/iconv_close.c (iconv_close): Likewise.
66320
66321 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66322
66323         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66324
66325 2007-10-15  Bruno Haible  <bruno@clisp.org>
66326
66327         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66328         <stddef.h> instead of <stdlib.h> since we only need NULL.
66329         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66330
66331 2007-10-15  Bruno Haible  <bruno@clisp.org>
66332
66333         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66334         Replace paragraph talking about LIBOBJS.
66335         Reported by Colin Watson <cjwatson@debian.org>.
66336
66337 2007-10-15  Bruno Haible  <bruno@clisp.org>
66338
66339         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66340         <stdlib.h> before using NULL.
66341
66342 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66343
66344         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66345         Reported by Albert Chin <china@thewrittenword.com>.
66346
66347 2007-10-14  Bruno Haible  <bruno@clisp.org>
66348
66349         * modules/iconv_open-utf-tests: New file.
66350         * tests/test-iconv-utf.c: New file.
66351
66352         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66353         * modules/iconv_open-utf: New file.
66354         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66355         (iconv, iconv_close): New declarations.
66356         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66357         be defined.
66358         (iconv_open): Add special handling of conversion between UTF-8 and
66359         UTF-{16,32}{BE,LE}.
66360         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66361         * lib/iconv_close.c: New file.
66362         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66363         gl_FUNC_ICONV_OPEN.
66364         (gl_FUNC_ICONV_OPEN): Use it.
66365         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66366         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66367         and REPLACE_ICONV_UTF.
66368         * modules/iconv_open (Depends-on): Add c-strcase.
66369         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66370         ICONV_CONST.
66371         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66372
66373 2007-10-13  Albert Chin  <china@thewrittenword.com>
66374             Bruno Haible  <bruno@clisp.org>
66375
66376         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66377         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66378
66379 2007-10-13  Bruno Haible  <bruno@clisp.org>
66380
66381         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66382         defined, use the ISO C99 inline semantics.
66383         * lib/argp.h (ARGP_EI): Likewise.
66384
66385 2007-10-13  Bruno Haible  <bruno@clisp.org>
66386
66387         Handle 'inline' change in gcc 4.3.0.
66388         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66389         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66390         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66391         argp_fmtstream_point): Disable 'extern' declaration if the function
66392         definition is going to be provided inline.
66393         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66394         semantics, not the ISO C99 inline semantics.
66395         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66396         'extern' declaration if the function definition is going to be provided
66397         inline.
66398         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66399         the GNU C inline semantics, not the ISO C99 inline semantics. With
66400         GCC 4.2, avoid a warning.
66401
66402 2007-10-13  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/freading.h (freading): Enable the use of __freading for
66405         glibc >= 2.7.
66406         * lib/freading.c (freading): Likewise.
66407
66408 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66409
66410         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66411         "warning: C99 inline functions are not supported; using GNU89".
66412
66413 2007-10-12  Bruno Haible  <bruno@clisp.org>
66414
66415         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66416         of 2.
66417         * tests/test-ceilf2.c: New file.
66418         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66419
66420         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66421         * modules/ceilf-tests: Update.
66422
66423 2007-10-12  Bruno Haible  <bruno@clisp.org>
66424
66425         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66426         of 2.
66427         * tests/test-floorf2.c: New file.
66428         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66429
66430         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66431         * modules/floorf-tests: Update.
66432
66433 2007-10-12  Bruno Haible  <bruno@clisp.org>
66434
66435         * tests/test-trunc2.c: New file.
66436         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66437
66438         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66439         * modules/trunc-tests: Update.
66440
66441 2007-10-12  Bruno Haible  <bruno@clisp.org>
66442
66443         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66444         of 2.
66445         * tests/test-truncf2.c: New file.
66446         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66447
66448         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66449         * modules/truncf-tests: Update.
66450
66451 2007-10-11  Eric Blake  <ebb9@byu.net>
66452
66453         Don't claim strerror is broken on Interix.
66454         * doc/functions/strerror.texi (strerror): Known broken systems are
66455         now Solaris 8, and not Interix.
66456         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66457         Interix on cross-compile.
66458         Reported by Martin Koeppe in
66459         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66460
66461 2007-10-11  Bruno Haible  <bruno@clisp.org>
66462
66463         * modules/i-ring-tests: New file.
66464         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66465         instead of assert.
66466
66467 2007-10-11  Bruno Haible  <bruno@clisp.org>
66468
66469         * modules/filenamecat-tests: New file.
66470         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66471         * lib/filenamecat.c: Remove test code.
66472
66473 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66474
66475         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66476
66477         * lib/strerror.c: Include <string.h> always, to test interface,
66478         and to remove the need for the dummy.
66479         Include intprops.h to compute width instead of doing it ourselves
66480         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66481         (strerror): Define it to return NULL if there's no system strerror.
66482         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66483         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66484         ancient pre-strerror Unix systems well any more.  Saying "unknown
66485         system error" is enough.
66486         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66487         simpler strerror.c implementation.
66488         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66489         Simplify the tests to reflect the simpler strerror implementation.
66490         * modules/strerror (Depends-on): Add intprops.
66491
66492 2007-10-09  Eric Blake  <ebb9@byu.net>
66493
66494         Silence test-fpending.
66495         * modules/fpending-tests (Files): Add wrapper script.
66496         * tests/test-fpending.sh: New file.
66497
66498 2007-10-09  Bruno Haible  <bruno@clisp.org>
66499
66500         * MODULES.html.sh (func_module): Don't create a hyperlink for
66501         function names like 'printf_frexp'.
66502         (Misc): Add crc, memxor.
66503         (Characteristics of floating types): New section.
66504         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66505         isnanf-nolibm, signbit, trunc, truncf, truncl.
66506         (Enhancements for ISO C 99 functions): New subsection Input/output.
66507         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66508         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66509         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66510         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66511         (Enhancements for POSIX:2001 functions): Add chdir-long.
66512         (File system functions): Add areadlink, chdir-safer, read-file.
66513         Remove cycle-check.
66514         (File system as inode set): New section.
66515         (Date and time): Add gethrxtime.
66516         (Multithreading): Add openmp.
66517         (Internationalization functions): Add localename.
66518         (Unicode string functions): Add unistr/u*-mbsnlen.
66519         (Support for maintaining and releasing projects): Add git-version-gen.
66520         (Lone files): Remove directories.
66521
66522 2007-10-08  Ben Pfaff  <blp@gnu.org>
66523
66524         * lib/xmalloca.h: Fix typo in comment.
66525
66526 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66527
66528         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66529         when avoiding problems with integer overflow.  Use a portable test
66530         instead.
66531
66532 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66533
66534         * modules/dummy (License): Change to LGPLv2+.
66535         * modules/float (License): Likewise
66536         * modules/realloc (License): Likewise
66537         * modules/stdlib (License): Likewise
66538
66539 2007-10-07  Bruno Haible  <bruno@clisp.org>
66540
66541         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66542         * floor.c (TWO_MANT_DIG): Likewise.
66543         * ceil.c (TWO_MANT_DIG): Likewise.
66544         Reported by Ben Pfaff.
66545
66546 2007-10-07  Bruno Haible  <bruno@clisp.org>
66547
66548         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66549         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66550         * lib/frexp.c (FUNC): Likewise.
66551         * lib/printf-frexp.h (printf_frexp): Likewise.
66552         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66553         * lib/printf-frexp.c (FUNC): Likewise.
66554         Suggested by Jim Meyering.
66555
66556 2007-10-07  Jim Meyering  <meyering@redhat.com>
66557
66558         Make xnanosleep's integer overflow test more robust.
66559         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66560         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66561
66562 2007-10-07  Bruno Haible  <bruno@clisp.org>
66563
66564         * NEWS: Mention the license change.
66565
66566         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66567         abbreviations in the modules files.
66568
66569         Change copyright notice from GPLv2+ to GPLv3+.
66570         * README: Change copyright notice.
66571         * MODULES.html.sh: Likewise.
66572         * build-aux/bootstrap.conf: Likewise.
66573         * build-aux/config.libpath: Likewise.
66574         * build-aux/csharpcomp.sh.in: Likewise.
66575         * build-aux/csharpexec.sh.in: Likewise.
66576         * build-aux/install-reloc: Likewise.
66577         * build-aux/javacomp.sh.in: Likewise.
66578         * build-aux/javaexec.sh.in: Likewise.
66579         * build-aux/ldd.sh.in: Likewise.
66580         * build-aux/reloc-ldflags: Likewise.
66581         * build-aux/relocatable.sh.in: Likewise.
66582         * build-aux/x-to-1.in: Likewise.
66583         * check-module: Likewise.
66584         * config/srclistvars.sh: Likewise.
66585         * gnulib-tool: Likewise.
66586         * lib/acl-internal.h: Likewise.
66587         * lib/acl.c: Likewise.
66588         * lib/acl.h: Likewise.
66589         * lib/acl_entries.c: Likewise.
66590         * lib/areadlink-with-size.c: Likewise.
66591         * lib/areadlink.c: Likewise.
66592         * lib/areadlink.h: Likewise.
66593         * lib/argmatch.c: Likewise.
66594         * lib/argmatch.h: Likewise.
66595         * lib/argp-ba.c: Likewise.
66596         * lib/argp-eexst.c: Likewise.
66597         * lib/argp-fmtstream.c: Likewise.
66598         * lib/argp-fmtstream.h: Likewise.
66599         * lib/argp-fs-xinl.c: Likewise.
66600         * lib/argp-help.c: Likewise.
66601         * lib/argp-namefrob.h: Likewise.
66602         * lib/argp-parse.c: Likewise.
66603         * lib/argp-pin.c: Likewise.
66604         * lib/argp-pv.c: Likewise.
66605         * lib/argp-pvh.c: Likewise.
66606         * lib/argp-xinl.c: Likewise.
66607         * lib/argp.h: Likewise.
66608         * lib/at-func.c: Likewise.
66609         * lib/atanl.c: Likewise.
66610         * lib/backupfile.c: Likewise.
66611         * lib/backupfile.h: Likewise.
66612         * lib/basename.c: Likewise.
66613         * lib/binary-io.h: Likewise.
66614         * lib/byteswap.in.h: Likewise.
66615         * lib/c-stack.c: Likewise.
66616         * lib/c-stack.h: Likewise.
66617         * lib/c-strcasestr.c: Likewise.
66618         * lib/c-strcasestr.h: Likewise.
66619         * lib/c-strstr.c: Likewise.
66620         * lib/c-strstr.h: Likewise.
66621         * lib/c-strtod.c: Likewise.
66622         * lib/calloc.c: Likewise.
66623         * lib/canon-host.c: Likewise.
66624         * lib/canon-host.h: Likewise.
66625         * lib/canonicalize-lgpl.c: Likewise.
66626         * lib/canonicalize.c: Likewise.
66627         * lib/canonicalize.h: Likewise.
66628         * lib/ceil.c: Likewise.
66629         * lib/ceilf.c: Likewise.
66630         * lib/ceill.c: Likewise.
66631         * lib/chdir-long.c: Likewise.
66632         * lib/chdir-long.h: Likewise.
66633         * lib/chdir-safer.c: Likewise.
66634         * lib/chdir-safer.h: Likewise.
66635         * lib/chown.c: Likewise.
66636         * lib/classpath.c: Likewise.
66637         * lib/classpath.h: Likewise.
66638         * lib/clean-temp.c: Likewise.
66639         * lib/clean-temp.h: Likewise.
66640         * lib/cloexec.c: Likewise.
66641         * lib/close-stream.c: Likewise.
66642         * lib/closein.c: Likewise.
66643         * lib/closein.h: Likewise.
66644         * lib/closeout.c: Likewise.
66645         * lib/closeout.h: Likewise.
66646         * lib/concat-filename.c: Likewise.
66647         * lib/copy-file.c: Likewise.
66648         * lib/copy-file.h: Likewise.
66649         * lib/count-one-bits.h: Likewise.
66650         * lib/crc.c: Likewise.
66651         * lib/crc.h: Likewise.
66652         * lib/creat-safer.c: Likewise.
66653         * lib/csharpcomp.c: Likewise.
66654         * lib/csharpcomp.h: Likewise.
66655         * lib/csharpexec.c: Likewise.
66656         * lib/csharpexec.h: Likewise.
66657         * lib/cycle-check.c: Likewise.
66658         * lib/cycle-check.h: Likewise.
66659         * lib/diacrit.c: Likewise.
66660         * lib/diacrit.h: Likewise.
66661         * lib/diffseq.h: Likewise.
66662         * lib/dirchownmod.c: Likewise.
66663         * lib/dirent.in.h: Likewise.
66664         * lib/dirfd.c: Likewise.
66665         * lib/dirfd.h: Likewise.
66666         * lib/dirname.c: Likewise.
66667         * lib/dirname.h: Likewise.
66668         * lib/dummy.c: Likewise.
66669         * lib/dup-safer.c: Likewise.
66670         * lib/dup2.c: Likewise.
66671         * lib/eealloc.h: Likewise.
66672         * lib/error.c: Likewise.
66673         * lib/error.h: Likewise.
66674         * lib/euidaccess.c: Likewise.
66675         * lib/exclude.c: Likewise.
66676         * lib/exclude.h: Likewise.
66677         * lib/execute.c: Likewise.
66678         * lib/execute.h: Likewise.
66679         * lib/exitfail.c: Likewise.
66680         * lib/exitfail.h: Likewise.
66681         * lib/expl.c: Likewise.
66682         * lib/fatal-signal.c: Likewise.
66683         * lib/fatal-signal.h: Likewise.
66684         * lib/fbufmode.c: Likewise.
66685         * lib/fbufmode.h: Likewise.
66686         * lib/fchdir.c: Likewise.
66687         * lib/fchmodat.c: Likewise.
66688         * lib/fchownat.c: Likewise.
66689         * lib/fcntl--.h: Likewise.
66690         * lib/fcntl-safer.h: Likewise.
66691         * lib/fcntl.in.h: Likewise.
66692         * lib/fd-safer.c: Likewise.
66693         * lib/fflush.c: Likewise.
66694         * lib/file-has-acl.c: Likewise.
66695         * lib/file-set.c: Likewise.
66696         * lib/file-type.c: Likewise.
66697         * lib/file-type.h: Likewise.
66698         * lib/fileblocks.c: Likewise.
66699         * lib/filemode.c: Likewise.
66700         * lib/filemode.h: Likewise.
66701         * lib/filename.h: Likewise.
66702         * lib/filenamecat.c: Likewise.
66703         * lib/filenamecat.h: Likewise.
66704         * lib/findprog.c: Likewise.
66705         * lib/findprog.h: Likewise.
66706         * lib/float.in.h: Likewise.
66707         * lib/floor.c: Likewise.
66708         * lib/floorf.c: Likewise.
66709         * lib/floorl.c: Likewise.
66710         * lib/fopen-safer.c: Likewise.
66711         * lib/fopen.c: Likewise.
66712         * lib/fpending.c: Likewise.
66713         * lib/fpending.h: Likewise.
66714         * lib/fprintf.c: Likewise.
66715         * lib/fprintftime.h: Likewise.
66716         * lib/fpucw.h: Likewise.
66717         * lib/fpurge.c: Likewise.
66718         * lib/fpurge.h: Likewise.
66719         * lib/freadable.c: Likewise.
66720         * lib/freadable.h: Likewise.
66721         * lib/freadahead.c: Likewise.
66722         * lib/freadahead.h: Likewise.
66723         * lib/freading.c: Likewise.
66724         * lib/freading.h: Likewise.
66725         * lib/free.c: Likewise.
66726         * lib/freopen.c: Likewise.
66727         * lib/frexp.c: Likewise.
66728         * lib/frexpl.c: Likewise.
66729         * lib/fseek.c: Likewise.
66730         * lib/fseterr.c: Likewise.
66731         * lib/fseterr.h: Likewise.
66732         * lib/fstatat.c: Likewise.
66733         * lib/fstrcmp.c: Likewise.
66734         * lib/fstrcmp.h: Likewise.
66735         * lib/fsusage.c: Likewise.
66736         * lib/fsusage.h: Likewise.
66737         * lib/ftell.c: Likewise.
66738         * lib/ftello.c: Likewise.
66739         * lib/fts-cycle.c: Likewise.
66740         * lib/fts.c: Likewise.
66741         * lib/fts_.h: Likewise.
66742         * lib/full-read.c: Likewise.
66743         * lib/full-read.h: Likewise.
66744         * lib/full-write.c: Likewise.
66745         * lib/full-write.h: Likewise.
66746         * lib/fwritable.c: Likewise.
66747         * lib/fwritable.h: Likewise.
66748         * lib/fwriteerror.c: Likewise.
66749         * lib/fwriteerror.h: Likewise.
66750         * lib/fwriting.c: Likewise.
66751         * lib/fwriting.h: Likewise.
66752         * lib/gcd.c: Likewise.
66753         * lib/gcd.h: Likewise.
66754         * lib/getcwd.c: Likewise.
66755         * lib/getdate.h: Likewise.
66756         * lib/getdate.y: Likewise.
66757         * lib/getdomainname.c: Likewise.
66758         * lib/getdomainname.h: Likewise.
66759         * lib/getgroups.c: Likewise.
66760         * lib/gethostname.c: Likewise.
66761         * lib/gethrxtime.c: Likewise.
66762         * lib/gethrxtime.h: Likewise.
66763         * lib/getloadavg.c: Likewise.
66764         * lib/getndelim2.c: Likewise.
66765         * lib/getndelim2.h: Likewise.
66766         * lib/getnline.c: Likewise.
66767         * lib/getnline.h: Likewise.
66768         * lib/getopt.c: Likewise.
66769         * lib/getopt.in.h: Likewise.
66770         * lib/getopt1.c: Likewise.
66771         * lib/getopt_int.h: Likewise.
66772         * lib/getpagesize.h: Likewise.
66773         * lib/getsubopt.c: Likewise.
66774         * lib/gettime.c: Likewise.
66775         * lib/getugroups.c: Likewise.
66776         * lib/getugroups.h: Likewise.
66777         * lib/getusershell.c: Likewise.
66778         * lib/gl_anyavltree_list1.h: Likewise.
66779         * lib/gl_anyavltree_list2.h: Likewise.
66780         * lib/gl_anyhash_list1.h: Likewise.
66781         * lib/gl_anyhash_list2.h: Likewise.
66782         * lib/gl_anylinked_list1.h: Likewise.
66783         * lib/gl_anylinked_list2.h: Likewise.
66784         * lib/gl_anyrbtree_list1.h: Likewise.
66785         * lib/gl_anyrbtree_list2.h: Likewise.
66786         * lib/gl_anytree_list1.h: Likewise.
66787         * lib/gl_anytree_list2.h: Likewise.
66788         * lib/gl_anytree_oset.h: Likewise.
66789         * lib/gl_anytreehash_list1.h: Likewise.
66790         * lib/gl_anytreehash_list2.h: Likewise.
66791         * lib/gl_array_list.c: Likewise.
66792         * lib/gl_array_list.h: Likewise.
66793         * lib/gl_array_oset.c: Likewise.
66794         * lib/gl_array_oset.h: Likewise.
66795         * lib/gl_avltree_list.c: Likewise.
66796         * lib/gl_avltree_list.h: Likewise.
66797         * lib/gl_avltree_oset.c: Likewise.
66798         * lib/gl_avltree_oset.h: Likewise.
66799         * lib/gl_avltreehash_list.c: Likewise.
66800         * lib/gl_avltreehash_list.h: Likewise.
66801         * lib/gl_carray_list.c: Likewise.
66802         * lib/gl_carray_list.h: Likewise.
66803         * lib/gl_linked_list.c: Likewise.
66804         * lib/gl_linked_list.h: Likewise.
66805         * lib/gl_linkedhash_list.c: Likewise.
66806         * lib/gl_linkedhash_list.h: Likewise.
66807         * lib/gl_list.c: Likewise.
66808         * lib/gl_list.h: Likewise.
66809         * lib/gl_oset.c: Likewise.
66810         * lib/gl_oset.h: Likewise.
66811         * lib/gl_rbtree_list.c: Likewise.
66812         * lib/gl_rbtree_list.h: Likewise.
66813         * lib/gl_rbtree_oset.c: Likewise.
66814         * lib/gl_rbtree_oset.h: Likewise.
66815         * lib/gl_rbtreehash_list.c: Likewise.
66816         * lib/gl_rbtreehash_list.h: Likewise.
66817         * lib/gl_sublist.c: Likewise.
66818         * lib/gl_sublist.h: Likewise.
66819         * lib/group-member.c: Likewise.
66820         * lib/group-member.h: Likewise.
66821         * lib/hard-locale.c: Likewise.
66822         * lib/hard-locale.h: Likewise.
66823         * lib/hash-pjw.c: Likewise.
66824         * lib/hash-pjw.h: Likewise.
66825         * lib/hash-triple.c: Likewise.
66826         * lib/hash.c: Likewise.
66827         * lib/hash.h: Likewise.
66828         * lib/human.c: Likewise.
66829         * lib/human.h: Likewise.
66830         * lib/i-ring.c: Likewise.
66831         * lib/i-ring.h: Likewise.
66832         * lib/idcache.c: Likewise.
66833         * lib/imaxabs.c: Likewise.
66834         * lib/imaxdiv.c: Likewise.
66835         * lib/inet_pton.c: Likewise.
66836         * lib/inet_pton.h: Likewise.
66837         * lib/intprops.h: Likewise.
66838         * lib/inttostr.c: Likewise.
66839         * lib/inttostr.h: Likewise.
66840         * lib/inttypes.in.h: Likewise.
66841         * lib/isapipe.c: Likewise.
66842         * lib/isdir.c: Likewise.
66843         * lib/isnan.c: Likewise.
66844         * lib/isnan.h: Likewise.
66845         * lib/isnanf.c: Likewise.
66846         * lib/isnanf.h: Likewise.
66847         * lib/isnanl-nolibm.h: Likewise.
66848         * lib/isnanl.c: Likewise.
66849         * lib/isnanl.h: Likewise.
66850         * lib/javacomp.c: Likewise.
66851         * lib/javacomp.h: Likewise.
66852         * lib/javaexec.c: Likewise.
66853         * lib/javaexec.h: Likewise.
66854         * lib/javaversion.c: Likewise.
66855         * lib/javaversion.h: Likewise.
66856         * lib/javaversion.java: Likewise.
66857         * lib/lbrkprop.h: Likewise.
66858         * lib/lchmod.h: Likewise.
66859         * lib/lchown.c: Likewise.
66860         * lib/ldexpl.c: Likewise.
66861         * lib/linebreak.c: Likewise.
66862         * lib/linebreak.h: Likewise.
66863         * lib/linebuffer.c: Likewise.
66864         * lib/linebuffer.h: Likewise.
66865         * lib/locale.in.h: Likewise.
66866         * lib/logl.c: Likewise.
66867         * lib/long-options.c: Likewise.
66868         * lib/long-options.h: Likewise.
66869         * lib/lstat.c: Likewise.
66870         * lib/lstat.h: Likewise.
66871         * lib/math.in.h: Likewise.
66872         * lib/mbchar.c: Likewise.
66873         * lib/mbchar.h: Likewise.
66874         * lib/mbfile.h: Likewise.
66875         * lib/mbiter.h: Likewise.
66876         * lib/mbscasecmp.c: Likewise.
66877         * lib/mbscasestr.c: Likewise.
66878         * lib/mbschr.c: Likewise.
66879         * lib/mbscspn.c: Likewise.
66880         * lib/mbslen.c: Likewise.
66881         * lib/mbsncasecmp.c: Likewise.
66882         * lib/mbsnlen.c: Likewise.
66883         * lib/mbspbrk.c: Likewise.
66884         * lib/mbspcasecmp.c: Likewise.
66885         * lib/mbsrchr.c: Likewise.
66886         * lib/mbssep.c: Likewise.
66887         * lib/mbsspn.c: Likewise.
66888         * lib/mbsstr.c: Likewise.
66889         * lib/mbstok_r.c: Likewise.
66890         * lib/mbswidth.c: Likewise.
66891         * lib/mbswidth.h: Likewise.
66892         * lib/mbuiter.h: Likewise.
66893         * lib/memcasecmp.c: Likewise.
66894         * lib/memcasecmp.h: Likewise.
66895         * lib/memchr.c: Likewise.
66896         * lib/memcmp.c: Likewise.
66897         * lib/memcoll.c: Likewise.
66898         * lib/memcoll.h: Likewise.
66899         * lib/memcpy.c: Likewise.
66900         * lib/memrchr.c: Likewise.
66901         * lib/mkancesdirs.c: Likewise.
66902         * lib/mkdir-p.c: Likewise.
66903         * lib/mkdir-p.h: Likewise.
66904         * lib/mkdir.c: Likewise.
66905         * lib/mkdirat.c: Likewise.
66906         * lib/mkdtemp.c: Likewise.
66907         * lib/mkstemp-safer.c: Likewise.
66908         * lib/mkstemp.c: Likewise.
66909         * lib/modechange.c: Likewise.
66910         * lib/modechange.h: Likewise.
66911         * lib/mountlist.c: Likewise.
66912         * lib/mountlist.h: Likewise.
66913         * lib/mpsort.c: Likewise.
66914         * lib/nanosleep.c: Likewise.
66915         * lib/obstack.c: Likewise.
66916         * lib/obstack.h: Likewise.
66917         * lib/open-safer.c: Likewise.
66918         * lib/open.c: Likewise.
66919         * lib/openat-die.c: Likewise.
66920         * lib/openat-priv.h: Likewise.
66921         * lib/openat-proc.c: Likewise.
66922         * lib/openat.c: Likewise.
66923         * lib/openat.h: Likewise.
66924         * lib/pagealign_alloc.c: Likewise.
66925         * lib/pagealign_alloc.h: Likewise.
66926         * lib/physmem.c: Likewise.
66927         * lib/physmem.h: Likewise.
66928         * lib/pipe-safer.c: Likewise.
66929         * lib/pipe.c: Likewise.
66930         * lib/pipe.h: Likewise.
66931         * lib/posixtm.c: Likewise.
66932         * lib/posixtm.h: Likewise.
66933         * lib/posixver.c: Likewise.
66934         * lib/printf-frexp.c: Likewise.
66935         * lib/printf-frexp.h: Likewise.
66936         * lib/printf-frexpl.c: Likewise.
66937         * lib/printf-frexpl.h: Likewise.
66938         * lib/printf.c: Likewise.
66939         * lib/progname.c: Likewise.
66940         * lib/progname.h: Likewise.
66941         * lib/progreloc.c: Likewise.
66942         * lib/putenv.c: Likewise.
66943         * lib/quote.c: Likewise.
66944         * lib/quote.h: Likewise.
66945         * lib/quotearg.c: Likewise.
66946         * lib/quotearg.h: Likewise.
66947         * lib/raise.c: Likewise.
66948         * lib/readline.c: Likewise.
66949         * lib/readline.h: Likewise.
66950         * lib/readlink.c: Likewise.
66951         * lib/readtokens.c: Likewise.
66952         * lib/readtokens.h: Likewise.
66953         * lib/readtokens0.c: Likewise.
66954         * lib/readtokens0.h: Likewise.
66955         * lib/readutmp.c: Likewise.
66956         * lib/readutmp.h: Likewise.
66957         * lib/realloc.c: Likewise.
66958         * lib/relocwrapper.c: Likewise.
66959         * lib/rename-dest-slash.c: Likewise.
66960         * lib/rename.c: Likewise.
66961         * lib/rmdir.c: Likewise.
66962         * lib/rpmatch.c: Likewise.
66963         * lib/safe-read.c: Likewise.
66964         * lib/safe-read.h: Likewise.
66965         * lib/safe-write.c: Likewise.
66966         * lib/safe-write.h: Likewise.
66967         * lib/same-inode.h: Likewise.
66968         * lib/same.c: Likewise.
66969         * lib/same.h: Likewise.
66970         * lib/save-cwd.c: Likewise.
66971         * lib/save-cwd.h: Likewise.
66972         * lib/savedir.c: Likewise.
66973         * lib/savedir.h: Likewise.
66974         * lib/savewd.c: Likewise.
66975         * lib/savewd.h: Likewise.
66976         * lib/search.in.h: Likewise.
66977         * lib/setenv.c: Likewise.
66978         * lib/setenv.h: Likewise.
66979         * lib/settime.c: Likewise.
66980         * lib/sh-quote.c: Likewise.
66981         * lib/sh-quote.h: Likewise.
66982         * lib/sig2str.c: Likewise.
66983         * lib/sig2str.h: Likewise.
66984         * lib/signal.in.h: Likewise.
66985         * lib/signbitd.c: Likewise.
66986         * lib/signbitf.c: Likewise.
66987         * lib/signbitl.c: Likewise.
66988         * lib/sigprocmask.c: Likewise.
66989         * lib/sincosl.c: Likewise.
66990         * lib/sleep.c: Likewise.
66991         * lib/sprintf.c: Likewise.
66992         * lib/sqrtl.c: Likewise.
66993         * lib/stat-time.h: Likewise.
66994         * lib/stdio--.h: Likewise.
66995         * lib/stdio-safer.h: Likewise.
66996         * lib/stdlib--.h: Likewise.
66997         * lib/stdlib-safer.h: Likewise.
66998         * lib/stdlib.in.h: Likewise.
66999         * lib/stpcpy.c: Likewise.
67000         * lib/stpncpy.c: Likewise.
67001         * lib/strchrnul.c: Likewise.
67002         * lib/strcspn.c: Likewise.
67003         * lib/strerror.c: Likewise.
67004         * lib/strftime.c: Likewise.
67005         * lib/strftime.h: Likewise.
67006         * lib/striconveh.c: Likewise.
67007         * lib/striconveh.h: Likewise.
67008         * lib/striconveha.c: Likewise.
67009         * lib/striconveha.h: Likewise.
67010         * lib/stripslash.c: Likewise.
67011         * lib/strnlen1.c: Likewise.
67012         * lib/strnlen1.h: Likewise.
67013         * lib/strtod.c: Likewise.
67014         * lib/strtoimax.c: Likewise.
67015         * lib/strtok_r.c: Likewise.
67016         * lib/strtol.c: Likewise.
67017         * lib/strtoll.c: Likewise.
67018         * lib/strtoul.c: Likewise.
67019         * lib/strtoull.c: Likewise.
67020         * lib/sysexits.in.h: Likewise.
67021         * lib/tempname.c: Likewise.
67022         * lib/tempname.h: Likewise.
67023         * lib/timespec.h: Likewise.
67024         * lib/tls.c: Likewise.
67025         * lib/tls.h: Likewise.
67026         * lib/tmpdir.c: Likewise.
67027         * lib/tmpdir.h: Likewise.
67028         * lib/tmpfile-safer.c: Likewise.
67029         * lib/tmpfile.c: Likewise.
67030         * lib/trigl.c: Likewise.
67031         * lib/trigl.h: Likewise.
67032         * lib/trim.c: Likewise.
67033         * lib/trim.h: Likewise.
67034         * lib/trunc.c: Likewise.
67035         * lib/truncf.c: Likewise.
67036         * lib/truncl.c: Likewise.
67037         * lib/tsearch.c: Likewise.
67038         * lib/unicodeio.c: Likewise.
67039         * lib/unicodeio.h: Likewise.
67040         * lib/unistd--.h: Likewise.
67041         * lib/unistd-safer.h: Likewise.
67042         * lib/unistdio/ulc-fprintf.c: Likewise.
67043         * lib/unistdio/ulc-vfprintf.c: Likewise.
67044         * lib/unlinkdir.c: Likewise.
67045         * lib/unlinkdir.h: Likewise.
67046         * lib/unlocked-io.h: Likewise.
67047         * lib/unsetenv.c: Likewise.
67048         * lib/userspec.c: Likewise.
67049         * lib/utime.c: Likewise.
67050         * lib/utimecmp.c: Likewise.
67051         * lib/utimecmp.h: Likewise.
67052         * lib/utimens.c: Likewise.
67053         * lib/verify.h: Likewise.
67054         * lib/verror.c: Likewise.
67055         * lib/verror.h: Likewise.
67056         * lib/version-etc-fsf.c: Likewise.
67057         * lib/version-etc.c: Likewise.
67058         * lib/version-etc.h: Likewise.
67059         * lib/vfprintf.c: Likewise.
67060         * lib/vprintf.c: Likewise.
67061         * lib/vsprintf.c: Likewise.
67062         * lib/w32spawn.h: Likewise.
67063         * lib/wait-process.c: Likewise.
67064         * lib/wait-process.h: Likewise.
67065         * lib/wcwidth.c: Likewise.
67066         * lib/write-any-file.c: Likewise.
67067         * lib/xalloc-die.c: Likewise.
67068         * lib/xalloc.h: Likewise.
67069         * lib/xasprintf.c: Likewise.
67070         * lib/xgetcwd.c: Likewise.
67071         * lib/xgetcwd.h: Likewise.
67072         * lib/xgetdomainname.c: Likewise.
67073         * lib/xgetdomainname.h: Likewise.
67074         * lib/xgethostname.c: Likewise.
67075         * lib/xmalloc.c: Likewise.
67076         * lib/xmalloca.c: Likewise.
67077         * lib/xmalloca.h: Likewise.
67078         * lib/xmemcoll.c: Likewise.
67079         * lib/xnanosleep.c: Likewise.
67080         * lib/xreadlink.c: Likewise.
67081         * lib/xreadlink.h: Likewise.
67082         * lib/xsetenv.c: Likewise.
67083         * lib/xsetenv.h: Likewise.
67084         * lib/xstriconv.c: Likewise.
67085         * lib/xstriconv.h: Likewise.
67086         * lib/xstrndup.c: Likewise.
67087         * lib/xstrndup.h: Likewise.
67088         * lib/xstrtod.c: Likewise.
67089         * lib/xstrtod.h: Likewise.
67090         * lib/xstrtol-error.c: Likewise.
67091         * lib/xstrtol.c: Likewise.
67092         * lib/xstrtol.h: Likewise.
67093         * lib/xtime.h: Likewise.
67094         * lib/xvasprintf.c: Likewise.
67095         * lib/xvasprintf.h: Likewise.
67096         * lib/yesno.c: Likewise.
67097         * lib/yesno.h: Likewise.
67098         * posix-modules: Likewise.
67099         * tests/test-alloca-opt.c: Likewise.
67100         * tests/test-arcfour.c: Likewise.
67101         * tests/test-arctwo.c: Likewise.
67102         * tests/test-argmatch.c: Likewise.
67103         * tests/test-argp-2.sh: Likewise.
67104         * tests/test-argp.c: Likewise.
67105         * tests/test-arpa_inet.c: Likewise.
67106         * tests/test-array_list.c: Likewise.
67107         * tests/test-array_oset.c: Likewise.
67108         * tests/test-atexit.c: Likewise.
67109         * tests/test-avltree_list.c: Likewise.
67110         * tests/test-avltree_oset.c: Likewise.
67111         * tests/test-avltreehash_list.c: Likewise.
67112         * tests/test-base64.c: Likewise.
67113         * tests/test-binary-io.c: Likewise.
67114         * tests/test-byteswap.c: Likewise.
67115         * tests/test-c-ctype.c: Likewise.
67116         * tests/test-c-strcasecmp.c: Likewise.
67117         * tests/test-c-strcasestr.c: Likewise.
67118         * tests/test-c-strncasecmp.c: Likewise.
67119         * tests/test-c-strstr.c: Likewise.
67120         * tests/test-canonicalize-lgpl.c: Likewise.
67121         * tests/test-canonicalize.c: Likewise.
67122         * tests/test-carray_list.c: Likewise.
67123         * tests/test-ceilf.c: Likewise.
67124         * tests/test-ceill.c: Likewise.
67125         * tests/test-count-one-bits.c: Likewise.
67126         * tests/test-crc.c: Likewise.
67127         * tests/test-dirname.c: Likewise.
67128         * tests/test-fbufmode.c: Likewise.
67129         * tests/test-fcntl.c: Likewise.
67130         * tests/test-fflush.c: Likewise.
67131         * tests/test-floorf.c: Likewise.
67132         * tests/test-floorl.c: Likewise.
67133         * tests/test-fopen.c: Likewise.
67134         * tests/test-fprintf-posix.c: Likewise.
67135         * tests/test-fprintf-posix.h: Likewise.
67136         * tests/test-fpurge.c: Likewise.
67137         * tests/test-freadable.c: Likewise.
67138         * tests/test-freadahead.c: Likewise.
67139         * tests/test-freading.c: Likewise.
67140         * tests/test-freopen.c: Likewise.
67141         * tests/test-frexp.c: Likewise.
67142         * tests/test-frexpl.c: Likewise.
67143         * tests/test-fseek.c: Likewise.
67144         * tests/test-fseeko.c: Likewise.
67145         * tests/test-fseterr.c: Likewise.
67146         * tests/test-fstrcmp.c: Likewise.
67147         * tests/test-ftell.c: Likewise.
67148         * tests/test-ftello.c: Likewise.
67149         * tests/test-fwritable.c: Likewise.
67150         * tests/test-fwriting.c: Likewise.
67151         * tests/test-getaddrinfo.c: Likewise.
67152         * tests/test-getpass.c: Likewise.
67153         * tests/test-gettimeofday.c: Likewise.
67154         * tests/test-hmac-md5.c: Likewise.
67155         * tests/test-hmac-sha1.c: Likewise.
67156         * tests/test-iconv.c: Likewise.
67157         * tests/test-iconvme.c: Likewise.
67158         * tests/test-inttypes.c: Likewise.
67159         * tests/test-isnan.c: Likewise.
67160         * tests/test-isnanf.c: Likewise.
67161         * tests/test-isnanl-nolibm.c: Likewise.
67162         * tests/test-isnanl.c: Likewise.
67163         * tests/test-isnanl.h: Likewise.
67164         * tests/test-ldexpl.c: Likewise.
67165         * tests/test-linked_list.c: Likewise.
67166         * tests/test-linkedhash_list.c: Likewise.
67167         * tests/test-locale.c: Likewise.
67168         * tests/test-localename.c: Likewise.
67169         * tests/test-lock.c: Likewise.
67170         * tests/test-lseek.c: Likewise.
67171         * tests/test-malloca.c: Likewise.
67172         * tests/test-math.c: Likewise.
67173         * tests/test-mbscasecmp.c: Likewise.
67174         * tests/test-mbscasestr1.c: Likewise.
67175         * tests/test-mbscasestr2.c: Likewise.
67176         * tests/test-mbscasestr3.c: Likewise.
67177         * tests/test-mbscasestr4.c: Likewise.
67178         * tests/test-mbschr.c: Likewise.
67179         * tests/test-mbscspn.c: Likewise.
67180         * tests/test-mbsncasecmp.c: Likewise.
67181         * tests/test-mbspbrk.c: Likewise.
67182         * tests/test-mbspcasecmp.c: Likewise.
67183         * tests/test-mbsrchr.c: Likewise.
67184         * tests/test-mbsspn.c: Likewise.
67185         * tests/test-mbsstr1.c: Likewise.
67186         * tests/test-mbsstr2.c: Likewise.
67187         * tests/test-mbsstr3.c: Likewise.
67188         * tests/test-md5.c: Likewise.
67189         * tests/test-memmem.c: Likewise.
67190         * tests/test-netinet_in.c: Likewise.
67191         * tests/test-open.c: Likewise.
67192         * tests/test-printf-frexp.c: Likewise.
67193         * tests/test-printf-frexpl.c: Likewise.
67194         * tests/test-printf-posix.c: Likewise.
67195         * tests/test-printf-posix.h: Likewise.
67196         * tests/test-rbtree_list.c: Likewise.
67197         * tests/test-rbtree_oset.c: Likewise.
67198         * tests/test-rbtreehash_list.c: Likewise.
67199         * tests/test-read-file.c: Likewise.
67200         * tests/test-rijndael.c: Likewise.
67201         * tests/test-search.c: Likewise.
67202         * tests/test-signbit.c: Likewise.
67203         * tests/test-sleep.c: Likewise.
67204         * tests/test-snprintf-posix.c: Likewise.
67205         * tests/test-snprintf-posix.h: Likewise.
67206         * tests/test-snprintf.c: Likewise.
67207         * tests/test-sprintf-posix.c: Likewise.
67208         * tests/test-sprintf-posix.h: Likewise.
67209         * tests/test-stat-time.c: Likewise.
67210         * tests/test-stdbool.c: Likewise.
67211         * tests/test-stdint.c: Likewise.
67212         * tests/test-stdio.c: Likewise.
67213         * tests/test-stdlib.c: Likewise.
67214         * tests/test-stpncpy.c: Likewise.
67215         * tests/test-strcasestr.c: Likewise.
67216         * tests/test-striconv.c: Likewise.
67217         * tests/test-striconveh.c: Likewise.
67218         * tests/test-striconveha.c: Likewise.
67219         * tests/test-string.c: Likewise.
67220         * tests/test-sys_select.c: Likewise.
67221         * tests/test-sys_socket.c: Likewise.
67222         * tests/test-sys_stat.c: Likewise.
67223         * tests/test-sys_time.c: Likewise.
67224         * tests/test-sysexits.c: Likewise.
67225         * tests/test-time.c: Likewise.
67226         * tests/test-tls.c: Likewise.
67227         * tests/test-trunc.c: Likewise.
67228         * tests/test-truncf.c: Likewise.
67229         * tests/test-truncl.c: Likewise.
67230         * tests/test-unistd.c: Likewise.
67231         * tests/test-vasnprintf-posix.c: Likewise.
67232         * tests/test-vasnprintf-posix2.c: Likewise.
67233         * tests/test-vasnprintf.c: Likewise.
67234         * tests/test-vasprintf-posix.c: Likewise.
67235         * tests/test-vasprintf.c: Likewise.
67236         * tests/test-verify.c: Likewise.
67237         * tests/test-vfprintf-posix.c: Likewise.
67238         * tests/test-vprintf-posix.c: Likewise.
67239         * tests/test-vsnprintf-posix.c: Likewise.
67240         * tests/test-vsnprintf.c: Likewise.
67241         * tests/test-vsprintf-posix.c: Likewise.
67242         * tests/test-wchar.c: Likewise.
67243         * tests/test-wctype.c: Likewise.
67244         * tests/test-wcwidth.c: Likewise.
67245         * tests/test-xstrtol.c: Likewise.
67246         * tests/test-xvasprintf.c: Likewise.
67247         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67248         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67249         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67250         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67251         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67252         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67253         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67254         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67255         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67256         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67257         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67258         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67259         * tests/uniname/test-uninames.c: Likewise.
67260         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67261         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67262         * tests/unistdio/test-u16-printf1.h: Likewise.
67263         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67264         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67265         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67266         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67267         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67268         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67269         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67270         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67271         * tests/unistdio/test-u32-printf1.h: Likewise.
67272         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67273         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67274         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67275         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67276         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67277         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67278         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67279         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67280         * tests/unistdio/test-u8-printf1.h: Likewise.
67281         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67282         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67283         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67284         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67285         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67286         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67287         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67288         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67289         * tests/unistdio/test-ulc-printf1.h: Likewise.
67290         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67291         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67292         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67293         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67294         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67295         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67296         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67297         * tests/uniwidth/test-u16-width.c: Likewise.
67298         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67299         * tests/uniwidth/test-u32-width.c: Likewise.
67300         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67301         * tests/uniwidth/test-u8-width.c: Likewise.
67302         * tests/uniwidth/test-uc_width.c: Likewise.
67303         * config/srclist-update: Likewise.
67304         (fixlicense): Update to GPLv3+.
67305
67306         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67307         * tests/test-tsearch.c: Change copyright notice.
67308
67309         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67310         * lib/c-strcaseeq.h: Change copyright notice.
67311         * lib/streq.h: Likewise.
67312         * lib/uniconv.h: Likewise.
67313         * lib/uniconv/u-conv-from-enc.h: Likewise.
67314         * lib/uniconv/u-conv-to-enc.h: Likewise.
67315         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67316         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67317         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67318         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67319         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67320         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67321         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67322         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67323         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67324         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67325         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67326         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67327         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67328         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67329         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67330         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67331         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67332         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67333         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67334         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67335         * lib/uniname.h: Likewise.
67336         * lib/uniname/uniname.c: Likewise.
67337         * lib/unistdio.h: Likewise.
67338         * lib/unistdio/u-asnprintf.h: Likewise.
67339         * lib/unistdio/u-asprintf.h: Likewise.
67340         * lib/unistdio/u-printf-args.c: Likewise.
67341         * lib/unistdio/u-printf-args.h: Likewise.
67342         * lib/unistdio/u-printf-parse.h: Likewise.
67343         * lib/unistdio/u-snprintf.h: Likewise.
67344         * lib/unistdio/u-sprintf.h: Likewise.
67345         * lib/unistdio/u-vasprintf.h: Likewise.
67346         * lib/unistdio/u-vsnprintf.h: Likewise.
67347         * lib/unistdio/u-vsprintf.h: Likewise.
67348         * lib/unistdio/u16-asnprintf.c: Likewise.
67349         * lib/unistdio/u16-asprintf.c: Likewise.
67350         * lib/unistdio/u16-printf-parse.c: Likewise.
67351         * lib/unistdio/u16-snprintf.c: Likewise.
67352         * lib/unistdio/u16-sprintf.c: Likewise.
67353         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67354         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67355         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67356         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67357         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67358         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67359         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67360         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67361         * lib/unistdio/u16-vasnprintf.c: Likewise.
67362         * lib/unistdio/u16-vasprintf.c: Likewise.
67363         * lib/unistdio/u16-vsnprintf.c: Likewise.
67364         * lib/unistdio/u16-vsprintf.c: Likewise.
67365         * lib/unistdio/u32-asnprintf.c: Likewise.
67366         * lib/unistdio/u32-asprintf.c: Likewise.
67367         * lib/unistdio/u32-printf-parse.c: Likewise.
67368         * lib/unistdio/u32-snprintf.c: Likewise.
67369         * lib/unistdio/u32-sprintf.c: Likewise.
67370         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67371         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67372         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67373         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67374         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67375         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67376         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67377         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67378         * lib/unistdio/u32-vasnprintf.c: Likewise.
67379         * lib/unistdio/u32-vasprintf.c: Likewise.
67380         * lib/unistdio/u32-vsnprintf.c: Likewise.
67381         * lib/unistdio/u32-vsprintf.c: Likewise.
67382         * lib/unistdio/u8-asnprintf.c: Likewise.
67383         * lib/unistdio/u8-asprintf.c: Likewise.
67384         * lib/unistdio/u8-printf-parse.c: Likewise.
67385         * lib/unistdio/u8-snprintf.c: Likewise.
67386         * lib/unistdio/u8-sprintf.c: Likewise.
67387         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67388         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67389         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67390         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67391         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67392         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67393         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67394         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67395         * lib/unistdio/u8-vasnprintf.c: Likewise.
67396         * lib/unistdio/u8-vasprintf.c: Likewise.
67397         * lib/unistdio/u8-vsnprintf.c: Likewise.
67398         * lib/unistdio/u8-vsprintf.c: Likewise.
67399         * lib/unistdio/ulc-asnprintf.c: Likewise.
67400         * lib/unistdio/ulc-asprintf.c: Likewise.
67401         * lib/unistdio/ulc-printf-parse.c: Likewise.
67402         * lib/unistdio/ulc-snprintf.c: Likewise.
67403         * lib/unistdio/ulc-sprintf.c: Likewise.
67404         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67405         * lib/unistdio/ulc-vasprintf.c: Likewise.
67406         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67407         * lib/unistdio/ulc-vsprintf.c: Likewise.
67408         * lib/unistr.h: Likewise.
67409         * lib/unistr/u-cpy-alloc.h: Likewise.
67410         * lib/unistr/u-cpy.h: Likewise.
67411         * lib/unistr/u-endswith.h: Likewise.
67412         * lib/unistr/u-move.h: Likewise.
67413         * lib/unistr/u-set.h: Likewise.
67414         * lib/unistr/u-startswith.h: Likewise.
67415         * lib/unistr/u-stpcpy.h: Likewise.
67416         * lib/unistr/u-stpncpy.h: Likewise.
67417         * lib/unistr/u-strcat.h: Likewise.
67418         * lib/unistr/u-strcpy.h: Likewise.
67419         * lib/unistr/u-strcspn.h: Likewise.
67420         * lib/unistr/u-strdup.h: Likewise.
67421         * lib/unistr/u-strlen.h: Likewise.
67422         * lib/unistr/u-strncat.h: Likewise.
67423         * lib/unistr/u-strncpy.h: Likewise.
67424         * lib/unistr/u-strnlen.h: Likewise.
67425         * lib/unistr/u-strpbrk.h: Likewise.
67426         * lib/unistr/u-strspn.h: Likewise.
67427         * lib/unistr/u-strstr.h: Likewise.
67428         * lib/unistr/u-strtok.h: Likewise.
67429         * lib/unistr/u16-check.c: Likewise.
67430         * lib/unistr/u16-chr.c: Likewise.
67431         * lib/unistr/u16-cmp.c: Likewise.
67432         * lib/unistr/u16-cpy-alloc.c: Likewise.
67433         * lib/unistr/u16-cpy.c: Likewise.
67434         * lib/unistr/u16-endswith.c: Likewise.
67435         * lib/unistr/u16-mblen.c: Likewise.
67436         * lib/unistr/u16-mbsnlen.c: Likewise.
67437         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67438         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67439         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67440         * lib/unistr/u16-mbtouc.c: Likewise.
67441         * lib/unistr/u16-mbtoucr.c: Likewise.
67442         * lib/unistr/u16-move.c: Likewise.
67443         * lib/unistr/u16-next.c: Likewise.
67444         * lib/unistr/u16-prev.c: Likewise.
67445         * lib/unistr/u16-set.c: Likewise.
67446         * lib/unistr/u16-startswith.c: Likewise.
67447         * lib/unistr/u16-stpcpy.c: Likewise.
67448         * lib/unistr/u16-stpncpy.c: Likewise.
67449         * lib/unistr/u16-strcat.c: Likewise.
67450         * lib/unistr/u16-strchr.c: Likewise.
67451         * lib/unistr/u16-strcmp.c: Likewise.
67452         * lib/unistr/u16-strcpy.c: Likewise.
67453         * lib/unistr/u16-strcspn.c: Likewise.
67454         * lib/unistr/u16-strdup.c: Likewise.
67455         * lib/unistr/u16-strlen.c: Likewise.
67456         * lib/unistr/u16-strmblen.c: Likewise.
67457         * lib/unistr/u16-strmbtouc.c: Likewise.
67458         * lib/unistr/u16-strncat.c: Likewise.
67459         * lib/unistr/u16-strncmp.c: Likewise.
67460         * lib/unistr/u16-strncpy.c: Likewise.
67461         * lib/unistr/u16-strnlen.c: Likewise.
67462         * lib/unistr/u16-strpbrk.c: Likewise.
67463         * lib/unistr/u16-strrchr.c: Likewise.
67464         * lib/unistr/u16-strspn.c: Likewise.
67465         * lib/unistr/u16-strstr.c: Likewise.
67466         * lib/unistr/u16-strtok.c: Likewise.
67467         * lib/unistr/u16-to-u32.c: Likewise.
67468         * lib/unistr/u16-to-u8.c: Likewise.
67469         * lib/unistr/u16-uctomb-aux.c: Likewise.
67470         * lib/unistr/u16-uctomb.c: Likewise.
67471         * lib/unistr/u32-check.c: Likewise.
67472         * lib/unistr/u32-chr.c: Likewise.
67473         * lib/unistr/u32-cmp.c: Likewise.
67474         * lib/unistr/u32-cpy-alloc.c: Likewise.
67475         * lib/unistr/u32-cpy.c: Likewise.
67476         * lib/unistr/u32-endswith.c: Likewise.
67477         * lib/unistr/u32-mblen.c: Likewise.
67478         * lib/unistr/u32-mbsnlen.c: Likewise.
67479         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67480         * lib/unistr/u32-mbtouc.c: Likewise.
67481         * lib/unistr/u32-mbtoucr.c: Likewise.
67482         * lib/unistr/u32-move.c: Likewise.
67483         * lib/unistr/u32-next.c: Likewise.
67484         * lib/unistr/u32-prev.c: Likewise.
67485         * lib/unistr/u32-set.c: Likewise.
67486         * lib/unistr/u32-startswith.c: Likewise.
67487         * lib/unistr/u32-stpcpy.c: Likewise.
67488         * lib/unistr/u32-stpncpy.c: Likewise.
67489         * lib/unistr/u32-strcat.c: Likewise.
67490         * lib/unistr/u32-strchr.c: Likewise.
67491         * lib/unistr/u32-strcmp.c: Likewise.
67492         * lib/unistr/u32-strcpy.c: Likewise.
67493         * lib/unistr/u32-strcspn.c: Likewise.
67494         * lib/unistr/u32-strdup.c: Likewise.
67495         * lib/unistr/u32-strlen.c: Likewise.
67496         * lib/unistr/u32-strmblen.c: Likewise.
67497         * lib/unistr/u32-strmbtouc.c: Likewise.
67498         * lib/unistr/u32-strncat.c: Likewise.
67499         * lib/unistr/u32-strncmp.c: Likewise.
67500         * lib/unistr/u32-strncpy.c: Likewise.
67501         * lib/unistr/u32-strnlen.c: Likewise.
67502         * lib/unistr/u32-strpbrk.c: Likewise.
67503         * lib/unistr/u32-strrchr.c: Likewise.
67504         * lib/unistr/u32-strspn.c: Likewise.
67505         * lib/unistr/u32-strstr.c: Likewise.
67506         * lib/unistr/u32-strtok.c: Likewise.
67507         * lib/unistr/u32-to-u16.c: Likewise.
67508         * lib/unistr/u32-to-u8.c: Likewise.
67509         * lib/unistr/u32-uctomb.c: Likewise.
67510         * lib/unistr/u8-check.c: Likewise.
67511         * lib/unistr/u8-chr.c: Likewise.
67512         * lib/unistr/u8-cmp.c: Likewise.
67513         * lib/unistr/u8-cpy-alloc.c: Likewise.
67514         * lib/unistr/u8-cpy.c: Likewise.
67515         * lib/unistr/u8-endswith.c: Likewise.
67516         * lib/unistr/u8-mblen.c: Likewise.
67517         * lib/unistr/u8-mbsnlen.c: Likewise.
67518         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67519         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67520         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67521         * lib/unistr/u8-mbtouc.c: Likewise.
67522         * lib/unistr/u8-mbtoucr.c: Likewise.
67523         * lib/unistr/u8-move.c: Likewise.
67524         * lib/unistr/u8-next.c: Likewise.
67525         * lib/unistr/u8-prev.c: Likewise.
67526         * lib/unistr/u8-set.c: Likewise.
67527         * lib/unistr/u8-startswith.c: Likewise.
67528         * lib/unistr/u8-stpcpy.c: Likewise.
67529         * lib/unistr/u8-stpncpy.c: Likewise.
67530         * lib/unistr/u8-strcat.c: Likewise.
67531         * lib/unistr/u8-strchr.c: Likewise.
67532         * lib/unistr/u8-strcmp.c: Likewise.
67533         * lib/unistr/u8-strcpy.c: Likewise.
67534         * lib/unistr/u8-strcspn.c: Likewise.
67535         * lib/unistr/u8-strdup.c: Likewise.
67536         * lib/unistr/u8-strlen.c: Likewise.
67537         * lib/unistr/u8-strmblen.c: Likewise.
67538         * lib/unistr/u8-strmbtouc.c: Likewise.
67539         * lib/unistr/u8-strncat.c: Likewise.
67540         * lib/unistr/u8-strncmp.c: Likewise.
67541         * lib/unistr/u8-strncpy.c: Likewise.
67542         * lib/unistr/u8-strnlen.c: Likewise.
67543         * lib/unistr/u8-strpbrk.c: Likewise.
67544         * lib/unistr/u8-strrchr.c: Likewise.
67545         * lib/unistr/u8-strspn.c: Likewise.
67546         * lib/unistr/u8-strstr.c: Likewise.
67547         * lib/unistr/u8-strtok.c: Likewise.
67548         * lib/unistr/u8-to-u16.c: Likewise.
67549         * lib/unistr/u8-to-u32.c: Likewise.
67550         * lib/unistr/u8-uctomb-aux.c: Likewise.
67551         * lib/unistr/u8-uctomb.c: Likewise.
67552         * lib/unitypes.h: Likewise.
67553         * lib/uniwidth.h: Likewise.
67554         * lib/uniwidth/cjk.h: Likewise.
67555         * lib/uniwidth/u16-strwidth.c: Likewise.
67556         * lib/uniwidth/u16-width.c: Likewise.
67557         * lib/uniwidth/u32-strwidth.c: Likewise.
67558         * lib/uniwidth/u32-width.c: Likewise.
67559         * lib/uniwidth/u8-strwidth.c: Likewise.
67560         * lib/uniwidth/u8-width.c: Likewise.
67561         * lib/uniwidth/width.c: Likewise.
67562
67563 2007-10-07  Bruno Haible  <bruno@clisp.org>
67564
67565         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67566         The file is still under LGPL (see modules/inttypes).
67567
67568 2007-10-06  Bruno Haible  <bruno@clisp.org>
67569
67570         * modules/trunc (Dependencies): Add 'extensions'.
67571         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67572         Reported by Ben Pfaff <blp@gnu.org>.
67573
67574 2007-10-06  Bruno Haible  <bruno@clisp.org>
67575
67576         * modules/freopen-tests: New file.
67577         * tests/test-freopen.c: New file.
67578
67579         * modules/fopen-tests: New file.
67580         * tests/test-fopen.c: New file.
67581
67582         * modules/fopen: New file.
67583         * lib/fopen.c: New file.
67584         * m4/fopen.m4: New file.
67585         * modules/freopen: New file.
67586         * lib/freopen.c: New file.
67587         * m4/freopen.m4: New file.
67588         * lib/stdio.in.h (fopen, freopen): New declarations.
67589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67590         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67591         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67592         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67593         * doc/functions/fopen.texi: Mention the 'fopen' module.
67594         * doc/functions/freopen.texi: Mention the 'freopen' module.
67595
67596 2007-10-06  Bruno Haible  <bruno@clisp.org>
67597
67598         * modules/open-tests: New file.
67599         * tests/test-open.c: New file.
67600
67601         * modules/open: New file.
67602         * lib/open.c: New file.
67603         * m4/open.m4: New file.
67604         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67605         lib/open.c does.
67606         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67607         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67608         macros.
67609         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67610         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67611         REPLACE_OPEN.
67612         * doc/functions/open.texi: Mention the 'open' module.
67613
67614 2007-10-04  Bruno Haible  <bruno@clisp.org>
67615
67616         * modules/ceill-tests: New file.
67617         * tests/test-ceill.c: New file.
67618
67619         * modules/ceill: New file.
67620         * lib/ceill.c: Replace entire file.
67621         * m4/ceill.m4: New file.
67622         * lib/math.in.h (ceill): Replace declaration.
67623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67624         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67625         * doc/functions/ceill.texi: Mention the 'ceill' module.
67626         * modules/mathl (Files): Remove lib/ceill.c.
67627         (Depends-on): Add ceill.
67628
67629 2007-10-04  Bruno Haible  <bruno@clisp.org>
67630
67631         * modules/ceilf-tests: New file.
67632         * tests/test-ceilf.c: New file.
67633
67634         * modules/ceilf: New file.
67635         * lib/ceil.c: New file.
67636         * lib/ceilf.c: New file.
67637         * m4/ceilf.m4: New file.
67638         * lib/math.in.h (ceilf): New declaration.
67639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67640         HAVE_DECL_CEILF.
67641         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67642         HAVE_DECL_CEILF.
67643         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67644
67645 2007-10-04  Bruno Haible  <bruno@clisp.org>
67646
67647         * modules/floorl-tests: New file.
67648         * tests/test-floorl.c: New file.
67649
67650         * modules/floorl: New file.
67651         * lib/floorl.c: Replace entire file.
67652         * m4/floorl.m4: New file.
67653         * lib/math.in.h (floorl): Replace declaration.
67654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67655         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67656         * doc/functions/floorl.texi: Mention the 'floorl' module.
67657         * modules/mathl (Files): Remove lib/floorl.c.
67658         (Depends-on): Add floorl.
67659
67660 2007-10-04  Bruno Haible  <bruno@clisp.org>
67661
67662         * modules/floorf-tests: New file.
67663         * tests/test-floorf.c: New file.
67664
67665         * modules/floorf: New file.
67666         * lib/floor.c: New file.
67667         * lib/floorf.c: New file.
67668         * m4/floorf.m4: New file.
67669         * lib/math.in.h (floorf): New declaration.
67670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67671         HAVE_DECL_FLOORF.
67672         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67673         HAVE_DECL_FLOORF.
67674         * doc/functions/floorf.texi: Mention the 'floorf' module.
67675
67676 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67677             Bruno Haible  <bruno@clisp.org>
67678
67679         Advertise for the Git server instead of the CVS server.
67680         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67681         repository instead of the CVS one.
67682         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67683         about all VCS systems generically.
67684         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67685
67686 2007-10-04  Bruno Haible  <bruno@clisp.org>
67687
67688         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67689         means.
67690         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67691
67692 2007-10-04  Bruno Haible  <bruno@clisp.org>
67693
67694         * modules/truncl-tests: New file.
67695         * tests/test-truncl.c: New file.
67696
67697         * modules/truncl: New file.
67698         * lib/truncl.c: New file.
67699         * m4/truncl.m4: New file.
67700         * lib/math.in.h (truncl): New declaration.
67701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67702         HAVE_DECL_TRUNCL.
67703         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67704         HAVE_DECL_TRUNCL.
67705         * doc/functions/truncl.texi: Mention the 'truncl' module.
67706
67707 2007-10-04  Bruno Haible  <bruno@clisp.org>
67708
67709         * modules/truncf-tests: New file.
67710         * tests/test-truncf.c: New file.
67711
67712         * modules/truncf: New file.
67713         * lib/trunc.c: Make paramerizable through USE_* macros.
67714         * lib/truncf.c: New file.
67715         * m4/truncf.m4: New file.
67716         * lib/math.in.h (truncf): New declaration.
67717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67718         HAVE_DECL_TRUNCF.
67719         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67720         HAVE_DECL_TRUNCF.
67721         * doc/functions/truncf.texi: Mention the 'truncf' module.
67722
67723 2007-10-03  Bruno Haible  <bruno@clisp.org>
67724
67725         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67726         augmentation also for tests modules.
67727         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67728         * modules/atexit-tests (Makefile.am): Likewise.
67729         * modules/binary-io-tests (Makefile.am): Likewise.
67730         * modules/c-strcase-tests (Makefile.am): Likewise.
67731         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67732         * modules/canonicalize-tests (Makefile.am): Likewise.
67733         * modules/closein-tests (Makefile.am): Likewise.
67734         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67735         * modules/freadahead-tests (Makefile.am): Likewise.
67736         * modules/fseek-tests (Makefile.am): Likewise.
67737         * modules/fseeko-tests (Makefile.am): Likewise.
67738         * modules/ftell-tests (Makefile.am): Likewise.
67739         * modules/ftello-tests (Makefile.am): Likewise.
67740         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67741         * modules/isnanl-tests (Makefile.am): Likewise.
67742         * modules/lseek-tests (Makefile.am): Likewise.
67743         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67744         * modules/mbscasestr-tests (Makefile.am): Likewise.
67745         * modules/mbschr-tests (Makefile.am): Likewise.
67746         * modules/mbscspn-tests (Makefile.am): Likewise.
67747         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67748         * modules/mbspbrk-tests (Makefile.am): Likewise.
67749         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67750         * modules/mbsrchr-tests (Makefile.am): Likewise.
67751         * modules/mbsspn-tests (Makefile.am): Likewise.
67752         * modules/mbsstr-tests (Makefile.am): Likewise.
67753         * modules/printf-posix-tests (Makefile.am): Likewise.
67754         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67755         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67756         * modules/tsearch-tests (Makefile.am): Likewise.
67757         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67758         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67759         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67760         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67761         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67762         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67763         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67764         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67765         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67766         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67767         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67768         * modules/xstrtol-tests (Makefile.am): Likewise.
67769         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67770         * modules/yesno-tests (Makefile.am): Likewise.
67771
67772 2007-10-03  Bruno Haible  <bruno@clisp.org>
67773
67774         * modules/trunc-tests: New file.
67775         * tests/test-trunc.c: New file.
67776
67777         * modules/trunc: New file.
67778         * lib/trunc.c: New file.
67779         * m4/trunc.m4: New file.
67780         * lib/math.in.h (trunc): New declaration.
67781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67782         HAVE_DECL_TRUNC.
67783         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67784         HAVE_DECL_TRUNC.
67785         * doc/functions/trunc.texi: Mention the 'trunc' module.
67786
67787 2007-10-03  Bruno Haible  <bruno@clisp.org>
67788
67789         * tests/test-fpending.c: New file, mostly copied
67790         from coreutils/lib/t-fpending.c.
67791         * modules/fpending-tests: New file.
67792
67793 2007-10-03  Bruno Haible  <bruno@clisp.org>
67794
67795         Port the stdio extensions to QNX (untested).
67796         * lib/fseterr.c (fseterr): Add support for QNX.
67797         * lib/fbufmode.c (fbufmode): Likewise.
67798         * lib/freadable.c (freadable): Likewise.
67799         * lib/fwritable.c (fwritable): Likewise.
67800         * lib/freading.c (freading): Likewise.
67801         * lib/fwriting.c (fwriting): Likewise.
67802         * lib/freadahead.c (freadahed): Likewise.
67803         * lib/fpurge.c (fpurge): Likewise.
67804         * lib/fseeko.c (rpl_fseeko): Likewise.
67805
67806 2007-10-03  Bruno Haible  <bruno@clisp.org>
67807             Jim Meyering  <jim@meyering.net>
67808             Eric Blake  <ebb9@byu.net>
67809
67810         * doc/relocatable.texi: Use @command instead of @program.
67811
67812 2007-10-02  Jim Meyering  <jim@meyering.net>
67813
67814         Perform one more "_.h" -> ".in.h" substitution.
67815         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67816         instead of unistd_.h here, too.
67817
67818 2007-10-01  Bruno Haible  <bruno@clisp.org>
67819
67820         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67821         Needed for the alloca-opt module.
67822
67823 2007-09-30  Bruno Haible  <bruno@clisp.org>
67824
67825         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67826         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67827         alloca_.h.
67828         * lib/argz.in.h: Renamed from lib/argz_.h.
67829         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67830         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67831         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67832         byteswap_.h.
67833         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67834         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67835         dirent_.h.
67836         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67837         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67838         fcntl_.h.
67839         * lib/float.in.h: Renamed from lib/float_.h.
67840         * modules/float (Files, Makefile.am): Use float.in.h instead of
67841         float_.h.
67842         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67843         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67844         fnmatch_.h.
67845         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67846         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67847         getopt_.h.
67848         * lib/glob.in.h: Renamed from lib/glob_.h.
67849         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67850         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67851         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67852         iconv_.h.
67853         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67854         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67855         inttypes_.h.
67856         * lib/locale.in.h: Renamed from lib/locale_.h.
67857         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67858         locale_.h.
67859         * lib/math.in.h: Renamed from lib/math_.h.
67860         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67861         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67862         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67863         of netinet_in_.h. Add dependency.
67864         * lib/poll.in.h: Renamed from lib/poll_.h.
67865         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67866         * lib/search.in.h: Renamed from lib/search_.h.
67867         * modules/search (Files, Makefile.am): Use search.in.h instead of
67868         search_.h.
67869         * lib/signal.in.h: Renamed from lib/signal_.h.
67870         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67871         _signal.h.
67872         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67873         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67874         stdbool_.h.
67875         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67876         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67877         stdint_.h.
67878         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67879         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67880         stdio_.h.
67881         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67882         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67883         stdlib_.h.
67884         * lib/string.in.h: Renamed from lib/string_.h.
67885         * modules/string (Files, Makefile.am): Use string.in.h instead of
67886         string_.h.
67887         * doc/gnulib-tool.texi (Initial import): Update.
67888         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67889         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67890         of sys_select_.h. Add dependency.
67891         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67892         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67893         of sys_socket_.h.
67894         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67895         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67896         sys_stat_.h.
67897         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67898         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67899         sys_time_.h.
67900         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67901         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67902         sysexits_.h.
67903         * lib/time.in.h: Renamed from lib/time_.h.
67904         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67905         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67906         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67907         unistd_.h.
67908         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67909         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67910         wchar_.h.
67911         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67912         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67913         wctype_.h.
67914         * build-aux/bootstrap (slurp): Update.
67915         * lib/.cppi-disable: Update.
67916
67917 2007-09-30  Bruno Haible  <bruno@clisp.org>
67918
67919         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67920         Needed on BeOS.
67921
67922 2007-09-30  Bruno Haible  <bruno@clisp.org>
67923
67924         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67925
67926 2007-09-29  Bruno Haible  <bruno@clisp.org>
67927
67928         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67929
67930 2007-09-29  Bruno Haible  <bruno@clisp.org>
67931
67932         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67933         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67934         * build-aux/install-reloc: Compile also areadlink.c.
67935         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67936
67937 2007-09-29  Bruno Haible  <bruno@clisp.org>
67938
67939         * gnulib-tool (func_emit_initmacro_done): Indentation.
67940
67941 2007-09-29  Bruno Haible  <bruno@clisp.org>
67942
67943         * README: Add CVS checkout update instructions.
67944         Info from Bob Proulx <bob@proulx.com>.
67945
67946 2007-09-28  Eric Blake  <ebb9@byu.net>
67947
67948         Provide move-if-change.
67949         * build-aux/move-if-change: New file, based on best practice
67950         rather than any canonical upstream location.
67951
67952 2007-09-28  Jim Meyering  <jim@meyering.net>
67953
67954         Fix canonicalize loop-detection corner case.
67955         Do not attempt to stat the symlink values stored via seen_triple.
67956         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67957         on linux-2.6.18, (but not 2.6.22).
67958         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67959         triple_compare.  The former compares dev,ino,filename, while the latter
67960         would actually stat dirname(filename) when dev and ino were equal.
67961         * lib/hash-triple.c: Install <string.h>.
67962         (STREQ): Define.
67963         (triple_compare_ino_str): New function.
67964         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67965
67966 2007-09-28  Eric Blake  <ebb9@byu.net>
67967
67968         Enforce that AC_REPLACE_FUNCS files exist.
67969         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67970         override check for typos.
67971
67972         Fix test-closein on Solaris 10.
67973         * tests/test-closein.c (main): Don't assume stdin can be inherited
67974         closed on all systems.
67975         * tests/test-closein.sh: Likewise.
67976         Reported by Piotr Tarnowski.
67977
67978 2007-09-28  Jim Meyering  <jim@meyering.net>
67979
67980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67981
67982 2007-09-27  Jim Meyering  <jim@meyering.net>
67983
67984         canonicalize: Avoid a false-positive cycle failure.
67985         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67986         Sort.  Remove cycle-check.
67987         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67988         not cycle-check.h.
67989         (seen_triple): New function.
67990         (canonicalize_filename_mode): Use it instead of cycle-check.
67991         * tests/test-canonicalize.c: Add a test for this bug.
67992         * tests/test-canonicalize.sh: Set up and run the test.
67993
67994         New module, file-set, from coreutils.
67995         * modules/file-set: Define it.
67996         * lib/file-set.c, lib/file-set.h: Implement.
67997
67998         New module, hash-triple, from coreutils.
67999         * modules/hash-triple: Define it.
68000         * lib/hash-triple.c, lib/hash-triple.h: Implement.
68001
68002 2007-09-25  Eric Blake  <ebb9@byu.net>
68003
68004         Fix strerror on Interix.
68005         * lib/string_.h (strerror): Declare replacement.
68006         * doc/functions/strerror.texi (strerror): Document the Interix
68007         shortcoming.
68008         * modules/string (Makefile.am): Support new hooks.
68009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
68010         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
68011         gl_FUNC_STRERROR_SEPARATE.
68012         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
68013         * lib/strerror.c (rpl_strerror): Provide replacement.
68014         * modules/strerror (Depends-on): Add string.
68015         (configure.ac): Detect use of module.
68016         * tests/test-strerror.c: New file.
68017         * modules/strerror-tests: New test module.
68018         * modules/argp (Depends-on): Add strerror.
68019         * modules/error (Depends-on): Likewise.
68020         Reported by Martin Koeppe.
68021
68022 2007-09-24  Bruno Haible  <bruno@clisp.org>
68023
68024         * README: Update git instructions.
68025
68026 2007-09-24  Eric Blake  <ebb9@byu.net>
68027
68028         Revert fpending breakage from 2007-09-08.
68029         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
68030         __fpending.c.
68031
68032 2007-09-24  Jim Meyering  <jim@meyering.net>
68033
68034         filenamecat.c: Add a test.
68035         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
68036         showing how the function works when DIR is the empty string.
68037
68038 2007-09-21  Simon Josefsson  <simon@josefsson.org>
68039
68040         * tests/test-canonicalize.sh: Turn on executable bit.
68041
68042 2007-09-19  Eric Blake  <ebb9@byu.net>
68043
68044         * README: Update CVS instructions.
68045
68046 2007-09-18  Bruno Haible  <bruno@clisp.org>
68047
68048         * modules/areadlink: New file.
68049         * lib/areadlink.h (areadlink): New declaration.
68050         * lib/areadlink.c: New file, based on lib/xreadlink.c.
68051
68052 2007-09-17  Jim Meyering  <jim@meyering.net>
68053
68054         * lib/savewd.c (ESTALE) [!defined]: Define.
68055         Reported to be required on Interix by Martin Koeppe.
68056
68057 2007-09-17  Bruno Haible  <bruno@clisp.org>
68058
68059         * gnulib-tool (func_version): Use $version.
68060
68061 2007-09-16  Bruno Haible  <bruno@clisp.org>
68062
68063         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
68064         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
68065         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
68066         Reported by Greg Schafer <gschafer@zip.com.au>.
68067
68068 2007-09-15  Bruno Haible  <bruno@clisp.org>
68069
68070         * gnulib-tool (sed): Try a little harder to make bash understand the
68071         alias.
68072         Reported by Bruce Korb <bruce.korb@gmail.com>.
68073
68074 2007-09-13  Eric Blake  <ebb9@byu.net>
68075
68076         * ChangeLog: Remove conflict markers.
68077
68078 2007-09-13  Simon Josefsson  <simon@josefsson.org>
68079
68080         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
68081         Reported by Bruno Haible <bruno@clisp.org>.
68082
68083 2007-09-12  Bruno Haible  <bruno@clisp.org>
68084
68085         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
68086         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
68087         is not defined.
68088
68089 2007-09-12  Eric Blake  <ebb9@byu.net>
68090
68091         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
68092         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
68093         Autoconf definition.
68094         * modules/euidaccess (Depends-on): Add extensions, for
68095         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
68096         * modules/fnmatch (Depends-on): Likewise.
68097         * modules/getaddrinfo (Depends-on): Likewise.
68098         * modules/getdelim (Depends-on): Likewise.
68099         * modules/getline (Depends-on): Likewise.
68100         * modules/getsubopt (Depends-on): Likewise.
68101         * modules/gettext (Depends-on): Likewise.
68102         * modules/group-member (Depends-on): Likewise.
68103         * modules/mbchar (Depends-on): Likewise.
68104         * modules/memmem (Depends-on): Likewise.
68105         * modules/mempcpy (Depends-on): Likewise.
68106         * modules/memrchr (Depends-on): Likewise.
68107         * modules/pagealign_alloc (Depends-on): Likewise.
68108         * modules/readutmp (Depends-on): Likewise.
68109         * modules/stpcpy (Depends-on): Likewise.
68110         * modules/stpncpy (Depends-on): Likewise.
68111         * modules/strchrnul (Depends-on): Likewise.
68112         * modules/strndup (Depends-on): Likewise.
68113         * modules/strsep (Depends-on): Likewise.
68114         * modules/strverscmp (Depends-on): Likewise.
68115         * modules/vasprintf (Depends-on): Likewise.
68116         * modules/wcwidth (Depends-on): Likewise.
68117         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
68118         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
68119         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
68120         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
68121         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
68122         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68123         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
68124         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68125         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
68126         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68127         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68128         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68129         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68130         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
68131         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
68132         * m4/readutmp.m4 (gl_READUTMP): Likewise.
68133         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68134         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68135         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68136         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68137         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68138         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68139         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68140         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
68141         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
68142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68143         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
68144         so that lock.m4 can be used in gettext without extensions module.
68145
68146 2007-09-11  Bruno Haible  <bruno@clisp.org>
68147
68148         * m4/isc-posix.m4: Remove file.
68149         Suggested by Eric Blake.
68150
68151 2007-09-11  Eric Blake  <ebb9@byu.net>
68152
68153         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
68154
68155 2007-09-10  Bruno Haible  <bruno@clisp.org>
68156
68157         * posix-modules: Fix typo in error message.
68158         Reported by Matt <mkraai@beckman.com>.
68159
68160 2007-09-09  Bruno Haible  <bruno@clisp.org>
68161
68162         * doc/functions/getdelim.texi: Update list of platforms lacking the
68163         function.
68164         * doc/functions/getline.texi: Likewise.
68165
68166 2007-09-09  Jim Meyering  <jim@meyering.net>
68167
68168         * lib/hash.c (hash_initialize): Detect calloc failure.
68169         Reported by Bruno Haible.
68170
68171 2007-09-09  Bruno Haible  <bruno@clisp.org>
68172
68173         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
68174         malloc or realloc fails.
68175
68176 2007-09-09  Bruno Haible  <bruno@clisp.org>
68177
68178         * modules/getcwd (Depends-on): Add malloc-posix.
68179         * modules/glob (Depends-on): Likewise.
68180         * modules/putenv (Depends-on): Likewise.
68181         * modules/strdup (Depends-on): Likewise.
68182         * modules/getdelim (Depends-on): Add realloc-posix.
68183         * modules/read-file (Depends-on): Likewise.
68184
68185 2007-09-09  Bruno Haible  <bruno@clisp.org>
68186
68187         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
68188         (gl_FUNC_MALLOC_POSIX): Require it.
68189         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
68190         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
68191         * modules/realloc (Files): Add m4/malloc.m4.
68192         * modules/calloc (Files): Likewise.
68193
68194 2007-09-09  Bruno Haible  <bruno@clisp.org>
68195
68196         * modules/malloc-posix: New file.
68197         * modules/malloc (Depends-on): Add malloc-posix.
68198         * lib/malloc.c: Include errno.h.
68199         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
68200         and a POSIX-compatible malloc into a single function. Set ENOMEM
68201         when returning NULL.
68202         * m4/malloc.m4: New file.
68203         * doc/functions/malloc.texi: Mention the malloc-posix module.
68204         * lib/stdlib_.h (malloc): New declaration.
68205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68206         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68207         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68208         and HAVE_MALLOC_POSIX.
68209
68210 2007-09-09  Bruno Haible  <bruno@clisp.org>
68211
68212         * modules/realloc-posix: New file.
68213         * modules/realloc (Depends-on): Add realloc-posix.
68214         * lib/realloc.c: Include errno.h.
68215         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68216         and a POSIX-compatible realloc into a single function. Set ENOMEM
68217         when returning NULL.
68218         * m4/realloc.m4: New file.
68219         * doc/functions/realloc.texi: Mention the realloc-posix module.
68220         * lib/stdlib_.h (realloc): New declaration.
68221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68222         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68223         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68224         and HAVE_REALLOC_POSIX.
68225
68226 2007-09-09  Bruno Haible  <bruno@clisp.org>
68227
68228         * modules/calloc-posix: New file.
68229         * modules/calloc (Depends-on): Add calloc-posix.
68230         * lib/calloc.c: Include errno.h.
68231         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68232         and a POSIX-compatible calloc into a single function. Set ENOMEM
68233         when returning NULL.
68234         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68235         * doc/functions/calloc.texi: Mention the calloc-posix module.
68236         * lib/stdlib_.h (calloc): New declaration.
68237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68238         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68239         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68240         and HAVE_CALLOC_POSIX.
68241
68242 2007-09-09  Bruno Haible  <bruno@clisp.org>
68243
68244         Allow for modules to show an arbitrary notice.
68245         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68246         * gnulib-tool: New option --extract-notice.
68247         (func_usage): Document it.
68248         (sed_extract_prog): Update.
68249         (func_get_notice): New function.
68250         (func_modules_notice): New function.
68251         (func_import, func_create_testdir): Invoke it.
68252         Suggested by Jim Meyering.
68253
68254 2007-09-09  Bruno Haible  <bruno@clisp.org>
68255
68256         * gnulib-tool: New options --verbose, --quiet.
68257         (func_usage): Document them.
68258         (verbose): New variable.
68259         (func_execute_command): New function.
68260         (func_import): Don't show the module list and the file list if
68261         $verbose < 0.
68262         (func_create_testdir): Likewise. Use func_execute_command.
68263         (func_create_megatestdir): Use func_execute_command.
68264
68265 2007-09-08  Bruno Haible  <bruno@clisp.org>
68266
68267         * gnulib-tool (func_import): Prefer rsync over wget when available,
68268         for fetching the PO files.
68269
68270 2007-09-08  Bruno Haible  <bruno@clisp.org>
68271
68272         * posix-modules: New file. Portions copied from gnulib-tool.
68273         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68274
68275 2007-09-08  Jim Meyering  <jim@meyering.net>
68276
68277         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68278         * lib/fpending.h: Rename from __fpending.h.
68279         * lib/fpending.c: Rename from __fpending.c.
68280         Include "fpending.h", not "__fpending.h".
68281         * lib/__fpending.h, lib/__fpending.c: Remove files.
68282         * modules/fpending (Files): Reflect new file names.
68283         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68284
68285 2007-09-08  Bruno Haible  <bruno@clisp.org>
68286
68287         * m4/inttypes-h.m4: Remove stub file.
68288
68289 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68290
68291         * doc/headers/stdint.texi: Discuss #include_next issue.
68292
68293 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68294
68295         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68296
68297 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68298
68299         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68300         in variable name.
68301
68302 2007-09-03  Jim Meyering  <jim@meyering.net>
68303
68304         New module: git-version-gen.
68305         * modules/git-version-gen: New file.
68306
68307         Import changes from coreutils for bootstrap script.
68308
68309         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68310
68311         bootstrap: uses rsync to download the .po files
68312         * build-aux/bootstrap (po_download_command_format): New global.
68313         (download_po_files): Use rsync.
68314         (update_po_files): Don't remove .po files after download,
68315         so future rsync runs can take advantage of the copies.
68316
68317         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68318
68319         Solve the unnecessary-.po-file-regeneration problem once and for all.
68320         * build-aux/bootstrap (download_po_files): New function, renamed from
68321         get_translations.  Now, downloads, but doesn't update LINGUAS.
68322         (update_po_files): New function.
68323
68324         bootstrap: Ignore more.
68325         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68326         uniwidth to e.g., lib/.gitignore.
68327         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68328
68329         * build-aux/bootstrap: New setting: vc_ignore.
68330         (insert_sorted_if_absent): Create $file if absent.
68331         Adapt to new, possibly empty, list: $vc_ignore.
68332
68333         bootstrap: generate more ignorable names
68334         * build-aux/bootstrap (slurp): When generating ignorable names,
68335         also map .sin to .sed, .gperf to .c, and .y to .c.
68336
68337 2007-09-03  Jim Meyering  <jim@meyering.net>
68338
68339         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68340         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68341
68342 2007-09-02  Bruno Haible  <bruno@clisp.org>
68343
68344         Fix mis-recognition of 'mcs' on QNX 6.
68345         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68346         output contains the string "Mono".
68347         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68348         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68349
68350 2007-09-01  Bruno Haible  <bruno@clisp.org>
68351
68352         Fix collision between uniwidth/* and linebreak modules.
68353         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68354         u32_width): Remove declarations.
68355         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68356         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68357         streq3, streq2, streq1, streq0): Remove functions.
68358         (STREQ): Remove macro.
68359         (is_cjk_encoding): Remove function.
68360         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68361         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68362         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68363         * NEWS: Document the change.
68364
68365 2007-09-01  Bruno Haible  <bruno@clisp.org>
68366
68367         * lib/streq.h: Add double-inclusion guard.
68368
68369 2007-09-01  Karl Berry  <karl@gnu.org>
68370
68371         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68372
68373 2007-08-28  Jim Meyering  <jim@meyering.net>
68374
68375         Rename mreadlink_with_size to areadlink_with_size.
68376         * NEWS: Document the change.
68377         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68378         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68379         * lib/mreadlink.h: Rename this to...
68380         * lib/areadlink.h: ...this.
68381         * modules/mreadlink-with-size: Rename this to...
68382         * modules/areadlink-with-size: ...this.
68383         * lib/canonicalize.c: Reflect the renaming.
68384         * modules/canonicalize: Likewise.
68385
68386 2007-08-26  Bruno Haible  <bruno@clisp.org>
68387
68388         * gnulib-tool (func_import): When deciding which files to remove,
68389         consider also dangling symbolic links.
68390         Reported by Eric Blake.
68391
68392 2007-08-26  Bruno Haible  <bruno@clisp.org>
68393
68394         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68395
68396 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68397
68398         * lib/readline.c: Don't include getline.h, the prototype is now
68399         found in stdio.h.
68400
68401 2007-08-23  Jim Meyering  <jim@meyering.net>
68402
68403         Getdelim touchup.
68404         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68405         around the funlockfile call, since funlockfile never sets errno.
68406         Don't set errno upon failed realloc.
68407
68408 2007-08-22  Eric Blake  <ebb9@byu.net>
68409
68410         Getline touchups.
68411         * lib/getdelim.c (getdelim): Revert regression that required *n to
68412         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68414         getdelim, rather than whether implementation is missing.
68415         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68416         * lib/stdio_.h (getline): Also declare if replacement is
68417         required.
68418         * doc/functions/getdelim.texi: New file.
68419         * doc/functions/getline.texi: Likewise.
68420         * doc/gnulib.texi (Function Substitutes): Add new files.
68421         Reported by Bruno Haible.
68422
68423 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68424
68425         * users.txt: Add Guile.
68426
68427 2007-08-22  Eric Blake  <ebb9@byu.net>
68428
68429         * tests/test-getdelim.c (main): Use remove, not unlink.
68430         * tests/test-getline.c (main): Likewise.
68431
68432         Move getline and getdelim into stdio.h, per POSIX 200x.
68433         * modules/getline (Files): Remove getline.h.
68434         (Depends-on): Add stdio.
68435         (configure.ac): Add module indicator.
68436         * modules/getdelim (Files): Remove getdelim.h.
68437         (Depends-on): Add stdio.
68438         (configure.ac): Add module indicator.
68439         * modules/stdio (Makefile.am): Work with new indicators.
68440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68441         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68442         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68443         * lib/getdelim.h: Delete.
68444         * lib/getline.h: Delete.
68445         * lib/stdio_.h (getdelim, getline): Declare.
68446         * modules/getdelim-tests: New module.
68447         * modules/getline-tests: Likewise.
68448         * tests/test-getdelim.c: New file.
68449         * tests/test-getline.c: Likewise.
68450         * NEWS: Document the change.
68451         * lib/getline.c: Update choice of header.
68452         * lib/csharpcomp.c: Likewise.
68453         * lib/getpass.c: Likewise.
68454         * lib/javacomp.c: Likewise.
68455         * lib/javaversion.c: Likewise.
68456         * lib/yesno.c: Likewise.
68457         * lib/getdelim.c: Likewise.
68458         (getdelim): Set errno on failure, and avoid memory leak.
68459
68460 2007-08-19  Bruno Haible  <bruno@clisp.org>
68461
68462         * modules/closein (Depends-on): Add freadahead.
68463         * lib/closein.c: Include freadahead.h.
68464         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68465         is zero.
68466
68467 2007-08-19  Bruno Haible  <bruno@clisp.org>
68468
68469         * modules/freadahead-tests: New file.
68470         * tests/test-freadahead.sh: New file.
68471         * tests/test-freadahead.c: New file.
68472
68473         * modules/freadahead: New file.
68474         * lib/freadahead.h: New file.
68475         * lib/freadahead.c: New file.
68476         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68477         fbufmode, fpurge, freadable, fwritable.
68478
68479 2007-08-19  Eric Blake  <ebb9@byu.net>
68480
68481         Test yesno in combination with closein.
68482         * lib/yesno.c (yesno): Document use of stdin.
68483         * modules/yesno-tests (Files): New module.
68484         * tests/test-yesno.c (main): New file.
68485         * tests/test-yesno.sh: Likewise.
68486
68487 2007-08-19  Bruno Haible  <bruno@clisp.org>
68488
68489         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68490         * lib/fseeko.c (rpl_fseeko): Likewise.
68491         * lib/fseterr.c (fseterr): Likewise.
68492
68493 2007-08-19  Bruno Haible  <bruno@clisp.org>
68494
68495         * tests/test-lseek.c (main): Disable a test for BeOS.
68496         * doc/functions/lseek.texi: Document the BeOS bug.
68497
68498 2007-08-19  Bruno Haible  <bruno@clisp.org>
68499             Eric Blake  <ebb9@byu.net>
68500
68501         * lib/lseek.c: Include <sys/stat.h>.
68502         (rpl_lseek): Add workaround code also for Unix platforms.
68503         Needed for BeOS.
68504         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68505         * doc/functions/lseek.texi: Document BeOS definiency.
68506
68507 2007-08-18  Bruno Haible  <bruno@clisp.org>
68508
68509         * modules/fstrcmp-tests: New file.
68510         * tests/test-fstrcmp.c: New file.
68511
68512 2007-08-18  Bruno Haible  <bruno@clisp.org>
68513
68514         * modules/fstrcmp: New file, from GNU gettext with modifications.
68515         * lib/fstrcmp.h: New file, from GNU gettext.
68516         * lib/fstrcmp.c: New file, from GNU gettext.
68517         * MODULES.html.sh (String handling): Add fstrcmp.
68518
68519 2007-08-18  Bruno Haible  <bruno@clisp.org>
68520
68521         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68522         'bool'.
68523         (diag, compareseq): Remove const from the ctxt argument.
68524         (USE_HEURISTIC): Undefine at the end.
68525
68526 2007-08-18  Jim Meyering  <jim@meyering.net>
68527
68528         New file: lib/idcache.h
68529         * NEWS: Mention the addition.
68530         * modules/idcache (Files): Add lib/idcache.h
68531         * lib/idcache.c: Include "idcache.h".
68532         Don't include <sys/types.h>.
68533         Add a FIXME comment.
68534         Move file-scoped "static" declarations to the top.
68535         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68536
68537 2007-08-17  Bruno Haible  <bruno@clisp.org>
68538         and Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * MODULES.html.sh: Add diffseq.
68541         * modules/diffseq: New file.
68542         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68543         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68544
68545 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68546
68547         Import changes from coreutils for bootstrap script.
68548
68549         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68550
68551         * build-aux/bootstrap (slurp): Work even in environments where
68552         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68553         current code does not slurp files whose names start with ".", and
68554         this looks like it might be a troublesome area.
68555
68556         2007-07-11  Jim Meyering  <jim@meyering.net>
68557
68558         If there's a GPL vN copyright comment, require that N == 3.
68559
68560         2007-07-08  Jim Meyering  <jim@meyering.net>
68561
68562         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68563         * build-aux/bootstrap (mam_template): Move definition out of loop.
68564
68565         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68566
68567         * build-aux/bootstrap (symlink_to_dir): Rename function from
68568         symlink_to_gnulib.  Add a directory parameter.  Update all
68569         callers.
68570         (cp_mark_as_generated): Also check for -- and link to -- files in
68571         gl/.
68572
68573         2007-07-08  Jim Meyering  <jim@meyering.net>
68574
68575         Adapt to deeper hierarchy in gnulib.
68576         * build-aux/bootstrap (symlink_to_dir): If the destination
68577         directory doesn't exist, create it. This is required at least for
68578         "lib/uniwidth/cjk.h".
68579
68580         2007-05-15  Jim Meyering  <jim@meyering.net>
68581
68582         * build-aux/bootstrap: Now that generated Makefile.am files
68583         are no longer under version control, they must be created at
68584         bootstrap time.
68585
68586 2007-08-14  Ben Pfaff  <blp@gnu.org>
68587
68588         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68589
68590 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68591
68592         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68593         given the changes below.
68594         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68595         even on hosts that have padding bits beyond the supported 64.
68596
68597 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68600         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68601         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68602         depends on it.
68603         (xstrtol_error): Remove.
68604         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68605         but with a different signature.
68606         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68607         * lib/xstrtol-error.c: Include exitfail.h.
68608         (xstrtol_fatal): New function, with a different signature from the
68609         old xstrtol_error, so that the caller need not worry about passing
68610         in an exit status, or about storage management of the option argument.
68611         (xstrtol_error): Now a static function.  Redo signature to
68612         implement xstrtol_fatal.  Output the correct number of hyphens in
68613         front of the option so that the caller need not worry about
68614         storage management.
68615         (N_): New macro.
68616         (_): Remove; not used now.
68617         * modules/xstrtol: Depend on getopt.
68618         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68619         of old STRTOL_FATAL_ERROR macro.
68620         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68621         of test program.
68622         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68623         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68624
68625 2007-08-08  Eric Blake  <ebb9@byu.net>
68626
68627         * lib/xstrtol-error.c: Add missing include.
68628
68629         Move xstrtol messages into gnulib domain, when --pobase is used.
68630         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68631         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68632         * modules/xstrtol (Files): Distribute new file.
68633         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68634         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68635         * tests/test-xstrtol.c: ...into new file.
68636         * tests/test-xstrtoul.c: Also test xstrtoul.
68637         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68638         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68639         * tests/test-xstrtol.sh: Drive the tests.
68640         * tests/test-xstrtoimax.sh: Likewise.
68641         * tests/test-xstrtoumax.sh: Likewise.
68642         * modules/xstrtol-tests: New module.
68643         * modules/xstrtoimax-tests: Likewise.
68644         * modules/xstrtoumax-tests: Likewise.
68645
68646 2007-08-08  Jim Meyering  <jim@meyering.net>
68647
68648         New function: mfile_name_concat.
68649         * lib/filenamecat.c (mfile_name_concat): New function, just like
68650         file_name_concat, but return NULL upon failure rather than exiting
68651         with a diagnostic.
68652         * lib/filenamecat.h: Declare it.
68653
68654 2007-08-07  Bruno Haible  <bruno@clisp.org>
68655
68656         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68657         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68658         warning from gcc.
68659         Reported by Eric Blake.
68660
68661 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68662
68663         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68664         * modules/crypto/arcfour (License): Likewise.
68665         * modules/crypto/des-tests (License): Likewise.
68666         * modules/crypto/gc-arctwo-tests (License): Likewise.
68667         * modules/crypto/gc-des-tests (License): Likewise.
68668         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68669         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68670         * modules/crypto/gc-md2-tests (License): Likewise.
68671         * modules/crypto/gc-md4-tests (License): Likewise.
68672         * modules/crypto/gc-md5-tests (License): Likewise.
68673         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68674         * modules/crypto/gc-rijndael-tests (License): Likewise.
68675         * modules/crypto/gc-sha1-tests (License): Likewise.
68676         * modules/crypto/gc-tests (License): Likewise.
68677         * modules/crypto/hmac-md5 (License): Likewise.
68678         * modules/crypto/hmac-sha1 (License): Likewise.
68679         * modules/crypto/md2-tests (License): Likewise.
68680         * modules/crypto/md4-tests (License): Likewise.
68681         * modules/crypto/md5 (License): Likewise.
68682         * modules/crypto/rijndael (License): Likewise.
68683         * modules/crypto/sha1 (License): Likewise.
68684         * modules/memxor (License): Likewise.
68685
68686 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68687         and Bruno Haible  <bruno@clisp.org>
68688
68689         * NEWS: Describe interface changes to human, xstrtol.
68690         * lib/human.h: Include <xstrtol.h>.
68691         (human_options): Return enum strtol_error, not int.  Remove
68692         bool arg; take int * instead.
68693         * lib/human.c: Don't include "gettext.h".
68694         (_): Remove; no longer used.
68695         Don't include <xstrtol.h>, since human.h does it.
68696         (human_options): Adjust to abovementioned interface changes.
68697         Do not report error to stderr; that's now the caller's
68698         responsibility.
68699         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68700         interface change.
68701         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68702         Str, Argument_type_string.  All uses changed.  Put " argument"
68703         in diagnostics to make them clearer.  Change wording of suffix
68704         message for clarity.
68705         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68706         Argument_type_string.
68707         (STRTOL_FATAL_WARN): Remove; no longer used.
68708         * modules/human (Depends-on): Remove gettext-h.
68709
68710 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68711
68712         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68713
68714 2007-07-31  Bruno Haible  <bruno@clisp.org>
68715
68716         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68717         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68718         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68719
68720 2007-07-31  Bruno Haible  <bruno@clisp.org>
68721
68722         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68723         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68724
68725 2007-07-30  Bruno Haible  <bruno@clisp.org>
68726
68727         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68728         * modules/c-ctype (License): Likewise.
68729         * modules/c-strcase (License): Likewise.
68730         * modules/check-version (License): Likewise.
68731         * modules/iconv (License): Likewise.
68732         * modules/iconv_open (License): Likewise.
68733         * modules/read-file (License): Likewise.
68734         * modules/striconv (License): Likewise.
68735         * modules/strverscmp (License): Likewise.
68736         * modules/vasprintf (License): Likewise.
68737         * modules/crypto/des (License): Likewise.
68738         * modules/crypto/gc (License): Likewise.
68739         * modules/crypto/gc-arcfour (License): Likewise.
68740         * modules/crypto/gc-arctwo (License): Likewise.
68741         * modules/crypto/gc-des (License): Likewise.
68742         * modules/crypto/gc-hmac-md5 (License): Likewise.
68743         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68744         * modules/crypto/gc-md2 (License): Likewise.
68745         * modules/crypto/gc-md4 (License): Likewise.
68746         * modules/crypto/gc-md5 (License): Likewise.
68747         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68748         * modules/crypto/gc-random (License): Likewise.
68749         * modules/crypto/gc-rijndael (License): Likewise.
68750         * modules/crypto/gc-sha1 (License): Likewise.
68751         * modules/crypto/md2 (License): Likewise.
68752         * modules/crypto/md4 (License): Likewise.
68753
68754 2007-07-30  Jim Meyering  <jim@meyering.net>
68755
68756         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68757         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68758         it has valid stat data.  This bug would cause du not to count the
68759         sizes of inaccessible directories.
68760         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68761         in <http://bugzilla.redhat.com/250077>.
68762
68763 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68764             Bruno Haible  <bruno@clisp.org>
68765
68766         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68767         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68768         #include_next, gives a diagnostic about it, but reports no error in
68769         the exit code.
68770         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68771
68772 2007-07-24  Ben Pfaff  <blp@gnu.org>
68773
68774         Improve name: "count-one-bits" is better than "popcount".
68775         * MODULES.html.sh: Update name.
68776         * lib/popcount.h: Renamed lib/count-one-bits.h.
68777         (popcount): Renamed count_one_bits.
68778         (popcountl): Renamed count_one_bits_l.
68779         (popcountll): Renamed count_one_bits_ll.
68780         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68781         * modules/popcount: Renamed module/count-one-bits.
68782         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68783         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68784
68785 2007-07-23  Ben Pfaff  <blp@gnu.org>
68786
68787         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68788         better code generation, and add U to large constants to avoid
68789         warnings, in non-GCC case.
68790         Suggested by Bruno Haible.
68791
68792 2007-07-23  Ben Pfaff  <blp@gnu.org>
68793
68794         * lib/popcount.h: Use verify_true instead of if...abort.
68795         * modules/popcount: Depend on verify module.
68796         Suggested by Jim Meyering.
68797
68798 2007-07-23  Bruno Haible  <bruno@clisp.org>
68799
68800         * gnulib-tool (func_import): Create a .cvsignore file also when the
68801         directory is not yet in CVS but the toplevel directory is. When
68802         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68803         Reported by Karl Berry.
68804
68805 2007-07-22  Ben Pfaff  <blp@gnu.org>
68806
68807         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68808         case.
68809         Suggested by Eric Blake.
68810
68811 2007-07-22  Ben Pfaff  <blp@gnu.org>
68812
68813         New module: popcount.
68814         * MODULES.html.sh: Add popcount.
68815         * modules/popcount: New file.
68816         * modules/popcount-tests: New file.
68817         * tests/test-popcount.c: New file.
68818         * lib/popcount.h: New file.
68819         * m4/popcount.m4: New file.
68820
68821 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         * build-aux/announce-gen: Update to GPLv3.
68824
68825         * build-aux/config.guess: Update from config.
68826
68827 2007-07-21  Bruno Haible  <bruno@clisp.org>
68828
68829         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68830         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68831
68832 2007-07-20  Jim Meyering  <jim@meyering.net>
68833
68834         * check-module: Diagnose a self-dependency.
68835
68836 2007-07-19  Bruno Haible  <bruno@clisp.org>
68837
68838         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68839         empty.
68840         Reported by Eric Blake.
68841
68842 2007-07-18  Bruno Haible  <bruno@clisp.org>
68843
68844         * gnulib-tool: New options --po-base, --po-domain.
68845         (func_usage): Document them.
68846         (pobase, po_domain): New variables.
68847         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68848         DEFAULT_TEXT_DOMAIN.
68849         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68850         (func_import): Consider pobase and po_domain. Create a po/ directory.
68851         (func_create_testdir): Set pobase and po_domain to empty.
68852         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68853         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68854
68855 2007-07-18  Bruno Haible  <bruno@clisp.org>
68856
68857         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68858         EXTRA_DIST augmentation for files in build-aux/.
68859
68860 2007-07-16  Bruno Haible  <bruno@clisp.org>
68861
68862         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68863         * modules/getdelim (License): Likewise.
68864
68865 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68866
68867         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68868         * modules/d-type (License): Likewise.
68869         * modules/extensions (License): Likewise.
68870         * modules/fnmatch (License): Likewise.
68871         * modules/fseeko (License): Likewise.
68872         * modules/getaddrinfo (License): Likewise.
68873         * modules/getline (License): Likewise.
68874         * modules/getlogin_r (License): Likewise.
68875         * modules/getpass (License): Likewise.
68876         * modules/gettimeofday (License): Likewise.
68877         * modules/glob (License): Likewise.
68878         * modules/inet_ntop (License): Likewise.
68879         * modules/malloc (License): Likewise.
68880         * modules/malloca (License): Likewise.
68881         * modules/memmem (License): Likewise.
68882         * modules/mempcpy (License): Likewise.
68883         * modules/memset (License): Likewise.
68884         * modules/minmax (License): Likewise.
68885         * modules/mktime (License): Likewise.
68886         * modules/netinet_in (License): Likewise.
68887         * modules/pathmax (License): Likewise.
68888         * modules/poll (License): Likewise.
68889         * modules/regex (License): Likewise.
68890         * modules/snprintf (License): Likewise.
68891         * modules/stdbool (License): Likewise.
68892         * modules/stdint (License): Likewise.
68893         * modules/stdio (License): Likewise.
68894         * modules/strcase (License): Likewise.
68895         * modules/strcasestr (License): Likewise.
68896         * modules/strdup (License): Likewise.
68897         * modules/string (License): Likewise.
68898         * modules/strndup (License): Likewise.
68899         * modules/strnlen (License): Likewise.
68900         * modules/strpbrk (License): Likewise.
68901         * modules/strptime (License): Likewise.
68902         * modules/strsep (License): Likewise.
68903         * modules/sys_select (License): Likewise.
68904         * modules/sys_socket (License): Likewise.
68905         * modules/sys_stat (License): Likewise.
68906         * modules/sys_time (License): Likewise.
68907         * modules/time (License): Likewise.
68908         * modules/time_r (License): Likewise.
68909         * modules/timegm (License): Likewise.
68910         * modules/unistd (License): Likewise.
68911         * modules/vsnprintf (License): Likewise.
68912         * modules/wctype (License): Likewise.
68913
68914 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68915
68916         * modules/argz (License): LGPLv2+.
68917
68918 2007-07-15  Karl Berry  <karl@gnu.org>
68919
68920         * doc/gnulib.texi: revise node structure per new fdl.texi.
68921
68922 2007-07-14  Bruno Haible  <bruno@clisp.org>
68923
68924         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68925         the output file.
68926         * lib/uniname/uninames.h: Regenerated.
68927
68928 2007-07-14  Karl Berry  <karl@gnu.org>
68929
68930         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68931         omitting sectioning and index commands.
68932
68933 2007-07-13  Bruno Haible  <bruno@clisp.org>
68934
68935         New gnulib-tool option --more-symlinks.
68936         * gnulib-tool (func_usage): Document --more-symlinks.
68937         (do_copyrights): New variable.
68938         Recognize option --more-symlinks.
68939         (func_import): Don't add a copyright notice transform to
68940         sed_transform_lib_file if do_copyrights is empty.
68941
68942 2007-07-13  Bruno Haible  <bruno@clisp.org>
68943
68944         * lib/vasnprintf.c (decimal_point_char): Define also if
68945         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68946         && !NEED_PRINTF_DIRECTIVE_A.
68947         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68948         Gary V. Vaughan <gary@gnu.org>.
68949
68950 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68951
68952         * lib/inttypes_.h: Undo previous change, since it was fixed
68953         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68954
68955 2007-07-13  Bruno Haible  <bruno@clisp.org>
68956
68957         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68958         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68959
68960 2007-07-13  Jim Meyering  <jim@meyering.net>
68961
68962         df: Don't fail for Tru64's "file-on-file mount".
68963         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68964         so we fall through and use statfs instead.  Details here:
68965         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68966         Reported by Albert Chin.
68967
68968 2007-07-13  Bruno Haible  <bruno@clisp.org>
68969
68970         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68971         * modules/configmake (License): Likewise.
68972         * modules/gettext (License): Likewise.
68973         * modules/gettext-h (License): Likewise.
68974         * modules/include_next (License): Likewise.
68975         * modules/link-warning (License): Likewise.
68976         * modules/localcharset (License): Likewise.
68977         * modules/localename (License): Likewise.
68978         * modules/lock (License): Likewise.
68979         * modules/relocatable-lib-lgpl (License): Likewise.
68980         * modules/size_max (License): Likewise.
68981         * modules/vasnprintf (License): Likewise.
68982         * modules/wchar (License): Likewise.
68983         * modules/xsize (License): Likewise.
68984
68985 2007-07-13  Bruno Haible  <bruno@clisp.org>
68986
68987         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68988         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68989
68990 2007-07-12  Bruno Haible  <bruno@clisp.org>
68991
68992         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68993         in the modules files.
68994
68995 2007-07-11  Karl Berry  <karl@gnu.org>
68996
68997         * MODULES.html.sh (func_module): use
68998          sed -e '\|^'"${includefile}"'$|d'
68999          instead of /.../d, to avoid errors on $includefile's containing /.
69000
69001 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69002
69003         * gnulib-tool (func_import): Avoid duplication of --avoid
69004         statements
69005         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
69006         names to `_' in variable names.
69007
69008 2007-07-10  Eric Blake  <ebb9@byu.net>
69009
69010         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
69011         * NEWS: Document this change.
69012
69013 2007-07-08  Bruno Haible  <bruno@clisp.org>
69014
69015         Update to Unicode 5.0.
69016         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
69017         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
69018         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
69019         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
69020         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
69021         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
69022         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
69023         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
69024         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
69025         U+10A3F, U+1D242..U+1D244.
69026         (nonspacing_table_ind): Update.
69027         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
69028         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
69029
69030 2007-07-08  Bruno Haible  <bruno@clisp.org>
69031
69032         Update to Unicode 5.0.
69033         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
69034         code transform. Extend the name index field of unicode_name_to_code and
69035         unicode_code_to_name from 16 to 24 bits.
69036         * lib/uniname/uniname.c (unicode_character_name,
69037         unicode_name_character): Add the range 0x12xxx to the code transform.
69038         * lib/uniname/uninames.h: Regenerated.
69039         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
69040
69041 2007-07-07  Bruno Haible  <bruno@clisp.org>
69042
69043         * modules/wcwidth-tests: New file.
69044         * tests/test-wcwidth.c: New file.
69045
69046         Work around MacOS X wcwidth() bug.
69047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
69048         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
69049         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
69050         original wcwidth in non-UTF-8 locales.
69051         * modules/wcwidth (Depends-on): Add localcharset, streq,
69052         uniwidth/width.
69053         * doc/functions/wcwidth.texi: Update.
69054
69055 2007-07-07  Bruno Haible  <bruno@clisp.org>
69056
69057         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
69058         (wcwidth): New declaration.
69059         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
69060         macros.
69061         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
69062         here. Prepare for creating <wchar.h> unconditionally.
69063         * modules/wchar (Depends-on): Add link-warning.
69064         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
69065         REPLACE_WCWIDTH, and GL_LINK_WARNING.
69066         * lib/wcwidth.h: Remove file.
69067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
69068         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
69069         * modules/wcwidth (Files): Remove lib/wcwidth.h.
69070         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
69071         (Include): Replace wcwidth.h with <wchar.h>.
69072         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
69073         * lib/mbchar.h: Don't include wcwidth.h.
69074         * lib/mbswidth.c: Likewise.
69075         * NEWS: Mention the change.
69076
69077 2007-07-07  Bruno Haible  <bruno@clisp.org>
69078
69079         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
69080         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
69081         definition with an external declaration.
69082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
69083         defined as a function. Remove AC_C_INLINE requirement.
69084         * modules/wcwidth (Files): Add lib/wcwidth.c.
69085         (Makefile.am): Remove redundant statement.
69086
69087 2007-07-07  Bruno Haible  <bruno@clisp.org>
69088
69089         * MODULES.html.sh (Unicode string functions): Add the new modules.
69090
69091         * tests/uniwidth/test-u32-strwidth.c: New file.
69092         * modules/uniwidth/u32-strwidth-tests: New file.
69093
69094         * lib/uniwidth/u32-strwidth.c: New file.
69095         * modules/uniwidth/u32-strwidth: New file.
69096
69097         * tests/uniwidth/test-u16-strwidth.c: New file.
69098         * modules/uniwidth/u16-strwidth-tests: New file.
69099
69100         * lib/uniwidth/u16-strwidth.c: New file.
69101         * modules/uniwidth/u16-strwidth: New file.
69102
69103         * tests/uniwidth/test-u8-strwidth.c: New file.
69104         * modules/uniwidth/u8-strwidth-tests: New file.
69105
69106         * lib/uniwidth/u8-strwidth.c: New file.
69107         * modules/uniwidth/u8-strwidth: New file.
69108
69109         * tests/uniwidth/test-u32-width.c: New file.
69110         * modules/uniwidth/u32-width-tests: New file.
69111
69112         * lib/uniwidth/u32-width.c: New file.
69113         * modules/uniwidth/u32-width: New file.
69114
69115         * tests/uniwidth/test-u16-width.c: New file.
69116         * modules/uniwidth/u16-width-tests: New file.
69117
69118         * lib/uniwidth/u16-width.c: New file.
69119         * modules/uniwidth/u16-width: New file.
69120
69121         * tests/uniwidth/test-u8-width.c: New file.
69122         * modules/uniwidth/u8-width-tests: New file.
69123
69124         * lib/uniwidth/u8-width.c: New file.
69125         * modules/uniwidth/u8-width: New file.
69126
69127         * tests/uniwidth/test-uc_width.c: New file.
69128         * modules/uniwidth/width-tests: New file.
69129
69130         * lib/uniwidth/width.c: New file, from GNU libiconv.
69131         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
69132         * modules/uniwidth/width: New file.
69133
69134         * lib/uniwidth.h: New file, from GNU libiconv.
69135         * modules/uniwidth/base: New file.
69136
69137 2007-07-07  Bruno Haible  <bruno@clisp.org>
69138
69139         * lib/uniname.h: New file, from GNU gettext.
69140         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
69141         * lib/uniname/uninames.h: New file, from GNU gettext.
69142         * lib/uniname/uniname.c: New file, from GNU gettext.
69143         * tests/uniname/test-uninames.sh: New file.
69144         * tests/uniname/test-uninames.c: New file, from GNU gettext.
69145         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
69146         * modules/uniname/base: New file.
69147         * modules/uniname/uniname: New file.
69148         * modules/uniname/uniname-tests: New file.
69149         * MODULES.html.sh (Unicode string functions): Add the new modules.
69150
69151 2007-07-06  Bruno Haible  <bruno@clisp.org>
69152
69153         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
69154
69155 2007-07-06  Bruno Haible  <bruno@clisp.org>
69156
69157         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
69158         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
69159         includes <cygwin/sys_time.h> which includes <sys/select.h> which
69160         include <sys/time.h>.
69161         Reported by Eric Blake.
69162
69163 2007-07-06  Eric Blake  <ebb9@byu.net>
69164
69165         Fix testing canonicalize on cygwin.
69166         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69167         Revert patch from 2007-06-19.
69168         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
69169         canonicalize module is also in use.
69170         * tests/test-canonicalize.c: New file.
69171         * tests/test-canonicalize.sh: Likewise.
69172         * modules/canonicalize-tests: Likewise.
69173
69174 2007-07-06  Jim Meyering  <jim@meyering.net>
69175
69176         * lib/getugroups.c (getugroups): Detect getgrent failure.
69177         Adjust comment to reflect reality: this function may return -1.
69178
69179 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69180
69181         * build-aux/bootstrap (TP_URL,get_translations): Update to use
69182         the new TP address.
69183         (usage): Fix typo
69184         (gnulib_mk): New variable.
69185
69186 2007-07-05  Jim Meyering  <jim@meyering.net>
69187
69188         Don't let endgrent clobber errno, no matter how improbable.
69189         * lib/getugroups.c (getugroups): Save and restore errno around
69190         endgrent call.
69191
69192         Close the group DB even when failing with 2^31 or more members.
69193         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
69194
69195 2007-07-04  Jim Meyering  <jim@meyering.net>
69196
69197         * lib/getugroups.h: New file.
69198         * lib/getugroups.c: Include "getugroups.h".
69199         Remove uses of "register" keyword.
69200         Move local variable, "cp", down into scope where used.
69201         Give "username" parameter the "const" attribute.
69202         * modules/getugroups (Files): Add lib/getugroups.h
69203
69204 2007-07-04  Karl Berry  <karl@gnu.org>
69205
69206         * MODULES.html.sh (func_all_modules): Complete rename of
69207         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69208
69209 2007-07-02  Bruno Haible  <bruno@clisp.org>
69210
69211         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69212         mode, when inttypes.h comes from gnulib.
69213         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69214
69215 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69216
69217         * NEWS: Mention lgpl module name change.
69218
69219         * modules/lgpl-2.1: Renamed from lgpl.
69220
69221         * NEWS: Mention gpl module name change.
69222
69223         * modules/gpl-3.0: New file, based on gpl-2.0.
69224
69225         * modules/gpl-2.0: Renamed from gpl.
69226
69227         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69228         doc/gpl-2.0.texi.
69229
69230 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69231
69232         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69233         #define __STDC_LIMIT_MACROS temporarily while including
69234         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69235         Problem reported by Joel E. Denny in
69236         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69237
69238 2007-07-01  Bruno Haible  <bruno@clisp.org>
69239
69240         * lib/unistdio.h: New file.
69241         * lib/unistdio/u-asnprintf.h: New file.
69242         * lib/unistdio/u-asprintf.h: New file.
69243         * lib/unistdio/u-printf-args.c: New file.
69244         * lib/unistdio/u-printf-args.h: New file.
69245         * lib/unistdio/u-printf-parse.h: New file.
69246         * lib/unistdio/u-snprintf.h: New file.
69247         * lib/unistdio/u-sprintf.h: New file.
69248         * lib/unistdio/u-vasprintf.h: New file.
69249         * lib/unistdio/u-vsnprintf.h: New file.
69250         * lib/unistdio/u-vsprintf.h: New file.
69251         * lib/unistdio/ulc-asnprintf.c: New file.
69252         * lib/unistdio/ulc-asprintf.c: New file.
69253         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69254         * lib/unistdio/ulc-printf-parse.c: New file.
69255         * lib/unistdio/ulc-snprintf.c: New file.
69256         * lib/unistdio/ulc-sprintf.c: New file.
69257         * lib/unistdio/ulc-vasnprintf.c: New file.
69258         * lib/unistdio/ulc-vasprintf.c: New file.
69259         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69260         * lib/unistdio/ulc-vsnprintf.c: New file.
69261         * lib/unistdio/ulc-vsprintf.c: New file.
69262         * lib/unistdio/u8-asnprintf.c: New file.
69263         * lib/unistdio/u8-asprintf.c: New file.
69264         * lib/unistdio/u8-printf-parse.c: New file.
69265         * lib/unistdio/u8-snprintf.c: New file.
69266         * lib/unistdio/u8-sprintf.c: New file.
69267         * lib/unistdio/u8-vasnprintf.c: New file.
69268         * lib/unistdio/u8-vasprintf.c: New file.
69269         * lib/unistdio/u8-vsnprintf.c: New file.
69270         * lib/unistdio/u8-vsprintf.c: New file.
69271         * lib/unistdio/u8-u8-asnprintf.c: New file.
69272         * lib/unistdio/u8-u8-asprintf.c: New file.
69273         * lib/unistdio/u8-u8-snprintf.c: New file.
69274         * lib/unistdio/u8-u8-sprintf.c: New file.
69275         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69276         * lib/unistdio/u8-u8-vasprintf.c: New file.
69277         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69278         * lib/unistdio/u8-u8-vsprintf.c: New file.
69279         * lib/unistdio/u16-asnprintf.c: New file.
69280         * lib/unistdio/u16-asprintf.c: New file.
69281         * lib/unistdio/u16-printf-parse.c: New file.
69282         * lib/unistdio/u16-snprintf.c: New file.
69283         * lib/unistdio/u16-sprintf.c: New file.
69284         * lib/unistdio/u16-vasnprintf.c: New file.
69285         * lib/unistdio/u16-vasprintf.c: New file.
69286         * lib/unistdio/u16-vsnprintf.c: New file.
69287         * lib/unistdio/u16-vsprintf.c: New file.
69288         * lib/unistdio/u16-u16-asnprintf.c: New file.
69289         * lib/unistdio/u16-u16-asprintf.c: New file.
69290         * lib/unistdio/u16-u16-snprintf.c: New file.
69291         * lib/unistdio/u16-u16-sprintf.c: New file.
69292         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69293         * lib/unistdio/u16-u16-vasprintf.c: New file.
69294         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69295         * lib/unistdio/u16-u16-vsprintf.c: New file.
69296         * lib/unistdio/u32-asnprintf.c: New file.
69297         * lib/unistdio/u32-asprintf.c: New file.
69298         * lib/unistdio/u32-printf-parse.c: New file.
69299         * lib/unistdio/u32-snprintf.c: New file.
69300         * lib/unistdio/u32-sprintf.c: New file.
69301         * lib/unistdio/u32-vasnprintf.c: New file.
69302         * lib/unistdio/u32-vasprintf.c: New file.
69303         * lib/unistdio/u32-vsnprintf.c: New file.
69304         * lib/unistdio/u32-vsprintf.c: New file.
69305         * lib/unistdio/u32-u32-asnprintf.c: New file.
69306         * lib/unistdio/u32-u32-asprintf.c: New file.
69307         * lib/unistdio/u32-u32-snprintf.c: New file.
69308         * lib/unistdio/u32-u32-sprintf.c: New file.
69309         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69310         * lib/unistdio/u32-u32-vasprintf.c: New file.
69311         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69312         * lib/unistdio/u32-u32-vsprintf.c: New file.
69313         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69314         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69315         * tests/unistdio/test-ulc-printf1.h: New file.
69316         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69317         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69318         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69319         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69320         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69321         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69322         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69323         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69324         * tests/unistdio/test-u8-asnprintf1.c: New file.
69325         * tests/unistdio/test-u8-asnprintf1.h: New file.
69326         * tests/unistdio/test-u8-printf1.h: New file.
69327         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69328         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69329         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69330         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69331         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69332         * tests/unistdio/test-u8-vasprintf1.c: New file.
69333         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69334         * tests/unistdio/test-u8-vsprintf1.c: New file.
69335         * tests/unistdio/test-u16-asnprintf1.c: New file.
69336         * tests/unistdio/test-u16-asnprintf1.h: New file.
69337         * tests/unistdio/test-u16-printf1.h: New file.
69338         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69339         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69340         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69341         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69342         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69343         * tests/unistdio/test-u16-vasprintf1.c: New file.
69344         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69345         * tests/unistdio/test-u16-vsprintf1.c: New file.
69346         * tests/unistdio/test-u32-asnprintf1.c: New file.
69347         * tests/unistdio/test-u32-asnprintf1.h: New file.
69348         * tests/unistdio/test-u32-printf1.h: New file.
69349         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69350         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69351         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69352         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69353         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69354         * tests/unistdio/test-u32-vasprintf1.c: New file.
69355         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69356         * tests/unistdio/test-u32-vsprintf1.c: New file.
69357         * modules/unistdio/base: New file.
69358         * modules/unistdio/u-printf-args: New file.
69359         * modules/unistdio/ulc-asnprintf: New file.
69360         * modules/unistdio/ulc-asprintf: New file.
69361         * modules/unistdio/ulc-fprintf: New file.
69362         * modules/unistdio/ulc-printf-parse: New file.
69363         * modules/unistdio/ulc-snprintf: New file.
69364         * modules/unistdio/ulc-sprintf: New file.
69365         * modules/unistdio/ulc-vasnprintf: New file.
69366         * modules/unistdio/ulc-vasprintf: New file.
69367         * modules/unistdio/ulc-vfprintf: New file.
69368         * modules/unistdio/ulc-vsnprintf: New file.
69369         * modules/unistdio/ulc-vsprintf: New file.
69370         * modules/unistdio/u8-asnprintf: New file.
69371         * modules/unistdio/u8-asprintf: New file.
69372         * modules/unistdio/u8-printf-parse: New file.
69373         * modules/unistdio/u8-snprintf: New file.
69374         * modules/unistdio/u8-sprintf: New file.
69375         * modules/unistdio/u8-vasnprintf: New file.
69376         * modules/unistdio/u8-vasprintf: New file.
69377         * modules/unistdio/u8-vsnprintf: New file.
69378         * modules/unistdio/u8-vsprintf: New file.
69379         * modules/unistdio/u8-u8-asnprintf: New file.
69380         * modules/unistdio/u8-u8-asprintf: New file.
69381         * modules/unistdio/u8-u8-snprintf: New file.
69382         * modules/unistdio/u8-u8-sprintf: New file.
69383         * modules/unistdio/u8-u8-vasnprintf: New file.
69384         * modules/unistdio/u8-u8-vasprintf: New file.
69385         * modules/unistdio/u8-u8-vsnprintf: New file.
69386         * modules/unistdio/u8-u8-vsprintf: New file.
69387         * modules/unistdio/u16-asnprintf: New file.
69388         * modules/unistdio/u16-asprintf: New file.
69389         * modules/unistdio/u16-printf-parse: New file.
69390         * modules/unistdio/u16-snprintf: New file.
69391         * modules/unistdio/u16-sprintf: New file.
69392         * modules/unistdio/u16-vasnprintf: New file.
69393         * modules/unistdio/u16-vasprintf: New file.
69394         * modules/unistdio/u16-vsnprintf: New file.
69395         * modules/unistdio/u16-vsprintf: New file.
69396         * modules/unistdio/u16-u16-asnprintf: New file.
69397         * modules/unistdio/u16-u16-asprintf: New file.
69398         * modules/unistdio/u16-u16-snprintf: New file.
69399         * modules/unistdio/u16-u16-sprintf: New file.
69400         * modules/unistdio/u16-u16-vasnprintf: New file.
69401         * modules/unistdio/u16-u16-vasprintf: New file.
69402         * modules/unistdio/u16-u16-vsnprintf: New file.
69403         * modules/unistdio/u16-u16-vsprintf: New file.
69404         * modules/unistdio/u32-asnprintf: New file.
69405         * modules/unistdio/u32-asprintf: New file.
69406         * modules/unistdio/u32-printf-parse: New file.
69407         * modules/unistdio/u32-snprintf: New file.
69408         * modules/unistdio/u32-sprintf: New file.
69409         * modules/unistdio/u32-vasnprintf: New file.
69410         * modules/unistdio/u32-vasprintf: New file.
69411         * modules/unistdio/u32-vsnprintf: New file.
69412         * modules/unistdio/u32-vsprintf: New file.
69413         * modules/unistdio/u32-u32-asnprintf: New file.
69414         * modules/unistdio/u32-u32-asprintf: New file.
69415         * modules/unistdio/u32-u32-snprintf: New file.
69416         * modules/unistdio/u32-u32-sprintf: New file.
69417         * modules/unistdio/u32-u32-vasnprintf: New file.
69418         * modules/unistdio/u32-u32-vasprintf: New file.
69419         * modules/unistdio/u32-u32-vsnprintf: New file.
69420         * modules/unistdio/u32-u32-vsprintf: New file.
69421         * modules/unistdio/ulc-asnprintf-tests: New file.
69422         * modules/unistdio/ulc-vasnprintf-tests: New file.
69423         * modules/unistdio/ulc-vasprintf-tests: New file.
69424         * modules/unistdio/ulc-vsnprintf-tests: New file.
69425         * modules/unistdio/ulc-vsprintf-tests: New file.
69426         * modules/unistdio/u8-asnprintf-tests: New file.
69427         * modules/unistdio/u8-vasnprintf-tests: New file.
69428         * modules/unistdio/u8-vasprintf-tests: New file.
69429         * modules/unistdio/u8-vsnprintf-tests: New file.
69430         * modules/unistdio/u8-vsprintf-tests: New file.
69431         * modules/unistdio/u16-asnprintf-tests: New file.
69432         * modules/unistdio/u16-vasnprintf-tests: New file.
69433         * modules/unistdio/u16-vasprintf-tests: New file.
69434         * modules/unistdio/u16-vsnprintf-tests: New file.
69435         * modules/unistdio/u16-vsprintf-tests: New file.
69436         * modules/unistdio/u32-asnprintf-tests: New file.
69437         * modules/unistdio/u32-vasnprintf-tests: New file.
69438         * modules/unistdio/u32-vasprintf-tests: New file.
69439         * modules/unistdio/u32-vsnprintf-tests: New file.
69440         * modules/unistdio/u32-vsprintf-tests: New file.
69441         * MODULES.html.sh (Unicode string functions): Add the new modules.
69442
69443 2007-07-01  Bruno Haible  <bruno@clisp.org>
69444
69445         * lib/sprintf.c (sprintf): Limit the available length estimation,
69446         to avoid address wraparound.
69447         * lib/vsprintf.c (vsprintf): Likewise.
69448         * modules/sprintf-posix (Dependencies): Add stdint.
69449         * modules/vsprintf-posix (Dependencies): Likewise.
69450
69451 2007-07-01  Bruno Haible  <bruno@clisp.org>
69452
69453         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69454         Windows PATH as well. Conservative double-quoting. Comments.
69455
69456 2007-07-01  Bruno Haible  <bruno@clisp.org>
69457             Eric Blake  <ebb9@byu.net>
69458             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69459
69460         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69461         empty components in $PATH, denoting '.'.
69462
69463 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69464
69465         * gnulib-tool: Fix indentation.
69466         (func_create_megatestdir): Likewise.
69467         Report by Bruno Haible.
69468
69469 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69470
69471         Sync from Automake.
69472         * build-aux/gnupload: Fix shell portability issues with for loops.
69473         Report by Karl Berry.
69474
69475 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69476
69477         * build-aux/maint.mk (POURL): Use translationproject.org.
69478
69479 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69480             Bruno Haible  <bruno@clisp.org>
69481
69482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69483         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69484         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69485         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69486         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69487
69488 2007-06-27  Bruno Haible  <bruno@clisp.org>
69489
69490         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69491         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69492
69493 2007-06-26  Karl Berry  <karl@gnu.org>
69494
69495         * MODULES.html.sh: remove xreadlink-with-size.
69496
69497 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69500         method that I hope also handles the double-include problem noted
69501         by Bruno Haible in
69502         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69503
69504 2007-06-23  Bruno Haible  <bruno@clisp.org>
69505
69506         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69507         Don't let the 'mostlyclean' target fail if the last subdirectory could
69508         not be removed.
69509         Reported by Karl Berry.
69510
69511 2007-06-23  Bruno Haible  <bruno@clisp.org>
69512
69513         * gnulib-tool (echo): Add a speedier workaround for ksh.
69514         * tests/test-echo.sh: Likewise.
69515
69516 2007-06-23  Bruno Haible  <bruno@clisp.org>
69517
69518         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69519         * tests/test-echo.sh: Likewise.
69520
69521 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69522
69523         * gnulib-tool (IFS): Initialize early, so we don't set it to
69524         empty later.
69525         (self_abspathname): Rewrite algorithm to set it, reindent.
69526         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69527         (func_create_megatestdir): Merge some sed scripts.
69528
69529 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69530
69531         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69532         exposed by Sun Studio 11 cc on Solaris 8.
69533
69534 2007-06-22  Bruno Haible  <bruno@clisp.org>
69535
69536         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69537         backslashes.
69538         * tests/test-echo.sh: New file.
69539
69540 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69541
69542         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69543         simplify `sed_replace_build_aux' scripts, they are portable but
69544         echoing them with `echo' is not.
69545         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69546
69547 2007-06-21  Karl Berry  <karl@gnu.org>
69548
69549         * config/srclist.txt: guess we can't handle the licenses via
69550         srclist at the moment.
69551
69552 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69553
69554         * MODULES.html.sh: Add include_next.
69555         * modules/include_next: New file.
69556
69557 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69558
69559         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69560         INCLUDE_NEXT.
69561         (gl_CHECK_NEXT_HEADERS): New macro.
69562         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69563         the obsolescent gl_ABSOLUTE_HEADER.
69564         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69565         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69566         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69567         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69568         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69569         * m4/math_h.m4 (gl_MATH_H): Likewise.
69570         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69571         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69572         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69573         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69574         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69575         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69576         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69577         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69578         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69579         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69580         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69581         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69582         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69583         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69584         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69585         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69586         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69587         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69588         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69589         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69590         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69591         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69592         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69593         * lib/float_.h: Likewise.
69594         * lib/inttypes_.h: Likewise.
69595         * lib/math_.h: Likewise.
69596         * lib/search_.h: Likewise.
69597         * lib/signal_.h: Likewise.
69598         * lib/stdint_.h: Likewise.
69599         * lib/stdio_.h: Likewise.
69600         * lib/stdlib_.h: Likewise.
69601         * lib/string_.h: Likewise.
69602         * lib/sys_stat_.h: Likewise.
69603         * lib/sys_time_.h: Likewise.
69604         * lib/time_.h: Likewise.
69605         * lib/unistd_.h: Likewise.
69606         * lib/wchar_.h: Likewise.
69607         * lib/wctype_.h: Likewise.
69608         * lib/dirent_.h: Likewise.
69609         * lib/iconv_.h: Likewise.
69610         * lib/locale_.h: Likewise.
69611         * lib/netinet_in_.h: Likewise.
69612         * lib/sys_select_.h: Likewise.
69613         * lib/sys_socket_.h: Likewise.
69614         * lib/sysexits_.h: Likewise.
69615         * modules/fcntl (Depends-on): Depend on include_next, not
69616         absolute_header.
69617         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69618         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69619         * modules/fchdir: Likewise.
69620         * modules/float: Likewise.
69621         * modules/iconv_open: Likewise.
69622         * modules/inttypes: Likewise.
69623         * modules/locale: Likewise.
69624         * modules/math: Likewise.
69625         * modules/netinet_in: Likewise.
69626         * modules/search: Likewise.
69627         * modules/signal: Likewise.
69628         * modules/stdint: Likewise.
69629         * modules/stdio: Likewise.
69630         * modules/stdlib: Likewise.
69631         * modules/string: Likewise.
69632         * modules/sys_select: Likewise.
69633         * modules/sys_socket: Likewise.
69634         * modules/sys_stat: Likewise.
69635         * modules/sys_time: Likewise.
69636         * modules/sysexits: Likewise.
69637         * modules/time: Likewise.
69638         * modules/unistd: Likewise.
69639         * modules/wchar: Likewise.
69640         * modules/wctype: Likewise.
69641         * modules/sys_stat: Change maintainer to "all".
69642         * modules/unistd: Likewise.
69643
69644 2007-06-20  Karl Berry  <karl@gnu.org>
69645
69646         * config/srclist.txt: track www changes in license files.
69647
69648 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69649
69650         * build-aux/bootstrap: Remove stray dot.
69651         Make sure build_aux settings are honored when linking
69652         gnulib_extra_files.
69653
69654 2007-06-19  Eric Blake  <ebb9@byu.net>
69655
69656         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69657         Allow compilation on cygwin.
69658
69659 2007-06-19  Jim Meyering  <jim@meyering.net>
69660
69661         xreadlink-with-size: Remove module.  No longer used.
69662         Ex-callers now use xreadlink or mreadlink-with-size.
69663         * modules/xreadlink-with-size: Remove module.
69664         * lib/xreadlink-with-size.c: Remove file.
69665         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69666         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69667         just before the function definition *is* accurate.
69668
69669         Eliminate one way canonicalize_filename_mode could exit.
69670         * lib/canonicalize.c (canonicalize_filename_mode):
69671         Use mreadlink_with_size, not xreadlink_with_size.
69672
69673 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69674
69675         Detect porting problems to FreeBSD/arm, which has time_t wider than
69676         long int.  Original problem reported for GNU diff by Xin Li in
69677         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69678         * modules/getdate (Depends-on): Add intprops, verify.
69679         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69680         is an integer type no wider than long int.
69681
69682 2007-06-18  Jim Meyering  <jim@meyering.net>
69683
69684         New module: mreadlink-with-size.
69685         * MODULES.html.sh: Add mreadlink-with-size.
69686         * modules/mreadlink-with-size: New module
69687         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69688         not xreadlink-with-size.
69689         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69690
69691 2007-06-16  Bruno Haible  <bruno@clisp.org>
69692
69693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69694         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69695         Reported by Gary V. Vaughan <gary@gnu.org>.
69696
69697 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69698
69699         Revamp lchown so that it lives in unistd.h where it belongs.
69700         * lib/lchown.h: Remove.
69701         * lib/dirchownmod.c: Don't include lib/lchown.h.
69702         * lib/fchownat.c: Likewise.
69703         * lib/openat.c: Likewise.
69704         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69705         does not follow symlinks.
69706         (EOPNOTSUPP): Define if not defined.
69707         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69708         is defined to 0.
69709         (lchown): New decl.
69710         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69711         Do not check for lchown decl.
69712         Set REPLACE_LCHOWN.
69713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69714         REPLACE_LCHOWN.
69715         * modules/chown: Make it clear it follows symlinks.
69716         * modules/lchown: Make it clear it doesn't follow symlinks.
69717         (Files): Remove lib/lchown.h
69718         (Depends-on): Add unistd.
69719         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69720         (Include): Include <unistd.h>, not "lchown.h".
69721         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69722         REPLACE_LCHOWN.
69723
69724 2007-06-15  Jim Meyering  <jim@meyering.net>
69725
69726         Change license (GPL to LGPL) of fsusage and dependents.
69727         * modules/fsusage (License): Change to LGPL.
69728         * modules/full-read (License): Likewise.
69729         * modules/full-write (License): Likewise.
69730         * modules/safe-read (License): Likewise.
69731         * modules/safe-write (License): Likewise.
69732
69733 2007-06-14  Ben Pfaff  <blp@gnu.org>
69734
69735         Missing part of allocsa -> malloca transition.
69736         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69737         gl_MALLOCA.
69738
69739 2007-06-12  Bruno Haible  <bruno@clisp.org>
69740
69741         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69742         to ia64, x86_64, i386.
69743         Reported by Eric Blake.
69744
69745 2007-06-12  Bruno Haible  <bruno@clisp.org>
69746
69747         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69748         cross-compiling to x86_64.
69749
69750 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69753         glitch reported by Ralf Wildenhues in
69754         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69755
69756         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69757         Vin Shelton.
69758
69759 2007-06-11  Bruno Haible  <bruno@clisp.org>
69760
69761         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69762         replacement string.
69763         Reported by Eric Blake.
69764
69765 2007-06-10  Bruno Haible  <bruno@clisp.org>
69766
69767         Prepare vasnprintf code for use with Unicode strings.
69768         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69769         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69770         TYPE_U32_STRING.
69771         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69772         a_u32_string variants.
69773         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69774         * lib/printf-args.c: Don't include config.h and the specification
69775         header if PRINTF_FETCHARGS is already defined.
69776         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69777         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69778         TYPE_U16_STRING, TYPE_U32_STRING.
69779         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69780         u16_directive, u16_directives, u32_directive, u32_directives): New
69781         types.
69782         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69783         New declarations.
69784         * lib/printf-parse.c: Don't include config.h and the specification
69785         header if PRINTF_PARSE is already defined. Eliminate the set of
69786         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69787         them now. Include c-ctype.h.
69788         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69789         directive and CHAR_T_ONLY_ASCII.
69790         * lib/vasnprintf.c: Don't include config.h and the specification header
69791         if VASNPRINTF is already defined.
69792         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69793         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69794         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69795         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69796         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69797         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69798         code accordingly.
69799         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69800         pad_ourselves also in this case, with the 'c' and 's' directives, and
69801         with a different notion of "width".
69802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69803
69804 2007-06-10  Bruno Haible  <bruno@clisp.org>
69805
69806         * modules/unistr/u32-mbsnlen: New file.
69807         * lib/unistr/u32-mbsnlen.c: New file.
69808
69809         * modules/unistr/u16-mbsnlen: New file.
69810         * lib/unistr/u16-mbsnlen.c: New file.
69811
69812         * modules/unistr/u8-mbsnlen: New file.
69813         * lib/unistr/u8-mbsnlen.c: New file.
69814
69815         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69816         declarations.
69817
69818 2007-06-10  Bruno Haible  <bruno@clisp.org>
69819
69820         * lib/string_.h (mbsnlen): New declaration.
69821         * lib/mbsnlen.c: New file.
69822         * m4/mbsnlen.m4: New file.
69823         * modules/mbsnlen: New file.
69824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69825         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69826         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69827
69828 2007-06-10  Bruno Haible  <bruno@clisp.org>
69829
69830         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69831
69832 2007-06-10  Bruno Haible  <bruno@clisp.org>
69833
69834         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69835         * lib/mbuiter.h: Likewise.
69836
69837 2007-06-10  Bruno Haible  <bruno@clisp.org>
69838
69839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69840         declaration.
69841
69842 2007-06-10  Karl Berry  <karl@gnu.org>
69843
69844         * config/srclist.txt: remove gettext entries, Bruno prefers
69845         to update individually.
69846
69847 2007-06-10  Bruno Haible  <bruno@clisp.org>
69848
69849         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69850         'maxlen'. Ensure only length + width bytes are allocated, not
69851         length + 1 + width.
69852
69853 2007-06-09  Bruno Haible  <bruno@clisp.org>
69854
69855         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69856         (CHAR_T): Remove macro.
69857         (VASNPRINTF): Update.
69858
69859 2007-06-09  Bruno Haible  <bruno@clisp.org>
69860
69861         * MODULES.html.sh (Unicode string functions): Add the new modules.
69862
69863         * modules/uniconv/u32-conv-to-enc: New file.
69864         * lib/uniconv/u32-conv-to-enc.c: New file.
69865         * modules/uniconv/u32-conv-to-enc-tests: New file.
69866         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69867
69868         * modules/uniconv/u16-conv-to-enc: New file.
69869         * lib/uniconv/u16-conv-to-enc.c: New file.
69870         * lib/uniconv/u-conv-to-enc.h: New file.
69871         * modules/uniconv/u16-conv-to-enc-tests: New file.
69872         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69873
69874         * modules/uniconv/u8-conv-to-enc: New file.
69875         * lib/uniconv/u8-conv-to-enc.c: New file.
69876         * modules/uniconv/u8-conv-to-enc-tests: New file.
69877         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69878
69879         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69880         u32_conv_to_encoding): New declarations.
69881
69882 2007-06-09  Bruno Haible  <bruno@clisp.org>
69883
69884         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69885
69886 2007-06-09  Bruno Haible  <bruno@clisp.org>
69887
69888         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69889         * modules/malloca: Renamed from modules/allocsa, updated.
69890         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69891         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69892         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69893         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69894         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69895         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69896         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69897         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69898         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69899         * modules/c-strcasestr (Depends-on): Update.
69900         * lib/c-strcasestr.c: Update.
69901         * modules/c-strstr (Depends-on): Update.
69902         * lib/c-strstr.c: Update.
69903         * modules/canonicalize-lgpl (Depends-on): Update.
69904         * lib/canonicalize-lgpl.c: Update.
69905         * modules/clean-temp (Depends-on): Update.
69906         * lib/clean-temp.c: Update.
69907         * modules/csharpcomp (Depends-on): Update.
69908         * lib/csharpcomp.c: Update.
69909         * modules/csharpexec (Depends-on): Update.
69910         * lib/csharpexec.c: Update.
69911         * modules/javacomp (Depends-on): Update.
69912         * lib/javacomp.c: Update.
69913         * modules/javaexec (Depends-on): Update.
69914         * lib/javaexec.c: Update.
69915         * modules/mbscasestr (Depends-on): Update.
69916         * lib/mbscasestr.c: Update.
69917         * modules/mbsstr (Depends-on): Update.
69918         * lib/mbsstr.c: Update.
69919         * modules/setenv (Depends-on): Update.
69920         * lib/setenv.c: Update.
69921         * modules/strcasestr (Depends-on): Update.
69922         * lib/strcasestr.c: Update.
69923         * modules/striconveha (Depends-on): Update.
69924         * lib/striconveha.c: Update.
69925         * modules/relocatable-prog-wrapper (Files): Update.
69926         * lib/relocwrapper.c: Update.
69927         * build-aux/install-reloc: Update.
69928         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69929
69930 2007-06-08  Bruno Haible  <bruno@clisp.org>
69931
69932         Port to uClibc.
69933         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69934         * lib/fpurge.c (fpurge): Likewise.
69935         * lib/freading.c (freading): Likewise.
69936         * lib/fseeko.c (rpl_fseeko): Likewise.
69937         * lib/fseterr.c (fseterr): Likewise.
69938         * lib/fwriting.c (fwriting): Likewise.
69939         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69940
69941 2007-06-08  Bruno Haible  <bruno@clisp.org>
69942
69943         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69944         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69945         * modules/gettext (Files): Add m4/intlmacosx.m4.
69946
69947 2007-06-07  Bruno Haible  <bruno@clisp.org>
69948
69949         * modules/localename-tests: New file.
69950         * tests/test-localename.c: New file.
69951
69952         New module 'localename'.
69953         * lib/localename.h: New file.
69954         * lib/localename.c: New file, from GNU gettext.
69955         * m4/localename.m4: New file.
69956         * modules/localename: New file.
69957
69958 2007-06-07  Bruno Haible  <bruno@clisp.org>
69959
69960         Work around the lack of <wchar.h> on some builds of uClibc.
69961         * doc/headers/wchar.texi: Update.
69962         * lib/wchar_.h: Include <wchar.h> only if it exists.
69963         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69964         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69965         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69966         doesn't exist.
69967         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69968         * modules/mbfile (Depends-on): Add wchar.
69969         * modules/mbiter (Depends-on): Likewise.
69970         * modules/mbuiter (Depends-on): Likewise.
69971         Reported by Simon Josefsson.
69972
69973 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         Work around problem reported by Steven M. Schweda in
69976         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69977         Tru64 5.1B with the Compaq compiler environment installed declares
69978         an 'isblank' function but does not define it in the C library.
69979         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69980         * lib/regex_internal.h (isblank): Likewise.
69981         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69982         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69983
69984 2007-06-05  Bruno Haible  <bruno@clisp.org>
69985
69986         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69987         ia64.
69988         * modules/printf-safe: New file.
69989         * modules/fprintf-posix (Depends-on): Add printf-safe.
69990         * modules/printf-posix (Depends-on): Likewise.
69991         * modules/snprintf-posix (Depends-on): Likewise.
69992         * modules/sprintf-posix (Depends-on): Likewise.
69993         * modules/vasnprintf-posix (Depends-on): Likewise.
69994         * modules/vasprintf-posix (Depends-on): Likewise.
69995         * modules/vfprintf-posix (Depends-on): Likewise.
69996         * modules/vprintf-posix (Depends-on): Likewise.
69997         * modules/vsnprintf-posix (Depends-on): Likewise.
69998         * modules/vsprintf-posix (Depends-on): Likewise.
69999         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
70000         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
70001         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
70002         "no" on i386, x86_64, ia64.
70003         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
70004         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70005         on i386, x86_64, ia64.
70006         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
70007         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70008         on i386, x86_64, ia64.
70009         * tests/test-vasnprintf-posix.c: Include float.h.
70010         (LDBL80_WORDS): New macro.
70011         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70012         on i386, x86_64, ia64.
70013         * tests/test-vasprintf-posix.c: Include float.h.
70014         (LDBL80_WORDS): New macro.
70015         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70016         on i386, x86_64, ia64.
70017         * tests/test-snprintf-posix.c: Include float.h.
70018         * tests/test-sprintf-posix.c: Likewise.
70019         * tests/test-vsnprintf-posix.c: Likewise.
70020         * tests/test-vsprintf-posix.c: Likewise.
70021
70022 2007-06-05  Bruno Haible  <bruno@clisp.org>
70023
70024         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
70025         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
70026         non-IEEE numbers on i386, x86_64, ia64.
70027         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
70028         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
70029         * tests/test-isnanl.h: Include float.h.
70030         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
70031
70032 2007-06-05  Bruno Haible  <bruno@clisp.org>
70033
70034         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
70035         also the %a / %A. Handle the %a / %A code before this extra handling.
70036
70037 2007-06-05  Bruno Haible  <bruno@clisp.org>
70038
70039         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
70040         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
70041
70042 2007-06-05  Bruno Haible  <bruno@clisp.org>
70043
70044         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
70045         typo in variable name.
70046
70047 2007-06-05  Eric Blake  <ebb9@byu.net>
70048
70049         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
70050         Reported by Simon Josefsson.
70051
70052 2007-06-04  Bruno Haible  <bruno@clisp.org>
70053
70054         Avoid test failures on some PowerPC platforms.
70055         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
70056         Define differently for PowerPC.
70057         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
70058         Reported by Gary V. Vaughan <gary@gnu.org>.
70059
70060 2007-06-02  Bruno Haible  <bruno@clisp.org>
70061
70062         Fix test-stdint failure on FreeBSD/ia64.
70063         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
70064         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
70065         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
70066         * doc/headers/stdint.texi: Update.
70067
70068 2007-06-01  Bruno Haible  <bruno@clisp.org>
70069
70070         * tests/test-binary-io.c (main): Pass a third argument to open().
70071         Reported by Gary V. Vaughan <gary@gnu.org>.
70072
70073 2007-06-01  Bruno Haible  <bruno@clisp.org>
70074
70075         * doc/functions/frexpl.texi: Update for mingw.
70076
70077 2007-06-01  Bruno Haible  <bruno@clisp.org>
70078
70079         * tests/test-lseek.c (main): Disable test of errno for invalid third
70080         argument.
70081         * doc/functions/lseek.texi: Update.
70082         Reported by Gary V. Vaughan <gary@gnu.org>.
70083
70084 2007-05-28  Bruno Haible  <bruno@clisp.org>
70085
70086         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
70087
70088 2007-05-31  Eric Blake  <ebb9@byu.net>
70089
70090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
70091         cross compiling.
70092
70093 2007-05-30  Eric Blake  <ebb9@byu.net>
70094         and Bruno Haible  <bruno@clisp.org>
70095
70096         Work around mingw test failures exposed by m4-1.4.9b.
70097         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
70098         * tests/test-unistd.c: Disable uid_t and git_t tests for the
70099         moment.
70100
70101 2007-05-30  Bruno Haible  <bruno@clisp.org>
70102
70103         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
70104         assuming that they are closed. Needed on HP-UX 11.
70105
70106 2007-05-29  Bruno Haible  <bruno@clisp.org>
70107
70108         Fix a problem with #include_next.
70109         * lib/dirent_.h: Split the double-inclusion guard.
70110         * lib/fcntl_.h: Likewise.
70111         * lib/float_.h: Likewise.
70112         * lib/iconv_.h: Likewise.
70113         * lib/inttypes_.h: Likewise.
70114         * lib/locale_.h: Likewise.
70115         * lib/math_.h: Likewise.
70116         * lib/netinet_in_.h: Likewise.
70117         * lib/search_.h: Likewise.
70118         * lib/signal_.h: Likewise.
70119         * lib/stdint_.h: Likewise.
70120         * lib/stdio_.h: Likewise.
70121         * lib/stdlib_.h: Likewise.
70122         * lib/string_.h: Likewise.
70123         * lib/sys_select_.h: Likewise.
70124         * lib/sys_socket_.h: Likewise.
70125         * lib/sys_stat_.h: Likewise.
70126         * lib/sys_time_.h: Likewise.
70127         * lib/sysexits_.h: Likewise.
70128         * lib/time_.h: Likewise.
70129         * lib/unistd_.h: Likewise.
70130         * lib/wchar_.h: Likewise.
70131         * lib/wctype_.h: Likewise.
70132
70133 2007-05-29  Bruno Haible  <bruno@clisp.org>
70134
70135         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
70136         for the moment.
70137
70138 2007-05-29  Bruno Haible  <bruno@clisp.org>
70139
70140         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
70141         invocation.
70142         Reported by Eric Blake.
70143
70144 2007-05-29  Bruno Haible  <bruno@clisp.org>
70145
70146         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
70147         compiling case.
70148
70149 2007-05-29  Eric Blake  <ebb9@byu.net>
70150             Bruno Haible  <bruno@clisp.org>
70151
70152         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
70153         cross compiles.
70154
70155 2007-05-28  Eric Blake  <ebb9@byu.net>
70156
70157         * modules/closein-tests (test_closein_LDADD): Support test on
70158         cygwin with libtool.
70159
70160 2007-05-28  Bruno Haible  <bruno@clisp.org>
70161
70162         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
70163         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70164         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70165         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70166         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70167         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70168         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70169         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70170         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70171
70172 2007-05-28  Eric Blake  <ebb9@byu.net>
70173
70174         Unconditionally include <config.h> in unit tests.
70175         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
70176         * tests/test-allocsa.c, tests/test-arcfour.c,
70177         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
70178         tests/test-array_list.c, tests/test-array_oset.c,
70179         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
70180         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
70181         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
70182         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
70183         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
70184         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
70185         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
70186         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
70187         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
70188         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
70189         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
70190         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
70191         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
70192         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
70193         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
70194         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
70195         test-md5.c, test-memmem.c, test-printf-posix.c,
70196         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
70197         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
70198         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
70199         test-strcasestr.c, test-striconv.c, test-striconveh.c,
70200         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
70201         test-vasnprintf-posix2.c, test-vasnprintf.c,
70202         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
70203         test-vfprintf-posix.c, test-vprintf-posix.c,
70204         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70205         test-xvasprintf.c: Likewise.
70206
70207 2007-05-28  Bruno Haible  <bruno@clisp.org>
70208
70209         * gnulib-tool (func_import): Remember the --with-tests command-line
70210         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70211         Reported by Eric Blake.
70212
70213 2007-05-28  Bruno Haible  <bruno@clisp.org>
70214
70215         * modules/ftell-tests: New file.
70216         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70217         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70218
70219         * lib/ftell.c: New file.
70220         * modules/ftell: New file.
70221         * m4/ftell.m4: New file.
70222         * doc/functions/ftell.texi: Update.
70223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70224         REPLACE_FTELL.
70225         * lib/stdio_.h (rpl_ftell): New declaration.
70226         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70227         REPLACE_FTELL.
70228
70229 2007-05-28  Eric Blake  <ebb9@byu.net>
70230
70231         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70232
70233 2007-05-28  Bruno Haible  <bruno@clisp.org>
70234
70235         * modules/fseek-tests: New file.
70236         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70237         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70238
70239         * lib/fseek.c: New file.
70240         * modules/fseek: New file.
70241         * m4/fseek.m4: New file.
70242         * doc/functions/fseek.texi: Update.
70243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70244         REPLACE_FSEEK.
70245         * lib/stdio_.h (rpl_fseek): New declaration.
70246         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70247         REPLACE_FSEEK.
70248
70249 2007-05-28  Bruno Haible  <bruno@clisp.org>
70250
70251         * lib/stdio_.h (fflush): More comments.
70252
70253 2007-05-28  Bruno Haible  <bruno@clisp.org>
70254
70255         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70256         runtime test.
70257
70258 2007-05-28  Eric Blake  <ebb9@byu.net>
70259
70260         Improve lseek module.
70261         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70262         * lib/unistd_.h (lseek): Scale back link warning message.
70263         * tests/test-lseek.c: Beef up test.
70264         * tests/test-lseek.sh: Exercise more facets of lseek.
70265         Reported by Bruno Haible.
70266
70267 2007-05-28  Bruno Haible  <bruno@clisp.org>
70268
70269         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70270         to define.
70271
70272 2007-05-27  Bruno Haible  <bruno@clisp.org>
70273
70274         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70275
70276 2007-05-27  Bruno Haible  <bruno@clisp.org>
70277
70278         * modules/openmp: New file.
70279         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70280         Noah Misch.
70281
70282 2007-05-26  Bruno Haible  <bruno@clisp.org>
70283
70284         * modules/chdir-long (Depends-on): Add fchdir.
70285         * modules/chdir-safer (Depends-on): Likewise.
70286         * modules/fts (Depends-on): Likewise.
70287         * modules/fts-lgpl (Depends-on): Likewise.
70288         * modules/openat (Depends-on): Likewise.
70289         * modules/savewd (Depends-on): Likewise.
70290
70291 2007-05-24  Eric Blake  <ebb9@byu.net>
70292
70293         Fix lseek on mingw.
70294         * modules/lseek: New module.
70295         * m4/lseek.m4: New file.
70296         * lib/lseek.c: New file.
70297         * modules/lseek-tests: New file.
70298         * tests/test-lseek.c: New file.
70299         * tests/test-lseek.sh: New file.
70300         * MODULES.html.sh: Document lseek module.
70301         * modules/fflush (Depends-on): Add lseek, fseeko.
70302         * modules/fseeko (Depends-on): Likewise.
70303         * modules/ftello (Depends-on): Likewise.
70304         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70305         broken.
70306         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70307         broken.
70308         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70309         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70310         * lib/ftello.c (rpl_ftello): Likewise.
70311         * tests/test-fseeko.c (main): Test this.
70312         * tests/test-fseeko.sh: Likewise.
70313         * tests/test-ftello.c (main): Likewise.
70314         * tests/test-ftello.sh: Likewise.
70315         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70316         implies replacing fseek.
70317         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70318         HAVE_FTELLO.
70319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70320         * modules/unistd (Makefile.am): Likewise.
70321         * lib/unistd_.h (lseek): Declare a replacement.
70322         * doc/functions/lseek.texi (lseek): Document this fix.
70323         * doc/functions/fseek.texi (fseek): Likewise.
70324         * doc/functions/ftell.texi (ftell): Likewise.
70325
70326 2007-05-24  Bruno Haible  <bruno@clisp.org>
70327
70328         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70329         in the printed representation of a NaN.
70330         * tests/test-vasprintf-posix.c (test_function): Likewise.
70331         * tests/test-snprintf-posix.h (test_function): Likewise.
70332         * tests/test-sprintf-posix.h (test_function): Likewise.
70333         Reported by Eric Blake.
70334
70335 2007-05-23  Eric Blake  <ebb9@byu.net>
70336
70337         Fix fseeko/ftello on cygwin 1.5.24.
70338         * doc/functions/fseeko.texi (fseeko): Document the fix.
70339         * doc/functions/ftello.texi (ftello): Document the fix.
70340         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70341         * doc/functions/stdout.text (stdout): New file.
70342         * doc/functions/stderr.text (stderr): New file.
70343         * doc/gnulib.texi (Function Substitutes): Use new files.
70344         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70345         prior to 1.7.0.
70346         * tests/test-ftello.c (main): Likewise for ftello.
70347         * tests/test-fseeko.sh: New file.
70348         * tests/test-ftello.sh: New file.
70349         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70350         with seekable stdin.
70351         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70352         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70353         (gl_REPLACE_FSEEKO): New macro.
70354         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70355         * modules/fseeko (Files): Distribute fseeko.c.
70356         * modules/ftello (Files): Distribute ftello.c.
70357         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70358         mode.
70359         * lib/ftello.c (rpl_ftello): New file.
70360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70361         fseeko, ftello.
70362         (gl_STDIN_LARGE_OFFSET): New macro.
70363         * modules/stdio (Makefile.am): Perform the replacement.
70364         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70365
70366 2007-05-23  Bruno Haible  <bruno@clisp.org>
70367
70368         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70369         GNULIB_POSIXCHECK is defined.
70370
70371 2007-05-21  Bruno Haible  <bruno@clisp.org>
70372
70373         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70374         Check also the output for NaN arguments. When cross-compiling, guess
70375         no on IRIX.
70376         * lib/vasnprintf.c: Update comments.
70377         * tests/test-vasnprintf-posix.c (strisnan): New function.
70378         (test_function): Use it.
70379         * tests/test-vasprintf-posix.c (strisnan): New function.
70380         (test_function): Use it.
70381         * tests/test-snprintf-posix.h (strisnan): New function.
70382         (test_function): Use it.
70383         * tests/test-sprintf-posix.h (strisnan): New function.
70384         (test_function): Use it.
70385         Reported by Eric Blake.
70386
70387 2007-05-20  Bruno Haible  <bruno@clisp.org>
70388
70389         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70390         numbers that fails on BeOS.
70391         * doc/functions/frexpl.texi: Update.
70392
70393 2007-05-20  Jim Meyering  <jim@meyering.net>
70394
70395         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70396         forced upon us by glibc-2.6.
70397
70398 2007-05-20  Bruno Haible  <bruno@clisp.org>
70399
70400         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70401         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70402         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70403         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70404         NEED_PRINTF_INFINITE.
70405         (is_infinitel): New function.
70406         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70408         gl_PREREQ_VASNPRINTF_INFINITE.
70409         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70410         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70411         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70412         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70413         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70414         gl_PREREQ_VASNPRINTF_INFINITE.
70415         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70416         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70417         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70418         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70419         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70422         * doc/functions/fprintf.texi: Update.
70423         * doc/functions/printf.texi: Update.
70424         * doc/functions/snprintf.texi: Update.
70425         * doc/functions/sprintf.texi: Update.
70426         * doc/functions/vfprintf.texi: Update.
70427         * doc/functions/vprintf.texi: Update.
70428         * doc/functions/vsnprintf.texi: Update.
70429         * doc/functions/vsprintf.texi: Update.
70430
70431 2007-05-20  Bruno Haible  <bruno@clisp.org>
70432
70433         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70434         was not found in libc.
70435         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70436
70437 2007-05-20  Bruno Haible  <bruno@clisp.org>
70438
70439         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70440         printed as "-nan" instead of "nan".
70441         * tests/test-vasprintf-posix.c (test_function): Likewise.
70442         * tests/test-snprintf-posix.h (test_function): Likewise.
70443         * tests/test-sprintf-posix.h (test_function): Likewise.
70444         Needed for HP-UX 11.
70445
70446 2007-05-20  Jim Meyering  <jim@meyering.net>
70447
70448         Fix buggy test for the fchownat-deref bug.
70449         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70450         symlink required for the run-test.  Without it, this test would
70451         always declare that fchownat doesn't work, and client code would
70452         unnecessarily use the replacement function with fixed libc.
70453         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70454         Reported by Greg Schafer.
70455
70456 2007-05-19  Bruno Haible  <bruno@clisp.org>
70457
70458         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70459         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70460         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70461         Needed for IRIX 6.5 and Solaris 2.5.1.
70462
70463 2007-05-19  Bruno Haible  <bruno@clisp.org>
70464
70465         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70466         (test_function): Skip tests involving -0.0 on platforms where
70467         -0.0 = 0.0.
70468         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70469         (test_function): Skip tests involving -0.0 on platforms where
70470         -0.0 = 0.0.
70471         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70472         (test_function): Skip tests involving -0.0 on platforms where
70473         -0.0 = 0.0.
70474         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70475         (test_function): Skip tests involving -0.0 on platforms where
70476         -0.0 = 0.0.
70477         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70478         tests.
70479         * tests/test-printf-posix.h (test_function): Likewise.
70480         * tests/test-printf-posix.output: Remove all -0.0 related results.
70481         Needed for IRIX 6.5.
70482
70483 2007-05-19  Bruno Haible  <bruno@clisp.org>
70484
70485         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70486         printed as "nan0x7fffffff" instead of "nan".
70487         * tests/test-vasprintf-posix.c (test_function): Likewise.
70488         * tests/test-snprintf-posix.h (test_function): Likewise.
70489         * tests/test-sprintf-posix.h (test_function): Likewise.
70490         * tests/test-fprintf-posix.h (NaN): Remove macro.
70491         (test_function): Remove all NaN related tests.
70492         * tests/test-printf-posix.h (NaN): Remove macro.
70493         (test_function): Remove all NaN related tests.
70494         * tests/test-printf-posix.output: Remove all NaN related results.
70495         Needed for IRIX 6.5.
70496
70497 2007-05-19  Bruno Haible  <bruno@clisp.org>
70498
70499         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70500         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70501
70502 2007-05-19  Bruno Haible  <bruno@clisp.org>
70503
70504         * lib/float_.h: New file.
70505         * m4/float_h.m4: New file.
70506         * modules/float: New file.
70507         * modules/isnanl (Dependencies): Add float.
70508         * modules/isnanl-nolibm (Dependencies): Likewise.
70509         * modules/mathl (Dependencies): Likewise.
70510         * modules/printf-frexpl (Dependencies): Likewise.
70511         * modules/signbit (Dependencies): Likewise.
70512         * modules/vasnprintf (Dependencies): Likewise.
70513         * doc/headers/float.texi: Update.
70514
70515 2007-05-19  Jim Meyering  <jim@meyering.net>
70516
70517         * lib/utimens.c (gl_futimens): Rename from futimens,
70518         now that glibc-2.6 declares futimens.
70519         * lib/utimens.h: Likewise.
70520
70521 2007-05-19  Bruno Haible  <bruno@clisp.org>
70522
70523         Avoid test failures on mingw.
70524         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70525         * tests/test-printf-posix.sh: Likewise.
70526         * tests/test-vfprintf-posix.sh: Likewise.
70527         * tests/test-vprintf-posix.sh: Likewise.
70528
70529 2007-05-19  Bruno Haible  <bruno@clisp.org>
70530
70531         Fix *printf result for NaN, Inf, -0.0 on mingw.
70532         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70533         * lib/vasnprintf.c: Include math.h and isnan.h.
70534         (is_infinite_or_zero): New function.
70535         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70536         values in the %f, %F, %e, %E, %g, %G directives.
70537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70538         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70539         gl_PRINTF_INFINITE and test its result. Invoke
70540         gl_PREREQ_VASNPRINTF_INFINITE.
70541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70545         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70546         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70547         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70548         * doc/functions/fprintf.texi: Update.
70549         * doc/functions/printf.texi: Update.
70550         * doc/functions/snprintf.texi: Update.
70551         * doc/functions/sprintf.texi: Update.
70552         * doc/functions/vfprintf.texi: Update.
70553         * doc/functions/vprintf.texi: Update.
70554         * doc/functions/vsnprintf.texi: Update.
70555         * doc/functions/vsprintf.texi: Update.
70556
70557 2007-05-19  Bruno Haible  <bruno@clisp.org>
70558
70559         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70560         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70561         Instead of multiplying with 10^k, set extra_zeroes to k.
70562         (scale10_round_long_double): Remove function.
70563
70564 2007-05-18  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70567         introduced on 2007-05-06.
70568
70569 2007-05-18  Bruno Haible  <bruno@clisp.org>
70570
70571         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70572         %g directives.
70573         * tests/test-vasprintf-posix.c (test_function): Likewise.
70574         * tests/test-snprintf-posix.h (test_function): Likewise.
70575         * tests/test-sprintf-posix.h (test_function): Likewise.
70576
70577 2007-05-18  Bruno Haible  <bruno@clisp.org>
70578
70579         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70580         (strmatch): New function.
70581         (test_function): Test the %f directive on numbers of various exponents.
70582         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70583         (strmatch): New function.
70584         (test_function): Test the %f directive on numbers of various exponents.
70585         * tests/test-snprintf-posix.h (strmatch): New function.
70586         (test_function): Test the %f directive on numbers of various exponents.
70587         * tests/test-sprintf-posix.h (strmatch): New function.
70588         (test_function): Test the %f directive on numbers of various exponents.
70589         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70590         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70591         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70592         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70593
70594 2007-05-18  Bruno Haible  <bruno@clisp.org>
70595
70596         Add support for 'long double' number output.
70597         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70598         * lib/vasnprintf.c: Include math.h and float+.h.
70599         (mp_limb_t): New type.
70600         (GMP_LIMB_BITS): New macro.
70601         (mp_twolimb_t): New type.
70602         (GMP_TWOLIMB_BITS): New macro.
70603         (mpn_t): New type.
70604         (multiply, divide, convert_to_decimal, decode_long_double,
70605         scale10_round_long_double, scale10_round_decimal_long_double,
70606         floorlog10l): New functions.
70607         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70608         for the %f, %F, %e, %E, %g, %G directives.
70609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70611         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70612         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70613         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70614         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70620         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70621         * modules/snprintf-posix (Depends-on): Likewise.
70622         * modules/sprintf-posix (Depends-on): Likewise.
70623         * modules/vasnprintf-posix (Depends-on): Likewise.
70624         * modules/vasprintf-posix (Depends-on): Likewise.
70625         * modules/vfprintf-posix (Depends-on): Likewise.
70626         * modules/vsnprintf-posix (Depends-on): Likewise.
70627         * modules/vsprintf-posix (Depends-on): Likewise.
70628         * modules/vasnprintf (Files): Add lib/float+.h.
70629         * doc/functions/fprintf.texi: Update.
70630         * doc/functions/printf.texi: Update.
70631         * doc/functions/snprintf.texi: Update.
70632         * doc/functions/sprintf.texi: Update.
70633         * doc/functions/vfprintf.texi: Update.
70634         * doc/functions/vprintf.texi: Update.
70635         * doc/functions/vsnprintf.texi: Update.
70636         * doc/functions/vsprintf.texi: Update.
70637
70638 2007-05-18  Bruno Haible  <bruno@clisp.org>
70639
70640         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70641
70642 2007-05-18  Bruno Haible  <bruno@clisp.org>
70643
70644         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70645         for printing 64-bit integers. Needed for mingw.
70646
70647 2007-05-18  Bruno Haible  <bruno@clisp.org>
70648
70649         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70650         gl_FUNC_FREXPL_WORKS.
70651         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70652
70653 2007-05-18  Bruno Haible  <bruno@clisp.org>
70654
70655         * modules/frexpl-nolibm-tests: New file.
70656
70657         * modules/frexpl-nolibm: New file.
70658         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70659
70660 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70661
70662         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70663         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70664         GCC 4.2, which otherwise issues a lot of warnings.
70665         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70666         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70667         Likewise.
70668         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70669         * modules/iconv_open (iconv.h): Likewise.
70670         * modules/locale (locale.h): Likewise.
70671         * modules/netinet_in (netinet/in.h): Likewise.
70672         * modules/sys_select (sys_select.h): Likewise.
70673         * modules/sys_socket (sys/socket.h): Likewise.
70674         * modules/sys_stat (sys/stat.h): Likewise.
70675         * modules/sysexits (sysexits.h): Likewise.
70676         * modules/unistd (unistd.h): Likewise.
70677
70678 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70679
70680         * modules/closein-tests (Makefile.am): Distribute
70681         `test-closein.sh'.
70682
70683 2007-05-17  Bruno Haible  <bruno@clisp.org>
70684
70685         * tests/test-printf-posix.output: Renamed from
70686         tests/test-fprintf-posix.out.
70687         * modules/fprintf-posix-tests: Update.
70688         * modules/printf-posix-tests: Update.
70689         * modules/vfprintf-posix-tests: Update.
70690         * modules/vprintf-posix-tests: Update.
70691         * tests/test-fprintf-posix.sh: Update.
70692         * tests/test-printf-posix.sh: Update.
70693         * tests/test-vfprintf-posix.sh: Update.
70694         * tests/test-vprintf-posix.sh: Update.
70695         Reported by Ralf Wildenhues.
70696
70697 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70700         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70701         GCC 4.2, which otherwise issues a lot of warnings.
70702         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70703         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70704         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70705         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70706         it should no longer be needed.
70707         * lib/string_.h: Likewise.
70708         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70709         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70710         * modules/inttypes (inttypes.h): Likewise.
70711         * modules/math (math.h): Likewise.
70712         * modules/search (search.h): Likewise.
70713         * modules/signal (signal.h): Likewise.
70714         * modules/stdint (stdint.h): Likewise.
70715         * modules/stdio (stdio.h): Likewise.
70716         * modules/stdlib (stdlib.h): Likewise.
70717         * modules/string (string.h): Likewise.
70718         * modules/sys_time (sys/time.h): Likewise.
70719         * modules/time (time.h): Likewise.
70720         * modules/wchar (wchar.h): Likewise.
70721         * modules/wctype (wtype.h): Likewise.
70722
70723 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70724
70725         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70726
70727 2007-05-13  Bruno Haible  <bruno@clisp.org>
70728
70729         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70730         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70731         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70732         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70733         (gl_PREREQ_STRTOK_R): Don't require it here.
70734
70735 2007-05-13  Bruno Haible  <bruno@clisp.org>
70736
70737         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70738         when used in C++ mode.
70739
70740 2007-05-12  Bruno Haible  <bruno@clisp.org>
70741
70742         * lib/linebuffer.h: Tweak doc.
70743         * lib/linebuffer.c: Likewise.
70744
70745 2007-05-12  James Youngman  <jay@gnu.org>
70746
70747         * lib/linebuffer.c (readlinebuffer_delim): New function,
70748         like readlinebuffer, but use a caller-specified delimiter.
70749         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70750         as the delimiter.
70751         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70752
70753 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70754
70755         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70756         * modules/openat (Files): Remove openat-die.c.
70757         (Depends-on): Add openat-die.
70758         * modules/openat-die: New module.
70759
70760 2007-05-06  Bruno Haible  <bruno@clisp.org>
70761
70762         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70763         Update with info about Cygwin.
70764         * doc/functions/fprintf.texi: Update.
70765         * doc/functions/printf.texi: Update.
70766         * doc/functions/snprintf.texi: Update.
70767         * doc/functions/sprintf.texi: Update.
70768         * doc/functions/vfprintf.texi: Update.
70769         * doc/functions/vprintf.texi: Update.
70770         * doc/functions/vsnprintf.texi: Update.
70771         * doc/functions/vsprintf.texi: Update.
70772         Reported by Eric Blake.
70773
70774 2007-05-06  Bruno Haible  <bruno@clisp.org>
70775
70776         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70777         padding ourselves for the floating-point directives.
70778         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70780         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70781         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70782         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70784         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70785         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70786         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70787         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70788         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70789         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70790         * tests/test-snprintf-posix.h (test_function): Also check the width
70791         and some flags in the %f directive.
70792         * tests/test-sprintf-posix.h (test_function): Likewise.
70793         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70794         * tests/test-vasprintf-posix.c (test_function): Likewise.
70795         * doc/functions/fprintf.texi: Update.
70796         * doc/functions/printf.texi: Update.
70797         * doc/functions/snprintf.texi: Update.
70798         * doc/functions/sprintf.texi: Update.
70799         * doc/functions/vfprintf.texi: Update.
70800         * doc/functions/vprintf.texi: Update.
70801         * doc/functions/vsnprintf.texi: Update.
70802         * doc/functions/vsprintf.texi: Update.
70803
70804 2007-05-06  Bruno Haible  <bruno@clisp.org>
70805
70806         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70807         pass the ' flag character to sprintf or snprintf.
70808         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70810         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70811         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70812         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70819         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70820         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70821         flag.
70822         * tests/test-sprintf-posix.h (test_function): Likewise.
70823         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70824         * tests/test-vasprintf-posix.c (test_function): Likewise.
70825         * doc/functions/fprintf.texi: Update.
70826         * doc/functions/printf.texi: Update.
70827         * doc/functions/snprintf.texi: Update.
70828         * doc/functions/sprintf.texi: Update.
70829         * doc/functions/vfprintf.texi: Update.
70830         * doc/functions/vprintf.texi: Update.
70831         * doc/functions/vsnprintf.texi: Update.
70832         * doc/functions/vsprintf.texi: Update.
70833
70834 2007-05-01  Bruno Haible  <bruno@clisp.org>
70835
70836         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70837
70838 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70841         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70842
70843 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70844
70845         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70846         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70848
70849 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70850
70851         * lib/argp-help.c (struct hol_entry): New member `ord'.
70852         (HOL_ENTRY_PTRCMP): Use ord for comparison
70853         (hol_sort): Initialize ord.
70854
70855 2007-05-01  Bruno Haible  <bruno@clisp.org>
70856
70857         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70858         Reported by Eric Blake.
70859         * doc/gnulib.texi (Function Substitutes): Update.
70860
70861 2007-05-01  Bruno Haible  <bruno@clisp.org>
70862
70863         * doc/functions.texi: Remove file, now redundant through
70864         doc/functions/*.texi.
70865
70866 2007-05-01  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/argp (Depends-on): Add sleep.
70869
70870 2007-05-01  Bruno Haible  <bruno@clisp.org>
70871
70872         * modules/sleep-tests: New file.
70873         * tests/test-sleep.c: New file.
70874
70875         * modules/sleep: New file.
70876         * lib/sleep.c: New file.
70877         * m4/sleep.m4: New file.
70878         * lib/unistd_.h (sleep): New declaration.
70879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70880         HAVE_SLEEP.
70881         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70882         * doc/functions/sleep.texi: Document the sleep module.
70883
70884 2007-05-01  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/sigprocmask.h: Remove file.
70887         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70888         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70889         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70890         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70891         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70892         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70893         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70894         HAVE_SIGSET_T as a shell variable.
70895         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70896         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70897         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70898         (Depends-on): Add signal. Remove verify.
70899         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70900         (Include): Mention <signal.h> instead of sigprocmask.h.
70901         * NEWS: Mention the change.
70902         * lib/fatal-signal.c: Don't include sigprocmask.h.
70903
70904 2007-05-01  Bruno Haible  <bruno@clisp.org>
70905
70906         * modules/signal: New file.
70907         * lib/signal_.h: New file.
70908         * m4/signal_h.m4: New file.
70909
70910 2007-05-01  Bruno Haible  <bruno@clisp.org>
70911
70912         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70913         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70914         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70915         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70916
70917 2007-05-01  Bruno Haible  <bruno@clisp.org>
70918
70919         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70920         configure time.
70921         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70922         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70923         * modules/sys_stat (Makefile.am): Substitute their values into
70924         sys/stat.h.
70925
70926 2007-05-01  Bruno Haible  <bruno@clisp.org>
70927
70928         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70929         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70930         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70931
70932 2007-05-01  Bruno Haible  <bruno@clisp.org>
70933
70934         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70935         'assert' module here.
70936
70937 2007-05-01  Bruno Haible  <bruno@clisp.org>
70938
70939         * doc/functions/*.texi: New files.
70940         * doc/functions/google-ranking.txt: New file.
70941         * doc/gnulib.texi (Function Substitutes): New chapter.
70942         (ctime, inet_ntoa): Remove sections.
70943         * doc/ctime.texi: Remove file.
70944         * doc/inet_ntoa.texi: Remove file.
70945         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70946         dependencies.
70947         (%.info): New rule, specifying a --reference-limit.
70948
70949 2007-05-01  Bruno Haible  <bruno@clisp.org>
70950
70951         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70952
70953 2007-05-01  Bruno Haible  <bruno@clisp.org>
70954
70955         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70956         the portability of 'mkdir' to mingw systems.
70957
70958 2007-05-01  Bruno Haible  <bruno@clisp.org>
70959
70960         * doc/headers/google-ranking.txt: New file.
70961
70962 2007-04-30  Eric Blake  <ebb9@byu.net>
70963
70964         Prefer fseeko to fseek.
70965         * modules/getpass (Depends-on): Add fseeko.
70966         * lib/getpass.c (getpass): Use fseeko, not fseek.
70967
70968 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70969
70970         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70971         assumes the sorting is stable, while most qsort implementations
70972         are not.  Use argument addresses to ensure they never compare as
70973         equal.
70974
70975         * tests/test-argp-2.sh (usage-indent test): Fix output
70976         (func_compare): Restore diff options
70977         * tests/test-argp.c: Restore #include "progname.h"
70978
70979 2007-04-29  Bruno Haible  <bruno@clisp.org>
70980
70981         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70983         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70984         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70985         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70986         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70987         (TESTS, check_PROGRAMS): Add test-snprintf.
70988         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70989         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70990         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70991         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70992         assertions that fail on HP-UX, OSF/1, or IRIX.
70993         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70994
70995 2007-04-29  Bruno Haible  <bruno@clisp.org>
70996
70997         * MODULES.html.sh (posix_functions): Remove 'contents'.
70998
70999 2007-04-29  Karl Berry  <karl@gnu.org>
71000
71001         * config/srclist.txt (gendocs_template_min): new entry.
71002
71003 2007-04-29  Bruno Haible  <bruno@clisp.org>
71004
71005         Work around fpurge bug on BSD systems.
71006         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
71007         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
71008         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
71009         fpurge to rpl_fpurge if the system already has this function.
71010         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
71011         the case where the system already has this function. Correct invariants
71012         on BSD systems.
71013         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
71014         BSD systems.
71015
71016 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
71017
71018         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
71019         proposed by Sven Verdoolaege.
71020
71021         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
71022         options.
71023         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
71024         (usage and help tests): Update
71025
71026 2007-04-29  Bruno Haible  <bruno@clisp.org>
71027
71028         * tests/test-fflush.c (main): Use a file of size 17, not 10.
71029         Print more information in case of failure. Disable a test on BeOS.
71030
71031 2007-04-29  Bruno Haible  <bruno@clisp.org>
71032
71033         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
71034         This helps debugging on systems on which no gdb is available.
71035
71036 2007-04-29  Bruno Haible  <bruno@clisp.org>
71037
71038         * lib/freading.h: Improve comments.
71039         * lib/fwriting.h: Likewise.
71040         * tests/test-freading.c (main): Don't check freading immediately after
71041         repositioning. Needed for glibc.
71042
71043 2007-04-29  Bruno Haible  <bruno@clisp.org>
71044
71045         * lib/freading.c (freading): Trivial simplification.
71046
71047 2007-04-28  Bruno Haible  <bruno@clisp.org>
71048
71049         * tests/test-fwriting.c (main): Also test the interaction between
71050         fflush and fwriting.
71051         * modules/fwriting-tests (Depends-on): Add fflush.
71052
71053         * tests/test-freading.c (main): Also test the interaction between
71054         fflush and freading.
71055         * modules/freading-tests (Depends-on): Add fflush.
71056
71057 2007-04-28  Bruno Haible  <bruno@clisp.org>
71058
71059         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
71060         fseeko and ftello.
71061         Suggested by Eric Blake.
71062
71063 2007-04-28  Jim Meyering  <jim@meyering.net>
71064
71065         Avoid false-negative in gl_STDINT_H's C99 conformance test.
71066         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
71067         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
71068
71069 2007-04-27  Eric Blake  <ebb9@byu.net>
71070
71071         * doc/headers/assert.texi (assert.h): Document assert module use.
71072
71073 2007-04-27  Bruno Haible  <bruno@clisp.org>
71074
71075         * doc/headers/*.texi: New files.
71076         * doc/gnulib.texi (Header File Substitutes): New chapter.
71077         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
71078         dependencies.
71079         (standards.info ,standards.html, standards.dvi): Update dependencies.
71080         (mostlyclean, clean): New targets.
71081
71082 2007-04-27  Bruno Haible  <bruno@clisp.org>
71083
71084         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
71085         * modules/sysexits (Files, Makefile.am): Update.
71086
71087         * lib/sys_socket_.h: Renamed from lib/socket_.h.
71088         * modules/sys_socket (Files, Makefile.am): Update.
71089
71090         * lib/sys_stat_.h: Renamed from lib/stat_.h.
71091         * modules/sys_stat (Files, Makefile.am): Update.
71092
71093 2007-04-27  Eric Blake  <ebb9@byu.net>
71094
71095         * lib/freading.h: Improve comments.
71096         * lib/fwriting.h: Likewise.
71097         * lib/fflush.c: Likewise.
71098
71099         Fix closein for mingw.
71100         * modules/closein-tests: Add tests for closein.
71101         * tests/test-closein.c: New file.
71102         * tests/test-closein.sh: Likewise.
71103         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
71104         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
71105
71106 2007-04-27  Bruno Haible  <bruno@clisp.org>
71107
71108         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
71109         version is < 6.
71110         * lib/math_.h [__DECC]: Likewise.
71111         * lib/stdio_.h [__DECC]: Likewise.
71112         * lib/stdlib_.h [__DECC]: Likewise.
71113         * lib/string_.h [__DECC]: Likewise.
71114         * lib/time_.h [__DECC]: Likewise.
71115         * lib/wchar_.h [__DECC]: Likewise.
71116         * lib/wctype_.h [__DECC]: Likewise.
71117
71118 2007-04-27  Bruno Haible  <bruno@clisp.org>
71119
71120         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
71121
71122 2007-04-27  Bruno Haible  <bruno@clisp.org>
71123
71124         * lib/fflush.c: Add comments.
71125         * modules/fpurge-tests (Depends-on): Add fflush.
71126         * modules/freadable-tests (Depends-on): Likewise.
71127         * modules/fwritable-tests (Depends-on): Likewise.
71128
71129 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
71130
71131         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
71132         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
71133         Report by Bruno Haible <bruno@clisp.org>.
71134
71135 2007-04-26  Eric Blake  <ebb9@byu.net>
71136
71137         Fix fflush on mingw.
71138         * modules/fflush (Depends-on): Add freading.
71139         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
71140         but unread data.
71141
71142 2007-04-26  Eric Blake  <ebb9@byu.net>
71143         and Bruno Haible  <bruno@clisp.org>
71144
71145         Implement freading and fwriting.
71146         * lib/freading.c: New file.
71147         * lib/freading.h: Likewise.
71148         * m4/freading.m4: Likewise.
71149         * modules/freading: Likewise.
71150         * modules/freading-tests: Likewise.
71151         * tests/test-freading.c: Likewise.
71152         * lib/fwriting.c: New file.
71153         * lib/fwriting.h: Likewise.
71154         * m4/fwriting.m4: Likewise.
71155         * modules/fwriting: Likewise.
71156         * modules/fwriting-tests: Likewise.
71157         * tests/test-fwriting.c: Likewise.
71158         * MODULES.html.sh (File stream based Input/Output): Mention them.
71159
71160 2007-04-26  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
71163         'long' when we assume it.
71164         Suggested by Eric Blake.
71165
71166 2007-04-26  Bruno Haible  <bruno@clisp.org>
71167
71168         Ensure fseeko, ftello are declared on glibc systems.
71169         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
71170         * modules/fseeko (configure.ac-early): Likewise.
71171         * modules/ftello (configure.ac-early): Likewise.
71172         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
71173         AC_FUNC_FSEEKO for this.
71174         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
71175         (gl_CHECK_FSEEKO): Remove macro.
71176
71177 2007-04-26  Bruno Haible  <bruno@clisp.org>
71178
71179         * tests/test-fflush.c (main): Also check the ftell result after
71180         fflush and fseek/fseeko.
71181         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
71182         file descriptor position cache in the stream.
71183         * lib/fseeko.c (rpl_fseeko): Likewise.
71184
71185 2007-04-26  Bruno Haible  <bruno@clisp.org>
71186
71187         * modules/fflush-tests (Depends-on): Add fseeko.
71188
71189 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
71190             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71191
71192         * lib/argz_.h: ensure error_t definition is obtained in same
71193         mechanism system argz.h would have.
71194         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
71195         argz facilities are known bad.  Err on the side of caution if
71196         cross-compiling.
71197
71198 2007-04-25  Eric Blake  <ebb9@byu.net>
71199
71200         * lib/fpurge.c (includes): Use stdlib.h for free.
71201         * tests/test-fflush.c (main): Also test fflush-fseeko.
71202
71203 2007-04-25  Bruno Haible  <bruno@clisp.org>
71204
71205         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71206         * lib/fseeko.c: New file.
71207         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71208         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71209         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71210         gl_FUNC_FSEEKO.
71211         (gl_FUNC_FSEEKO): Invoke it.
71212         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71213         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71214         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71215
71216 2007-04-25  Bruno Haible  <bruno@clisp.org>
71217
71218         * modules/fflush (Depends-on): Add ftello.
71219
71220 2007-04-25  Bruno Haible  <bruno@clisp.org>
71221
71222         * modules/ftello-tests: New file.
71223         * tests/test-ftello.c: New file.
71224
71225         * modules/ftello: New file.
71226         * m4/ftello.m4: New file.
71227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71228         HAVE_FTELLO.
71229         * lib/stdio_.h (ftello): New declaration.
71230         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71231         HAVE_FTELLO.
71232
71233 2007-04-25  Bruno Haible  <bruno@clisp.org>
71234
71235         * modules/fseeko-tests: New file.
71236         * tests/test-fseeko.c: New file.
71237
71238         * modules/fseeko: New file.
71239         * m4/fseeko.m4: New file.
71240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71241         HAVE_FSEEKO.
71242         * lib/stdio_.h (fseeko): New declaration.
71243         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71244         HAVE_FSEEKO.
71245
71246 2007-04-25  Bruno Haible  <bruno@clisp.org>
71247
71248         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71249
71250 2007-04-25  Bruno Haible  <bruno@clisp.org>
71251
71252         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71253         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71254         * tests/test-unistd.c: Likewise.
71255         * tests/test-fcntl.c: Likewise.
71256
71257 2007-04-23  Eric Blake  <ebb9@byu.net>
71258
71259         * lib/fflush.c: Fix missing include.
71260         Reported by Bruno Haible.
71261
71262 2007-04-23  Bruno Haible  <bruno@clisp.org>
71263
71264         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71265         Reported by Eric Blake.
71266
71267 2007-04-23  Bruno Haible  <bruno@clisp.org>
71268
71269         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71270
71271 2007-04-23  Bruno Haible  <bruno@clisp.org>
71272
71273         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71274
71275 2007-04-23  Bruno Haible  <bruno@clisp.org>
71276
71277         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71278         Needed on HP-UX 11.
71279
71280 2007-04-16  Eric Blake  <ebb9@byu.net>
71281
71282         Make fflush rely on fpurge.
71283         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71284         open coding all variants.
71285         * modules/fflush (Depends-on): Add fpurge and unistd.
71286         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71287         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71288
71289         Fix --with-tests compilation on cygwin.
71290         * modules/argmatch-tests (Makefile.am): List gnulib library first
71291         in LDADD.
71292         * modules/argp-tests (Makefile.am): Likewise.
71293         * modules/array-list-tests (Makefile.am): Likewise.
71294         * modules/array-oset-tests (Makefile.am): Likewise.
71295         * modules/avltree-list-tests (Makefile.am): Likewise.
71296         * modules/avltree-oset-tests (Makefile.am): Likewise.
71297         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71298         * modules/carray-list-tests (Makefile.am): Likewise.
71299         * modules/dirname-tests (Makefile.am): Likewise.
71300         * modules/frexp-tests (Makefile.am): Likewise.
71301         * modules/isnanl-tests (Makefile.am): Likewise.
71302         * modules/linked-list-tests (Makefile.am): Likewise.
71303         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71304         * modules/lock-tests (Makefile.am): Likewise.
71305         * modules/rbtree-list-tests (Makefile.am): Likewise.
71306         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71307         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71308         * modules/tls-tests (Makefile.am): Likewise.
71309         * modules/tsearch-tests (Makefile.am): Likewise.
71310         * modules/xvasprintf-tests (Makefile.am): Likewise.
71311
71312         Fix fpurge for cygwin.
71313         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71314         value.
71315         * modules/fpurge-tests (Depends-on): Clean up trash.
71316
71317 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71318
71319         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71320
71321         * m4/autobuild.m4: Re-indent.
71322
71323 2007-04-13  Bruno Haible  <bruno@clisp.org>
71324
71325         * modules/fpurge-tests: New file.
71326         * tests/test-fpurge.c: New file.
71327
71328         * modules/fpurge: New file.
71329         * lib/fpurge.h: New file.
71330         * lib/fpurge.c: New file.
71331         * m4/fpurge.m4: New file.
71332
71333 2007-04-13  Bruno Haible  <bruno@clisp.org>
71334
71335         * modules/fbufmode-tests: New file.
71336         * tests/test-fbufmode.c: New file.
71337
71338         * modules/fbufmode: New file.
71339         * lib/fbufmode.h: New file.
71340         * lib/fbufmode.c: New file.
71341         * m4/fbufmode.m4: New file.
71342
71343 2007-04-13  Bruno Haible  <bruno@clisp.org>
71344
71345         * modules/fwritable-tests: New file.
71346         * tests/test-fwritable.c: New file.
71347
71348         * modules/fwritable: New file.
71349         * lib/fwritable.h: New file.
71350         * lib/fwritable.c: New file.
71351         * m4/fwritable.m4: New file.
71352
71353 2007-04-13  Bruno Haible  <bruno@clisp.org>
71354
71355         * modules/freadable-tests: New file.
71356         * tests/test-freadable.c: New file.
71357
71358         * modules/freadable: New file.
71359         * lib/freadable.h: New file.
71360         * lib/freadable.c: New file.
71361         * m4/freadable.m4: New file.
71362
71363 2007-04-13  Bruno Haible  <bruno@clisp.org>
71364
71365         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71366         MOSTLYCLEANFILES.
71367
71368 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71369
71370         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71371         gzip bootstrap.conf to avoid dragging in i18n machinery.
71372         (gnulib_tool_option): Use it.
71373
71374 2007-04-13  Bruno Haible  <bruno@clisp.org>
71375
71376         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71377         %F directives.
71378         * tests/test-vasprintf-posix.c (test_function): Likewise.
71379         * tests/test-snprintf-posix.h (test_function): Likewise.
71380         * tests/test-sprintf-posix.h (test_function): Likewise.
71381         * tests/test-fprintf-posix.h (test_function): Likewise.
71382         * tests/test-printf-posix.h (test_function): Likewise.
71383         * tests/test-fprintf-posix.out: Likewise.
71384
71385 2007-04-13  Bruno Haible  <bruno@clisp.org>
71386
71387         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71388         * modules/tls-tests (configure.ac): Likewise.
71389         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71390
71391 2007-04-13  Bruno Haible  <bruno@clisp.org>
71392
71393         * lib/tls.c (glthread_tls_get): Fix return type.
71394         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71395
71396 2007-04-12  Eric Blake  <ebb9@byu.net>
71397
71398         * modules/gettime (Depends-on): Remove gettime.
71399         Reported by Dmitry V. Levin.
71400
71401 2007-04-12  Bruno Haible  <bruno@clisp.org>
71402
71403         * modules/fflush (Include): Mention <stdio.h>.
71404         * modules/strtoimax (Include): Mention <inttypes.h>.
71405         * modules/strtoumax (Include): Likewise.
71406
71407 2007-04-12  Eric Blake  <ebb9@byu.net>
71408
71409         * .cvsignore: New file.
71410         * .gitignore: Likewise.
71411
71412 2007-04-12  Bruno Haible  <bruno@clisp.org>
71413
71414         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71415         not before, since $(LDADD) often contains libgnu.a.
71416         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71417         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71418         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71419         Needed on Cygwin.
71420
71421 2007-04-12  Eric Blake  <ebb9@byu.net>
71422
71423         Work around glibc's failure to flush stdin on fclose.
71424         * lib/closein.c (close_stdin): Flush stdin before closing.
71425
71426         Work around glibc's failure to reset seekable stdin on exit.
71427         * modules/closein: New module.
71428         * lib/closein.c: New file.
71429         * lib/closein.h: Likewise.
71430         * m4/closein.m4: Likewise.
71431         * MODULES.html.sh (File stream based Input/Output): Document it.
71432
71433 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71434
71435         * gnulib-tool: Rename generated 'autobuild' script to
71436         'do-autobuild' in --create-megatestdir output.
71437
71438         * doc/gnulib.texi (Build robot for gnulib): Fix.
71439
71440 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71441
71442         * modules/sysexits (Depends-on): Add absolute-header.
71443
71444 2007-04-12  Eric Blake  <ebb9@byu.net>
71445
71446         No need to preserve errno on success.
71447         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71448         Reported by Bruno Haible.
71449
71450 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71451
71452         * MODULES.html.sh (Support for maintaining and releasing
71453         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71454
71455 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71456
71457         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71458
71459 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71460
71461         * modules/autobuild: New module.
71462
71463         * m4/autobuild.m4: New file.
71464
71465 2007-04-11  Bruno Haible  <bruno@clisp.org>
71466
71467         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71468         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71469         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71471         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71472         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71473         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71475         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71476         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71477         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71478         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71479         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71481         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71482         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71483         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71484         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71485         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71486         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71487         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71488         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71489         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71490         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71491         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71492         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71493         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71494         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71495         Reported by Eric Blake.
71496
71497 2007-04-11  Bruno Haible  <bruno@clisp.org>
71498
71499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71500
71501 2007-04-10  Bruno Haible  <bruno@clisp.org>
71502
71503         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71504         for NaN and Infinity. Needed on FreeBSD 6.1.
71505         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71506         regarding results for "%010a" of Infinity and NaN.
71507         * tests/test-vasprintf-posix.c (test_function): Likewise.
71508         * tests/test-snprintf-posix.h (test_function): Likewise.
71509         * tests/test-sprintf-posix.h (test_function): Likewise.
71510         * tests/test-fprintf-posix.h (test_function): Likewise.
71511         * tests/test-printf-posix.h (test_function): Likewise.
71512         * tests/test-fprintf-posix.out: Likewise.
71513
71514 2007-04-10  Bruno Haible  <bruno@clisp.org>
71515
71516         * modules/locale-tests: New file.
71517         * tests/test-locale.c: New file.
71518
71519         * modules/locale: New file.
71520         * lib/locale_.h: New file.
71521         * m4/locale_h.m4: New file.
71522
71523 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71524             Bruno Haible  <bruno@clisp.org>
71525
71526         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71527         be determined, test for availability of the copysignf, copysign,
71528         copysignl functions.
71529         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71530         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71531         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71532
71533 2007-04-09  Eric Blake  <ebb9@byu.net>
71534
71535         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71536         * modules/stdio (Makefile.am): Support fflush.
71537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71538         * modules/fflush: New file.
71539         * lib/fflush.c: Likewise.
71540         * m4/fflush.m4: Likewise.
71541         * modules/fflush-tests: New test.
71542         * tests/test-fflush.c: Likewise.
71543         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71544
71545 2007-04-06  Bruno Haible  <bruno@clisp.org>
71546
71547         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71548         (VASNPRINTF): Use signbit for faster determination whether to print a
71549         minus sign.
71550         * modules/vasnprintf (Files): Remove lib/float+.h.
71551         * modules/fprintf-posix (Depends-on): Add signbit.
71552         * modules/snprintf-posix (Depends-on): Likewise.
71553         * modules/sprintf-posix (Depends-on): Likewise.
71554         * modules/vasnprintf-posix (Depends-on): Likewise.
71555         * modules/vasprintf-posix (Depends-on): Likewise.
71556         * modules/vfprintf-posix (Depends-on): Likewise.
71557         * modules/vsnprintf-posix (Depends-on): Likewise.
71558         * modules/vsprintf-posix (Depends-on): Likewise.
71559
71560 2007-04-06  Bruno Haible  <bruno@clisp.org>
71561
71562         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71563         * tests/test-frexpl.c (main): Likewise.
71564         * tests/test-ldexpl.c (main): Likewise.
71565         * modules/frexp-tests (Depends-on): Add signbit.
71566         * modules/frexpl-tests (Depdends-on): Likewise.
71567         * modules/ldexpl-tests (Depdends-on): Likewise.
71568
71569 2007-04-06  Bruno Haible  <bruno@clisp.org>
71570
71571         * modules/signbit-tests: New file.
71572         * tests/test-signbit.c: New file.
71573
71574         * modules/signbit: New file.
71575         * lib/signbitf.c: New file.
71576         * lib/signbitd.c: New file.
71577         * lib/signbitl.c: New file.
71578         * m4/signbit.m4: New file.
71579         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71580         (signbit): New macro.
71581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71582         REPLACE_SIGNBIT.
71583         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71584         REPLACE_FREXPL into math.h.
71585
71586 2007-04-06  Bruno Haible  <bruno@clisp.org>
71587
71588         * modules/isnanf-nolibm-tests: New file.
71589         * tests/test-isnanf.c: New file.
71590
71591         * modules/isnanf-nolibm: New file.
71592         * lib/isnanf.h: New file.
71593         * lib/isnanf.c: New file.
71594         * lib/isnan.c: Consider the USE_FLOAT macro.
71595         * m4/isnanf.m4: New file.
71596
71597 2007-04-06  Bruno Haible  <bruno@clisp.org>
71598
71599         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71600         (Link): New section.
71601
71602         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71603
71604 2007-04-06  Bruno Haible  <bruno@clisp.org>
71605
71606         Assume the 'long double' type.
71607         * m4/longdouble.m4: Remove file.
71608         * config/srclist.txt: Don't mention longdouble.m4.
71609         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71610         * lib/float+.h: Likewise.
71611         * lib/frexp.c: Likewise.
71612         * lib/printf-args.h: Likewise.
71613         * lib/printf-args.c: Likewise.
71614         * lib/printf-frexp.c: Likewise.
71615         * lib/printf-parse.c: Likewise.
71616         * lib/vasnprintf.c: Likewise.
71617         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71618         * m4/intl.m4: Likewise.
71619         * m4/isnanl.m4: Likewise.
71620         * m4/printf.m4: Likewise.
71621         * m4/printf-frexpl.m4: Likewise.
71622         * m4/vasnprintf.m4: Likewise.
71623         * modules/allocsa (Files): Remove m4/longdouble.m4.
71624         * modules/gettext (Files): Likewise.
71625         * modules/relocatable-prog-wrapper (Files): Likewise.
71626         * modules/vasnprintf (Files): Likewise.
71627         * modules/isnanl (Files): Likewise.
71628         (Include): Simplify.
71629         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71630         (Include): Simplify.
71631         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71632         (Include): Simplify.
71633         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71634         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71635         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71636         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71637         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71638         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71639         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71640         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71641         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71642         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71643         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71644         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71645         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71646         * tests/test-isnanl.c: Likewise.
71647         * tests/test-snprintf-posix.h: Likewise.
71648         * tests/test-sprintf-posix.h: Likewise.
71649         * tests/test-vasnprintf-posix.c: Likewise.
71650         * tests/test-vasnprintf-posix2.c: Likewise.
71651         * tests/test-vasprintf-posix.c: Likewise.
71652
71653 2007-04-06  Bruno Haible  <bruno@clisp.org>
71654
71655         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71656         * lib/math_.h [__DECC]: Include the overridden include file through
71657         #include_next, outside the double-inclusion guard.
71658         * lib/stdio_.h [__DECC]: Likewise.
71659         * lib/stdlib_.h [__DECC]: Likewise.
71660         * lib/string_.h [__DECC]: Likewise.
71661         * lib/time_.h [__DECC]: Likewise.
71662         * lib/wchar_.h [__DECC]: Likewise.
71663         * lib/wctype_.h [__DECC]: Likewise.
71664         * lib/inttypes_.h [__DECC]: Likewise.
71665         Reported by Albert Chin <china@thewrittenword.com> in
71666         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71667
71668 2007-04-04  Eric Blake  <ebb9@byu.net>
71669
71670         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71671         1.5.x.
71672
71673 2007-04-04  Bruno Haible  <bruno@clisp.org>
71674
71675         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71676         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71677
71678 2007-04-04  Bruno Haible  <bruno@clisp.org>
71679
71680         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71681         results for "%010a" of Infinity and NaN.
71682         * tests/test-vasprintf-posix.c (test_function): Likewise.
71683         * tests/test-snprintf-posix.h (test_function): Likewise.
71684         * tests/test-sprintf-posix.h (test_function): Likewise.
71685         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71686         * tests/test-printf-posix.h (test_function): Likewise.
71687         * tests/test-fprintf-posix.out: Update.
71688         Needed for FreeBSD 6.1.
71689
71690 2007-04-04  Bruno Haible  <bruno@clisp.org>
71691
71692         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71693         directly used by the gnulib modules nor by gnulib-tool.
71694
71695 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71696
71697         * DEPENDENCIES: Give overall description of version dependency
71698         desirability.  Use more-typical names for apps.
71699         Add shell, coreutils, diffutils, grep, tar, gzip.
71700
71701 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71702
71703         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71704
71705 2007-04-04  Karl Berry  <karl@gnu.org>
71706
71707         * MODULES.html.sh (func_module): missing '.
71708
71709 2007-04-03  Bruno Haible  <bruno@clisp.org>
71710
71711         * modules/argmatch-tests (Makefile.am): New variable
71712         test_argmatch_LDADD.
71713         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71714         * modules/array-list-tests (Makefile.am): New variable
71715         test_array_list_LDADD.
71716         * modules/array-oset-tests (Makefile.am): New variable
71717         test_array_oset_LDADD.
71718         * modules/avltree-list-tests (Makefile.am): New variable
71719         test_avltree_list_LDADD.
71720         * modules/avltree-oset-tests (Makefile.am): New variable
71721         test_avltree_oset_LDADD.
71722         * modules/avltreehash-list-tests (Makefile.am): New variable
71723         test_avltreehash_list_LDADD.
71724         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71725         test_canonicalize_lgpl_LDADD.
71726         * modules/carray-list-tests (Makefile.am): New variable
71727         test_carray_list_LDADD.
71728         * modules/dirname-tests (Makefile.am): New variable
71729         test_dirname_LDADD.
71730         * modules/linked-list-tests (Makefile.am): New variable
71731         test_linked_list_LDADD.
71732         * modules/linkedhash-list-tests (Makefile.am): New variable
71733         test_linkedhash_list_LDADD.
71734         * modules/rbtree-list-tests (Makefile.am): New variable
71735         test_rbtree_list_LDADD.
71736         * modules/rbtree-oset-tests (Makefile.am): New variable
71737         test_rbtree_oset_LDADD.
71738         * modules/rbtreehash-list-tests (Makefile.am): New variable
71739         test_rbtreehash_list_LDADD.
71740         * modules/xvasprintf-tests (Makefile.am): New variable
71741         test_xvasprintf_LDADD.
71742         Reported by Eric Blake.
71743
71744 2007-04-03  Eric Blake  <ebb9@byu.net>
71745
71746         * DEPENDENCIES: Weaken m4 requirements.
71747
71748 2007-04-03  Bruno Haible  <bruno@clisp.org>
71749
71750         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71751         * modules/isnanl-tests (configure.ac): Likewise.
71752
71753 2007-04-03  Ben Pfaff  <blp@gnu.org>
71754
71755         * modules/iconv_open: Add $(srcdir)/ to source directory
71756         references in Makefile fragments that call gperf, to fix VPATH
71757         builds.
71758
71759 2007-04-03  Bruno Haible  <bruno@clisp.org>
71760
71761         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71762         * lib/ldexpl.c: Undo last change.
71763
71764 2007-04-03  Bruno Haible  <bruno@clisp.org>
71765
71766         * modules/printf-frexpl (Depends-on): Undo last change.
71767         (Files): Add m4/ldexpl.m4.
71768
71769 2007-04-03  Bruno Haible  <bruno@clisp.org>
71770
71771         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71772         * modules/isnanl (Link): New section.
71773
71774         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71775         * modules/frexp (Link): New section.
71776
71777         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71778         * modules/frexpl (Link): New section.
71779
71780         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71781         * modules/ldexpl (Link): New section.
71782
71783 2007-04-03  Bruno Haible  <bruno@clisp.org>
71784
71785         * modules/TEMPLATE-EXTENDED: New file.
71786         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71787
71788 2007-04-03  Bruno Haible  <bruno@clisp.org>
71789
71790         * DEPENDENCIES: New file.
71791         Suggested by Simon Josefsson.
71792
71793 2007-04-03  Bruno Haible  <bruno@clisp.org>
71794
71795         * doc/gnulib.texi: Escape @.
71796
71797 2007-04-03  James Youngman  <jay@gnu.org>
71798         and Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71801         birthtime on all systems that have birthtime, not just those which
71802         use st_birthtimensec rather than st_birthtim.  Putting zero in
71803         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71804         that the birth time is not available for files on an NFS mount.
71805
71806 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71807
71808         * modules/memxor: Move back from crypto/, suggested by Bruno.
71809         * modules/crypto/hmac-sha1: Fix memxor dependency.
71810
71811         * modules/crypto/gc: Moved from ../.
71812
71813 2007-04-02  Eric Blake  <ebb9@byu.net>
71814
71815         * lib/ldexpl.c (includes): Avoid libm.
71816
71817         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71818
71819 2007-04-02  Bruno Haible  <bruno@clisp.org>
71820
71821         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71822         on IRIX.
71823
71824 2007-04-02  Bruno Haible  <bruno@clisp.org>
71825
71826         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71827         x86 or x86_64 platforms running MacOS X.
71828         Reported by Ryan Schmidt <@ryandesign.com>.
71829
71830 2007-04-02  Bruno Haible  <bruno@clisp.org>
71831
71832         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71833         i386.
71834
71835 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71836
71837         * modules/crypto/arcfour: Moved from ../.
71838         * modules/crypto/arcfour-tests: Moved from ../.
71839         * modules/crypto/arctwo: Moved from ../.
71840         * modules/crypto/arctwo-tests: Moved from ../.
71841         * modules/crypto/des: Moved from ../.
71842         * modules/crypto/des-tests: Moved from ../.
71843         * modules/crypto/gc-arcfour: Moved from ../.
71844         * modules/crypto/gc-arcfour-tests: Moved from ../.
71845         * modules/crypto/gc-arctwo: Moved from ../.
71846         * modules/crypto/gc-arctwo-tests: Moved from ../.
71847         * modules/crypto/gc-des: Moved from ../.
71848         * modules/crypto/gc-des-tests: Moved from ../.
71849         * modules/crypto/gc-hmac-md5: Moved from ../.
71850         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71851         * modules/crypto/gc-hmac-sha1: Moved from ../.
71852         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71853         * modules/crypto/gc-md2: Moved from ../.
71854         * modules/crypto/gc-md2-tests: Moved from ../.
71855         * modules/crypto/gc-md4: Moved from ../.
71856         * modules/crypto/gc-md4-tests: Moved from ../.
71857         * modules/crypto/gc-md5: Moved from ../.
71858         * modules/crypto/gc-md5-tests: Moved from ../.
71859         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71860         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71861         * modules/crypto/gc-random: Moved from ../.
71862         * modules/crypto/gc-rijndael: Moved from ../.
71863         * modules/crypto/gc-rijndael-tests: Moved from ../.
71864         * modules/crypto/gc-sha1: Moved from ../.
71865         * modules/crypto/gc-sha1-tests: Moved from ../.
71866         * modules/crypto/gc-tests: Moved from ../.
71867         * modules/crypto/hmac-md5: Moved from ../.
71868         * modules/crypto/hmac-md5-tests: Moved from ../.
71869         * modules/crypto/hmac-sha1: Moved from ../.
71870         * modules/crypto/hmac-sha1-tests: Moved from ../.
71871         * modules/crypto/md2: Moved from ../.
71872         * modules/crypto/md2-tests: Moved from ../.
71873         * modules/crypto/md4: Moved from ../.
71874         * modules/crypto/md4-tests: Moved from ../.
71875         * modules/crypto/md5: Moved from ../.
71876         * modules/crypto/md5-tests: Moved from ../.
71877         * modules/crypto/memxor: Moved from ../.
71878         * modules/crypto/rijndael: Moved from ../.
71879         * modules/crypto/rijndael-tests: Moved from ../.
71880         * modules/crypto/sha1: Moved from ../.
71881
71882 2007-03-30  James Youngman  <jay@gnu.org>
71883
71884         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71885         rename() to change the ctime of a file (because ctime is unaffected
71886         by rename on jfs2 on AIX 5.1).
71887         (main): Start by doing cleanup, in case a previous run failed leaving
71888         test files behind.
71889
71890 2007-03-31  Bruno Haible  <bruno@clisp.org>
71891
71892         Support old proprietary implementations of iconv.
71893         * modules/iconv_open: New file.
71894         * lib/iconv_.h: New file.
71895         * m4/iconv_h.m4: New file.
71896         * lib/iconv_open.c: New file.
71897         * lib/iconv_open-aix.gperf: New file.
71898         * lib/iconv_open-hpux.gperf: New file.
71899         * lib/iconv_open-irix.gperf: New file.
71900         * lib/iconv_open-osf.gperf: New file.
71901         * m4/iconv_open.m4: New file.
71902         * modules/linebreak (Depends-on): Add iconv_open.
71903         * modules/striconv (Depends-on): Likewise.
71904         * modules/striconveh (Depends-on): Likewise.
71905         * modules/unicodeio (Depends-on): Likewise.
71906         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71907         (iconv_t)(-1).
71908         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71909         conversion if cd is (iconv_t)(-1).
71910         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71911         is not possible.
71912
71913 2007-03-31  Bruno Haible  <bruno@clisp.org>
71914
71915         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71916         work on Solaris either. Protect also second use of "autodetect_jp".
71917
71918 2007-03-31  Bruno Haible  <bruno@clisp.org>
71919
71920         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71921         the function is not present.
71922
71923 2007-03-31  Bruno Haible  <bruno@clisp.org>
71924
71925         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71926         the function is not present.
71927
71928 2007-03-31  Bruno Haible  <bruno@clisp.org>
71929
71930         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71931         a bug in HP-UX iconv_open().
71932
71933 2007-03-31  Bruno Haible  <bruno@clisp.org>
71934
71935         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71936         (Mathematics <math.h>): New section, add fpieee.
71937         (Input/output <stdio.h>): Add fseterr.
71938         (Mathematics <math.h>): New section, add printf-frexp.
71939         (Container data structures): Add sublist.
71940         (Core language properties): Add fpucw, inline.
71941         (Functions for greatest-width integer types <inttypes.h>): Add
71942         imaxabs, imaxdiv, inttypes.
71943         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71944         isnanl-nolibm, ldexp.
71945         (Mathematics <math.h>): New section, add printf-frexpl.
71946         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71947         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71948         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71949         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71950         (Unicode string functions): Add unistr/u*-mbtoucr.
71951         (Java): Add javacomp-script, javaexec-script.
71952         (C#): Add csharpcomp-script, csharpexec-script.
71953         (Support for building libraries and executables): Add havelib,
71954         relocatable-*.
71955         (Support for maintaining and releasing projects): Renamed from
71956         'Support for maintaining and release projects'. Add announce-gen.
71957
71958 2007-03-31  Bruno Haible  <bruno@clisp.org>
71959
71960         * README: Talk primarily about git.
71961         (git and CVS): Renamed from CVS.
71962         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71963         gnulib is available through git.
71964         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71965
71966 2007-03-30  Bruno Haible  <bruno@clisp.org>
71967
71968         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71969         * lib/poll_.h: Likewise.
71970         * lib/stat_.h: Likewise.
71971         * lib/sys_time_.h: Likewise.
71972         * lib/sysexit_.h: Likewise.
71973         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71974         * lib/stdbool_.h: Likewise.
71975         * lib/byteswap_.h: Add double-inclusion guard.
71976
71977 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71978
71979         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71980
71981 2007-03-30  Karl Berry  <karl@gnu.org>
71982
71983         * config/srclist-update: double space after USA in the license
71984         substitution, since that's how it's usually (?) written.
71985
71986 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71987
71988         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71989         reported by Bruno Haible.
71990
71991 2007-03-29  Bruno Haible  <bruno@clisp.org>
71992
71993         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71994         a bug in AIX iconv().
71995
71996 2007-03-29  Bruno Haible  <bruno@clisp.org>
71997
71998         * modules/ldexpl-tests: New file.
71999         * tests/test-ldexpl.c: New file.
72000
72001 2007-03-29  Bruno Haible  <bruno@clisp.org>
72002
72003         * lib/ldexpl.c: Include fpucw.h.
72004         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
72005         multiplication.
72006         * modules/ldexpl (Depends-on): Add fpucw.
72007
72008 2007-03-29  Bruno Haible  <bruno@clisp.org>
72009
72010         * modules/ldexpl: New file.
72011         * m4/ldexpl.m4: New file.
72012         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
72013         set.
72014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
72015         REPLACE_LDEXPL.
72016         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
72017         REPLACE_LDEXPL.
72018         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
72019         gl_FUNC_LDEXPL_WORKS.
72020         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
72021         * modules/mathl (Files): Remove lib/ldexpl.c.
72022         (Depends-on): Add ldexpl.
72023
72024 2007-03-29  Bruno Haible  <bruno@clisp.org>
72025
72026         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
72027
72028 2007-03-29  Bruno Haible  <bruno@clisp.org>
72029
72030         * tests/test-striconveh.c (main): Don't assume that a direct conversion
72031         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
72032         and possibly also HP-UX.
72033         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
72034         work on AIX, IRIX, HP-UX, OSF/1.
72035         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
72036         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
72037         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
72038         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
72039         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
72040         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
72041
72042 2007-03-29  Bruno Haible  <bruno@clisp.org>
72043
72044         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
72045
72046 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72047
72048         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
72049         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
72050
72051 2007-03-29  Eric Blake  <ebb9@byu.net>
72052
72053         * lib/acl-internal.h: Remove redundant include.
72054         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
72055         Cygwin when a file is locked.
72056
72057 2007-03-29  Bruno Haible  <bruno@clisp.org>
72058
72059         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
72060         file.
72061         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
72062
72063 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72064
72065         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
72066         try to remove a parent directory if the child couldn't be removed
72067         (except for the first rmdir, which could fail because the child
72068         doesn't exist).  Problem reported by Jeff Blaine in
72069         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
72070
72071 2007-03-28  Bruno Haible  <bruno@clisp.org>
72072
72073         * lib/striconveh.c (utf8conv_carefully): New function.
72074         (mem_cd_iconveh_internal): Invoke it.
72075
72076 2007-03-28  Bruno Haible  <bruno@clisp.org>
72077
72078         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
72079         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
72080         input.
72081         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
72082         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
72083         unistr/u8-uctomb.
72084
72085 2007-03-28  Bruno Haible  <bruno@clisp.org>
72086
72087         * modules/unistr/u8-mbtoucr: New file.
72088         * lib/unistr/u8-mbtoucr.c: New file.
72089         * modules/unistr/u16-mbtoucr: New file.
72090         * lib/unistr/u16-mbtoucr.c: New file.
72091         * modules/unistr/u16-mbtoucr: New file.
72092         * lib/unistr/u16-mbtoucr.c: New file.
72093         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
72094
72095 2007-03-27  Simon Josefsson  <simon@josefsson.org>
72096             Bruno Haible  <bruno@clisp.org>
72097
72098         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
72099         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
72100         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
72101
72102         * m4/stdio_h.m4: Add stubs for vasprintf too.
72103
72104         * modules/stdio: Support vasprintf in sed command.
72105
72106         * modules/vasprintf: Depend on stdio for prototypes.  Remove
72107         vasprintf.h.  Add stdio module indicator.
72108
72109         * lib/stdio_.h: Declare asprintf and vasprintf, based on
72110         vasprintf.h.
72111
72112         * lib/vasprintf.h: File removed.
72113
72114         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
72115         * lib/vasprintf.c: Ditto.
72116         * lib/xvasprintf.c: Ditto.
72117         * tests/test-vasprintf-posix.c: Ditto.
72118         * tests/test-vasprintf.c: Ditto.
72119
72120 2007-03-27  Bruno Haible  <bruno@clisp.org>
72121
72122         Make vasnprintf multithread-safe.
72123         * lib/vasnprintf.c (decimal_point_char): New function.
72124         (VASNPRINTF): Use it.
72125         Suggested by Simon Josefsson.
72126
72127 2007-03-27  Eric Blake  <ebb9@byu.net>
72128
72129         Support sub-second birthtime on cygwin.
72130         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
72131         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
72132         (get_stat_birthtime): Also work with st_birthtim.
72133
72134 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
72135
72136         * lib/stat-time.h (USE_BIRTHTIME): Remove.
72137         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
72138         (get_stat_birthtime_ns): Do not try to use "spare" fields.
72139         (get_stat_birthtime_ns): Simplify compile-time tests.
72140         (get_stat_birthtime): Change the API to look like
72141         get_stat_mtime etc., except return a negative tv_nsec on error.
72142         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
72143         Don't check for "spare" fields.
72144         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
72145         or for struct stat.st_birthtime, as these tests aren't used.
72146         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
72147
72148 2007-03-27  Bruno Haible  <bruno@clisp.org>
72149
72150         * lib/stat-time.h: Include <sys/stat.h>.
72151
72152 2007-03-27  James Youngman  <jay@gnu.org>
72153
72154         * lib/stat-time.h (get_stat_birthtime): New function for
72155           retrieving st_birthtime as provided by UFS2 (hence *BSD).
72156         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
72157           and its variants.
72158         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
72159         * modules/stat-time-test: New file.
72160         * tests/test-stat-time.c: New test, devised by Bruno Haible.
72161
72162 2007-03-26  Bruno Haible  <bruno@clisp.org>
72163
72164         Better support of signalling NaNs.
72165         * lib/atanl.c: Include isnanl.h.
72166         (atanl): Perform test for NaN at the beginning of the function and
72167         through a call to isnanl.
72168         * lib/cosl.c: Include isnanl.h.
72169         (cosl): Perform test for NaN at the beginning of the function and
72170         through a call to isnanl.
72171         * lib/ldexpl.c: Include isnanl.h.
72172         (ldexpl): Perform test for NaN through a call to isnanl.
72173         * lib/logl.c: Include isnanl.h.
72174         (logl): Perform test for NaN at the beginning of the function and
72175         through a call to isnanl.
72176         * lib/sinl.c: Include isnanl.h.
72177         (sinl): Perform test for NaN at the beginning of the function and
72178         through a call to isnanl.
72179         * lib/sqrtl.c: Include isnanl.h.
72180         (sqrtl): Perform test for NaN at the beginning of the function and
72181         through a call to isnanl.
72182         * lib/tanl.c: Include isnanl.h.
72183         (tanl): Perform test for NaN at the beginning of the function and
72184         through a call to isnanl.
72185         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
72186         * modules/mathl (Depends-on): Add isnanl.
72187
72188 2007-03-26  Eric Blake  <ebb9@byu.net>
72189
72190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
72191         regression in logic sense of previous patch.
72192
72193 2007-03-26  Bruno Haible  <bruno@clisp.org>
72194
72195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
72196         unportable shell command "if ! ...".
72197         Reported by Ralf Wildenhues.
72198
72199 2007-03-25  Bruno Haible  <bruno@clisp.org>
72200
72201         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
72202         <sysexits.h> file, and only add EX_CONFIG.
72203         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72204         absolute file name and whether it is sufficient. Substitute also
72205         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72206         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72207         ABSOLUTE_SYSEXITS_H into sysexits.h.
72208
72209 2007-03-25  Bruno Haible  <bruno@clisp.org>
72210
72211         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72212         hints is NULL.
72213
72214 2007-03-25  Bruno Haible  <bruno@clisp.org>
72215
72216         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72217         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72218
72219 2007-03-25  Bruno Haible  <bruno@clisp.org>
72220
72221         * lib/vasnprintf.c: Include langinfo.h.
72222         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72223         multithread-safe.
72224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72225         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72226         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72229         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72230         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72232         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72233         Reported by Simon Josefsson.
72234
72235 2007-03-25  Bruno Haible  <bruno@clisp.org>
72236
72237         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72238         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72239         * modules/vasnprintf (Depends-on): Add stdint.
72240
72241 2007-03-25  Bruno Haible  <bruno@clisp.org>
72242
72243         * modules/fpieee: New file.
72244         * m4/fpieee.m4: New file.
72245         * modules/isnan-nolibm (Depends-on): Add fpieee.
72246         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72247         * modules/isnanl (Depends-on): Add fpieee.
72248
72249 2007-03-25  Bruno Haible  <bruno@clisp.org>
72250
72251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72252
72253 2007-03-25  Bruno Haible  <bruno@clisp.org>
72254
72255         Avoid test failures on IRIX 6.5.
72256         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72257         (main): Use it.
72258         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72259         macros.
72260         (main): Use them.
72261
72262 2007-03-25  Bruno Haible  <bruno@clisp.org>
72263
72264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72265         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72266         exists but doesn't work.
72267         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72268         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72270         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72271         math.h.
72272
72273 2007-03-25  Bruno Haible  <bruno@clisp.org>
72274
72275         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72276         returns inf. Needed on IRIX 6.5.
72277
72278 2007-03-25  Bruno Haible  <bruno@clisp.org>
72279
72280         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72281         (main): Use isnanl instead of x != x idiom.
72282         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72283
72284         * tests/test-frexp.c: Include isnan.h.
72285         (main): Use isnan instead of x != x idiom.
72286         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72287
72288 2007-03-25  Bruno Haible  <bruno@clisp.org>
72289
72290         * tests/test-frexp.c (NaN): New function/macro.
72291         (main): Use it instead of 0.0 / 0.0.
72292         * tests/test-isnan.c (NaN): New function/macro.
72293         (main): Use it instead of 0.0 / 0.0.
72294         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72295         (test_function): Use it instead of 0.0 / 0.0.
72296         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72297         (test_function): Use it instead of 0.0 / 0.0.
72298         * tests/test-snprintf-posix.h (NaN): New function/macro.
72299         (test_function): Use it instead of 0.0 / 0.0.
72300         * tests/test-sprintf-posix.h (NaN): New function/macro.
72301         (test_function): Use it instead of 0.0 / 0.0.
72302         * tests/test-fprintf-posix.h (NaN): New function/macro.
72303         (test_function): Use it instead of 0.0 / 0.0.
72304         * tests/test-printf-posix.h (NaN): New function/macro.
72305         (test_function): Use it instead of 0.0 / 0.0.
72306
72307         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72308
72309 2007-03-25  Bruno Haible  <bruno@clisp.org>
72310
72311         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72312
72313 2007-03-25  Bruno Haible  <bruno@clisp.org>
72314
72315         * lib/regexec.c (merge_state_with_log): Make static.
72316
72317 2007-03-25  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/trigl.c (kernel_rem_pio2): Make static.
72320
72321 2007-03-25  Bruno Haible  <bruno@clisp.org>
72322
72323         * lib/sincosl.c (sincosl_table): Make static.
72324
72325 2007-03-25  Bruno Haible  <bruno@clisp.org>
72326
72327         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72328         if the compiler does not support C99.
72329
72330 2007-03-25  Bruno Haible  <bruno@clisp.org>
72331
72332         * modules/time (Makefile.am): Ensure all rule action lines start with a
72333         tab.
72334
72335 2007-03-24  Bruno Haible  <bruno@clisp.org>
72336
72337         * modules/tsearch-tests: New file.
72338         * tests/test-tsearch.sh: New file.
72339         * tests/test-tsearch.c: New file, mostly copied from glibc.
72340
72341         * modules/search-tests: New file.
72342         * tests/test-search.c: New file.
72343
72344         * modules/search: New file.
72345         * lib/search_.h: New file, incorporating lib/tsearch.h.
72346         * m4/search_h.m4: New file.
72347         * lib/tsearch.h: Remove file.
72348         * lib/tsearch.c: Include search.h instead of tsearch.h.
72349         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72350         HAVE_TSEARCH.
72351         * modules/tsearch (Files): Remove lib/tsearch.h.
72352         (Depends-on): Add search.
72353         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72354         (Include): Change tsearch.h into search.h.
72355
72356 2007-03-24  Bruno Haible  <bruno@clisp.org>
72357
72358         * modules/fpucw: New file.
72359         * lib/fpucw.h: New file.
72360         * lib/frexp.c: Include fpucw.h.
72361         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72362         (FUNC): Use them.
72363         * lib/printf-frexp.c: Include fpucw.h.
72364         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72365         (FUNC): Use them.
72366         * lib/vasnprintf.c: Include fpucw.h.
72367         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72368         'long double' calculations.
72369         * tests/test-frexpl.c: Include fpucw.h.
72370         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72371         * tests/test-printf-frexpl.c: Include fpucw.h.
72372         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72373         * modules/frexpl (Depends-on): Add fpucw.
72374         * modules/printf-frexpl (Depends-on): Likewise.
72375         * modules/fprintf-posix (Depends-on): Likewise.
72376         * modules/snprintf-posix (Depends-on): Likewise.
72377         * modules/sprintf-posix (Depends-on): Likewise.
72378         * modules/vasnprintf-posix (Depends-on): Likewise.
72379         * modules/vasprintf-posix (Depends-on): Likewise.
72380         * modules/vfprintf-posix (Depends-on): Likewise.
72381         * modules/vsnprintf-posix (Depends-on): Likewise.
72382         * modules/vsprintf-posix (Depends-on): Likewise.
72383         * modules/frexpl-tests (Depends-on): Likewise.
72384         * modules/printf-frexpl-tests (Depends-on): Likewise.
72385
72386 2007-03-24  Bruno Haible  <bruno@clisp.org>
72387
72388         * lib/float+.h: New file.
72389         * lib/isnan.c: Include float+.h.
72390         (SIZE): New macro.
72391         (FUNC): Compare only SIZE bytes of the value.
72392         * lib/vasnprintf.c: Include float+.h.
72393         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72394         SIZEOF_LDBL or SIZEOF_DBL bytes.
72395         * modules/isnan-nolibm (Files): Add lib/float+.h.
72396         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72397         * modules/isnanl (Files): Add lib/float+.h.
72398         * modules/vasnprintf (Files): Add lib/float+.h.
72399
72400 2007-03-24  Bruno Haible  <bruno@clisp.org>
72401
72402         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72403         include isnanl-nolibm.h.
72404
72405 2007-03-24  Bruno Haible  <bruno@clisp.org>
72406
72407         * tests/test-read-file.c (main): Don't produce spurious output for
72408         expected situations. Make the test fail if it encountered unexpected
72409         results.
72410
72411 2007-03-24  Bruno Haible  <bruno@clisp.org>
72412
72413         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72414         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72415
72416 2007-03-24  Bruno Haible  <bruno@clisp.org>
72417
72418         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72419
72420 2007-03-24  Bruno Haible  <bruno@clisp.org>
72421
72422         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72423         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72424
72425         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72426         * modules/utf8-ucs4: Turn into a symbolic link to module
72427         unistr/u8-mbtouc.
72428
72429         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72430         utf8-ucs4-unsafe.
72431         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72432         unistr/u8-mbtouc-unsafe.
72433
72434         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72435         * modules/utf16-ucs4: Turn into a symbolic link to module
72436         unistr/u16-mbtouc.
72437
72438         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72439         utf16-ucs4-unsafe.
72440         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72441         unistr/u16-mbtouc-unsafe.
72442
72443         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72444         * modules/ucs4-utf8: Turn into a symbolic link to module
72445         unistr/u8-ubtomb.
72446
72447         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72448         * modules/ucs4-utf16: Turn into a symbolic link to module
72449         unistr/u16-ubtomb.
72450
72451 2007-03-24  Bruno Haible  <bruno@clisp.org>
72452
72453         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72454         Enable the function only if HAVE_INLINE.
72455         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72456         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72457         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72458         Enable the function only if HAVE_INLINE.
72459         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72460         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72461         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72462         Enable the function only if HAVE_INLINE.
72463         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72464         Enable the function only if HAVE_INLINE.
72465         * modules/utf8-ucs4: Update.
72466         * modules/utf8-ucs4-unsafe: Update.
72467         * modules/utf16-ucs4: Update.
72468         * modules/utf16-ucs4-unsafe: Update.
72469         * modules/ucs4-utf8: Update.
72470         * modules/ucs4-utf16: Update.
72471
72472 2007-03-24  Bruno Haible  <bruno@clisp.org>
72473
72474         * lib/utf8-ucs4.h: Remove file.
72475         * lib/utf8-ucs4-unsafe.h: Remove file.
72476         * lib/utf16-ucs4.h: Remove file.
72477         * lib/utf16-ucs4-unsafe.h: Remove file.
72478         * lib/ucs4-utf8.h: Remove file.
72479         * lib/ucs4-utf16.h: Remove file.
72480         * lib/unistr.h: Include their previous contents.
72481         * m4/utf-ucs4.m4: Remove file.
72482         * m4/ucs4-utf.m4: Remove file.
72483         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72484         (Depends-on): Add unistr/base.
72485         (configure.ac): Remove gl_UTF_UCS4.
72486         (Makefile.am): Update.
72487         (Include): Change to unistr.h.
72488         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72489         (Depends-on): Add unistr/base.
72490         (configure.ac): Remove gl_UTF_UCS4.
72491         (Makefile.am): Update.
72492         (Include): Change to unistr.h.
72493         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72494         (Depends-on): Add unistr/base.
72495         (configure.ac): Remove gl_UTF_UCS4.
72496         (Makefile.am): Update.
72497         (Include): Change to unistr.h.
72498         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72499         (Depends-on): Add unistr/base.
72500         (configure.ac): Remove gl_UTF_UCS4.
72501         (Makefile.am): Update.
72502         (Include): Change to unistr.h.
72503         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72504         (Depends-on): Add unistr/base.
72505         (configure.ac): Remove gl_UCS4_UTF.
72506         (Makefile.am): Update.
72507         (Include): Change to unistr.h.
72508         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72509         (Depends-on): Add unistr/base.
72510         (configure.ac): Remove gl_UCS4_UTF.
72511         (Makefile.am): Update.
72512         (Include): Change to unistr.h.
72513         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72514         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72515         utf8-ucs4-unsafe.h.
72516         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72517         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72518         utf16-ucs4-unsafe.h.
72519         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72520         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72521         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72522         * lib/unistr/u8-strchr.c: Likewise.
72523         * lib/unistr/u8-strrchr.c: Likewise.
72524         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72525         * lib/unistr/u16-strchr.c: Likewise.
72526         * lib/unistr/u16-strrchr.c: Likewise.
72527         * lib/striconveh.c: Update.
72528         * lib/linebreak.c: Update.
72529
72530 2007-03-24  Bruno Haible  <bruno@clisp.org>
72531
72532         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72533         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72534
72535 2007-03-22  Bruno Haible  <bruno@clisp.org>
72536
72537         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72538
72539 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72540
72541         * MODULES.html.sh (File system functions): New module write-any-file.
72542         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72543         * m4/write-any-file.m4: New files.
72544
72545 2007-03-23  Eric Blake  <ebb9@byu.net>
72546
72547         * gnulib-tool: Rearrange space-tab sequences, since some editors
72548         like to eat them.
72549
72550 2007-03-23  Eric Blake  <ebb9@byu.net>
72551
72552         * lib/version-etc.c (version_etc_va): Update license wording to
72553         be more concise.  Recommended by Richard Stallman.
72554
72555 2007-03-22  Bruno Haible  <bruno@clisp.org>
72556
72557         * lib/poll.c (MSG_PEEK): New fallback definition.
72558
72559 2007-03-22  Bruno Haible  <bruno@clisp.org>
72560
72561         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72562         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72563         (main): Update.
72564         Fixes a compilation error on BeOS.
72565
72566 2007-03-22  Bruno Haible  <bruno@clisp.org>
72567
72568         * modules/frexpl-tests: New file.
72569         * tests/test-frexpl.c: New file.
72570
72571         * modules/frexpl: New file.
72572         * m4/frexpl.m4: New file.
72573         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72574         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72576         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72577         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72578         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72579
72580 2007-03-22  Bruno Haible  <bruno@clisp.org>
72581
72582         * lib/frexpl.c: Share code with lib/frexp.c.
72583         * modules/mathl (Files): Add lib/frexp.c.
72584         (Depends-on): Add isnanl-nolibm.
72585
72586 2007-03-22  Bruno Haible  <bruno@clisp.org>
72587
72588         * modules/printf-frexp (Files): Add m4/frexp.m4.
72589         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72590         only if the found frexp function actually works.
72591
72592 2007-03-22  Bruno Haible  <bruno@clisp.org>
72593
72594         * lib/frexp.c: Remove older implementation that uses divisions.
72595
72596 2007-03-21  Bruno Haible  <bruno@clisp.org>
72597
72598         * modules/frexp-tests: New file.
72599         * tests/test-frexp.c: New file.
72600
72601         * modules/frexp: New file.
72602         * lib/frexp.c: New file.
72603         * m4/frexp.m4: New file.
72604         * lib/math_.h (frexp): New declaration.
72605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72606         REPLACE_FREXP.
72607         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72608
72609 2007-03-21  Bruno Haible  <bruno@clisp.org>
72610
72611         * modules/isnanl-tests: New file.
72612         * tests/test-isnanl.c: New file.
72613
72614         * modules/isnanl: New file.
72615         * lib/isnanl.h: New file.
72616         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72617         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72618         gl_FUNC_ISNANL_WORKS.
72619         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72620         New macros.
72621
72622 2007-03-21  Bruno Haible  <bruno@clisp.org>
72623
72624         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72625         lib/isnanl.h.
72626         (Include): Update.
72627         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72628         * lib/vasnprintf.c: Update.
72629         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72630         tests/test-isnanl.h, remove tests/test-isnanl.c.
72631         (Makefile.am): Update.
72632         * tests/test-isnanl-nolibm.c: New file.
72633         * tests/test-isnanl.h: New file.
72634         * tests/test-isnanl.c: Remove file.
72635
72636 2007-03-21  Jim Meyering  <jim@meyering.net>
72637
72638         When trying to open ".", treat ESTALE like EACCES.
72639         * lib/savewd.c (savewd_save): Resort to forking not just upon
72640         failure with EACCES, but also when errno is ESTALE.
72641
72642 2007-03-20  Bruno Haible  <bruno@clisp.org>
72643
72644         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72645         Needed on AIX 5.1. Reported by Matthew Woehlke.
72646
72647 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72648
72649         Suggestions by Bruno Haible:
72650         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72651         our own.
72652         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72653         * modules/acl (Depends-on): Add gettext.
72654
72655 2007-03-19  Bruno Haible  <bruno@clisp.org>
72656
72657         * modules/iconvme: Remove file.
72658         * lib/iconvme.h: Remove file.
72659         * lib/iconvme.c: Remove file.
72660         * m4/iconvme.m4: Remove file.
72661
72662 2007-03-19  Bruno Haible  <bruno@clisp.org>
72663
72664         * doc/relocatable-maint.texi: Break long shell script line.
72665         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72666
72667 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72670         handle file_has_acl.
72671         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72672         * lib/acl.c: Move header inclusions and related macro defns into
72673         lib/acl-internal.h.
72674         (S_ISLNK): Remove defn, since that's now done for us.
72675         (file_has_acl): Move to lib/file-has-acl.c.
72676         Call acl_trivial if available.  This is the crucial part of the fix.
72677         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72678         shared within the library.  Rewrite a bit, partly to make it compatible
72679         with the GNU coding style.
72680         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72681         Remove unnecessary double-quotes.
72682         Don't test for acl_to_text; the build will catch that.
72683         Replace acl_entries if it doesn't exist and it is needed.
72684         Check for -lsec and acl_trivial (as used on Solaris 10).
72685         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72686         lib/file-has-acl.c.
72687         (Depends-on): Add sys_stat, for S_ISLNK.
72688
72689 2007-03-19  Ben Pfaff  <blp@gnu.org>
72690
72691         * doc/gnulib.texi: Fix typos.
72692         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72693
72694 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72695
72696         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72697         If size is zero here, buf must be zero.
72698
72699 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72700
72701         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72702         <bruno@clisp.org>.
72703
72704 2007-03-18  Bruno Haible  <bruno@clisp.org>
72705
72706         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72707         Suggested by Eric Blake.
72708
72709 2007-03-18  Ben Pfaff  <blp@gnu.org>
72710
72711         * doc/relocatable.texi: Recommend using as prefix a directory
72712         that does not exist and will never be created.  Based on
72713         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72714         and others.
72715
72716 2007-03-17  Bruno Haible  <bruno@clisp.org>
72717
72718         * lib/fchownat.c: Include lchown.h.
72719
72720 2007-03-17  Bruno Haible  <bruno@clisp.org>
72721
72722         Fix endless loop when the given allocated size was > INT_MAX.
72723         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72724         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72725         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72726         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72727         * lib/sprintf.c (sprintf): Likewise.
72728
72729 2007-03-17  Bruno Haible  <bruno@clisp.org>
72730
72731         * tests/test-argp-2.sh (func_compare): Output a context diff.
72732
72733 2007-03-17  Bruno Haible  <bruno@clisp.org>
72734
72735         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72736         locale's decimal-point character.
72737
72738 2007-03-17  Bruno Haible  <bruno@clisp.org>
72739
72740         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72741         before comparing it. Needed because on some platforms (e.g. x86) a
72742         'long double' occupies less bytes than sizeof (long double).
72743
72744 2007-03-17  Bruno Haible  <bruno@clisp.org>
72745
72746         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72747         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72748         * tests/test-getaddrinfo.c (simple): Likewise.
72749         * tests/test-read-file.c (main): Likewise.
72750
72751 2007-03-17  Bruno Haible  <bruno@clisp.org>
72752
72753         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72754
72755 2007-03-17  Bruno Haible  <bruno@clisp.org>
72756
72757         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72758         unused variable.
72759
72760 2007-03-17  Bruno Haible  <bruno@clisp.org>
72761
72762         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72763         * tests/test-c-strncasecmp.c: Likewise.
72764
72765 2007-03-17  Bruno Haible  <bruno@clisp.org>
72766
72767         * modules/stdlib (Depends-on): Add unistd.
72768         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72769         Needed for MacOS X 10.3.
72770
72771 2007-03-17  Bruno Haible  <bruno@clisp.org>
72772
72773         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72774
72775 2007-03-17  Bruno Haible  <bruno@clisp.org>
72776
72777         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72778
72779 2007-03-17  Bruno Haible  <bruno@clisp.org>
72780
72781         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72782         to reflect files copied from gnulib (with or without modifications).
72783         Suggested by Jim Meyering.
72784
72785 2007-03-17  Eric Blake  <ebb9@byu.net>
72786
72787         * NEWS: Document stdlib change from 2007-02-18.
72788
72789 2007-03-17  Jim Meyering  <jim@meyering.net>
72790
72791         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72792         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72793         someone uses a name containing shell meta-characters.
72794         Reported by Alfred M. Szmidt.
72795
72796         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72797
72798 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72799
72800         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72801         and copy gettext configuration files only if configure.ac contains
72802         a use of AM_GNU_GETTEXT_VERSION.
72803
72804 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72805
72806         * build-aux/bootstrap (gnulib_name): New variable.
72807         (gnulib_tool_options): Use it.
72808
72809 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72810
72811         * tests/test-des.c: Use new namespace.
72812
72813 2007-03-15  Bruno Haible  <bruno@clisp.org>
72814
72815         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72816         Reported by James Youngman <jay@gnu.org>.
72817
72818 2007-03-15  Bruno Haible  <bruno@clisp.org>
72819
72820         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72821         declared prototype. Needed with cc on OSF/1 5.1.
72822
72823 2007-03-15  Bruno Haible  <bruno@clisp.org>
72824
72825         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72826         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72827         (struct gl_list_implementation): Add dispose_fn argument to the
72828         'create_empty', 'create' methods.
72829         (struct gl_list_impl_base): Add field 'dispose_fn'.
72830         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72831         argument.
72832         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72833         dispose_fn argument.
72834         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72835         dispose_fn on the dropped values.
72836         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72837         dispose_fn argument.
72838         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72839         dropped values.
72840         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72841         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72842         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72843         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72844         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72845         argument.
72846         (gl_tree_list_free): Call dispose_fn on the dropped values.
72847         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72848         the dropped values.
72849         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72850         Add dispose_fn argument.
72851         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72852         Call dispose_fn on the dropped values.
72853         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72854         Add dispose_fn argument.
72855         (gl_sublist_create): Initialize the 'dispose_fn' field.
72856         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72857         * tests/test-array_list.c (main): Update.
72858         * tests/test-carray_list.c (main): Update.
72859         * tests/test-avltree_list.c (main): Update.
72860         * tests/test-rbtree_list.c (main): Update.
72861         * tests/test-avltreehash_list.c (main): Update.
72862         * tests/test-rbtreehash_list.c (main): Update.
72863         * tests/test-linked_list.c (main): Update.
72864         * tests/test-linkedhash_list.c (main): Update.
72865         * tests/test-array_oset.c (main): Update.
72866
72867 2007-03-15  Bruno Haible  <bruno@clisp.org>
72868
72869         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72870         (gl_oset_create_empty): Add dispose_fn argument.
72871         (struct gl_oset_implementation): Add dispose_fn argument to
72872         'create_empty' method.
72873         (struct gl_oset_impl_base): Add dispose_fn field.
72874         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72875         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72876         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72877         values.
72878         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72879         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72880         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72881         dropped value.
72882         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72883         dropped value.
72884         * tests/test-array_oset.c (main): Update.
72885         * tests/test-avltree_oset.c (main): Update.
72886         * tests/test-rbtree_oset.c (main): Update.
72887         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72888
72889 2007-03-13  Bruno Haible  <bruno@clisp.org>
72890
72891         * tests/test-stdbool.c (i): Update after last patch.
72892
72893 2007-03-12  Bruno Haible  <bruno@clisp.org>
72894
72895         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72896         the iswprint macro. Needed on Solaris 2.5.1.
72897
72898 2007-03-12  Bruno Haible  <bruno@clisp.org>
72899
72900         * tests/test-printf-frexp.c (main): Declare x as volatile.
72901
72902 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72903
72904         * doc/gnulib.texi (Build robot for gnulib): New section.
72905
72906 2007-03-12  Jim Meyering  <jim@meyering.net>
72907
72908         * build-aux/bootstrap: New file.
72909         * build-aux/bootstrap.conf: New file, from coreutils.
72910
72911 2007-03-11  Bruno Haible  <bruno@clisp.org>
72912
72913         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72914
72915 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72916
72917         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72918         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72919         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72920
72921 2007-03-11  Bruno Haible  <bruno@clisp.org>
72922
72923         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72924         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72925
72926 2007-03-11  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72929         formula. Needed for SunPRO C 5.0.
72930
72931 2007-03-11  Bruno Haible  <bruno@clisp.org>
72932
72933         * modules/long-options (Depends-on): Add getopt.
72934
72935 2007-03-11  Bruno Haible  <bruno@clisp.org>
72936
72937         * modules/modechange (Depends-on): Add stdbool.
72938
72939 2007-03-11  Bruno Haible  <bruno@clisp.org>
72940
72941         * modules/i-ring (Depends-on): Add stdbool.
72942
72943 2007-03-11  Bruno Haible  <bruno@clisp.org>
72944
72945         * modules/gc-des (Depends-on): Add stdbool.
72946
72947 2007-03-11  Bruno Haible  <bruno@clisp.org>
72948
72949         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72950
72951 2007-03-11  Bruno Haible  <bruno@clisp.org>
72952
72953         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72954
72955 2007-03-11  Bruno Haible  <bruno@clisp.org>
72956
72957         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72958
72959 2007-03-11  Bruno Haible  <bruno@clisp.org>
72960
72961         * lib/vasnprintf.c (sprintf): Undefine.
72962
72963 2007-03-11  Bruno Haible  <bruno@clisp.org>
72964
72965         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72966         initializers in SunPRO C and Compaq C compilers.
72967
72968 2007-03-11  Bruno Haible  <bruno@clisp.org>
72969
72970         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72971         decrementing code ANSI C compliant.
72972
72973 2007-03-11  Bruno Haible  <bruno@clisp.org>
72974
72975         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72976         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72977
72978 2007-03-11  Bruno Haible  <bruno@clisp.org>
72979
72980         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72981         <stdbool.h> substitute doesn't pass.
72982
72983 2007-03-11  Bruno Haible  <bruno@clisp.org>
72984
72985         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72986
72987 2007-03-11  Bruno Haible  <bruno@clisp.org>
72988
72989         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72990         script, for submission to autobuild.josefsson.org.
72991
72992 2007-03-10  Bruno Haible  <bruno@clisp.org>
72993
72994         * modules/canonicalize-lgpl-tests: New file.
72995         * tests/test-canonicalize-lgpl.sh: New file.
72996         * tests/test-canonicalize-lgpl.c: New file.
72997
72998         * modules/c-strcase-tests: New file.
72999         * tests/test-c-strcase.sh: New file.
73000         * tests/test-c-strcasecmp.c: New file.
73001         * tests/test-c-strncasecmp.c: New file.
73002
73003         * modules/atexit-tests: New file.
73004         * tests/test-atexit.sh: New file.
73005         * tests/test-atexit.c: New file.
73006
73007 2007-03-10  Bruno Haible  <bruno@clisp.org>
73008
73009         * tests/test-binary-io.sh: Use temporary filenames that are not so
73010         likely to clash with those of other tests (in a parallel make).
73011         * tests/test-binary-io.c: Likewise.
73012
73013 2007-03-10  Bruno Haible  <bruno@clisp.org>
73014
73015         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
73016         fallback; use #error instead.
73017         Suggested by Simon Josefsson.
73018
73019 2007-03-10  Bruno Haible  <bruno@clisp.org>
73020
73021         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
73022         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
73023         first and the last.
73024
73025 2007-03-10  Bruno Haible  <bruno@clisp.org>
73026
73027         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
73028
73029 2007-03-10  Bruno Haible  <bruno@clisp.org>
73030
73031         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
73032         "make distcheck".
73033         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
73034         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
73035         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
73036
73037 2007-03-10  Bruno Haible  <bruno@clisp.org>
73038
73039         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
73040         variable.
73041         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
73042         variable.
73043
73044 2007-03-09  Eric Blake  <ebb9@byu.net>
73045         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
73046
73047         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
73048         types are not being provided by gnulib.
73049         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
73050         types are supported.
73051
73052 2007-03-10  Bruno Haible  <bruno@clisp.org>
73053
73054         * lib/stdio_.h (__attribute__): New macro.
73055         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
73056         vsprintf): Specify __attribute__ __format__ for GCC.
73057         Suggested by Eric Blake.
73058
73059 2007-03-09  Bruno Haible  <bruno@clisp.org>
73060
73061         * modules/printf-posix-tests: New file.
73062         * tests/test-printf-posix.sh: New file.
73063         * tests/test-printf-posix.c: New file.
73064
73065         * modules/printf-posix: New file.
73066         * lib/printf.c: New file.
73067         * m4/printf-posix-rpl.m4: New file.
73068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
73069         REPLACE_PRINTF.
73070         * lib/stdio_.h (printf): New declaration.
73071         (format, __format__, ____printf____, ____scanf____, ____strftime____,
73072         ____strfmon____): New macros.
73073         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
73074         REPLACE_PRINTF.
73075
73076 2007-03-09  Bruno Haible  <bruno@clisp.org>
73077
73078         * tests/test-vasnprintf-posix2.sh: New file.
73079         * tests/test-vasnprintf-posix2.c: New file.
73080         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
73081         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
73082         (Makefile.am): Activate test-vasnprintf-posix2.sh.
73083
73084         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
73085         a locale dependent decimal point, rather than always '.'.
73086
73087 2007-03-09  Eric Blake  <ebb9@byu.net>
73088
73089         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
73090         spite of platforms like Tandem/NSK that define it to -1.
73091
73092 2007-03-08  Bruno Haible  <bruno@clisp.org>
73093
73094         * modules/vprintf-posix-tests: New file.
73095         * tests/test-vprintf-posix.sh: New file.
73096         * tests/test-vprintf-posix.c: New file.
73097         * tests/test-printf-posix.h: New file.
73098
73099         * modules/vprintf-posix: New file.
73100         * lib/vprintf.c: New file.
73101         * m4/vprintf-posix.m4: New file.
73102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
73103         REPLACE_VPRINTF.
73104         * lib/stdio_.h (vprintf): New declaration.
73105         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
73106         REPLACE_VPRINTF.
73107
73108 2007-03-08  Bruno Haible  <bruno@clisp.org>
73109
73110         * modules/fprintf-posix-tests: New file.
73111         * tests/test-fprintf-posix.sh: New file.
73112         * tests/test-fprintf-posix.c: New file.
73113
73114         * modules/fprintf-posix: New file.
73115         * lib/fprintf.c: New file.
73116         * m4/fprintf-posix.m4: New file.
73117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
73118         REPLACE_FPRINTF.
73119         * lib/stdio_.h (fprintf): New declaration.
73120         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
73121         REPLACE_FPRINTF.
73122
73123 2007-03-08  Bruno Haible  <bruno@clisp.org>
73124
73125         * modules/vfprintf-posix-tests: New file.
73126         * tests/test-vfprintf-posix.sh: New file.
73127         * tests/test-vfprintf-posix.c: New file.
73128         * tests/test-fprintf-posix.h: New file.
73129         * tests/test-fprintf-posix.out: New file.
73130
73131         * modules/vfprintf-posix: New file.
73132         * lib/vfprintf.c: New file.
73133         * m4/vfprintf-posix.m4: New file.
73134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
73135         REPLACE_VFPRINTF.
73136         * lib/stdio_.h (vfprintf): New declaration.
73137         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
73138         REPLACE_VFPRINTF.
73139
73140 2007-03-08  Bruno Haible  <bruno@clisp.org>
73141
73142         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
73143
73144 2007-03-08  Bruno Haible  <bruno@clisp.org>
73145
73146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
73147         instead of 'expr' invocations.
73148         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73149         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73150         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73153         Suggested by Paul Eggert.
73154
73155 2007-03-08  Bruno Haible  <bruno@clisp.org>
73156
73157         * modules/fseterr-tests: New file.
73158         * tests/test-fseterr.c: New file.
73159
73160         * modules/fseterr: New file.
73161         * lib/fseterr.h: New file.
73162         * lib/fseterr.c: New file.
73163
73164 2007-03-08  Bruno Haible  <bruno@clisp.org>
73165
73166         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
73167         * lib/getopt_.h: Likewise.
73168         * lib/mbswidth.h: Likewise.
73169         * lib/setenv.h: Likewise.
73170         * lib/vasnprintf.h: Likewise.
73171         * lib/vasprintf.h: Likewise.
73172         * lib/verror.h: Likewise.
73173         * lib/xsetenv.h: Likewise.
73174         * lib/xvasprintf.h: Likewise.
73175
73176 2007-03-08  Jim Meyering  <jim@meyering.net>
73177
73178         * users.txt: Add parted.
73179
73180         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
73181
73182 2007-03-07  Bruno Haible  <bruno@clisp.org>
73183
73184         * m4/printf.m4: Make the shell script snippets copy&pastable.
73185
73186 2007-03-02  Bruno Haible  <bruno@clisp.org>
73187
73188         * lib/netinet_in_.h: New file.
73189         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
73190         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
73191         * modules/netinet_in (Files): Add lib/netinet_in_.h.
73192         (Depends-on): Add absolute-header.
73193         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
73194         into netinet/in.h.
73195
73196 2007-03-03  Bruno Haible  <bruno@clisp.org>
73197
73198         * lib/sys_select_.h: New file.
73199         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
73200         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
73201         * modules/sys_select (Files): Add lib/sys_select_.h.
73202         (Depends-on): Add absolute-header.
73203         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73204         into sys/select.h.
73205
73206 2007-03-02  Bruno Haible  <bruno@clisp.org>
73207
73208         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73209         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73210         values.
73211         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73212         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73213         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73214         * modules/sys_socket (Depends-on): Add absolute-header.
73215         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73216         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73217         (Include): Remove requirement of inclusion of <sys/types.h>.
73218
73219 2007-03-02  Bruno Haible  <bruno@clisp.org>
73220
73221         * lib/byteswap_.h (bswap_32): Fix formula.
73222
73223 2007-03-06  Bruno Haible  <bruno@clisp.org>
73224
73225         * modules/sprintf-posix-tests: New file.
73226         * tests/test-sprintf-posix.c: New file.
73227
73228         * modules/sprintf-posix: New file.
73229         * lib/sprintf.c: New file.
73230         * m4/sprintf-posix.m4: New file.
73231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73232         REPLACE_SPRINTF.
73233         * lib/stdio_.h (sprintf): New declaration.
73234         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73235         REPLACE_SPRINTF.
73236
73237 2007-03-06  Bruno Haible  <bruno@clisp.org>
73238
73239         * modules/vsprintf-posix-tests: New file.
73240         * tests/test-vsprintf-posix.c: New file.
73241         * tests/test-sprintf-posix.h: New file.
73242
73243         * modules/vsprintf-posix: New file.
73244         * lib/vsprintf.c: New file.
73245         * m4/vsprintf-posix.m4: New file.
73246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73247         REPLACE_VSPRINTF.
73248         * lib/stdio_.h (vsprintf): New declaration.
73249         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73250         REPLACE_VSPRINTF.
73251
73252 2007-03-06  Bruno Haible  <bruno@clisp.org>
73253
73254         * modules/vsnprintf (Depend-on): Remove minmax.
73255
73256 2007-03-06  Bruno Haible  <bruno@clisp.org>
73257
73258         * modules/snprintf-posix-tests: New file.
73259         * tests/test-snprintf-posix.c: New file.
73260
73261         * modules/snprintf-posix: New file.
73262         * m4/snprintf-posix.m4: New file.
73263         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73264         gl_FUNC_SNPRINTF.
73265         (gl_FUNC_SNPRINTF): Invoke it.
73266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73267         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73268         is set.
73269         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73270
73271 2007-03-06  Bruno Haible  <bruno@clisp.org>
73272
73273         * modules/vsnprintf-posix-tests: New file.
73274         * tests/test-vsnprintf-posix.c: New file.
73275         * tests/test-snprintf-posix.h: New file.
73276
73277         * modules/vsnprintf-posix: New file.
73278         * m4/vsnprintf-posix.m4: New file.
73279         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73280         gl_FUNC_VSNPRINTF.
73281         (gl_FUNC_VSNPRINTF): Invoke it.
73282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73283         * lib/stdio_.h (vsnprintf): Define as a replacement if
73284         REPLACE_VSNPRINTF is set.
73285         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73286
73287 2007-03-06  Bruno Haible  <bruno@clisp.org>
73288
73289         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73290         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73291
73292 2007-03-06  Bruno Haible  <bruno@clisp.org>
73293
73294         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73295         (asinl): Declare also if HAVE_DECL_ASINL is set.
73296         (atanl): Declare also if HAVE_DECL_ATANL is set.
73297         (ceill): Declare also if HAVE_DECL_CEILL is set.
73298         (cosl): Declare also if HAVE_DECL_COSL is set.
73299         (expl): Declare also if HAVE_DECL_EXPL is set.
73300         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73301         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73302         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73303         (logl): Declare also if HAVE_DECL_LOGL is set.
73304         (sinl): Declare also if HAVE_DECL_SINL is set.
73305         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73306         (tanl): Declare also if HAVE_DECL_TANL is set.
73307         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73309         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73310         declaration of frexpl, ldexpl.
73311         * modules/printf-frexpl (Depends-on): Add math.
73312         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73313
73314 2007-03-05  Bruno Haible  <bruno@clisp.org>
73315
73316         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73317         frexpl and ldexpl are declared.
73318         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73319
73320 2007-03-05  Bruno Haible  <bruno@clisp.org>
73321
73322         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73323         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73324
73325 2007-03-05  Bruno Haible  <bruno@clisp.org>
73326
73327         * lib/stdio_.h: Include <stddef.h>.
73328
73329 2007-03-05  Bruno Haible  <bruno@clisp.org>
73330
73331         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73332
73333 2007-03-05  Bruno Haible  <bruno@clisp.org>
73334
73335         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73336         NetBSD 4, from Ralf Wildenhues.
73337
73338 2007-03-04  Bruno Haible  <bruno@clisp.org>
73339
73340         * lib/vasprintf.h: Update #if logic for the case when the functions
73341         exist but are overridden.
73342
73343 2007-03-04  Bruno Haible  <bruno@clisp.org>
73344
73345         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73346         implementations: glibc-2.4 and MacOS X 10.3.
73347         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73348         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73349         * tests/test-vasprintf-posix.c (test_function): Likewise.
73350
73351 2007-03-04  Bruno Haible  <bruno@clisp.org>
73352
73353         * modules/vasprintf-posix-tests: New file.
73354         * tests/test-vasprintf-posix.c: New file.
73355
73356         * modules/vasprintf-posix: New file.
73357         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73358         defined.
73359         * m4/vasprintf-posix.m4: New file.
73360         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73361         gl_FUNC_VASPRINTF.
73362         (gl_FUNC_VASPRINTF): Invoke it.
73363         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73364         here.
73365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73366
73367 2007-03-04  Bruno Haible  <bruno@clisp.org>
73368
73369         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73370         REPLACE_GETTIMEOFDAY.
73371         * modules/sys_time (Makefile.am): Likewise.
73372         * m4/sys_time_h.m4: Likewise.
73373         * m4/gettimeofday.m4: Likewise.
73374
73375 2007-03-04  Bruno Haible  <bruno@clisp.org>
73376
73377         * modules/vasnprintf-posix-tests: New file.
73378         * tests/test-vasnprintf-posix.c: New file.
73379
73380         * modules/vasnprintf-posix: New file.
73381         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73382         printf-frexpl.h.
73383         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73384         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73385         REPLACE_VASNPRINTF is defined.
73386         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73387         gl_FUNC_VASNPRINTF.
73388         (gl_FUNC_VASNPRINTF): Invoke it.
73389         * m4/vasnprintf-posix.m4: New file.
73390         * m4/printf.m4: New file.
73391
73392 2007-03-04  Bruno Haible  <bruno@clisp.org>
73393
73394         Compile progreloc.c only if --enable-relocatable is specified.
73395         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73396         if --enable-relocatable was specified.
73397         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73398         lib_SOURCES.
73399
73400 2007-03-04  Jim Meyering  <jim@meyering.net>
73401
73402         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73403         Use it consistently, rather than enumerating errno constants.
73404
73405 2007-03-04  Bruno Haible  <bruno@clisp.org>
73406
73407         * modules/xvasprintf-tests: New file.
73408         * tests/test-xvasprintf.c: New file.
73409
73410         * modules/vasprintf-tests: New file.
73411         * tests/test-vasprintf.c: New file.
73412
73413         * modules/vasnprintf-tests: New file.
73414         * tests/test-vasnprintf.c: New file.
73415
73416         * modules/vsnprintf-tests: New file.
73417         * tests/test-vsnprintf.c: New file.
73418
73419         * modules/snprintf-tests: New file.
73420         * tests/test-snprintf.c: New file.
73421
73422 2007-03-04  Bruno Haible  <bruno@clisp.org>
73423
73424         Compile relocatable.c only if --enable-relocatable is specified.
73425         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73426         gl_RELOCATABLE_LIBRARY.
73427         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73428         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73429         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73430         gl_RELOCATABLE_LIBRARY.
73431         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73432         (Makefile.am): Remove lib_SOURCES.
73433         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73434         gl_RELOCATABLE_LIBRARY.
73435         (Makefile.am): Remove lib_SOURCES.
73436         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73437         always.
73438         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73439         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73440
73441 2007-03-04  Bruno Haible  <bruno@clisp.org>
73442
73443         * modules/argmatch-tests: New file.
73444         * tests/test-argmatch.c: New file.
73445
73446         * tests/test-allocsa.c (main): Halve the number of loop runs.
73447
73448         * modules/alloca-opt-tests: New file.
73449         * tests/test-alloca-opt.c: New file.
73450
73451 2007-03-04  Jim Meyering  <jim@meyering.net>
73452
73453         Work around difference between Linux ACLs and Solaris 10 ZFS.
73454         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73455         for EINVAL.
73456
73457 2007-03-03  Bruno Haible  <bruno@clisp.org>
73458
73459         * modules/relocatable-prog (Depends-on): Add back progreloc's
73460         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73461
73462 2007-03-03  Bruno Haible  <bruno@clisp.org>
73463
73464         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73465         * modules/relocatable-lib: New file.
73466
73467 2007-03-03  Bruno Haible  <bruno@clisp.org>
73468
73469         * modules/relocatable-prog: Renamed from modules/relocatable.
73470         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73471
73472 2007-03-03  Bruno Haible  <bruno@clisp.org>
73473
73474         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73475         m4/relocatable-lib.m4.
73476         (Depends-on): Remove 'relocatable'.
73477         (configure.ac): Add gl_RELOCATABLE_NOP.
73478
73479 2007-03-03  Bruno Haible  <bruno@clisp.org>
73480
73481         * modules/relocatable-prog-wrapper: New file.
73482         * modules/relocatable (Depends-on): Add it. Remove all other
73483         dependencies except progname.
73484         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73485
73486         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73487         (gl_FUNC_STRERROR): Nop.
73488         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73489
73490         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73491         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73492
73493         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73494         (gl_FUNC_READLINK): Update.
73495
73496         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73497
73498 2007-03-03  Bruno Haible  <bruno@clisp.org>
73499
73500         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73501         * modules/xreadlink (Depends-on): Add unistd.
73502         * modules/xreadlink-with-size (Depends-on): Likewise.
73503
73504 2007-03-03  Bruno Haible  <bruno@clisp.org>
73505
73506         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73507         extracted from gt_FUNC_SETENV.
73508         (gt_FUNC_SETENV): Remove macro.
73509         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73510         remove gt_FUNC_SETENV.
73511
73512 2007-03-03  Bruno Haible  <bruno@clisp.org>
73513
73514         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73515         ENABLE_RELOCATABLE here.
73516         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73517
73518 2007-03-03  Bruno Haible  <bruno@clisp.org>
73519
73520         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73521         * tests/test-rbtreehash_list.c: Include progname.h.
73522         (main): Call set_program_name.
73523
73524         * modules/rbtree-oset-tests (Depends-on): Add progname.
73525         * tests/test-rbtree_oset.c: Include progname.h.
73526         (main): Call set_program_name.
73527
73528         * modules/rbtree-list-tests (Depends-on): Add progname.
73529         * tests/test-rbtree_list.c: Include progname.h.
73530         (main): Call set_program_name.
73531
73532         * modules/linked-list-tests (Depends-on): Add progname.
73533         * tests/test-linked_list.c: Include progname.h.
73534         (main): Call set_program_name.
73535
73536 2007-03-03  Bruno Haible  <bruno@clisp.org>
73537
73538         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73539         All uses of __restrict changed to _Restrict_.
73540         * lib/glob_.h (__restrict): Remove macro.
73541
73542 2007-03-02  Bruno Haible  <bruno@clisp.org>
73543
73544         * modules/gettext (configure.ac): Require gettext infrastructure
73545         from version 0.16.1.
73546
73547 2007-03-02  Bruno Haible  <bruno@clisp.org>
73548
73549         * modules/linkedhash-list-tests (Depends-on): Add progname.
73550         * tests/test-linkedhash_list.c: Include progname.h.
73551         (main): Call set_program_name.
73552
73553         * modules/carray-list-tests (Depends-on): Add progname.
73554         * tests/test-carray_list.c: Include progname.h.
73555         (main): Call set_program_name.
73556
73557         * modules/avltreehash-list-tests (Depends-on): Add progname.
73558         * tests/test-avltreehash_list.c: Include progname.h.
73559         (main): Call set_program_name.
73560
73561         * modules/avltree-oset-tests (Depends-on): Add progname.
73562         * tests/test-avltree_oset.c: Include progname.h.
73563         (main): Call set_program_name.
73564
73565         * modules/avltree-list-tests (Depends-on): Add progname.
73566         * tests/test-avltree_list.c: Include progname.h.
73567         (main): Call set_program_name.
73568
73569         * modules/array-oset-tests (Depends-on): Add progname.
73570         * tests/test-array_oset.c: Include progname.h.
73571         (main): Call set_program_name.
73572
73573         * modules/array-list-tests (Depends-on): Add progname.
73574         * tests/test-array_list.c: Include progname.h.
73575         (main): Call set_program_name.
73576
73577         * modules/argp-tests (Depends-on): Add progname.
73578         * tests/test-argp.c: Include argp.h first. Include progname.h.
73579         (main): Call set_program_name.
73580
73581 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * doc/gnulib-tool.texi (Initial import): Reword description of
73584         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73585         limited effect even if defined after the first system include.
73586
73587 2007-03-01  Bruno Haible  <bruno@clisp.org>
73588
73589         * build-aux/config.libpath: Update to libtool-1.5.22.
73590         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73591
73592 2007-03-01  Bruno Haible  <bruno@clisp.org>
73593
73594         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73595         foo_CFLAGS.
73596         Reported by Ralf Wildenhues.
73597
73598 2007-03-01  Bruno Haible  <bruno@clisp.org>
73599
73600         * build-aux/install-reloc: Remove object files left over by some
73601         compilers.
73602         Reported by Ralf Wildenhues.
73603
73604 2007-03-01  Bruno Haible  <bruno@clisp.org>
73605
73606         * build-aux/install-reloc: Break long lines.
73607
73608 2007-03-01  Bruno Haible  <bruno@clisp.org>
73609
73610         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73611         Reported by Ralf Wildenhues.
73612
73613 2007-03-01  Bruno Haible  <bruno@clisp.org>
73614
73615         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73616         include ordering constraints.
73617
73618 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73621         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73622         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73623         as another example.
73624         * lib/time_.h: Fix misspelling.
73625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73626         Require gl_HEADER_TIME_H_DEFAULTS.
73627         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73628         * m4/time_r.m4 (gl_TIME_R): Likewise.
73629         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73630
73631 2007-03-01  Bruno Haible  <bruno@clisp.org>
73632
73633         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73634         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73635
73636 2007-03-01  Jim Meyering  <jim@meyering.net>
73637
73638         * modules/xreadlink (Maintainer): Add my name.
73639         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73640
73641 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73642             Bruno Haible  <bruno@clisp.org>
73643
73644         * build-aux/install-reloc: Compile also c-ctype.c.
73645         * build-aux/relocatable.sh.in: New file.
73646         * doc/relocatable.texi: New file.
73647         * doc/relocatable-maint.texi: New file.
73648         * doc/gnulib.texi: Include relocatable-maint.texi.
73649         * lib/progreloc.c: Include unistd.h unconditionally.
73650         * lib/relocwrapper.c: Include unistd.h unconditionally.
73651         Include c-ctype.h.
73652         (add_dotbin): Use c_tolower.
73653         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73654         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73655         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73656         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73657         to m4/relocatable-lib.m4.
73658         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73659         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73660         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73661         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73662         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73663         * modules/relocatable: New file.
73664         * modules/relocatable-lib: New file.
73665         * modules/relocatable-script: New file.
73666
73667 2007-02-28  Bruno Haible  <bruno@clisp.org>
73668
73669         Import --enable-relocatable infrastructure.
73670         * build-aux/config.libpath: New file, from GNU gettext.
73671         * build-aux/install-reloc: New file, from GNU gettext.
73672         * build-aux/reloc-ldflags: New file, from GNU gettext.
73673         * lib/relocatable.h: New file, from GNU gettext.
73674         * lib/relocatable.c: New file, from GNU gettext.
73675         * lib/relocwrapper.c: New file, from GNU gettext.
73676         * m4/relocatable.m4: New file, from GNU gettext.
73677
73678 2007-02-28  Bruno Haible  <bruno@clisp.org>
73679
73680         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73681
73682         * modules/xreadlink: New file, from GNU gettext with modifications.
73683         * lib/xreadlink.c: New file, from GNU gettext.
73684         * lib/xreadlink.h: Add comments.
73685         (xreadlink): New declaration.
73686
73687         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73688         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73689         lib/xreadlink-with-size.c.
73690         (configure.ac): Remove gl_XREADLINK invocation.
73691         (Makefile.am): Augment lib_SOURCES.
73692         * m4/xreadlink.m4: Remove file.
73693         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73694         (xreadlink_with_size): Renamed from xreadink.
73695         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73696         * modules/canonicalize (Depends-on): Replace xreadlink with
73697         xreadlink-with-size.
73698         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73699
73700 2007-02-25  Jim Meyering  <jim@meyering.net>
73701
73702         * build-aux/announce-gen: When complaining about excess arguments,
73703         list them.
73704
73705 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73706
73707         * README: Document signed integer overflow situation more
73708         accurately.
73709
73710 2007-02-25  Bruno Haible  <bruno@clisp.org>
73711
73712         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73713         'a' or 'A' conversion.
73714
73715 2007-02-25  Bruno Haible  <bruno@clisp.org>
73716
73717         * modules/filename: Renamed from modules/pathname.
73718         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73719         lib/concatpath.c with lib/concat-filename.c.
73720         (Makefile.am): Update.
73721         (Include): Replace pathname.h with filename.h.
73722         * lib/filename.h: Renamed from lib/pathname.h.
73723         (concatenated_filename): Renamed from concatenated_pathname.
73724         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73725         (concatenated_filename): Renamed from concatenated_pathname.
73726         * lib/findprog.c: Include filename.h instead of pathname.h.
73727         (find_in_path): Update.
73728         * lib/javacomp.c: Include filename.h instead of pathname.h.
73729         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73730         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73731         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73732         is_oldgcj_14_13_usable, is_javac_usable): Update.
73733         * lib/javaexec.c: Include filename.h instead of pathname.h.
73734         (execute_java_class): Update.
73735         * modules/findprog: Update.
73736         * modules/javacomp: Update.
73737         * modules/javaexec: Update.
73738         * MODULES.html.sh (File system functions): Add 'filename', remove
73739         'pathname'.
73740
73741 2007-02-25  Bruno Haible  <bruno@clisp.org>
73742
73743         * modules/printf-frexpl-tests: New file.
73744         * tests/test-printf-frexpl.c: New file.
73745
73746         * modules/printf-frexpl: New file.
73747         * lib/printf-frexpl.h: New file.
73748         * lib/printf-frexpl.c: New file.
73749         * m4/printf-frexpl.m4: New file.
73750
73751 2007-02-25  Bruno Haible  <bruno@clisp.org>
73752
73753         * modules/printf-frexp-tests: New file.
73754         * tests/test-printf-frexp.c: New file.
73755
73756         * modules/printf-frexp: New file.
73757         * lib/printf-frexp.h: New file.
73758         * lib/printf-frexp.c: New file.
73759         * m4/printf-frexp.m4: New file.
73760
73761 2007-02-25  Bruno Haible  <bruno@clisp.org>
73762
73763         Assume automake >= 1.10 for the tests.
73764         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73765         * modules/arctwo-tests: Likewise.
73766         * modules/argp-tests: Likewise.
73767         * modules/avltree-list-tests: Likewise.
73768         * modules/avltree-oset-tests: Likewise.
73769         * modules/avltreehash-list-tests: Likewise.
73770         * modules/carray-list-tests: Likewise.
73771         * modules/crc-tests: Likewise.
73772         * modules/des-tests: Likewise.
73773         * modules/gc-arcfour-tests: Likewise.
73774         * modules/gc-arctwo-tests: Likewise.
73775         * modules/gc-des-tests: Likewise.
73776         * modules/gc-hmac-md5-tests: Likewise.
73777         * modules/gc-hmac-sha1-tests: Likewise.
73778         * modules/gc-md2-tests: Likewise.
73779         * modules/gc-md4-tests: Likewise.
73780         * modules/gc-md5-tests: Likewise.
73781         * modules/gc-pbkdf2-sha1-tests: Likewise.
73782         * modules/gc-rijndael-tests: Likewise.
73783         * modules/gc-sha1-tests: Likewise.
73784         * modules/gc-tests: Likewise.
73785         * modules/getaddrinfo-tests: Likewise.
73786         * modules/hmac-md5-tests: Likewise.
73787         * modules/hmac-sha1-tests: Likewise.
73788         * modules/linked-list-tests: Likewise.
73789         * modules/linkedhash-list-tests: Likewise.
73790         * modules/lock-tests: Likewise.
73791         * modules/md2-tests: Likewise.
73792         * modules/md4-tests: Likewise.
73793         * modules/md5-tests: Likewise.
73794         * modules/rbtree-list-tests: Likewise.
73795         * modules/rbtree-oset-tests: Likewise.
73796         * modules/rbtreehash-list-tests: Likewise.
73797         * modules/read-file-tests: Likewise.
73798         * modules/rijndael-tests: Likewise.
73799         * modules/stdint-tests: Likewise.
73800         * modules/tls-tests: Likewise.
73801
73802 2007-02-24  Bruno Haible  <bruno@clisp.org>
73803
73804         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73805         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73806         function; instead check whether isnan with a double argument links.
73807         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73808         function; instead check whether isnan with a 'long double' argument
73809         links.
73810         Reported by Eric Blake <ebb9@byu.net>.
73811
73812 2007-02-24  Bruno Haible  <bruno@clisp.org>
73813
73814         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73815         defined.
73816         * lib/isnanl.c: Remove all code. Just include isnan.c.
73817         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73818
73819 2007-02-25  Jim Meyering  <jim@meyering.net>
73820
73821         Avoid conflicting types for 'unsetenv' on FreeBSD.
73822         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73823         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73824         in stdlib.h.
73825
73826 2007-02-24  Bruno Haible  <bruno@clisp.org>
73827
73828         * modules/isnanl-nolibm-tests: New file.
73829         * tests/test-isnanl.c: New file.
73830
73831         * modules/isnanl-nolibm: New file.
73832         * lib/isnanl.h: New file.
73833         * lib/isnanl.c: New file.
73834         * m4/isnanl.m4: New file.
73835
73836 2007-02-24  Bruno Haible  <bruno@clisp.org>
73837
73838         * modules/isnan-nolibm-tests: New file.
73839         * tests/test-isnan.c: New file.
73840
73841         * modules/isnan-nolibm: New file.
73842         * lib/isnan.h: New file.
73843         * lib/isnan.c: New file.
73844         * m4/isnan.m4: New file.
73845
73846 2007-02-24  Bruno Haible  <bruno@clisp.org>
73847
73848         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73849         assume that an exponent fits in 20 bits.
73850
73851 2007-02-24  Jim Meyering  <jim@meyering.net>
73852
73853         * m4/regex.m4: Update the description of the configure-time option,
73854         --without-included-regex, to state accurately what the defaults are,
73855         and perhaps to give people an idea why using this option is risky.
73856
73857 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73858
73859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73860         loops on small arguments.  This attempts to avoid the problem
73861         Bruno Haible reported for AIX 4.3.2 in
73862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73863
73864 2007-02-23  Bruno Haible  <bruno@clisp.org>
73865
73866         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73867         Needed for help2man.
73868
73869 2007-02-23  Karl Berry  <karl@gnu.org>
73870
73871         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73872         exists, foo.h should be cvs-ignored, not committed.
73873
73874 2007-02-23  Eric Blake  <ebb9@byu.net>
73875
73876         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73877         * lib/stat-time.h (includes): Likewise.
73878         * lib/utimecmp.c (includes): Likewise.
73879         * lib/utimens.h (includes): Likewise.
73880         * lib/getdate.y (includes): Also include "timespec.h" for use
73881         internal to the module.
73882         * modules/utimens (Depends-on): Revert yesterday's patch.
73883         * modules/nanosleep (Depends-on): Add missing dependency.
73884
73885 2007-02-22  Bruno Haible  <bruno@clisp.org>
73886
73887         * lib/glob.c: Don't include getlogin_r.h.
73888
73889 2007-02-22  Jim Meyering  <jim@meyering.net>
73890
73891         * modules/utimens (Depends-on): Add timespec, required for
73892         utimens.h's inclusion of timespec.h.
73893
73894 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73895
73896         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73897         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73898         Schwab in
73899         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73900         I'll try to think of a better way to fix the Solaris problem.
73901
73902         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73903         like glibc; on Solaris 10, it fails with errno == EINVAL.
73904         POSIX says the behavior is unspecified if the first argument is NULL,
73905         so play it safe and never pass NULL to the system getcwd.
73906
73907 2007-02-21  Jim Meyering  <jim@meyering.net>
73908
73909         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73910         of gettimeofday.  It would conflict with the one now always
73911         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73912         an IRIX 6.5 build failure.
73913
73914 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         Minor fixups to port to Solaris 10 with Sun C 5.8.
73917         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73918         * modules/getcwd (Depends-on): Add dirfd.
73919         * lib/putenv.c (putenv): #undef it.
73920         (rpl_putenv): New decl.
73921         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73922
73923 2007-02-20  Bruno Haible  <bruno@clisp.org>
73924
73925         * modules/stdio-tests: New file.
73926         * tests/test-stdio.c: New file.
73927
73928         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73929         (Depends-on): Add stdio.
73930         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73931         (Include): Use <stdio.h> instead of vsnprintf.h.
73932         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73933         HAVE_DECL_VSNPRINTF.
73934         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73935
73936         * modules/snprintf (Files): Remove lib/snprintf.h.
73937         (Depends-on): Add stdio.
73938         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73939         (Include): Use <stdio.h> instead of snprintf.h.
73940         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73941         HAVE_DECL_SNPRINTF.
73942         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73943         * lib/getaddrinfo.c: Likewise.
73944
73945         * modules/stdio: New file.
73946         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73947         * lib/snprintf.h: Remove file.
73948         * lib/vsnprintf.h: Remove file.
73949         * lib/.cppi-disable: Remove snprintf.h.
73950         * m4/stdio_h.m4: New file.
73951         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73952
73953 2007-02-20  Jim Meyering  <jim@meyering.net>
73954
73955         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73956         used by e.g., mingw.  From Bruno Haible.
73957
73958 2007-02-19  Bruno Haible  <bruno@clisp.org>
73959
73960         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73961         warnings.
73962         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73963
73964 2007-02-19  Bruno Haible  <bruno@clisp.org>
73965
73966         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73967         from mingw users.
73968
73969 2007-02-19  Bruno Haible  <bruno@clisp.org>
73970
73971         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73972         warnings.
73973         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73974
73975 2007-02-19  Jim Meyering  <jim@meyering.net>
73976
73977         Don't use FD after a successful "fdopendir (fd)".
73978         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73979         Reset it by calling dirfd on the just-obtained DIR*.
73980
73981         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73982         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73983
73984 2007-02-18  Bruno Haible  <bruno@clisp.org>
73985
73986         * lib/readlink.c: Include <unistd.h>.
73987         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73988         HAVE_READLINK.
73989         * modules/readlink (Depends-on): Add unistd.
73990         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73991         (Include): Add <unistd.h>.
73992
73993         * lib/getlogin_r.h: Remove file.
73994         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73995         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73996         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73997         HAVE_DECL_GETLOGIN_R.
73998         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73999         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74000         (Include): Use <unistd.h> instead of getlogin_r.h.
74001
74002         * lib/getcwd.h: Remove file.
74003         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
74004         * lib/xgetcwd.c: Likewise.
74005         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
74006         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
74007         * modules/getcwd (Files): Remove lib/getcwd.h.
74008         (Depends-on): Add unistd.
74009         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74010         (Include): Use <unistd.h> instad of getcwd.h.
74011
74012         * lib/ftruncate.c: Include <unistd.h> first.
74013         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
74014         Set HAVE_FTRUNCATE.
74015         * modules/ftruncate (Depends-on): Add unistd.
74016         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74017
74018         * lib/fchdir.c: Include <unistd.h> first.
74019         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
74020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
74021         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
74022         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74023         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
74024
74025         * lib/dup2.c: Include <unistd.h> first.
74026         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
74027         HAVE_DUP2.
74028         * modules/dup2 (Depends-on): Add unistd.
74029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74030
74031         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
74032         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
74033         REPLACE_CHOWN. Don't define chown as a macro here.
74034         * modules/chown (Depends-on): Add unistd.
74035         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74036
74037         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
74038         Add definition for GL_LINK_WARNING.
74039         (chown, dup2): New declarations.
74040         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
74041         link warning.
74042         (ftruncate): New declaration.
74043         (getcwd): New declaration, taken from old getcwd.h.
74044         (getlogin_r): New declaration, taken from old getlogin_r.h.
74045         (readlink): New declaration.
74046         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
74047         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
74048         (gl_PREREQ_UNISTD): Remove macro.
74049         (gl_UNISTD_MODULE_INDICATOR): New macro.
74050         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
74051         many new variables. Don't set UNISTD_H.
74052         * modules/unistd (Description): Change.
74053         (Depends-on): Add link-warning.
74054         (configure.ac): Update.
74055         (Makefile.am): Create unistd.h always. Substitute many new variables
74056         into it.
74057
74058 2007-02-18  Bruno Haible  <bruno@clisp.org>
74059
74060         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
74061         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
74062         HAVE_GETSUBOPT.
74063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
74064         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
74065         * lib/getsubopt.h: Remove file.
74066         * modules/getsubopt (Files): Remove lib/getsubopt.h.
74067         (Depends-on): Add stdlib.
74068         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74069         (Includes): Use <stdlib.h> instead of getsubopt.h.
74070         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
74071         Set HAVE_GETSUBOPT.
74072         * lib/getsubopt.c: Don't include getsubopt.h.
74073
74074 2007-02-18  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/fchdir (Depends-on): Add dup2.
74077
74078 2007-02-18  Bruno Haible  <bruno@clisp.org>
74079
74080         * lib/stdlib_.h: Handle glibc's special invocation convention
74081         specially.
74082
74083 2007-02-18  Bruno Haible  <bruno@clisp.org>
74084
74085         * modules/stdlib-tests: New file.
74086         * tests/test-stdlib.c: New file.
74087
74088         * modules/mkstemp (Files): Remove lib/mkstemp.h.
74089         (Depends-on): Add stdlib.
74090         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74091         (Includes): Use <stdlib.h> instead of mkstemp.h.
74092         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74093         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
74094         * lib/mkstemp.c: Don't include mkstemp.h.
74095         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
74096         * lib/stdlib--.h: Don't include mkstemp.h.
74097
74098         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
74099         (Depends-on): Add stdlib.
74100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74101         (Includes): Use <stdlib.h> instead of mkdtemp.h.
74102         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74103         HAVE_MKDTEMP.
74104         * lib/mkdtemp.c: Don't include mkdtemp.h.
74105         * lib/clean-temp.c: Don't include mkdtemp.h.
74106
74107         * modules/exit (Files): Remove lib/exit.h.
74108         (Depends-on): Add stdlib.
74109         (Makefile.am): Remove lib_SOURCES.
74110         (Include): Use <stdlib.h> instead of exit.h.
74111         * lib/argmatch.c: Don't include exit.h.
74112         * lib/execute.c: Likewise.
74113         * lib/pagealign_alloc.c: Likewise.
74114         * lib/pipe.c: Likewise.
74115         * lib/wait-process.c: Likewise.
74116         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
74117         * lib/exitfail.c: Likewise.
74118         * lib/savewd.c: Likewise.
74119         * lib/xsetenv.c: Likewise.
74120
74121         * modules/stdlib: New file.
74122         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
74123         and extra comments about mkstemp().
74124         * lib/exit.h: Remove file.
74125         * lib/mkdtemp.h: Remove file.
74126         * lib/mkstemp.h: Remove file.
74127         * m4/stdlib_h.m4: New file.
74128         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
74129
74130 2007-02-18  Bruno Haible  <bruno@clisp.org>
74131
74132         * modules/math-tests: New file.
74133         * tests/test-math.c: New file.
74134
74135         * modules/math: New file.
74136         * modules/mathl (Files): Remove lib/mathl.h.
74137         (Depends-on): Add math.
74138         (Makefile.am): Don't mention mathl.h.
74139         (Include): Use <math.h> instead of mathl.h.
74140         * lib/math_.h: New file.
74141         * lib/mathl.h: Remove file.
74142         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
74143         mathl.h.
74144         * lib/asinl.c: Likewise.
74145         * lib/atanl.c: Likewise.
74146         * lib/ceill.c: Likewise.
74147         * lib/cosl.c: Likewise.
74148         * lib/expl.c: Likewise.
74149         * lib/floorl.c: Likewise.
74150         * lib/frexpl.c: Likewise.
74151         * lib/ldexpl.c: Likewise.
74152         * lib/logl.c: Likewise.
74153         * lib/sincosl.c: Likewise.
74154         * lib/sinl.c: Likewise.
74155         * lib/sqrtl.c: Likewise.
74156         * lib/tanl.c: Likewise.
74157         * lib/trigl.c: Likewise.
74158         * m4/math_h.m4: New file.
74159         * MODULES.html.sh (Mathematics): Add math.
74160
74161 2007-02-17  Bruno Haible  <bruno@clisp.org>
74162
74163         * modules/wctype-tests: New file.
74164         * tests/test-wctype.c: New file.
74165
74166         * modules/wchar-tests: New file.
74167         * tests/test-wchar.c: New file.
74168
74169         * modules/unistd-tests: New file.
74170         * tests/test-unistd.c: New file.
74171
74172         * modules/time-tests: New file.
74173         * tests/test-time.c: New file.
74174
74175         * modules/sysexits-tests: New file.
74176         * tests/test-sysexits.c: New file.
74177
74178         * modules/sys_time-tests: New file.
74179         * tests/test-sys_time.c: New file.
74180
74181         * modules/sys_stat-tests: New file.
74182         * tests/test-sys_stat.c: New file.
74183
74184         * modules/sys_socket-tests: New file.
74185         * tests/test-sys_socket.c: New file.
74186
74187         * modules/sys_select-tests: New file.
74188         * tests/test-sys_select.c: New file.
74189
74190         * modules/string-tests: New file.
74191         * tests/test-string.c: New file.
74192
74193         * modules/stdbool-tests: New file.
74194         * tests/test-stdbool.c: New file.
74195
74196         * modules/netinet_in-tests: New file.
74197         * tests/test-netinet_in.c: New file.
74198
74199         * modules/inttypes-tests: New file.
74200         * tests/test-inttypes.c: New file.
74201
74202         * modules/fcntl-tests: New file.
74203         * tests/test-fcntl.c: New file.
74204
74205         * modules/byteswap-tests: New file.
74206         * tests/test-byteswap.c: New file.
74207
74208         * modules/arpa_inet-tests: New file.
74209         * tests/test-arpa_inet.c: New file.
74210
74211 2007-02-17  Bruno Haible  <bruno@clisp.org>
74212
74213         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74214         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74215         if the corresponding module is not enabled. Emit link warnings if
74216         the function is used nevertheless.
74217         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74218         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74219         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74220         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74221         * modules/inttypes (Depends-on): Add link-warning.
74222         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74223         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74224         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74225         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74226         * modules/imaxdiv (configure.ac): Likewise.
74227         * modules/strtoimax (configure.ac): Likewise.
74228         * modules/strtoumax (configure.ac): Likewise.
74229
74230 2007-02-17  Bruno Haible  <bruno@clisp.org>
74231
74232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74233         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74234         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74235         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74236
74237 2007-02-17  Bruno Haible  <bruno@clisp.org>
74238
74239         * modules/link-warning: New file.
74240         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74241         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74242         * modules/string (Depends-on): Add link-warning.
74243         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74244         string.h.
74245         * MODULES.html.sh (Support for building libraries and executables): Add
74246         link-warning.
74247
74248 2007-02-17  Bruno Haible  <bruno@clisp.org>
74249
74250         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74251         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74252         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74253         long lines.
74254
74255 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74256             Bruno Haible  <bruno@clisp.org>
74257
74258         * modules/tmpfile: New file.
74259         * lib/tmpfile.c: New file.
74260         * m4/tmpfile.m4: New file.
74261         * MODULES.html.sh (func_all_modules): New section "Input/output".
74262
74263 2007-02-15  Bruno Haible  <bruno@clisp.org>
74264
74265         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74266         (supports_delete_on_close): New function.
74267         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74268
74269 2007-02-14  Bruno Haible  <bruno@clisp.org>
74270
74271         * modules/mbspcasecmp-tests: New file.
74272         * tests/test-mbspcasecmp.sh: New file.
74273         * tests/test-mbspcasecmp.c: New file.
74274
74275         New module mbspcasecmp.
74276         * modules/mbspcasecmp: New file.
74277         * lib/mbspcasecmp.c: New file.
74278         * lib/string_.h (strncasecmp): Change warning message.
74279         (mbspcasecmp): New declaration.
74280         * m4/mbspcasecmp.m4: New file.
74281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74282         GNULIB_MBSPCASECMP.
74283         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74284         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74285
74286 2007-02-14  Bruno Haible  <bruno@clisp.org>
74287
74288         * modules/mbsncasecmp-tests: New file.
74289         * tests/test-mbsncasecmp.sh: New file.
74290         * tests/test-mbsncasecmp.c: New file.
74291
74292         New module mbsncasecmp.
74293         * modules/mbsncasecmp: New file.
74294         * lib/mbsncasecmp.c: New file.
74295         * lib/string_.h (mbsncasecmp): New declaration.
74296         * m4/mbsncasecmp.m4: New file.
74297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74298         GNULIB_MBSNCASECMP.
74299         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74300         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74301
74302 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74303
74304         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74305         Verify that it doesn't overlap with our flags.
74306         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74307         do not have the desired effect in multibyte locales; instead, use
74308         mbscasecmp.
74309         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74310         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74311         we don't require GNU fnmatch ourselves (if our users require it, they
74312         should do so explicitly).
74313
74314         Fix regex code so it doesn't rely on strcasecmp.
74315         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74316         Otherwise, include gnulib's langinfo.h.
74317         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74318         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74319         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74320         * modules/regex (FILES): Remove m4/codeset.m4.
74321         (Depends-on): Add localcharset.  Remove strcase.
74322
74323 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74324
74325         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74326         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74327
74328 2007-02-13  Bruno Haible  <bruno@clisp.org>
74329
74330         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74331         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74332
74333 2007-02-12  Bruno Haible  <bruno@clisp.org>
74334
74335         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74336         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74337         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74338         time warning rather than a link error.
74339
74340 2007-02-12  Bruno Haible  <bruno@clisp.org>
74341
74342         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74343         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74344         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74345
74346 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74349         args, not 2.
74350
74351 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74352
74353         New module 'time', so that apps can include <time.h> as per
74354         POSIX and GNU instead of separate include files like time_r.h
74355         and timegm.h.  This implementation tries out a simpler approach
74356         for replacing decls in standard include files (as compared to
74357         the string module), somewhat as an experiment.
74358
74359         * config/srclist.txt: Comment out mktime.c for now.
74360         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74361         since it doesn't apply any more.  Use generic wording instead.
74362         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74363         'time'.
74364         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74365         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74366         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74367         Don't include <sys/types.h>; no longer needed since we assume C89.
74368         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74369         * lib/strftime.c: Likewise.
74370         * lib/time_r.c: Likewise.
74371         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74372         * lib/nanosleep.c: Include <time.h> first, to check interface.
74373         * lib/strptime.c: Likewise.
74374         * lib/time_r.c: Likewise.
74375         * lib/timegm.c: Likewise.
74376         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74377         needed.
74378         * lib/timegm.c: Don't include timegm.h; no longer needed.
74379         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74380         time.h now handles any problems in that area.
74381         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74382         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74383         that time.h defines struct timespec.
74384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74385         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74386         handles that.
74387         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74388         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74389         needed.  Set REPLACE_LOCALTIME.
74390         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74391         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74392         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74393         nanosleep; time_h.m4 now does that.  Don't require
74394         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74395         module handles this now.
74396         * modules/getdate (Depends-on): Remove timespec.  Add time.
74397         * modules/nanosleep (Depends-on): Likewise.
74398         * modules/stat-time (Depends-on): Likewise.
74399         * modules/nanosleep (Include): Include time.h, not timespec.h.
74400         * modules/strptime (Files): Remove lib/strptime.h.
74401         (Depends-on): Add extensions, time.
74402         (Include): Include time.h, not strptime.h.
74403         * modules/time_r (Files): Remove lib/time_r.h.
74404         (Depends-on): Add time.
74405         (Include): Include time.h, not time_r.h.
74406         * modules/timegm: Likewise.
74407         * modules/timespec (Description): Now does timespec-related decls
74408         of our own, instead of struct timespec itself.
74409         (Depends-on): Add time; remove extensions.
74410         (Maintainer): Add self.
74411         * modules/utimecmp (Depends-on): Add time; remove timespec.
74412         * modules/utimens (Depends-on): Likewise.
74413         * modules/xnanosleep (Depends-on): Likewise.
74414
74415 2007-02-11  Bruno Haible  <bruno@clisp.org>
74416
74417         * lib/c-strstr.c: Include allocsa.h.
74418         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74419         * lib/c-strcasestr.c: Include allocsa.h.
74420         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74421         * lib/strcasestr.c: Include allocsa.h.
74422         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74423         * lib/mbsstr.c: Include allocsa.h.
74424         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74425         allocsa/freesa instead of malloc/free.
74426         * lib/mbscasestr.c: Include allocsa.h.
74427         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74428         allocsa/freesa instead of malloc/free.
74429         * modules/c-strstr (Depends-on): Add allocsa.
74430         * modules/c-strcasestr (Depends-on): Likewise.
74431         * modules/strcasestr (Depends-on): Likewise.
74432         * modules/mbsstr (Depends-on): Likewise.
74433         * modules/mbscasestr (Depends-on): Likewise.
74434
74435 2007-02-11  Bruno Haible  <bruno@clisp.org>
74436
74437         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74438
74439         * modules/mbsspn-tests: New file.
74440         * tests/test-mbsspn.sh: New file.
74441         * tests/test-mbsspn.c: New file.
74442
74443 2007-02-11  Bruno Haible  <bruno@clisp.org>
74444
74445         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74446
74447         * modules/mbspbrk-tests: New file.
74448         * tests/test-mbspbrk.sh: New file.
74449         * tests/test-mbspbrk.c: New file.
74450
74451 2007-02-11  Bruno Haible  <bruno@clisp.org>
74452
74453         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74454         unneeded cast.
74455
74456         * modules/mbscspn-tests: New file.
74457         * tests/test-mbscspn.sh: New file.
74458         * tests/test-mbscspn.c: New file.
74459
74460 2007-02-11  Bruno Haible  <bruno@clisp.org>
74461
74462         * modules/mbscasecmp-tests: New file.
74463         * tests/test-mbscasecmp.sh: New file.
74464         * tests/test-mbscasecmp.c: New file.
74465
74466 2007-02-11  Bruno Haible  <bruno@clisp.org>
74467
74468         Ensure O(n) worst-case complexity of mbscasestr.
74469         * lib/mbscasestr.c: Include stdbool.h.
74470         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74471         functions.
74472         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74473         the bookkeeping indicates that it's worth it.
74474         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74475
74476         * modules/mbscasestr-tests: New file.
74477         * tests/test-mbscasestr1.c: New file.
74478         * tests/test-mbscasestr2.sh: New file.
74479         * tests/test-mbscasestr2.c: New file.
74480         * tests/test-mbscasestr3.sh: New file.
74481         * tests/test-mbscasestr3.c: New file.
74482         * tests/test-mbscasestr4.sh: New file.
74483         * tests/test-mbscasestr4.c: New file.
74484         * m4/locale-tr.m4: New file.
74485
74486 2007-02-11  Bruno Haible  <bruno@clisp.org>
74487
74488         Ensure O(n) worst-case complexity of mbsstr.
74489         * lib/mbsstr.c: Include stdbool.h.
74490         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74491         functions.
74492         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74493         bookkeeping indicates that it's worth it.
74494         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74495
74496         * modules/mbsstr-tests: New file.
74497         * tests/test-mbsstr1.c: New file.
74498         * tests/test-mbsstr2.sh: New file.
74499         * tests/test-mbsstr2.c: New file.
74500         * tests/test-mbsstr3.sh: New file.
74501         * tests/test-mbsstr3.c: New file.
74502         * m4/locale-fr.m4: New file.
74503
74504 2007-02-11  Bruno Haible  <bruno@clisp.org>
74505
74506         * lib/mbsrchr.c (mbsrchr): Fix bug.
74507
74508         * modules/mbsrchr-tests: New file.
74509         * tests/test-mbsrchr.sh: New file.
74510         * tests/test-mbsrchr.c: New file.
74511
74512 2007-02-11  Bruno Haible  <bruno@clisp.org>
74513
74514         * lib/mbschr.c (mbschr): Fix bug.
74515
74516         * modules/mbschr-tests: New file.
74517         * tests/test-mbschr.sh: New file.
74518         * tests/test-mbschr.c: New file.
74519         * m4/locale-zh.m4: New file.
74520
74521 2007-02-11  Bruno Haible  <bruno@clisp.org>
74522
74523         Support for copying multibyte string iterators.
74524         * lib/mbiter.h: Include <string.h>.
74525         (mbiter_multi_copy): New function.
74526         (mbi_copy): New macro.
74527         * lib/mbuiter.h: Include <string.h>.
74528         (mbuiter_multi_copy): New function.
74529         (mbui_copy): New macro.
74530
74531 2007-02-11  Bruno Haible  <bruno@clisp.org>
74532
74533         New module mbslen.
74534         * modules/mbslen: New file.
74535         * lib/mbslen.c: New file.
74536         * lib/string_.h (mbslen): New declaration.
74537         * m4/mbslen.m4: New file.
74538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74539         GNULIB_MBSLEN.
74540         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74541         * MODULES.html.sh (Internationalization functions): Add mbslen.
74542
74543 2007-02-11  Bruno Haible  <bruno@clisp.org>
74544
74545         Ensure O(n) worst-case complexity of strcasestr substitute.
74546         * lib/strcasestr.c: Include stdbool.h.
74547         (knuth_morris_pratt): New function.
74548         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74549         bookkeeping indicates that it's worth it.
74550         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74551
74552         * modules/strcasestr-tests: New file.
74553         * tests/test-strcasestr.c: New file.
74554
74555 2007-02-11  Bruno Haible  <bruno@clisp.org>
74556
74557         Ensure O(n) worst-case complexity of c_strcasestr.
74558         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74559         (knuth_morris_pratt): New function.
74560         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74561         the bookkeeping indicates that it's worth it.
74562         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74563
74564         * modules/c-strcasestr-tests: New file.
74565         * tests/test-c-strcasestr.c: New file.
74566
74567 2007-02-11  Bruno Haible  <bruno@clisp.org>
74568
74569         Ensure O(n) worst-case complexity of c_strstr.
74570         * lib/c-strstr.c: Include stdbool.h, string.h.
74571         (knuth_morris_pratt): New function.
74572         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74573         bookkeeping indicates that it's worth it.
74574         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74575
74576         * lib/c-strstr.c: Complete rewrite for maintainability.
74577
74578         * modules/c-strstr-tests: New file.
74579         * tests/test-c-strstr.c: New file.
74580
74581 2007-02-11  Bruno Haible  <bruno@clisp.org>
74582
74583         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74584         5.2.1 and earlier, whereby \055 was treated just like the range
74585         delimiter '-'.
74586         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74587
74588 2007-02-08  Bruno Haible  <bruno@clisp.org>
74589
74590         * modules/regex (Depends-on): Add stdbool.
74591         Reported by Dalibor Topic <robilad@kaffe.org>.
74592
74593 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74594
74595         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74596         Prefer returning from main to exiting from it.
74597         Remove unnecessary parens after sizeof.
74598
74599 2007-02-05  Bruno Haible  <bruno@clisp.org>
74600
74601         New module mbssep.
74602         * modules/mbssep: New file.
74603         * lib/mbssep.c: New file.
74604         * lib/string_.h (strsep): Add a conditional link warning.
74605         (mbssep): New declaration.
74606         * m4/mbssep.m4: New file.
74607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74608         GNULIB_MBSSEP.
74609         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74610         * MODULES.html.sh (Internationalization functions): Add mbssep.
74611
74612 2007-02-05  Bruno Haible  <bruno@clisp.org>
74613
74614         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74615         Optimize search in case of 1 delimiter.
74616
74617 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74618
74619         * lib/acl.h: Include sys/types.h before sys/acl.h.
74620
74621 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74622
74623         Merge upstream fix for glibc bugzilla #3957:
74624
74625         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74626
74627         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74628         bit for RE_HAT_LISTS_NOT_NEWLINE.
74629         (build_charclass_op): Remove bogus comment.
74630
74631 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74632
74633         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74634
74635 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74638         * lib/memmem.c [!defined _LIBC]: Include config.h.
74639
74640 2007-02-04  Bruno Haible  <bruno@clisp.org>
74641
74642         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74643         warning message.
74644
74645 2007-02-04  Bruno Haible  <bruno@clisp.org>
74646
74647         New module mbstok_r.
74648         * modules/mbstok_r: New file.
74649         * lib/mbstok_r.c: New file.
74650         * lib/string_.h (strtok_r): Change argument names to match the
74651         comments. Add a conditional link warning.
74652         (mbstok_r): New declaration.
74653         * m4/mbstok_r.m4: New file.
74654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74655         GNULIB_MBSTOK_R.
74656         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74657         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74658
74659 2007-02-04  Bruno Haible  <bruno@clisp.org>
74660
74661         New module mbsspn.
74662         * modules/mbsspn: New file.
74663         * lib/mbsspn.c: New file.
74664         * lib/string_.h (strspn): Add a conditional link warning.
74665         (mbsspn): New declaration.
74666         * m4/mbsspn.m4: New file.
74667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74668         GNULIB_MBSSPN.
74669         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74670         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74671
74672 2007-02-04  Bruno Haible  <bruno@clisp.org>
74673
74674         New module mbspbrk.
74675         * modules/mbspbrk: New file.
74676         * lib/mbspbrk.c: New file.
74677         * lib/string_.h (strpbrk): Add a conditional link warning.
74678         (mbspbrk): New declaration.
74679         * m4/mbspbrk.m4: New file.
74680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74681         GNULIB_MBSPBRK.
74682         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74683         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74684
74685 2007-02-04  Bruno Haible  <bruno@clisp.org>
74686
74687         New module mbscspn.
74688         * modules/mbscspn: New file.
74689         * lib/mbscspn.c: New file.
74690         * lib/string_.h (strcspn): Add a conditional link warning.
74691         (mbscspn): New declaration.
74692         * m4/mbscspn.m4: New file.
74693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74694         GNULIB_MBSCSPN.
74695         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74696         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74697
74698 2007-02-04  Bruno Haible  <bruno@clisp.org>
74699
74700         New module mbscasestr, reduced goal of strcasestr.
74701         * modules/mbscasestr: New file.
74702         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74703         (mbscasestr): Renamed from strcasestr.
74704         * lib/strcasestr.c: Don't include mbuiter.h.
74705         (strcasestr): Remove support for multibyte locales.
74706         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74707         Change the conditional link warning.
74708         (mbscasestr): New declaration.
74709         * m4/mbscasestr.m4: New file.
74710         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74711         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74712         REPLACE_STRCASESTR.
74713         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74715         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74716         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74717         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74718         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74719         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74720         (Depends-on): Remove mbuiter.
74721         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74722
74723 2007-02-04  Bruno Haible  <bruno@clisp.org>
74724
74725         Simplify handling of strncasecmp.
74726         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74727         the conditional link warning.
74728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74729         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74730         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74731         * modules/strcase (configure.ac): Don't invoke
74732         gl_STRING_MODULE_INDICATOR.
74733         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74734
74735 2007-02-04  Bruno Haible  <bruno@clisp.org>
74736
74737         New module mbscasecmp, reduced goal of strcasecmp.
74738         * modules/mbscasecmp: New file.
74739         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74740         (mbscasecmp): Renamed from strcasecmp.
74741         * lib/strcasecmp.c: Don't include mbuiter.h.
74742         (strcasecmp): Remove support for multibyte locales.
74743         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74744         Change the conditional link warning.
74745         (mbscasecmp): New declaration.
74746         * m4/mbscasecmp.m4: New file.
74747         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74748         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74749         REPLACE_STRCASECMP.
74750         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74752         GNULIB_MBSCASECMP.
74753         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74754         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74755         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74756         (Depends-on): Remove mbuiter.
74757         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74758
74759 2007-02-04  Bruno Haible  <bruno@clisp.org>
74760
74761         New module mbsstr. Remove module strstr.
74762         * modules/mbsstr: New file.
74763         * modules/strstr: Remove file.
74764         * lib/mbsstr.c: Renamed from lib/strstr.c.
74765         (mbsstr): Renamed from strstr.
74766         * lib/string_.h (strstr): Remove declaration. Change the conditional
74767         link warning.
74768         (mbsstr): New declaration.
74769         * m4/mbsstr.m4: New file.
74770         * m4/strstr.m4: Remove file.
74771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74772         REPLACE_STRSTR.
74773         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74774         Don't initialize GNULIB_STRSTR.
74775         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74776         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74777         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74778         (Support for systems lacking ANSI C 89): Remove strstr.
74779
74780 2007-02-04  Bruno Haible  <bruno@clisp.org>
74781
74782         New module mbsrchr.
74783         * modules/mbsrchr: New file.
74784         * lib/mbsrchr.c: New file.
74785         * lib/string_.h (strrchr): Add a conditional link warning.
74786         (mbsrchr): New declaration.
74787         * m4/mbsrchr.m4: New file.
74788         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74789         GNULIB_MBSRCHR.
74790         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74791         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74792
74793 2007-02-04  Bruno Haible  <bruno@clisp.org>
74794
74795         New module mbschr.
74796         * modules/mbschr: New file.
74797         * lib/mbschr.c: New file.
74798         * lib/string_.h (strchr): Add a conditional link warning.
74799         (mbschr): New declaration.
74800         * m4/mbschr.m4: New file.
74801         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74802         GNULIB_MBSCHR.
74803         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74804         * MODULES.html.sh (Internationalization functions): Add mbschr.
74805
74806 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74809
74810         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74811
74812 2007-02-04  Bruno Haible  <bruno@clisp.org>
74813
74814         New module description section 'configure.ac-early'.
74815         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74816         (func_get_autoconf_early_snippet): New function.
74817         (func_import, func_create_testdir): Use it. Remove special cases for
74818         modules 'extensions' and 'lock'.
74819         * modules/extensions (configure.ac-early): Require
74820         gl_USE_SYSTEM_EXTENSIONS.
74821         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74822
74823 2007-02-04  Bruno Haible  <bruno@clisp.org>
74824
74825         Make use of gcj-4.3's -fsource and -ftarget option.
74826         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74827         and if so try the options -fsource and -ftarget.
74828         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74829         source_version, ftarget_option, target_version arguments.
74830         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74831         (is_envjavac_oldgcj_14_14_usable): Renamed from
74832         is_envjavac_gcj_14_14_usable.
74833         (is_envjavac_oldgcj_14_13_usable): Renamed from
74834         is_envjavac_gcj_14_13_usable.
74835         (is_gcj_present): Update.
74836         (is_gcj_43, is_gcj43_usable): New functions.
74837         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74838         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74839         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74840         try the options -fsource and -ftarget.
74841
74842 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74845         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74846         larger value.
74847
74848 2007-02-03  Jim Meyering  <jim@meyering.net>
74849
74850         Give tools a better chance to allocate space for very large buffers.
74851         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74852
74853         Make pwd and readlink work also when run with an unreadable parent dir
74854         on systems with openat support.
74855         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74856         provided getcwd function, even when we have openat support.
74857         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74858
74859 2007-02-02  Bruno Haible  <bruno@clisp.org>
74860
74861         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74862         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74863         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74864         portability problems if one of these functions is only used on specific
74865         platforms.
74866         Reported by Paul Eggert.
74867
74868 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74871         is causing more trouble than it's curing.
74872         * lib/regex_internal.h (__mempcpy): Remove.
74873         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74874         (and make the code a tad smaller to boot).
74875         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74876
74877 2007-02-02  Jim Meyering  <jim@meyering.net>
74878
74879         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74880         section, not in the Makefile.am: one.
74881
74882 2007-02-02  Eric Blake  <ebb9@byu.net>
74883
74884         * lib/strchrnul.c: Always include config.h first.
74885
74886         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74887         gnulib strstr is not necessary here.
74888
74889 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74890
74891         * m4/socklen.m4: Fix typo.
74892
74893 2007-02-02  Eric Blake  <ebb9@byu.net>
74894
74895         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74896         * modules/netinet_in (Makefile.am): Likewise.
74897
74898 2007-02-01  Bruno Haible  <bruno@clisp.org>
74899
74900         * lib/string_.h (GL_LINK_WARNING): New macro.
74901         (strcasecmp, strstr, strcasestr): If provided by the system,
74902         conditionally define as a macro that leads to a warning instead of to
74903         an error.
74904         (strncasecmp): Conditionally define as a macro that leads to a warning.
74905
74906 2007-02-01  Karl Berry  <karl@gnu.org>
74907
74908         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74909
74910 2007-02-01  Bruno Haible  <bruno@clisp.org>
74911
74912         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74913         renamings.
74914
74915 2007-02-01  Eric Blake  <ebb9@byu.net>
74916
74917         * modules/regex (Depends-on): Revert dependence on mempcpy.
74918         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74919         module's definition of mempcpy.
74920         Reported by Paul Eggert.
74921
74922 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74925         the symbol XYZ before redefining it.  This fixes a problem with
74926         programs that don't use XYZ, when compiled on systems that define
74927         XYZ to something else.
74928
74929 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74930
74931         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74932         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74933         writeable to group or other and (2) is intended to have a special
74934         mode bit that is set or cleared.  In such a case, the directory
74935         should be neither group- nor other-writeable until the special
74936         mode bits are right.
74937
74938 2007-01-31  Eric Blake  <ebb9@byu.net>
74939
74940         * modules/mountlist (Depends-on): Add strstr.
74941
74942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74943         bug.
74944         * modules/string (Makefile.am): Remove redundant replacement.
74945         * modules/regex (Depends-on): Add mempcpy.
74946
74947 2007-01-31  Bruno Haible  <bruno@clisp.org>
74948
74949         New module description field 'Link'.
74950         * gnulib-tool (func_usage): Document --extract-link-directive.
74951         (sed_extract_prog): Recognize 'Link' directive.
74952         (func_get_link_directive): New function.
74953         (func_import): Show summary of link directives.
74954         Handle --extract-link-directive option.
74955         * modules/acl (Link): New section.
74956         * modules/clock-time (Link): New section.
74957         * modules/euidaccess (Link): New section.
74958         * modules/gettext (Link): New section.
74959         * modules/iconv (Link): New section.
74960         * modules/lock (Link): New section.
74961         * modules/nanosleep (Link): New section.
74962         * modules/readline (Link): New section.
74963
74964 2007-01-27  Bruno Haible  <bruno@clisp.org>
74965
74966         Enforce the use of gnulib modules for unportable <string.h> functions.
74967         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74968         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74969         (gl_HEADER_STRING_H_BODY): Require it.
74970         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74971         the symbol XYZ to one that gives a link error.
74972         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74973         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74974         * modules/mempcpy (configure.ac): Likewise.
74975         * modules/memrchr (configure.ac): Likewise.
74976         * modules/stpcpy (configure.ac): Likewise.
74977         * modules/stpncpy (configure.ac): Likewise.
74978         * modules/strcase (configure.ac): Likewise.
74979         * modules/strcasestr (configure.ac): Likewise.
74980         * modules/strchrnul (configure.ac): Likewise.
74981         * modules/strdup (configure.ac): Likewise.
74982         * modules/strndup (configure.ac): Likewise.
74983         * modules/strnlen (configure.ac): Likewise.
74984         * modules/strpbrk (configure.ac): Likewise.
74985         * modules/strsep (configure.ac): Likewise.
74986         * modules/strstr (configure.ac): Likewise.
74987         * modules/strtok_r (configure.ac): Likewise.
74988
74989 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74990
74991         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74992
74993 2007-01-30  Jim Meyering  <jim@meyering.net>
74994
74995         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74996
74997 2007-01-29  Bruno Haible  <bruno@clisp.org>
74998
74999         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
75000         * lib/execute.c: Likewise.
75001         * lib/pipe.c: Likewise.
75002         * lib/printf-args.h: Likewise.
75003         * lib/printf-args.c: Likewise.
75004         * lib/printf-parse.c: Likewise.
75005         * lib/vasnprintf.c: Likewise.
75006
75007 2007-01-29  Eric Blake  <ebb9@byu.net>
75008
75009         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
75010         declaration.
75011
75012 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         * lib/strptime.h (strptime): Use 'restrict' for args where
75015         POSIX requires this.
75016         * lib/strptime.c (strptime): Likewise.
75017         Change license notice from LGPL to GPL, since gnulib-tool will
75018         change this as needed.
75019         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
75020         defined.
75021         Include "strptime.h" first, to check interface.
75022         Do not #undef _LIBC and _NL_CURRENT.
75023         Do not include <stdlib.h>; no longer needed.
75024         Include "time_r.h" and declare ptime_locale_status
75025         only if _LIBC is not defined.
75026         (__P): Remove unused macro.
75027         (match_string): Bring back glibc version, but use it only if _LIBC
75028         is defined.
75029         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
75030         Remove unnecessary assertion and abort() call.
75031         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
75032         * m4/strptime.m4: Fix serial number comment.
75033         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
75034         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
75035         (Depends-on): Add time_r.
75036
75037 2007-01-29  Bruno Haible  <bruno@clisp.org>
75038
75039         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75040         strptime.
75041         * modules/strptime (Depends-on): Add stdbool.
75042         * lib/strptime.h: Include <time.h> always. Add comments.
75043
75044 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75045
75046         * modules/strptime: New file.
75047         * lib/strptime.h: New file.
75048         * lib/strptime.c: New file.
75049         * m4/strptime.m4: New file.
75050
75051 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75052
75053         * MODULES.html.sh: New module mpsort.
75054         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
75055
75056         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
75057         a circularity problem with HP-UX ia64 reported by Bob Proulx in
75058         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
75059         All uses changed.
75060         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
75061         All uses changed.
75062         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
75063         to _Restrict_.
75064         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
75065         the parameter matches the prototype.
75066
75067 2007-01-28  Jim Meyering  <jim@meyering.net>
75068
75069         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
75070         sys/time.h here, reverting that part of the previous patch:
75071         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
75072
75073 2007-01-28  Bruno Haible  <bruno@clisp.org>
75074
75075         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
75076         value of $(SYS_TIME_H).
75077         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
75078         remove it conditionally, too. [added by Jim Meyering]
75079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
75080         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75081         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
75082         GETTIMEOFDAY_REPLACEMENT to 1.
75083
75084 2007-01-28  Bruno Haible  <bruno@clisp.org>
75085
75086         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
75087         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
75088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
75089         Set UNISTD_H instead of UNISTD_H2.
75090         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
75091
75092 2007-01-28  Bruno Haible  <bruno@clisp.org>
75093
75094         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
75095         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
75096
75097 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75098
75099         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
75100         (func_create_testdir): Ensure C locale for `grep' and `tr'
75101         character ranges.
75102         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
75103         ACLOCAL_AMFLAGS parsing state machine.
75104
75105 2007-01-27  Bruno Haible  <bruno@clisp.org>
75106
75107         * modules/unistr/base: Update.
75108
75109 2007-01-27  Bruno Haible  <bruno@clisp.org>
75110
75111         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
75112         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
75113         * modules/unistr/u32-mbtouc-unsafe: Renamed from
75114         modules/unistr/u32-mbtouc.
75115         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
75116         * lib/unistr.h: Update.
75117         * lib/linebreak.c: Update.
75118         * modules/unistr/u32-mbtouc: Renamed from
75119         modules/unistr/u32-mbtouc-safe.
75120         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
75121         * lib/unistr.h: Update.
75122         * lib/unistr/u32-to-u8.c: Update.
75123         * lib/unistr/u32-to-u16.c: Update.
75124
75125 2007-01-27  Bruno Haible  <bruno@clisp.org>
75126
75127         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75128         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
75129         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
75130         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
75131         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
75132         * modules/unistr/u16-mbtouc-unsafe: Renamed from
75133         modules/unistr/u16-mbtouc.
75134         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
75135         * lib/unistr.h: Update.
75136         * lib/linebreak.c: Update.
75137         * modules/linebreak: Update.
75138         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
75139         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
75140         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
75141         * modules/unistr/u16-mbtouc: Renamed from
75142         modules/unistr/u16-mbtouc-safe.
75143         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
75144         * lib/unistr.h: Update.
75145         * lib/unistr/u16-to-u8.c: Update.
75146         * modules/unistr/u16-to-u8: Update.
75147         * lib/unistr/u16-to-u32.c: Update.
75148         * modules/unistr/u16-to-u32: Update.
75149
75150 2007-01-27  Bruno Haible  <bruno@clisp.org>
75151
75152         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
75153         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
75154         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
75155         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
75156         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
75157         * modules/unistr/u8-mbtouc-unsafe: Renamed from
75158         modules/unistr/u8-mbtouc.
75159         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
75160         * lib/unistr.h: Update.
75161         * lib/striconveh.c: Update.
75162         * modules/striconveh: Update.
75163         * lib/linebreak.c: Update.
75164         * modules/linebreak: Update.
75165         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
75166         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
75167         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
75168         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
75169         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
75170         * lib/unistr.h: Update.
75171         * lib/striconveh.c: Update.
75172         * modules/striconveh: Update.
75173         * lib/unistr/u8-to-u16.c: Update.
75174         * modules/unistr/u8-to-u16: Update.
75175         * lib/unistr/u8-to-u32.c: Update.
75176         * modules/unistr/u8-to-u32: Update.
75177
75178 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75179
75180         Sync from Libtool.
75181         * lib/argz.c: Do not include strings.h nor memory.h, include
75182         string.h unconditionally.  Patch by Simon Josefsson.
75183
75184 2007-01-27  Bruno Haible  <bruno@clisp.org>
75185
75186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
75187         from gl_HEADER_STRING_H_BODY.
75188         (gl_HEADER_STRING_H_BODY): Require it.
75189         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
75190         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
75191         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
75192         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
75193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
75194         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
75195         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75196         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
75197         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
75198         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75199         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
75200         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
75201         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
75202         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75203         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75204
75205 2007-01-27  Bruno Haible  <bruno@clisp.org>
75206
75207         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75208         check_PROGRAMS into noinst_PROGRAMS.
75209         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75210         check_PROGRAMS in this case.
75211         (func_import): Set for_test to false.
75212         (func_create_testdir): Set for_test to true.
75213
75214 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75215             Bruno Haible  <bruno@clisp.org>
75216
75217         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75218         (Depends-on): Add string.
75219         (Includes): Use <string.h> instead of strcasestr.h.
75220         * modules/string (Makefile.am): Also substitute the value of
75221         REPLACE_STRCASESTR.
75222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75223         assume strcasestr is declared in <string.h> not <strings.h>. Also
75224         set REPLACE_STRCASESTR.
75225         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75226         REPLACE_STRCASESTR.
75227         * lib/strcasestr.h: Remove file.
75228         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75229         * lib/string_.h (strcasestr): New declaration.
75230
75231 2007-01-27  Bruno Haible  <bruno@clisp.org>
75232
75233         * lib/string_.h: Use 'extern'.
75234
75235 2007-01-27  Jim Meyering  <jim@meyering.net>
75236
75237         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75238         of set-but-not-used local, "q".
75239
75240         * lib/mempcpy.c: Include <config.h> before <string.h>.
75241         This fixes a compilation error on HP-UX, due to the system's
75242         "restrict"-using mempcpy prototype.
75243
75244 2007-01-26  Bruno Haible  <bruno@clisp.org>
75245
75246         Small optimization.
75247         * lib/javacomp.c: Include c-strstr.h.
75248          (is_envjavac_gcj): Use c_strstr instead of strstr.
75249         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75250
75251 2007-01-26  Bruno Haible  <bruno@clisp.org>
75252
75253         * MODULES.html.sh (Unicode string functions): Add the new modules.
75254
75255         * modules/uniconv/u32-strconv-to-locale: New file.
75256         * lib/uniconv/u32-strconv-to-locale.c: New file.
75257
75258         * modules/uniconv/u16-strconv-to-locale: New file.
75259         * lib/uniconv/u16-strconv-to-locale.c: New file.
75260
75261         * modules/uniconv/u8-strconv-to-locale: New file.
75262         * lib/uniconv/u8-strconv-to-locale.c: New file.
75263
75264         * modules/uniconv/u32-strconv-from-locale: New file.
75265         * lib/uniconv/u32-strconv-from-locale.c: New file.
75266
75267         * modules/uniconv/u16-strconv-from-locale: New file.
75268         * lib/uniconv/u16-strconv-from-locale.c: New file.
75269
75270         * modules/uniconv/u8-strconv-from-locale: New file.
75271         * lib/uniconv/u8-strconv-from-locale.c: New file.
75272
75273         * modules/uniconv/u32-strconv-to-enc: New file.
75274         * lib/uniconv/u32-strconv-to-enc.c: New file.
75275         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75276         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75277
75278         * modules/uniconv/u16-strconv-to-enc: New file.
75279         * lib/uniconv/u16-strconv-to-enc.c: New file.
75280         * lib/uniconv/u-strconv-to-enc.h: New file.
75281         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75282         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75283
75284         * modules/uniconv/u8-strconv-to-enc: New file.
75285         * lib/uniconv/u8-strconv-to-enc.c: New file.
75286         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75287         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75288
75289         * modules/uniconv/u32-strconv-from-enc: New file.
75290         * lib/uniconv/u32-strconv-from-enc.c: New file.
75291         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75292         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75293
75294         * modules/uniconv/u16-strconv-from-enc: New file.
75295         * lib/uniconv/u16-strconv-from-enc.c: New file.
75296         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75297         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75298
75299         * modules/uniconv/u8-strconv-from-enc: New file.
75300         * lib/uniconv/u8-strconv-from-enc.c: New file.
75301         * lib/uniconv/u-strconv-from-enc.h: New file.
75302         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75303         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75304
75305         * modules/uniconv/u32-conv-from-enc: New file.
75306         * lib/uniconv/u32-conv-from-enc.c: New file.
75307         * modules/uniconv/u32-conv-from-enc-tests: New file.
75308         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75309
75310         * modules/uniconv/u16-conv-from-enc: New file.
75311         * lib/uniconv/u16-conv-from-enc.c: New file.
75312         * lib/uniconv/u-conv-from-enc.h: New file.
75313         * modules/uniconv/u16-conv-from-enc-tests: New file.
75314         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75315
75316         * modules/uniconv/u8-conv-from-enc: New file.
75317         * lib/uniconv/u8-conv-from-enc.c: New file.
75318         * modules/uniconv/u8-conv-from-enc-tests: New file.
75319         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75320
75321         * modules/uniconv/base: New file.
75322         * lib/uniconv.h: New file.
75323
75324 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         * doc/gnulib-tool.texi (Initial import): Update to match current
75327         behavior with strdup module.
75328         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75329         * lib/memmem.h: Remove; all uses removed.  This is now done
75330         by <string.h>.
75331         * lib/mempcpy.h: Likewise.
75332         * lib/memrchr.h: Likewise.
75333         * lib/stpcpy.h: Likewise.
75334         * lib/stpncpy.h: Likewise.
75335         * lib/strcase.h: Likewise.
75336         * lib/strchrnul.h: Likewise.
75337         * lib/strdup.h: Likewise.
75338         * lib/strndup.h: Likewise.
75339         * lib/strnlen.h: Likewise.
75340         * lib/strpbrk.h: Likewise.
75341         * lib/strsep.h: Likewise.
75342         * lib/strstr.h: Likewise.
75343         * lib/strtok_r.h: Likewise.
75344         * lib/string_.h: New file.
75345         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75346         Rely on <string.h> instead.
75347         * lib/canon-host.c: Likewise.
75348         * lib/chdir-long.c: Likewise.
75349         * lib/concatpath.c: Likewise.
75350         * lib/exclude.c: Likewise.
75351         * lib/fchdir.c: Likewise.
75352         * lib/getaddrinfo.c: Likewise.
75353         * lib/getcwd.c: Likewise.
75354         * lib/getsubopt.c: Likewise.
75355         * lib/glob.c: Likewise.
75356         * lib/hard-locale.c: Likewise.
75357         * lib/iconvme.c: Likewise.
75358         * lib/javacomp.c: Likewise.
75359         * lib/mempcpy.c: Likewise.
75360         * lib/memrchr.c: Likewise.
75361         * lib/regex_internal.h: Likewise.
75362         * lib/stpncpy.c: Likewise.
75363         * lib/strcasecmp.c: Likewise.
75364         * lib/strchrnul.c: Likewise.
75365         * lib/strdup.c: Likewise.
75366         * lib/striconv.c: Likewise.
75367         * lib/striconveh.c: Likewise.
75368         * lib/striconveha.c: Likewise.
75369         * lib/strncasecmp.c: Likewise.
75370         * lib/strndup.c: Likewise.
75371         * lib/strnlen.c: Likewise.
75372         * lib/strsep.c: Likewise.
75373         * lib/strstr.c: Likewise.
75374         * lib/strtok_r.c: Likewise.
75375         * lib/userspec.c: Likewise.
75376         * lib/w32spawn.h: Likewise.
75377         * lib/xstrndup.c: Likewise.
75378         * lib/mountlist.c (strstr): Remove decl.
75379         * m4/string_h.m4: New file.
75380         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75381         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75382         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75383         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75384         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75385         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75386         Set REPLACE_STRCASECMP if necessary.
75387         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75388         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75389         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75390         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75391         HAVE_DECL_STRDUP if necessary.
75392         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75393         since gl_FUNC_STRNDUP does that now.
75394         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75395         Check for decl here...
75396         (gl_PREREQ_STRNLEN): ... not here.
75397         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75398         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75399         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75400         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75401         necessary.
75402         * modules/string: New file.
75403         * modules/memmem (Files): Remove special-purpose include file.
75404         (Depends-on): Add string.
75405         (Include): Include <string.h>, not the removed file.
75406         * modules/mempcpy: Likewise.
75407         * modules/memrchr: Likewise.
75408         * modules/stpcpy: Likewise.
75409         * modules/stpncpy: Likewise.
75410         * modules/strcase: Likewise.
75411         * modules/strchrnul: Likewise.
75412         * modules/strdup: Likewise.
75413         * modules/strndup: Likewise.
75414         * modules/strnlen: Likewise.
75415         * modules/strpbrk: Likewise.
75416         * modules/strsep: Likewise.
75417         * modules/strstr: Likewise.
75418         * modules/strtok_r: Likewise.
75419         * tests/test-dirname.c: Don't include "strdup.h", since
75420         <string.h> now suffices.
75421         * tests/test-memmem.c: Don't include "memmem.h", since
75422         <string.h> now suffices.
75423
75424 2007-01-25  Bruno Haible  <bruno@clisp.org>
75425
75426         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75427         *resultp is 0.
75428
75429         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75430         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75431         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75432         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75433
75434         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75435         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75436         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75437         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75438         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75439         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75440
75441 2007-01-24  Bruno Haible  <bruno@clisp.org>
75442
75443         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75445         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75446         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75447         gl_FUNC_FTS_CORE.
75448         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75449         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75450         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75451         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75452         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75453         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75454         gl_FUNC_FCHOWNAT.
75455         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75456         gl_FUNC_STRFTIME.
75457         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75458         Reported by Ralf Wildenhues.
75459
75460 2007-01-24  Bruno Haible  <bruno@clisp.org>
75461
75462         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75463         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75464         gl_GETADDRINFO.
75465         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75466         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75467         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75468
75469 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75470
75471         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75472         Don't use 'exit'; just return from 'main'.
75473         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75474
75475         * lib/fnmatch_.h: Readjust white space and comments to match
75476         glibc, to avoid spurious diffs.
75477
75478 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75481         2004-12-01 change by Jakub Jelinek, since this code won't compile
75482         if !LIBC.  Problem reported by Bob Proulx.
75483
75484 2007-01-23  Bruno Haible  <bruno@clisp.org>
75485
75486         * lib/striconveh.c: Include c-strcaseeq.h.
75487         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75488         * modules/striconveh (Depends-on): Add c-strcaseeq.
75489
75490 2007-01-23  Bruno Haible  <bruno@clisp.org>
75491
75492         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75493
75494         * modules/c-strcaseeq: New file.
75495         * lib/c-strcaseeq.h: New file.
75496
75497         * modules/streq: New file.
75498         * lib/streq.h: New file.
75499
75500 2007-01-23  Bruno Haible  <bruno@clisp.org>
75501
75502         * modules/striconveha-tests: New file.
75503         * tests/test-striconveha.c: New file.
75504
75505         * lib/striconveha.h: Include <stdbool.h>.
75506         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75507         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75508         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75509         (mem_iconveha): New function.
75510         (str_iconveha_notranslit): Renamed from str_iconveha.
75511         (str_iconveha): New function.
75512         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75513         c-strcase.
75514
75515 2007-01-23  Bruno Haible  <bruno@clisp.org>
75516
75517         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75518         encodings without forgiving before trying any encoding with handler.
75519         (str_iconveha): Try all encodings without forgiving before trying any
75520         encoding with handler.
75521
75522 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75523
75524         Import the following changes from libc.
75525
75526         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75527
75528         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75529
75530         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75531
75532         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75533         normal_bracket label.
75534
75535         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75536
75537         [BZ #361]
75538         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75539         to normal_bracket after fetching the next character.
75540
75541 2007-01-22  Bruno Haible  <bruno@clisp.org>
75542
75543         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75544         argument.
75545         * lib/striconveh.c (iconv_carefully_1): New function.
75546         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75547         argument.
75548         (str_cd_iconveh): Update.
75549         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75550         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75551         * tests/test-striconveh.c (MAGIC): New macro.
75552         (new_offsets): New function.
75553         (main): Test call with and without offsets.
75554
75555 2007-01-22  Bruno Haible  <bruno@clisp.org>
75556
75557         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75558         * modules/sys_select (Makefile.am): Likewise.
75559         * modules/sys_socket (Makefile.am): Likewise.
75560         * modules/sys_time (Makefile.am): Likewise.
75561
75562 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * modules/gettimeofday (License): Change from GPL to LGPL, since
75565         gettimeofday is a library function.
75566
75567 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75568
75569         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75570
75571 2007-01-21  Bruno Haible  <bruno@clisp.org>
75572
75573         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75574
75575 2007-01-21  Bruno Haible  <bruno@clisp.org>
75576
75577         * modules/striconveha: New file.
75578         * lib/striconveha.h: New file.
75579         * lib/striconveha.c: New file.
75580         * MODULES.html.sh (Internationalization functions): Add striconveha.
75581         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75582         string.
75583         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75584
75585 2007-01-21  Bruno Haible  <bruno@clisp.org>
75586
75587         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75588         * lib/striconveh.c (str_iconveh): Likewise.
75589
75590 2007-01-21  Bruno Haible  <bruno@clisp.org>
75591
75592         * lib/striconveh.h (mem_iconveh): New declaration.
75593         * lib/striconveh.c (mem_iconveh): New function.
75594         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75595
75596 2007-01-21  Bruno Haible  <bruno@clisp.org>
75597
75598         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75599
75600         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75601         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75602         original result buffer.
75603         (str_cd_iconveh): Update.
75604         * tests/test-striconveh.c (main): Update.
75605
75606         * lib/striconv.h (mem_cd_iconv): Change specification.
75607         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75608         result buffer.
75609         (str_cd_iconv): Update.
75610         * tests/test-striconv.c (main): Update.
75611
75612 2007-01-21  Bruno Haible  <bruno@clisp.org>
75613
75614         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75615
75616 2007-01-20  Jim Meyering  <jim@meyering.net>
75617
75618         * lib/userspec.c (parse_with_separator): If a user or group string
75619         starts with "+", skip the corresponding name-to-ID look-up, since
75620         such a look-up must fail: user and group names may not include "+".
75621
75622 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75625         since we now assume the sys_time module.
75626         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75627         check for sys/time.h; no longer needed.
75628         * modules/poll (Depends-on): Depend on sys_time.
75629
75630 2007-01-18  Bruno Haible  <bruno@clisp.org>
75631
75632         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75633         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75634
75635         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75636         gettimeofday.
75637
75638         * tests/test-gettimeofday.c: Include <time.h>.
75639         (dummy): Remove variable.
75640
75641         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75642         gl_HEADER_SYS_TIME_H.
75643         (gl_HEADER_SYS_TIME_H): New macro.
75644
75645         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75646         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75648         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75649         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75650         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75651         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75652         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75653         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75654         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75655         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75656
75657         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75658         last change; it caused a compilation error when cross-compiling to
75659         Cygwin.
75660
75661 2007-01-18  Jim Meyering  <jim@meyering.net>
75662
75663         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75664         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75665         than the race-prone "test -d sys || mkdir sys".
75666         (configure.ac): Use AC_PROG_MKDIR_P.
75667         * modules/sys_select: Likewise.
75668         * modules/sys_socket: Likewise.
75669         * modules/sys_time: Likewise.
75670
75671 2007-01-18  Eric Blake  <ebb9@byu.net>
75672
75673         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75674         replace gettimeofday.
75675         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75676         name, to avoid infinite recursion.
75677
75678 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75679
75680         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75681         module sys_time.
75682         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75683         assume timespec.h defines struct timeval.
75684         * lib/settime.c: Likewise.
75685         * lib/utimens.c: Likewise.
75686         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75687         since we now assume the gettimeofday module.
75688         * lib/tempname.c (__gen_tempname): Likewise.
75689         * lib/gettimeofday.h: Remove.
75690         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75691         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75692         Include <time.h>, for 'time()'.
75693         (localtime_buffer_addr): Also use this workaround if
75694         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75695         to simplify the uses.  All uses changed.
75696         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75697         that #undef is inside {}, and 'const' follows type name consistently.
75698         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75699         (gettimeofday): Do not use the maximum possible value for
75700         tv->tv_usec, since that might break usages other than ls.c.
75701         Instead, we'll leave ls.c alone.  This undoes today's patch
75702         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75703         we've never observed the problem but might as well keep the
75704         canary.
75705         * lib/nanosleep.c: Include timespec.h first, for interface check.
75706         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75707         now assume the sys_time module.
75708         * lib/tempname.c: Likewise.
75709         * lib/timespec.h: Likewise.
75710         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75711         needed.
75712         * lib/strftime.c: Likewise.
75713         * lib/timespec.h: Likewise.
75714         * lib/posixtm.c: Include posixtm.h first, for interface check.
75715         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75716         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75717         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75718         * lib/sys_time_.h: New file.
75719         * lib/timespec.h (struct timespec): Use long int, not long.
75720         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75721         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75722         Remove obsolescent call to AC_HEADER_TIME.
75723         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75725         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75726         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75727         Likewise.
75728         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75729         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75730         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75731         into the sys_time module.  Check for gettimeofday just once.
75732         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75733         for gettimeofday signature to just check the signature.  Merely
75734         compile it, since linking doesn't test signature.  Improve test for
75735         whether gettimeofday.o is actually needed.
75736         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75737         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75738         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75739         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75740         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75741         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75742         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75743         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75744         than worrying about sys/time.h.
75745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75746         Don't bother worrying about TIME_WITH_SYS_TIME.
75747         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75748         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75749         * m4/sys_time_h.m4: New file.
75750         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75751         Don't include sys/time.h.  Return from main rather than exiting.
75752         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75753         all uses changed.
75754         * modules/gethrxtime (Depends-on): Add sys_time.
75755         * modules/gettime (Depends-on): Likewise.
75756         * modules/gettimeofday (Depends-on): Likewise.
75757         * modules/nanosleep (Depends-on): Likewise.
75758         * modules/settime (Depends-on): Likewise.
75759         * modules/tempname (Depends-on): Likewise.
75760         * modules/utimens (Depends-on): Likewise.
75761         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75762         (Include): Change back to <sys/time.h>.
75763         (Maintainer): Add self.
75764         * modules/sys_time: New file.
75765         * modules/tempname (Depends-on): Add gettimeofday.
75766         * tests/test-gettimeofday.c: Include <sys/time.h>
75767         rather than gettimeofday.h.
75768
75769 2007-01-17  Bruno Haible  <bruno@clisp.org>
75770
75771         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75772         the license default to GPL.
75773         (func_create_testdir): Don't complain if a module is LGPL and its
75774         tests module depends on GPLed modules.
75775
75776 2007-01-17  Bruno Haible  <bruno@clisp.org>
75777
75778         * lib/gettimeofday.c (gettimeofday): Add code for the case
75779         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75780         maximum possible value for tv->tv_usec, rather than the minimum one.
75781
75782 2005-10-08  Martin Lambers  <marlam@marlam.de>
75783 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75784 2007-01-16  Bruno Haible  <bruno@clisp.org>
75785
75786         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75787         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75788         gl_FUNC_GETTIMEOFDAY.
75789         (Include): Add gettimeofday.h.
75790         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75791         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75792         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75793         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75794         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75795         * lib/gettimeofday.h: New file.
75796         * lib/gettimeofday.c: Include <sys/timeb.h>.
75797         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75798         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75799         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75800         fall back on time().
75801
75802         * tests/test-gettimeofday.c: New file.
75803         * modules/gettimeofday-tests: New file.
75804
75805 2007-01-16  Eric Blake  <ebb9@byu.net>
75806
75807         * modules/fnmatch (Depends-on): Depend on wchar.
75808         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75809         * m4/fnmatch.m4: Likewise.
75810         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75811         * m4/mbchar.m4: Likewise.
75812         * modules/mbswidth (Depends-on): Depend on wchar.
75813         * lib/mbswidth.c: Assume <wchar.h>.
75814         * m4/mbswidth.m4: Likewise.
75815         * modules/quotearg (Depends-on): Depend on wchar.
75816         * lib/quotearg.c: Assume <wchar.h>.
75817         * m4/quotearg.m4: Likewise.
75818         * modules/regex (Depends-on): Depend on wchar.
75819         * lib/regex_internal.h: Assume <wchar.h>.
75820         * m4/regex.m4: Likewise.
75821         * modules/stdint (Depends-on): Depend on wchar.
75822         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75823         * m4/stdint.m4: Likewise.
75824         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75825         * modules/strftime (Depends-on): Depend on wchar.
75826         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75827         * modules/strtol (Depends-on): Depend on wchar.
75828         * lib/strtol.c: Assume <wchar.h>.
75829         * modules/wcwidth (Depends-on): Depend on wchar.
75830         * lib/wcwidth.h: Assume <wchar.h>.
75831         * m4/wcwidth.m4: Likewise.
75832
75833 2007-01-16  Bruno Haible  <bruno@clisp.org>
75834
75835         * modules/csharpexec-script: New, created from...
75836         * modules/csharpexec: ... this.
75837
75838 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75839
75840         * modules/javaexec-script: New, created from...
75841         * modules/javaexec: ... this.
75842
75843 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75844
75845         * modules/poll (Dependencies): Add sys_select.
75846
75847 2007-01-15  Jim Meyering  <jim@meyering.net>
75848
75849         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75850         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75851         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75852         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75853
75854 2007-01-15  Bruno Haible  <bruno@clisp.org>
75855
75856         * modules/striconveh: New file.
75857         * lib/striconveh.h: New file.
75858         * lib/striconveh.c: New file.
75859         * MODULES.html.sh (Internationalization functions): Add striconveh.
75860
75861         * modules/striconveh-tests: New file.
75862         * tests/test-striconveh.c: New file.
75863
75864 2007-01-15  Bruno Haible  <bruno@clisp.org>
75865
75866         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75867         not from GNU libiconv or GNU libc.
75868
75869 2007-01-15  Bruno Haible  <bruno@clisp.org>
75870
75871         * doc/gnulib-intro.texi (Copyright): Explain the different license
75872         terms for module descriptions, autoconf macros, tests, documentation.
75873
75874 2007-01-14  Bruno Haible  <bruno@clisp.org>
75875
75876         * modules/striconv-tests: New file.
75877         * tests/test-striconv.c: New file.
75878
75879 2007-01-14  Bruno Haible  <bruno@clisp.org>
75880
75881         * modules/iconv-tests: New file.
75882         * tests/test-iconv.c: New file.
75883
75884 2007-01-14  Bruno Haible  <bruno@clisp.org>
75885
75886         * gnulib-tool (func_get_license): For test modules, use the license of
75887         the main module.
75888
75889 2007-01-14  Bruno Haible  <bruno@clisp.org>
75890
75891         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75892         if iconv is found to exist.
75893
75894 2007-01-14  Bruno Haible  <bruno@clisp.org>
75895
75896         * modules/c-ctype-tests: New file.
75897         * tests/test-c-ctype.c: New file.
75898
75899 2007-01-14  Bruno Haible  <bruno@clisp.org>
75900
75901         * modules/binary-io-tests: New file.
75902         * tests/test-binary-io.sh: New file.
75903         * tests/test-binary-io.c: New file.
75904
75905 2007-01-14  Bruno Haible  <bruno@clisp.org>
75906
75907         * modules/array-oset-tests: New file.
75908         * tests/test-array_oset.c: New file.
75909
75910 2007-01-14  Bruno Haible  <bruno@clisp.org>
75911
75912         * modules/array-list-tests: New file.
75913         * tests/test-array_list.c: New file.
75914
75915 2007-01-14  Bruno Haible  <bruno@clisp.org>
75916
75917         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75918         and make.
75919         Reported by Simon Josefsson in
75920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75921
75922 2007-01-14  Bruno Haible  <bruno@clisp.org>
75923
75924         * modules/allocsa-tests: New file.
75925         * tests/test-allocsa.c: New file.
75926
75927 2007-01-14  Bruno Haible  <bruno@clisp.org>
75928
75929         * modules/fchdir (Depends-on): Add absolute-header.
75930         * modules/unistd (Depends-on): Likewise.
75931
75932 2006-12-30  Bruno Haible  <bruno@clisp.org>
75933
75934         * modules/fchdir: New file.
75935         * modules/unistd (Files): Add lib/unistd_.h.
75936         (Makefile.am): Generate unistd.h from unistd_.h.
75937         * lib/fchdir.c: New file.
75938         * lib/dirent_.h: New file.
75939         * lib/unistd_.h: New file.
75940         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75941         * m4/fchdir.m4: New file.
75942         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75943         (gl_HEADER_UNISTD): Invoke it.
75944         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75945         function.
75946         * lib/backupfile.c (opendir, closedir): Undefine.
75947         * lib/chown.c (open, close): Undefine.
75948         * lib/clean-temp.c (open, close): Undefine.
75949         * lib/copy-file.c (open, close): Undefine.
75950         * lib/execute.c (open, close): Undefine.
75951         * lib/fsusage.c (open, close): Undefine.
75952         * lib/gc-gnulib.c (open, close): Undefine.
75953         * lib/getcwd.c (opendir, closedir): Undefine.
75954         * lib/glob.c (opendir, closedir): Undefine.
75955         * lib/javacomp.c (open, close): Undefine.
75956         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75957         * lib/openat-proc.c (open, close): Undefine.
75958         * lib/pagealign_alloc.c (open, close): Undefine.
75959         * lib/pipe.c (open, close): Undefine.
75960         * lib/progreloc.c (open, close): Undefine.
75961         * lib/savedir.c (opendir, closedir): Undefine.
75962         * lib/utime.c (open, close): Undefine.
75963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75964
75965 2007-01-10  Bruno Haible  <bruno@clisp.org>
75966
75967         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75968
75969 2007-01-12  Eric Blake  <ebb9@byu.net>
75970
75971         Provide a robust <wchar.h>.  Further simplifications are now
75972         possible in other modules, but not included here.
75973         * modules/wchar: New module.
75974         * m4/wchar.m4: New file.
75975         * lib/wchar_.h: Likewise.
75976         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75977         of the new module.
75978         * MODULES.html.sh (Extended multibyte and wide character utilities):
75979         New section.
75980
75981 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75982
75983         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75984         to a reasonable default for memory allocation.
75985         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75986         file system that reports garbage st_size values for symlinks.
75987         Problem reported by Liyang Hu.
75988
75989 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75990
75991         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75992         Emacs .#* auto-save files).
75993
75994 2007-01-11  Bruno Haible  <bruno@clisp.org>
75995
75996         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75997         directory.
75998
75999 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         Use @...@ consistently in lib/wctype_.h.
76002         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
76003         on it being set to 1 or 0.
76004         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
76005         go back to AC_SUBSTing it.
76006         * modules/wctype (Makefile.am): Undo previous change.
76007
76008 2007-01-10  Eric Blake  <ebb9@byu.net>
76009
76010         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
76011         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
76012         * modules/wctype (Makefile.am): Likewise.
76013         Reported by Chris McGuire.
76014
76015 2007-01-10  Jim Meyering  <jim@meyering.net>
76016
76017         fts.c: a small readability/maintainability improvement
76018         * lib/fts.c (fts_read): Make this code slightly more readable and
76019         maintainable by hoisting the "sp->fts_cur = p" assignments to
76020         immediately follow the statements that set P.  Derived from
76021         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
76022
76023 2007-01-10  Eric Blake  <ebb9@byu.net>
76024
76025         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
76026         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
76027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76028         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
76029         Reported by Chris McGuire.
76030
76031 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76032
76033         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
76034         in sed script.
76035
76036 2007-01-09  Bruno Haible  <bruno@clisp.org>
76037
76038         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
76039         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
76040         variables.
76041         (func_module): Use them.
76042
76043 2007-01-09  Bruno Haible  <bruno@clisp.org>
76044
76045         * modules/unistr/base: New file.
76046         * lib/unistr.h: New file.
76047
76048         * modules/unistr/u8-to-u16: New file.
76049         * lib/unistr/u8-to-u16.c: New file.
76050
76051         * modules/unistr/u8-to-u32: New file.
76052         * lib/unistr/u8-to-u32.c: New file.
76053
76054         * modules/unistr/u16-to-u8: New file.
76055         * lib/unistr/u16-to-u8.c: New file.
76056
76057         * modules/unistr/u16-to-u32: New file.
76058         * lib/unistr/u16-to-u32.c: New file.
76059
76060         * modules/unistr/u32-to-u8: New file.
76061         * lib/unistr/u32-to-u8.c: New file.
76062
76063         * modules/unistr/u32-to-u16: New file.
76064         * lib/unistr/u32-to-u16.c: New file.
76065
76066         * modules/unistr/u8-check: New file.
76067         * modules/unistr/u16-check: New file.
76068         * modules/unistr/u32-check: New file.
76069         * lib/unistr/u8-check.c: New file.
76070         * lib/unistr/u16-check.c: New file.
76071         * lib/unistr/u32-check.c: New file.
76072
76073         * modules/unistr/u8-chr: New file.
76074         * modules/unistr/u16-chr: New file.
76075         * modules/unistr/u32-chr: New file.
76076         * lib/unistr/u8-chr.c: New file.
76077         * lib/unistr/u16-chr.c: New file.
76078         * lib/unistr/u32-chr.c: New file.
76079
76080         * modules/unistr/u8-cmp: New file.
76081         * modules/unistr/u16-cmp: New file.
76082         * modules/unistr/u32-cmp: New file.
76083         * lib/unistr/u8-cmp.c: New file.
76084         * lib/unistr/u16-cmp.c: New file.
76085         * lib/unistr/u32-cmp.c: New file.
76086
76087         * modules/unistr/u8-cpy: New file.
76088         * modules/unistr/u16-cpy: New file.
76089         * modules/unistr/u32-cpy: New file.
76090         * lib/unistr/u8-cpy.c: New file.
76091         * lib/unistr/u16-cpy.c: New file.
76092         * lib/unistr/u32-cpy.c: New file.
76093         * lib/unistr/u-cpy.h: New file.
76094
76095         * modules/unistr/u8-cpy-alloc: New file.
76096         * modules/unistr/u16-cpy-alloc: New file.
76097         * modules/unistr/u32-cpy-alloc: New file.
76098         * lib/unistr/u8-cpy-alloc.c: New file.
76099         * lib/unistr/u16-cpy-alloc.c: New file.
76100         * lib/unistr/u32-cpy-alloc.c: New file.
76101         * lib/unistr/u-cpy-alloc.h: New file.
76102
76103         * modules/unistr/u8-endswith: New file.
76104         * modules/unistr/u16-endswith: New file.
76105         * modules/unistr/u32-endswith: New file.
76106         * lib/unistr/u8-endswith.c: New file.
76107         * lib/unistr/u16-endswith.c: New file.
76108         * lib/unistr/u32-endswith.c: New file.
76109         * lib/unistr/u-endswith.h: New file.
76110
76111         * modules/unistr/u8-mblen: New file.
76112         * modules/unistr/u16-mblen: New file.
76113         * modules/unistr/u32-mblen: New file.
76114         * lib/unistr/u8-mblen.c: New file.
76115         * lib/unistr/u16-mblen.c: New file.
76116         * lib/unistr/u32-mblen.c: New file.
76117
76118         * modules/unistr/u8-mbtouc: New file.
76119         * modules/unistr/u16-mbtouc: New file.
76120         * modules/unistr/u32-mbtouc: New file.
76121         * lib/unistr/u8-mbtouc.c: New file.
76122         * lib/unistr/u16-mbtouc.c: New file.
76123         * lib/unistr/u32-mbtouc.c: New file.
76124
76125         * modules/unistr/u8-mbtouc-safe: New file.
76126         * modules/unistr/u16-mbtouc-safe: New file.
76127         * modules/unistr/u32-mbtouc-safe: New file.
76128         * lib/unistr/u8-mbtouc-safe.c: New file.
76129         * lib/unistr/u16-mbtouc-safe.c: New file.
76130         * lib/unistr/u32-mbtouc-safe.c: New file.
76131
76132         * modules/unistr/u8-move: New file.
76133         * modules/unistr/u16-move: New file.
76134         * modules/unistr/u32-move: New file.
76135         * lib/unistr/u8-move.c: New file.
76136         * lib/unistr/u16-move.c: New file.
76137         * lib/unistr/u32-move.c: New file.
76138         * lib/unistr/u-move.h: New file.
76139
76140         * modules/unistr/u8-next: New file.
76141         * modules/unistr/u16-next: New file.
76142         * modules/unistr/u32-next: New file.
76143         * lib/unistr/u8-next.c: New file.
76144         * lib/unistr/u16-next.c: New file.
76145         * lib/unistr/u32-next.c: New file.
76146
76147         * modules/unistr/u8-prev: New file.
76148         * modules/unistr/u16-prev: New file.
76149         * modules/unistr/u32-prev: New file.
76150         * lib/unistr/u8-prev.c: New file.
76151         * lib/unistr/u16-prev.c: New file.
76152         * lib/unistr/u32-prev.c: New file.
76153
76154         * modules/unistr/u8-set: New file.
76155         * modules/unistr/u16-set: New file.
76156         * modules/unistr/u32-set: New file.
76157         * lib/unistr/u8-set.c: New file.
76158         * lib/unistr/u16-set.c: New file.
76159         * lib/unistr/u32-set.c: New file.
76160         * lib/unistr/u-set.h: New file.
76161
76162         * modules/unistr/u8-startswith: New file.
76163         * modules/unistr/u16-startswith: New file.
76164         * modules/unistr/u32-startswith: New file.
76165         * lib/unistr/u8-startswith.c: New file.
76166         * lib/unistr/u16-startswith.c: New file.
76167         * lib/unistr/u32-startswith.c: New file.
76168         * lib/unistr/u-startswith.h: New file.
76169
76170         * modules/unistr/u8-stpcpy: New file.
76171         * modules/unistr/u16-stpcpy: New file.
76172         * modules/unistr/u32-stpcpy: New file.
76173         * lib/unistr/u8-stpcpy.c: New file.
76174         * lib/unistr/u16-stpcpy.c: New file.
76175         * lib/unistr/u32-stpcpy.c: New file.
76176         * lib/unistr/u-stpcpy.h: New file.
76177
76178         * modules/unistr/u8-stpncpy: New file.
76179         * modules/unistr/u16-stpncpy: New file.
76180         * modules/unistr/u32-stpncpy: New file.
76181         * lib/unistr/u8-stpncpy.c: New file.
76182         * lib/unistr/u16-stpncpy.c: New file.
76183         * lib/unistr/u32-stpncpy.c: New file.
76184         * lib/unistr/u-stpncpy.h: New file.
76185
76186         * modules/unistr/u8-strcat: New file.
76187         * modules/unistr/u16-strcat: New file.
76188         * modules/unistr/u32-strcat: New file.
76189         * lib/unistr/u8-strcat.c: New file.
76190         * lib/unistr/u16-strcat.c: New file.
76191         * lib/unistr/u32-strcat.c: New file.
76192         * lib/unistr/u-strcat.h: New file.
76193
76194         * modules/unistr/u8-strchr: New file.
76195         * modules/unistr/u16-strchr: New file.
76196         * modules/unistr/u32-strchr: New file.
76197         * lib/unistr/u8-strchr.c: New file.
76198         * lib/unistr/u16-strchr.c: New file.
76199         * lib/unistr/u32-strchr.c: New file.
76200
76201         * modules/unistr/u8-strcmp: New file.
76202         * modules/unistr/u16-strcmp: New file.
76203         * modules/unistr/u32-strcmp: New file.
76204         * lib/unistr/u8-strcmp.c: New file.
76205         * lib/unistr/u16-strcmp.c: New file.
76206         * lib/unistr/u32-strcmp.c: New file.
76207
76208         * modules/unistr/u8-strcpy: New file.
76209         * modules/unistr/u16-strcpy: New file.
76210         * modules/unistr/u32-strcpy: New file.
76211         * lib/unistr/u8-strcpy.c: New file.
76212         * lib/unistr/u16-strcpy.c: New file.
76213         * lib/unistr/u32-strcpy.c: New file.
76214         * lib/unistr/u-strcpy.h: New file.
76215
76216         * modules/unistr/u8-strcspn: New file.
76217         * modules/unistr/u16-strcspn: New file.
76218         * modules/unistr/u32-strcspn: New file.
76219         * lib/unistr/u8-strcspn.c: New file.
76220         * lib/unistr/u16-strcspn.c: New file.
76221         * lib/unistr/u32-strcspn.c: New file.
76222         * lib/unistr/u-strcspn.h: New file.
76223
76224         * modules/unistr/u8-strdup: New file.
76225         * modules/unistr/u16-strdup: New file.
76226         * modules/unistr/u32-strdup: New file.
76227         * lib/unistr/u8-strdup.c: New file.
76228         * lib/unistr/u16-strdup.c: New file.
76229         * lib/unistr/u32-strdup.c: New file.
76230         * lib/unistr/u-strdup.h: New file.
76231
76232         * modules/unistr/u8-strlen: New file.
76233         * modules/unistr/u16-strlen: New file.
76234         * modules/unistr/u32-strlen: New file.
76235         * lib/unistr/u8-strlen.c: New file.
76236         * lib/unistr/u16-strlen.c: New file.
76237         * lib/unistr/u32-strlen.c: New file.
76238         * lib/unistr/u-strlen.h: New file.
76239
76240         * modules/unistr/u8-strmblen: New file.
76241         * modules/unistr/u16-strmblen: New file.
76242         * modules/unistr/u32-strmblen: New file.
76243         * lib/unistr/u8-strmblen.c: New file.
76244         * lib/unistr/u16-strmblen.c: New file.
76245         * lib/unistr/u32-strmblen.c: New file.
76246
76247         * modules/unistr/u8-strmbtouc: New file.
76248         * modules/unistr/u16-strmbtouc: New file.
76249         * modules/unistr/u32-strmbtouc: New file.
76250         * lib/unistr/u8-strmbtouc.c: New file.
76251         * lib/unistr/u16-strmbtouc.c: New file.
76252         * lib/unistr/u32-strmbtouc.c: New file.
76253
76254         * modules/unistr/u8-strncat: New file.
76255         * modules/unistr/u16-strncat: New file.
76256         * modules/unistr/u32-strncat: New file.
76257         * lib/unistr/u8-strncat.c: New file.
76258         * lib/unistr/u16-strncat.c: New file.
76259         * lib/unistr/u32-strncat.c: New file.
76260         * lib/unistr/u-strncat.h: New file.
76261
76262         * modules/unistr/u8-strncmp: New file.
76263         * modules/unistr/u16-strncmp: New file.
76264         * modules/unistr/u32-strncmp: New file.
76265         * lib/unistr/u8-strncmp.c: New file.
76266         * lib/unistr/u16-strncmp.c: New file.
76267         * lib/unistr/u32-strncmp.c: New file.
76268
76269         * modules/unistr/u8-strncpy: New file.
76270         * modules/unistr/u16-strncpy: New file.
76271         * modules/unistr/u32-strncpy: New file.
76272         * lib/unistr/u8-strncpy.c: New file.
76273         * lib/unistr/u16-strncpy.c: New file.
76274         * lib/unistr/u32-strncpy.c: New file.
76275         * lib/unistr/u-strncpy.h: New file.
76276
76277         * modules/unistr/u8-strnlen: New file.
76278         * modules/unistr/u16-strnlen: New file.
76279         * modules/unistr/u32-strnlen: New file.
76280         * lib/unistr/u8-strnlen.c: New file.
76281         * lib/unistr/u16-strnlen.c: New file.
76282         * lib/unistr/u32-strnlen.c: New file.
76283         * lib/unistr/u-strnlen.h: New file.
76284
76285         * modules/unistr/u8-strpbrk: New file.
76286         * modules/unistr/u16-strpbrk: New file.
76287         * modules/unistr/u32-strpbrk: New file.
76288         * lib/unistr/u8-strpbrk.c: New file.
76289         * lib/unistr/u16-strpbrk.c: New file.
76290         * lib/unistr/u32-strpbrk.c: New file.
76291         * lib/unistr/u-strpbrk.h: New file.
76292
76293         * modules/unistr/u8-strrchr: New file.
76294         * modules/unistr/u16-strrchr: New file.
76295         * modules/unistr/u32-strrchr: New file.
76296         * lib/unistr/u8-strrchr.c: New file.
76297         * lib/unistr/u16-strrchr.c: New file.
76298         * lib/unistr/u32-strrchr.c: New file.
76299
76300         * modules/unistr/u8-strspn: New file.
76301         * modules/unistr/u16-strspn: New file.
76302         * modules/unistr/u32-strspn: New file.
76303         * lib/unistr/u8-strspn.c: New file.
76304         * lib/unistr/u16-strspn.c: New file.
76305         * lib/unistr/u32-strspn.c: New file.
76306         * lib/unistr/u-strspn.h: New file.
76307
76308         * modules/unistr/u8-strstr: New file.
76309         * modules/unistr/u16-strstr: New file.
76310         * modules/unistr/u32-strstr: New file.
76311         * lib/unistr/u8-strstr.c: New file.
76312         * lib/unistr/u16-strstr.c: New file.
76313         * lib/unistr/u32-strstr.c: New file.
76314         * lib/unistr/u-strstr.h: New file.
76315
76316         * modules/unistr/u8-strtok: New file.
76317         * modules/unistr/u16-strtok: New file.
76318         * modules/unistr/u32-strtok: New file.
76319         * lib/unistr/u8-strtok.c: New file.
76320         * lib/unistr/u16-strtok.c: New file.
76321         * lib/unistr/u32-strtok.c: New file.
76322         * lib/unistr/u-strtok.h: New file.
76323
76324         * modules/unistr/u8-uctomb: New file.
76325         * modules/unistr/u16-uctomb: New file.
76326         * modules/unistr/u32-uctomb: New file.
76327         * lib/unistr/u8-uctomb.c: New file.
76328         * lib/unistr/u16-uctomb.c: New file.
76329         * lib/unistr/u32-uctomb.c: New file.
76330
76331         * MODULES.html.sh (Unicode string functions): Add the new modules.
76332
76333 2007-01-08  Bruno Haible  <bruno@clisp.org>
76334
76335         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76336         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76337         subdirectories.
76338
76339 2007-01-08  Karl Berry  <karl@gnu.org>
76340
76341         * doc/error.texi: mention that main() fns must set program_name
76342         when progname is used.
76343
76344 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76345
76346         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76347         WCTYPE_H is empty, for the benefit of builds from non-distclean
76348         directories.  Problem reported by Eric Blake in
76349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76350
76351 2007-01-08  Bruno Haible  <bruno@clisp.org>
76352
76353         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76354         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76355         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76356         PROVIDE_CANONICALIZE_FILENAME_MODE.
76357         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76358
76359 2007-01-08  Bruno Haible  <bruno@clisp.org>
76360
76361         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76362         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76363         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76364         * lib/fts.c: Likewise.
76365         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76366
76367 2006-12-25  Bruno Haible  <bruno@clisp.org>
76368
76369         * modules/utf8-ucs4-safe: New file.
76370         * lib/utf8-ucs4-safe.h: New file.
76371         * lib/unistr/utf8-ucs4-safe.c: New file.
76372
76373         * modules/utf16-ucs4-safe: New file.
76374         * lib/utf16-ucs4-safe.h: New file.
76375         * lib/unistr/utf16-ucs4-safe.c: New file.
76376
76377         * MODULES.html.sh (Unicode string functions): Add the new modules.
76378
76379 2007-01-08  Bruno Haible  <bruno@clisp.org>
76380
76381         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76382         (Depends-on): Add unitypes.
76383         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76384         (u8_mbtouc_aux): Move out to separate file.
76385         (u8_mbtouc): Use ucs4_t, uint8_t types.
76386         * lib/unistr/utf8-ucs4.c: New file.
76387
76388         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76389         (Depends-on): Add unitypes.
76390         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76391         (u16_mbtouc_aux): Move out to separate file.
76392         (u16_mbtouc): Use ucs4_t, uint16_t types.
76393         * lib/unistr/utf16-ucs4.c: New file.
76394
76395         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76396         (Depends-on): Add unitypes.
76397         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76398         (u8_uctomb_aux): Move out to separate file.
76399         (u8_uctomb): Use ucs4_t, uint8_t types.
76400         * lib/unistr/ucs4-utf8.c: New file.
76401
76402         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76403         (Depends-on): Add unitypes.
76404         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76405         (u16_uctomb_aux): Move out to separate file.
76406         (u16_uctomb): Use ucs4_t, uint16_t types.
76407         * lib/unistr/ucs4-utf16.c: New file.
76408
76409 2006-12-25  Bruno Haible  <bruno@clisp.org>
76410
76411         * modules/unitypes: New file.
76412         * lib/unitypes.h: New file.
76413         * MODULES.html.sh (func_all_modules): New section "Unicode string
76414         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76415         this section. Add unitypes.
76416
76417 2007-01-08  Bruno Haible  <bruno@clisp.org>
76418
76419         Avoid variable names that conflict with those from libtool.
76420         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76421         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76422         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76423         library_names_spec to acl_library_names_spec, hardcode_* to
76424         acl_hardcode_*.
76425         Reported by Ralf Wildenhues.
76426
76427 2007-01-08  Bruno Haible  <bruno@clisp.org>
76428
76429         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76430         definition.
76431         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76432         definition.
76433         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76434         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76435         definition.
76436         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76437         definition.
76438         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76439         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76440         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76441         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76442         definition.
76443         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76444         definition.
76445         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76446         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76447         GC_USE_<algorithm>.
76448         * lib/gc-libgcrypt.c: Likewise.
76449         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76450         * modules/gc-arctwo (configure.ac): Likewise.
76451         * modules/gc-des (configure.ac): Likewise.
76452         * modules/gc-hmac-md5 (configure.ac): Likewise.
76453         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76454         * modules/gc-md2 (configure.ac): Likewise.
76455         * modules/gc-md4 (configure.ac): Likewise.
76456         * modules/gc-md5 (configure.ac): Likewise.
76457         * modules/gc-random (configure.ac): Likewise.
76458         * modules/gc-rijndael (configure.ac): Likewise.
76459         * modules/gc-sha1 (configure.ac): Likewise.
76460
76461 2007-01-08  Bruno Haible  <bruno@clisp.org>
76462
76463         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76464         macro definition.
76465         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76466         definition.
76467         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76468         definition.
76469         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76470         * modules/fcntl-safer (configure.ac): Likewise.
76471         * modules/fopen-safer (configure.ac): Likewise.
76472         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76473         GNULIB_FWRITEERROR macro definition.
76474
76475 2007-01-08  Bruno Haible  <bruno@clisp.org>
76476
76477         * m4/gnulib-common.m4: New file.
76478         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76479         (func_get_filelist): Add m4/gnulib-common.m4.
76480
76481 2007-01-08  Bruno Haible  <bruno@clisp.org>
76482
76483         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76484         command.
76485
76486 2007-01-08  Jim Meyering  <jim@meyering.net>
76487
76488         Use a more robust test for a "can't happen" condition.
76489         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76490         narrowed the st_size value.  Presuming the "can't happen" condition
76491         is true, that narrowing could conceivably convert an invalid st_size
76492         value into a valid one.  Instead, use a change based on Matthew
76493         Woehlke's original patch.
76494
76495         Slight readability improvement: use an assert-like macro
76496         in place of literal "abort ()" uses.
76497         * lib/fts.c (fts_assert): Define.
76498         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76499         Use this macro instead of a bare 'abort'.
76500
76501 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76502
76503         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76504         simply work around them.
76505         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76506         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76507         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76508         declaring.
76509         Don't bother to define as macros, since the standard doesn't require it.
76510         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76511         longer worry about IRIX 5.3.
76512         (HAVE_WCTYPE_CTMP_BUG): Remove.
76513
76514 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76515
76516         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76517         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76518         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76519         Problems reported by Georg Schwarz for IRIX 5.3.
76520
76521         * gnulib-tool (autoconf_minversion): Take the maximum version number
76522         found, not the minimum.  Problem reported by James Youngman.
76523
76524 2007-01-03  Karl Berry  <karl@gnu.org>
76525
76526         * doc/error.texi: new file, explaining interaction with progname.
76527         * doc/gnulib.texi: include it.  Update copyright.
76528
76529 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76530
76531         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76532         AC_CANONICAL_HOST, to improve autobuild outputs.
76533
76534 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76535             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76536
76537         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76538         sockets, server sockets, and other file descriptors.  Count errors
76539         to compute the return value.  Reorder the code a bit to be easier
76540         to follow.  Don't set event bits that were not requested (except
76541         POLLERR and POLLHUP).
76542
76543 2007-01-01  Bruno Haible  <bruno@clisp.org>
76544
76545         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76546
76547 2007-01-03  Jim Meyering  <jim@meyering.net>
76548
76549         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76550
76551 2007-01-02  Bruno Haible  <bruno@clisp.org>
76552
76553         * modules/settime (Include): Require timespec.h.
76554         * modules/nanosleep (Include): Likewise.
76555
76556 2007-01-01  Bruno Haible  <bruno@clisp.org>
76557
76558         * gnulib-tool (func_emit_copyright_notice): Bump year.
76559         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76560
76561 2007-01-01  Bruno Haible  <bruno@clisp.org>
76562
76563         Improve support for OpenBSD.
76564         * build-aux/config.rpath (libname_spec): Export.
76565         (library_names_spec): New variable. Export.
76566         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76567         library_names_spec from the config.rpath output. Locate shared library
76568         through the name pattern in library_names_spec.
76569
76570 2007-01-01  Eric Blake  <ebb9@byu.net>
76571
76572         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76573
76574 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76575
76576         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76577         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76578         assume the C locale, and avoid an "eval" that could cause trouble.
76579         Problem with SORT reported by Bob Proulx.
76580
76581         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76582         Define.  Trivial patch from Henning Nielsen Lund, originally
76583         sent to bug-grep@gnu.org today.
76584
76585 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76588         struct stat.  Problem reported by Henning Nielsen Lund.
76589         * lib/acl.c: Include acl.h first, to check interface.  Don't
76590         bother to include sys/types.h and sys/stat.h again.
76591
76592 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76593
76594         Import the following change from libc; problem reported by
76595         Sven Verdoolaege.
76596
76597         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76598
76599         [BZ #1373]
76600         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76601
76602 2006-12-28  Jim Meyering  <jim@meyering.net>
76603
76604         * build-aux/announce-gen: Do not assume that the package
76605         builds any of tar.gz, tar.bz2, and .xdelta files.
76606         Suggestion from Simon Josefsson.
76607
76608 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76609
76610         * modules/announce-gen: New file.
76611
76612 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76613
76614         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76615         handles its gotchas now.
76616         * lib/mbswidth.c: Likewise.
76617         * lib/wcwidth.h: Likewise.
76618         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76619         and iswcntrl; the wctype module does this stuff now.
76620         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76622         * modules/mbchar (Depends-on): Add wctype.
76623         * modules/mbswidth (Depends-on): Likewise.
76624         * modules/wcwidth (Depends-on): Likewise.
76625
76626 2006-12-27  Eric Blake  <ebb9@byu.net>
76627
76628         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76629         module uses more than what <wctype.h> is required to provide.
76630
76631 2006-12-26  Eric Blake  <ebb9@byu.net>
76632
76633         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76634
76635 2006-12-26  Eric Blake  <ebb9@byu.net>
76636
76637         * modules/absolute-header: New module.
76638         * modules/fcntl (Depends-on): Depend on it.
76639         * modules/inttypes (Depends-on): Likewise.
76640         * modules/stdint (Depends-on): Likewise.
76641         * modules/sys_stat (Depends-on): Likewise.
76642         * modules/wctype (Depends-on): Likewise.
76643         * MODULES.html.sh (Support for building libraries and
76644         executables): Document it.
76645
76646 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         * gnulib-tool (SED): Remove, undoing previous change.
76649         The problem was that it broke coreutils on Solaris, because
76650         "sed --posix" leaked into a makefile.
76651         (sed): New alias, if 'alias' and GNU sed.
76652
76653 2006-12-24  Jim Meyering  <jim@meyering.net>
76654
76655         Work around an fchownat bug in glibc-2.4:
76656         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76657         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76658         in spite of the -P option.
76659         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76660         New macros.
76661         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76662         * modules/openat (Files): Add lib/fchownat.c.
76663         * lib/openat.c (fchownat): Don't define here.  Move to...
76664         * lib/fchownat.c: ...this new file.
76665
76666 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         Fix bug reported by Bruno Haible in
76669         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76670         where quotearg.c didn't compile on Mac OS X 10.2 because it
76671         lacks <wchar.h> and wint_t.
76672         * lib/wctype_.h (__wctype_wint_t): New type.
76673         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76674         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76675         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76676         Arg is now of type __wctype_wint_t, not wint_t.
76677         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76678         substitute HAVE_WINT_T.
76679         * modules/wctype (Files): Add m4/wint_t.m4.
76680         (wctype.h): Substitute HAVE_WINT_T.
76681
76682 2006-12-23  Bruno Haible  <bruno@clisp.org>
76683
76684         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76685
76686 2006-12-23  Bruno Haible  <bruno@clisp.org>
76687
76688         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76689         S_ISLNK.
76690         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76691         mingw.
76692
76693 2006-12-22  Bruno Haible  <bruno@clisp.org>
76694
76695         * lib/copy-file.c: Include acl.h.
76696         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76697         Close the file descriptors only after being done with copy_acl.
76698         * modules/copy-file (Depends-on): Add acl.
76699
76700 2006-12-22  Bruno Haible  <bruno@clisp.org>
76701
76702         * gnulib-tool (SED): New variable.
76703         Use $SED instead of sed everywhere.
76704
76705 2006-12-22  Bruno Haible  <bruno@clisp.org>
76706
76707         * modules/no-c++: New file.
76708         * m4/no-c++.m4: New file.
76709         * MODULES.html.sh (Support for building libraries and executables):
76710         Add no-c++.
76711
76712 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76713
76714         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76715         Include <limits.h>, and use its INT_MAX to rewrite the
76716         j loop so that it does not overflow 'int'.  Problem reported by
76717         Ralf Wildenhues in
76718         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76719         Play it safe by shifting left by 1 rather than multiplying by 2,
76720         as GCC is less likely to optimize this away when the value
76721         is signed (when it assumes overflow leads to undefined behavior).
76722         Also, don't assume time_t uses two's complement.
76723
76724 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76725
76726         * MODULES.html.sh: New module wctype.
76727         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76728         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76729         <wctype.h>, since the new wctype module should fix this.
76730         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76731         the wctype module should arrange for it.
76732         * lib/regex_internal.h: Likewise.
76733         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76734         since the wctype module should handle this now.
76735         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76736         * modules/fnmatch (Depends-on): Add wctype.
76737         * modules/quotearg (Depends-on): Likewise.
76738         * modules/regex (Depends-on): Likewise.
76739
76740 2006-12-19  Bruno Haible  <bruno@clisp.org>
76741
76742         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76743         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76744
76745 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76746
76747         * modules/savewd (Depends-on): Fix dependency on fcntl.
76748
76749 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76752         conforms to C99, rather than relying on the user's environment
76753         setting of STDINT_H.
76754
76755 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76756         and Eric Blake  <ebb9@byu.net>
76757
76758         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76759         This is more consistent with the other defines here.
76760         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76761         Port to z/OS.  Problem reported by Paul Gilmartin.
76762         Change local vars to use gl_ prefix rather than ac_.
76763         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76764         with other defines.
76765         * modules/double-slash-root: New module.
76766         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76767         (Depends-on): Add double-slash-root.
76768         * MODULES.html.sh (File system functions): Mention new module.
76769
76770 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76771
76772         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76773         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76774         This is for the benefit of gzip, which doesn't do i18n.
76775
76776 2006-12-12  Jim Meyering  <jim@meyering.net>
76777
76778         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76779         Reported by Andreas Schwab <schwab@suse.de>.
76780
76781 2006-12-12  Bruno Haible  <bruno@clisp.org>
76782
76783         Merge these changes.
76784         2006-09-05  Bruno Haible  <bruno@clisp.org>
76785         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76786         iconv_alloc succeeded.
76787         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76788         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76789         test for " && dest " at the end - dest is always != NULL there. Call
76790         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76791         with 2xNULL arguments, also to flush the state storage. Handle the
76792         IRIX iconv behaviour. Realloc the final result, to throw away unused
76793         memory.
76794
76795 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76798         and fchmodat unconditionally, since glibc 2.4 has them.
76799         Problem reported by Arkadiusz Miskiewicz.
76800
76801 2006-12-10  Bruno Haible  <bruno@clisp.org>
76802
76803         * gnulib-tool (func_import): Show the include files only for those
76804         modules that are copied and specified.
76805         Reported by Karl Berry.
76806
76807 2006-12-08  Jim Meyering  <jim@meyering.net>
76808
76809         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76810         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76811
76812         * build-aux/announce-gen: Add two new options, both optional:
76813         --bootstrap-tools=TOOL_LIST
76814               a comma-separated list of tools, e.g.,
76815               autoconf,automake,bison,gnulib
76816         --gnulib-snapshot-date=DATE
76817               if gnulib is in the bootstrap tool list,
76818               then report this as the snapshot date.
76819               If not specified, use the current date/time.
76820               If you specify a date here, be sure it's UTC.
76821
76822 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76823
76824         * tests/test-argp-2.sh: Fix test to match actual output.
76825         (func_compare): Fix sed script to be portable.
76826
76827 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76828
76829         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76830         workaround for this case.  It is not autoconfigured now; offhand
76831         it's hard to see how to autoconfigure it.
76832
76833 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76836         a directory that is about to be chowned.  Such a directory's
76837         initial file permissions should permit the owner only and this
76838         should not be changed until after the chown, since the group and
76839         other bits would be incorrect if they granted permission before
76840         the chown.
76841
76842         Fix porting problem for iswctype reported by Georg Schwarz in:
76843         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76844         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76845         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76846         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76847         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76848
76849 2006-12-03  Jim Meyering  <jim@meyering.net>
76850
76851         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76852         p->fts_statp may not yet be defined.
76853         (fts_read): Instead, set it in the caller, once p->fts_statp is
76854         sure to be defined, and corresponds to a top-level directory.
76855         This bug made du -x fail.  Here's the coreutils test case:
76856         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76857         Reported by Mike Frysinger.
76858
76859 2006-12-01  Jim Meyering  <jim@meyering.net>
76860
76861         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76862         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76863         Reported by Simon Josefsson.
76864
76865 2006-11-30  Jim Meyering  <jim@meyering.net>
76866
76867         * m4/warning.m4: Use the all-permissive copyright notice
76868         recommended by RMS (rather than LGPL).
76869         * m4/vararrays.m4: Likewise.
76870         * m4/flexmember.m4: Likewise.
76871
76872 2006-11-29  Bruno Haible  <bruno@clisp.org>
76873
76874         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76875         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76876         using +=.
76877         Reported by Simon Josefsson <simon@josefsson.org>.
76878
76879 2006-11-28  James Youngman <jay@gnu.org>
76880
76881         * README: Advise users that they might find the bug-gnulib@gnu.org
76882         and autotools-announce@gnu.org mailing lists useful.
76883
76884 2006-11-28  Bruno Haible  <bruno@clisp.org>
76885
76886         * m4/ptrdiff_max.m4: Remove file.
76887
76888 2006-11-21  Bruno Haible  <bruno@clisp.org>
76889
76890         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76891         _AC_COMPUTE_INT.
76892         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76893         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76894         _AC_COMPUTE_INT.
76895         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76896         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76897         _AC_COMPUTE_INT.
76898         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76899
76900 2006-11-28  Jim Meyering  <jim@meyering.net>
76901
76902         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76903         warning from "gcc -Wshadow" about shadowing the builtin.
76904
76905 2006-11-27  Bruno Haible  <bruno@clisp.org>
76906
76907         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76908         _AC_COMPUTE_INT.
76909         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76910
76911 2006-11-27  Bruno Haible  <bruno@clisp.org>
76912             Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76915
76916 2006-11-26  Bruno Haible  <bruno@clisp.org>
76917
76918         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76919         noinst_LTLIBRARIES.
76920
76921 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76922             Bruno Haible  <bruno@clisp.org>
76923
76924         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76925         if compiling with "gcc -ansi".
76926
76927 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         Fix some incompatibilities with gcc -ansi -pedantic.
76930         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76931         if compiling pedantically with GCC, unless it's C99 or later.
76932         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76933         it mishandles gcc -ansi -pedantic as well.
76934         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76935         if gcc -pedantic.
76936         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76937         initializers for struct if -pedantic, unless it's C99 or later.
76938
76939 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76940
76941         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76942         Don't close an fd more than once. Identical atimes indicate
76943         success, not failure.
76944
76945 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76946
76947         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76948
76949 2006-11-23  Jim Meyering  <jim@meyering.net>
76950
76951         * build-aux/announce-gen: New file.  From coreutils.
76952
76953 2006-11-22  Jim Meyering  <jim@meyering.net>
76954
76955         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76956         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76957         (fts_read): Use a temporary to narrow the overused st_size member
76958         before using it in a switch statement.  Reported by Matthew Woehlke.
76959
76960         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76961         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76962
76963 2006-11-20  Bruno Haible  <bruno@clisp.org>
76964
76965         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76966         changequote instead of pairs of brackets.
76967         Reported by Andreas Schwab <schwab@suse.de>.
76968
76969 2006-11-21  Jim Meyering  <jim@meyering.net>
76970
76971         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76972         so as to remain compatible with older compilers.
76973         Patch from Michael Deutschmann.
76974
76975 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         * MODULES.html.sh (File system functions): Add openat.
76978
76979         * lib/openat.h (rpl_fstatat): New macro, if
76980         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76981         (fstatat): Define to rpl_fstatat under the same conditions,
76982         unless COMPILING_FSTATAT.
76983         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76984         seems to have the bug.
76985         * lib/fstatat.c: New file.
76986         * modules/openat (Files): Add it.
76987
76988 2006-11-20  Bruno Haible  <bruno@clisp.org>
76989
76990         * Makefile: New file.
76991
76992 2006-11-20  Jim Meyering  <jim@meyering.net>
76993
76994         The beginnings of syntax-related checks for gnulib.
76995         * lib/Makefile: New file.
76996         * lib/t-idcache: New script.  Ensure that the two halves of
76997         idcache.c stay in sync.
76998
76999         * lib/idcache.c: Adjust comments in user- and group- portions to
77000         be more accurate, and to be consistent with one another.
77001
77002 2006-11-20  Jim Meyering  <jim@meyering.net>
77003
77004         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
77005         continue using the flexible array member (thus, this module performs
77006         half as many malloc calls), with the addition that...
77007         (getgroup, getuser): Consistently record a non-match via an empty
77008         "name" string, and map an empty string match to a NULL return value.
77009         * modules/idcache (Depends-on): Re-add flexmember.
77010
77011         * lib/idcache.c (getuser): Remove all uses of the register keyword.
77012         (getuidbyname, getgroup, getgidbyname): Likewise.
77013
77014         Use cleaner syntax: NULL rather than 0.
77015         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
77016
77017 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
77020         It mishandled the case where the group was missing.
77021         Problem reported by Greg Schafer.
77022         * modules/idcache: Likewise.
77023
77024 2006-11-18  Jim Meyering  <jim@meyering.net>
77025
77026         * check-module (%exempt_header): Add exception for some
77027         conditionally-included headers.
77028
77029         * modules/i-ring (Depends-on): Add verify.
77030         (License): Change to LGPL.
77031
77032 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
77035         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
77036         and inttostr.h.  Use snprintf rather than uinttostr, so that
77037         LGPLed code doesn't depend on GPLed.
77038
77039 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77040
77041         * modules/inline (License): Change from GPL to LGPL.
77042
77043 2006-11-17  Jim Meyering  <jim@meyering.net>
77044
77045         * modules/d-type (License): Switch to LGPL.
77046
77047 2006-11-15  Bruno Haible  <bruno@clisp.org>
77048
77049         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
77050
77051 2006-11-15  Eric Blake  <ebb9@byu.net>
77052
77053         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
77054         the module dependency.
77055
77056 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77057             Bruno Haible  <bruno@clisp.org>
77058
77059         * gnulib-tool (func_create_testdir): Add license consistency check.
77060
77061 2006-11-15  Eric Blake  <ebb9@byu.net>
77062
77063         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
77064         random "(cached)" in configure output.
77065
77066 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77067
77068         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
77069         test for conforming inttypes.h is both announced and cached.
77070
77071         * MODULES.html.sh (seen_modules, seen_files): New variables.
77072         (func_module): Rewrite to use a few less gnulib-tool and sed
77073         invocations.  Avoid a couple of quadratic algorithms for ...
77074         (missed_modules, missed_files): ... these, with ...
77075         (func_append, func_tmpdir): ... these new functions, from
77076         gnulib-tool.  Analogously, install traps for cleanup.
77077
77078         * tests/test-gc.c (main): Remove unused variables.
77079         * tests/test-read-file.c: Include stdlib.h, for 'free'.
77080
77081 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         * modules/inttostr (License): Change to LGPL.
77084
77085 2006-11-14  Eric Blake  <ebb9@byu.net>
77086
77087         * modules/tempname (License): Change to LGPL.
77088
77089 2006-11-14  Eric Blake  <ebb9@byu.net>
77090
77091         * doc/functions.texi (Function Portability): *printf functions on
77092         Cygwin now understand all POSIX size specifiers.
77093
77094 2006-11-14  Bruno Haible  <bruno@clisp.org>
77095
77096         * modules/c-ctype (License): Change to LGPL.
77097
77098 2006-11-12  Bruno Haible  <bruno@clisp.org>
77099
77100         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77101         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
77102         for GNOME libraries, for which the include files are installed in
77103         subdirectories of $prefix/include.
77104
77105 2006-11-12  Bruno Haible  <bruno@clisp.org>
77106
77107         * m4/lib-link.m4: Require at least autoconf-2.54.
77108         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
77109         name to underscores for the --with option.
77110
77111 2006-11-13  Bruno Haible  <bruno@clisp.org>
77112
77113         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
77114         the tests directory.
77115         Reported by Ralf Wildenhues.
77116
77117 2006-11-13  Bruno Haible  <bruno@clisp.org>
77118
77119         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
77120         (func_emit_initmacro_end): Undo the override here.
77121         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
77122         Works around the famous automake error in coreutils.
77123
77124 2006-11-13  Eric Blake  <ebb9@byu.net>
77125
77126         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
77127         element, not its node.
77128
77129 2006-11-12  Bruno Haible  <bruno@clisp.org>
77130
77131         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
77132         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
77133
77134 2006-11-12  Bruno Haible  <bruno@clisp.org>
77135
77136         * gnulib-tool: New option --local-symlink.
77137         (func_usage): Document it.
77138         (lsymbolic): New variable.
77139         (func_import, func_create_testdir): If --symlink was not specified,
77140         test whether --local-symlink was specified and the file comes from
77141         the local_gnulib_dir.
77142
77143 2006-11-12  Bruno Haible  <bruno@clisp.org>
77144
77145         * gnulib-tool (func_ln): New function.
77146         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
77147
77148 2006-11-12  Bruno Haible  <bruno@clisp.org>
77149
77150         Finish support for source files in subdirectories.
77151         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
77152         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
77153         AUTOMAKE_OPTIONS.
77154         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
77155
77156 2006-11-12  Bruno Haible  <bruno@clisp.org>
77157
77158         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77159         EXTRA_lib_SOURCES augmentation.
77160         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
77161
77162 2006-11-12  Jim Meyering  <jim@meyering.net>
77163
77164         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
77165         file descriptors.  This also averts a failure on systems with
77166         native openat support when a traversed directory lacks "x" access.
77167         * lib/fts_.h: Include "i-ring.h"
77168         (struct FTS) [fts_fd_ring]: New member.
77169         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
77170         (FCHDIR): Add parentheses.
77171         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
77172         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
77173         When descending, rather than simply closing the previous
77174         fts_cwd_fd value, push that file descriptor onto the ring.
77175         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
77176         (fts_open): Initialize the new fd_ring member.
77177         (fts_close): Clear the ring.
77178         (fts_safe_changedir): When possible, use our new fd_ring to skip
77179         the diropen and fstat and dev/ino comparison that would normally
77180         accompany a virtual `chdir ("..")'.
77181
77182         * modules/fts (Depends-on): Add i-ring.
77183         * modules/i-ring: New module.
77184         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
77185         * m4/i-ring.m4: New file.
77186
77187 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77188
77189         * gnulib-tool (func_create_testdir): Fix replacement of
77190         `build-aux' in configure.ac.  Run autotools in gltests
77191         subdirectory.
77192         (func_create_testdir, func_create_megatestdir, test): There is
77193         no need for '--force' in most autotool invocations in a new
77194         tree.  Actually fail the whole test if any of the tools, or the
77195         configure or make stages fail.
77196
77197         Sync from Automake.
77198         * build-aux/gnupload: Revert last change.  Add pointer to upload
77199         instructions of the GNU Maintenance Instructions.
77200         Suggestion by Karl Berry.
77201
77202 2006-11-10  Jim Meyering  <jim@meyering.net>
77203
77204         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77205
77206 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77209         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77210         (bind_textdomain_codeset) [! ENABLE_NLS]:
77211         Evaluate all the arguments.  That way, callers get compatible behavior
77212         if the arguments have side effects.  Also, it avoids some GCC
77213         diagnostics in some cases; Joel E. Denny reported problems when Bison
77214         was configured with --enable-gcc-warnigs.
77215
77216 2006-11-10  Jim Meyering  <jim@meyering.net>
77217
77218         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77219         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77220         account.
77221
77222 2006-11-10  Jim Meyering  <jim@meyering.net>
77223
77224         * modules/inline: New file/module.
77225         * modules/xalloc (Files): Remove m4/inline.m4.
77226         (Depends-on): Add inline, instead.
77227         * modules/oset: Likewise.
77228         * modules/list: Likewise.
77229
77230 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77231
77232         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77233         Problem reported by Matthew Woehlke.
77234
77235 2006-11-09  Bruno Haible  <bruno@clisp.org>
77236
77237         * lib/tempname.c (gen_tempname): Remove variant that invokes
77238         __gen_tempname.
77239         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77240         __gen_tempname.
77241
77242 2006-11-08  Bruno Haible  <bruno@clisp.org>
77243
77244         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77245         to 'yes' instead of 'cross-compiling'.
77246
77247 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77248
77249         * lib/quotearg.h (quotearg_free): New decl.
77250         * lib/quotearg.c (quotearg_free): New function.
77251         (slot0, nslots, slotvec0, slotvec):
77252         Now file-scope so that quotearg_free can get at them.
77253
77254 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77255
77256         Sync from Automake.
77257         * build-aux/gnupload: Add missing 'gnu' to example URL.
77258         Report by Karl Berry.
77259
77260 2006-11-08  Bruno Haible  <bruno@clisp.org>
77261
77262         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77263         Suggested by Paul Eggert.
77264
77265 2006-11-08  Jim Meyering  <jim@meyering.net>
77266
77267         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77268         It's already included if !_LIBC.
77269         (fts_safe_changedir): Add a comment.
77270
77271 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77272
77273         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77274         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77275         Matthew Woehlke.
77276
77277         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77278         definitions up, to avoid colliding with change below.
77279         (static_inline) [HAVE_INLINE]: New macro.
77280         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77281         Provide extern decls when !HAVE_INLINE.  Do not define unless
77282         static_inline is defined, either by us or by xmalloc.c.  Use
77283         static_inline rather than static inline.
77284         (XCALLOC): Optimize sizeof(T) = 1 case.
77285         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77286
77287 2006-11-07  Bruno Haible  <bruno@clisp.org>
77288
77289         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77290         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77291         AC_C_INLINE.
77292         * modules/xalloc (Files): Add m4/inline.m4.
77293
77294 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77295
77296         * README: Fix typo.
77297         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77298         (Miscellanous Notes): ...from this.
77299
77300 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77301
77302         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77303         Mention that offsetof should be used instead of sizeof.
77304         From Bruno Haible.
77305
77306 2006-11-07  Bruno Haible  <bruno@clisp.org>
77307
77308         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77309
77310 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77313         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77314         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77315         (gl_tree_add_before, gl_tree_add_after):
77316         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77317         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77318         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77319         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77320         (gl_linked_add_after, gl_linked_add_at): Likewise.
77321         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77322         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77323         (gl_tree_add_before, gl_tree_add_after): Likewise.
77324         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77325         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77326         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77327
77328 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77329
77330         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77331
77332 2006-11-06  Bruno Haible  <bruno@clisp.org>
77333
77334         * m4/inline.m4: New file.
77335         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77336         * modules/list (Files): Add m4/inline.m4.
77337         * modules/oset (Files): Likewise.
77338
77339 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77340
77341         * lib/idcache.c: Include <stddef.h>, for offsetof.
77342         (struct userid.name): Change from char * to a flexible array member.
77343         All uses changed.
77344         * modules/idcache (Depends-on): Add flexmember.
77345
77346         * MODULES.html.sh (Core language properties): New module flexmember.
77347         * modules/flexmember, m4/flexmember.m4: New files.
77348
77349         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77350         inline functions that are identical with the old xnmalloc_inline,
77351         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77352         that we can avoid some unnecessary integer multiplications and
77353         divisions in the common case where the element size is known at
77354         compile time.
77355         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77356         needed.
77357         (xnboundedmalloc): Remove.
77358         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77359         arguments, for consistency with rest of this header.
77360         (xcharalloc): Rewrite using XNMALLOC.
77361         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77362         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77363         versions have been moved to lib/xalloc.h and renamed to be the
77364         non-*_inline versions.
77365         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77366         and xnrealloc functions, since those functions are now inline and
77367         now call us.
77368         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77369         renaming described above.
77370         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77371         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77372         captures the dependency in AC_C_INLINE.
77373
77374         New module canonicalize-lgpl, proposed by Charles Wilson in
77375         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77376         with a few small changes afterwards.
77377         * MODULES.html.sh (File system functions): New module
77378         canonicalize-lgpl.
77379         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77380         and canonicalize_file_name.
77381         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77382         * modules/canonicalize-lgpl: New files.
77383
77384 2006-11-05  Bruno Haible  <bruno@clisp.org>
77385
77386         * gnulib-tool (func_import, func_create_testdir): Create directories
77387         also for files in subdirectories of lib/.
77388
77389 2006-11-05  Bruno Haible  <bruno@clisp.org>
77390
77391         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77392         ANSI C compliant.
77393
77394 2006-11-03  Bruno Haible  <bruno@clisp.org>
77395
77396         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77397         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77398         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77399         (xnboundedmalloc): New inline function.
77400         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77401         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77402         xmalloc.
77403         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77404         xmalloc.
77405         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77406         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77407         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77408         xmalloc.
77409         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77410         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77411         xmalloc.
77412         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77413         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77414         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77415         xmalloc.
77416         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77417         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77418         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77419         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77420         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77421         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77422         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77423
77424 2006-11-03  Bruno Haible  <bruno@clisp.org>
77425
77426         * lib/c-ctype.h [C++]: Define functions without name mangling.
77427         * lib/fwriteerror.h [C++]: Likewise.
77428         * lib/gcd.h [C++]: Likewise.
77429         * lib/linebreak.h [C++]: Likewise.
77430
77431 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77432
77433         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77434         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77435         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77436         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77437         Check for functions and headers just once.
77438         Check for declaration of canonicalize_file_name.
77439         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77440
77441 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77442
77443         * gnulib-tool (func_import): Fix typo in actioncmd.
77444
77445 2006-11-02  Bruno Haible  <bruno@clisp.org>
77446
77447         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77448         newline sequence in the Makefile.am snippet as a space, like "make"
77449         does.
77450         Reported by Roger Persson <perrog@gmail.com>.
77451
77452 2006-11-01  Bruno Haible  <bruno@clisp.org>
77453
77454         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77455         already declared in <string.h>.
77456         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77457
77458 2006-11-01  Bruno Haible  <bruno@clisp.org>
77459
77460         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77461         * lib/strcase.h: Include <string.h>.
77462         (strcasecmp): Define to rpl_strcasecmp here.
77463
77464 2006-11-01  Bruno Haible  <bruno@clisp.org>
77465
77466         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77467
77468 2006-11-01  Eric Blake  <ebb9@byu.net>
77469
77470         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77471
77472         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77473
77474 2006-10-29  Bruno Haible  <bruno@clisp.org>
77475
77476         Make it compile in C++ mode.
77477         * lib/full-write.c (full_rw): Add a cast.
77478
77479 2006-11-01  Bruno Haible  <bruno@clisp.org>
77480
77481         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77482         be POSIX compliant.
77483         Reported by Roger Persson <perrog@gmail.com>.
77484
77485 2006-11-01  Eric Blake  <ebb9@byu.net>
77486
77487         * lib/getopt_.h: Fix comments.
77488
77489 2006-10-31  Eric Blake  <ebb9@byu.net>
77490
77491         * modules/tmpdir (Depends-on): Add sys_stat.
77492         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77493         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77494         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77495         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77496         tempname.
77497
77498 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77499
77500         Avoid some C++ diagnostics reported by Bruno Haible.
77501         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77502         xmalloc.
77503         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77504         (struct slotvec): Move to top level.
77505         (quotearg_n_options): Rewrite to avoid xmalloc.
77506         * lib/xalloc.h (xcharalloc): New function.
77507         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77508         [defined __cplusplus]: Add function template that provides result
77509         type propagation.  This part of the change is from Bruno Haible.
77510
77511 2006-10-29  Bruno Haible  <bruno@clisp.org>
77512
77513         Make it compile in C++ mode.
77514         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77515         * lib/strnlen1.c (strnlen1): Cast memchr result.
77516         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77517         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77518         (create_temp_dir): Rename local variable 'template'.
77519         (compile_csharp_using_sscli): Add cast.
77520         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77521         * lib/findprog.c (find_in_path): Likewise.
77522         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77523         * lib/wait-process.c (register_slave_subprocess): Likewise.
77524
77525 2006-10-22  Bruno Haible  <bruno@clisp.org>
77526
77527         * modules/tsearch: New file.
77528         * lib/tsearch.h: New file.
77529         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77530         * m4/tsearch.m4: New file.
77531         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77532
77533 2006-10-29  Eric Blake  <ebb9@byu.net>
77534
77535         * lib/arcfour.c: Assume config.h.
77536         * lib/arctwo.c: Likewise.
77537         * lib/base64.c: Likewise.
77538         * lib/check-version.c: Likewise.
77539         * lib/crc.c: Likewise.
77540         * lib/des.c: Likewise.
77541         * lib/gc-gnulib.c: Likewise.
77542         * lib/gc-libgcrypt.c: Likewise.
77543         * lib/gc-pbkdf2-sha1.c: Likewise.
77544         * lib/getaddrinfo.c: Likewise.
77545         * lib/getdelim.c: Likewise.
77546         * lib/getline.c: Likewise.
77547         * lib/hmac-md5.c: Likewise.
77548         * lib/hmac-sha1.c: Likewise.
77549         * lib/iconvme.c: Likewise.
77550         * lib/md2.c: Likewise.
77551         * lib/md4.c: Likewise.
77552         * lib/memxor.c: Likewise.
77553         * lib/read-file.c: Likewise.
77554         * lib/readline.c: Likewise.
77555         * lib/rijndael-alg-fst.c: Likewise.
77556         * lib/rijndael-api-fst.c: Likewise.
77557         * lib/xgetdomainname.c: Likewise.
77558
77559 2006-10-28  Eric Blake  <ebb9@byu.net>
77560
77561         * lib/xstrndup.c: Assume config.h.
77562
77563 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77566         stat-macros.h is now for our own macros, whereas stat_h is for
77567         macros in the <sys/stat.h> name space.
77568         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77569         (STAT_MACROS_H): Remove.
77570         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77571         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77572         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77573         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77574         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77575         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77576         Move these macros to ...
77577         * lib/stat_.h: here.  Don't include stat-macros.h.
77578         * lib/canonicalize.c: Don't include stat-macros.h.
77579         * lib/chown.c: Likewise.
77580         * lib/euidaccess.c: Likewise.
77581         * lib/file-type.c: Likewise.
77582         * lib/filemode.c: Likewise.
77583         * lib/glob.c: Likewise.
77584         * lib/isapipe.c: Likewise.
77585         * lib/lchown.c: Likewise.
77586         * lib/lstat.c: Likewise.
77587         * lib/mkdir-p.c: Likewise.
77588         * lib/rmdir.c: Likewise.
77589         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77591         unless mkdir isn't declared, to speed up 'configure'.
77592         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77593         would define all the S_* symbols.
77594         * modules/canonicalize (Depends-on):
77595         Depend on sys_stat, not stat-macros.
77596         * modules/chown: Likewise.
77597         * modules/euidaccess: Likewise.
77598         * modules/filemode: Likewise.
77599         * modules/file-type: Likewise.
77600         * modules/glob: Likewise.
77601         * modules/isapipe: Likewise.
77602         * modules/lchown: Likewise.
77603         * modules/lstat: Likewise.
77604         * modules/mkancesdirs: Likewise.
77605         * modules/rmdir: Likewise.
77606         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77607         * modules/modechange: Likewise.
77608         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77609         (configure.ac): Remove gl_STAT_MACROS.
77610         * modules/sys_stat (Depends-on): Remove stat-macros.
77611
77612 2006-10-27  Bruno Haible  <bruno@clisp.org>
77613
77614         * m4/signed.m4: Remove file.
77615         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77616         invocation.
77617         * modules/vasnprintf (Files): Remove m4/signed.m4.
77618
77619 2006-10-27  Bruno Haible  <bruno@clisp.org>
77620
77621         Update to GNU gettext 0.16.
77622         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77623         m4/inttypes-h.m4, m4/signed.m4.
77624         * m4/gettext.m4: Update to GNU gettext 0.16.
77625         * m4/intl.m4: New file, from GNU gettext.
77626         * m4/intldir.m4: New file, from GNU gettext.
77627         * config/srclist.txt: Update
77628
77629 2006-10-27  Eric Blake  <ebb9@byu.net>
77630
77631         * MODULES.html.sh: Document tempname.
77632         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77633         dependencies.
77634         (Files): Move lib/tempname.c...
77635         * modules/tempname: ...to this new module.
77636         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77637         (gl_PREREQ_TEMPNAME): Move...
77638         * m4/tempname.m4: ...to this new file.
77639         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77640         * modules/sys_stat (Depends-on): Add stat-macros.
77641         * lib/stat_.h (includes): Pick up stat macros.
77642         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77643         if stat macros are broken.
77644         * lib/tempname.c (includes): No need to include "stat-macros.h".
77645         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77646         (direxists, __path_search) [!_LIBC]: Don't compile these in
77647         gnulib; the tmpdir module covers that.
77648         * lib/tempname.h: New file.
77649
77650 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * COPYING: Explain how gnulib-tool converts licence headers.
77653         Almost all wording by Eric Blake.
77654
77655 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * lib/mbchar.h (is_basic_table): Make read-only.
77658         * lib/mbchar.c (is_basic_table): Likewise.
77659         Reported by John Darrington.
77660
77661 2006-10-25  Bruno Haible  <bruno@clisp.org>
77662
77663         * lib/progname.h (set_program_name): Undefine before defining.
77664
77665 2006-10-25  Bruno Haible  <bruno@clisp.org>
77666
77667         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77668         false for non-gcc C++ compilers.
77669         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77670
77671 2006-10-24  Bruno Haible  <bruno@clisp.org>
77672
77673         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77674         iconv implementations like Irix iconv.
77675
77676 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * modules/vararrays: New file.
77679         * m4/vararrays.m4: New file, taken from diffutils.
77680         * MODULES.html.sh: New module vararrays.
77681
77682 2006-10-24  Karl Berry  <karl@gnu.org>
77683
77684         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77685         Don't call GNU Unix.
77686
77687 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77688
77689         * users.txt: Add Libtool.
77690
77691         Sync from Libtool:
77692
77693         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77696         to gnulib's policy of including config.h unconditionally.
77697
77698 2006-10-24  Bruno Haible  <bruno@clisp.org>
77699
77700         * modules/wcwidth (Files): Add m4/wint_t.m4.
77701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77702         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77703
77704 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77705
77706         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77707         to pacify GCC with some -W flags enabled.  Problem reported by
77708         Bruno Haible.
77709
77710 2006-10-24  Jim Meyering  <jim@meyering.net>
77711
77712         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77713         Reported by Karl Berry.
77714
77715 2006-10-23  Bruno Haible  <bruno@clisp.org>
77716
77717         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77718
77719 2006-10-24  Bruno Haible  <bruno@clisp.org>
77720
77721         * lib/gl_list.h: Use C comment style, not C++ comment style.
77722
77723 2006-10-23  Eric Blake  <ebb9@byu.net>
77724
77725         * lib/getaddrinfo.c (includes): Add missing include.
77726
77727 2006-10-23  Bruno Haible  <bruno@clisp.org>
77728             Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         Ability to rename obstack_free.
77731         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77732         obstack_free.
77733         (obstack_free): Invoke the __obstack_free macro.
77734         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77735
77736 2006-10-23  Bruno Haible  <bruno@clisp.org>
77737             Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77740         __argc, __argv from the declaration. (They are defined as macros on
77741         mingw.)
77742
77743 2006-10-22  Bruno Haible  <bruno@clisp.org>
77744
77745         * doc/gnulib-intro.texi: New file.
77746         * doc/gnulib.texi: Include it.
77747
77748 2006-10-21  Bruno Haible  <bruno@clisp.org>
77749
77750         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77751         "Introduction", "Miscellanous Notes", "Particular Modules".
77752
77753 2006-10-21  Bruno Haible  <bruno@clisp.org>
77754
77755         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77756         Change mostlyclean-local rule to avoid sh syntax error from bash
77757         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77758
77759 2006-10-23  Jim Meyering  <jim@meyering.net>
77760
77761         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77762         in place of snprintf.
77763
77764         * modules/inttostr (Files): Add lib/uinttostr.c.
77765         * lib/uinttostr.c (inttostr): New file/function.
77766         * lib/inttostr.h (uinttostr): Declare.
77767         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77768         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77769         Add uinttostr.
77770         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77771
77772 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * lib/canonicalize.c (ELOOP): Define if not already defined.
77775         Problem reported by Bruno Haible in
77776         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77777
77778 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77779
77780         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77781         Problem reported by Perry Smith and Ville Laurikari.
77782
77783         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77784         uses.
77785
77786 2006-10-19  Bruno Haible  <bruno@clisp.org>
77787
77788         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77789         for mingw.
77790
77791 2006-10-19  Bruno Haible  <bruno@clisp.org>
77792
77793         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77794         Needed for mingw.
77795
77796 2006-10-19  Bruno Haible  <bruno@clisp.org>
77797
77798         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77799
77800 2006-10-19  Bruno Haible  <bruno@clisp.org>
77801
77802         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77803         it.
77804
77805 2006-10-19  Bruno Haible  <bruno@clisp.org>
77806
77807         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77808         invocation.
77809
77810 2006-10-19  Bruno Haible  <bruno@clisp.org>
77811
77812         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77813         mountlist by default.
77814
77815 2006-10-16  Bruno Haible  <bruno@clisp.org>
77816
77817         * lib/c-strstr.c: Include c-strstr.h.
77818
77819 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77820
77821         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77822         in a slash.
77823
77824 2006-10-18  Bruno Haible  <bruno@clisp.org>
77825
77826         * lib/lock.h [C++]: Wrap definitions in extern "C".
77827
77828 2006-10-18  Bruno Haible  <bruno@clisp.org>
77829
77830         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77831         gl_LIBOBJS list.
77832
77833 2006-10-18  Bruno Haible  <bruno@clisp.org>
77834
77835         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77836
77837 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77838
77839         * lib/xstrtol.h: Include gettext.h.
77840         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77841         Problem reported by Eric Blake.
77842         * modules/xstrtol (Depends-on): Add gettext-h.
77843
77844 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77845
77846         * lib/strftime.c (advance): New macro.
77847         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77848         incomplete type, so you can't add 0 to it.  Problem and patch
77849         reported by Eelco Dolstra for dietlibc.
77850
77851 2006-10-18  Jim Meyering  <jim@meyering.net>
77852
77853         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77854         type for a local, and rename it: s/up/user_proc/.
77855
77856 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77857
77858         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77859         READ_UTMP_USER_PROCESS.
77860         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77861
77862 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77863
77864         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77865         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77866
77867 2006-10-17  Eric Blake  <ebb9@byu.net>
77868
77869         * lib/sigprocmask.c (sigprocmask): Fix typo.
77870
77871         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77872
77873         * modules/clean-temp (Makefile.am): Don't add to make output...
77874         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77875         config.h.
77876
77877 2006-10-17  Bruno Haible  <bruno@clisp.org>
77878
77879         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77880         differently if DEFAULT_TEXT_DOMAIN is set.
77881
77882 2006-10-16  Bruno Haible  <bruno@clisp.org>
77883
77884         * lib/clean-temp.c: Include fwriteerror.h.
77885
77886 2006-10-16  Bruno Haible  <bruno@clisp.org>
77887
77888         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77889
77890 2006-10-16  Bruno Haible  <bruno@clisp.org>
77891
77892         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77893         * lib/sigprocmask.h: Include <sys/types.h>.
77894         (sigset_t): Use the system's definition if present.
77895
77896 2006-10-17  Eric Blake  <ebb9@byu.net>
77897
77898         * lib/xvasprintf.c (includes): Assume config.h.
77899         * lib/xasprintf.c (includes): Likewise.
77900
77901 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77902
77903         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77904         at least as wide as intmax_t.
77905
77906 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77907
77908         (Imported from Automake.)
77909         * build-aux/gnupload: Update to version 1.1 of directive file.
77910
77911 2006-10-16  Eric Blake  <ebb9@byu.net>
77912
77913         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77914         match Automake 1.10a.
77915
77916 2006-10-14  Bruno Haible  <bruno@clisp.org>
77917
77918         * modules/sigprocmask: New file.
77919         * lib/sigprocmask.h: New file.
77920         * lib/sigprocmask.c: New file.
77921         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77922         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77923         request sigprocmask.o.
77924         (gl_PREREQ_SIGPROCMASK): New macro.
77925         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77926         (Depends-on): Add sigprocmask.
77927         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77928         gt_SIGNALBLOCKING. Test for 'raise' only once.
77929         * lib/fatal-signal.c: Include sigprocmask.h.
77930         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77931         unblock_fatal_signals): Define always.
77932         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77933         sigprocmask.
77934
77935 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77936
77937         Sync from Automake.
77938         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77939         which incorrectly sets the mode of an existing destination
77940         directory.  In some cases the unpatched install-sh could do the
77941         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77942         system.  We hope this is rare in practice, but it's clearly worth
77943         fixing.  Problem reported by Alex Unleashed in
77944         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77945         Also, don't bother to check for -m bugs unless we're using -m;
77946         suggested by Stepan Kasal.
77947
77948 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77949
77950         Sync from Automake.
77951         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77952         `-c' flag, so they appear at the same position as in %FASTDEP%
77953         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77954         which ignores unknown options only after the first non-option.
77955         Bug report against M4 by Nelson H. F. Beebe.
77956
77957 2006-10-13  Jim Meyering  <jim@meyering.net>
77958
77959         Fix a bug in yesterday's change.
77960         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77961         p->fts_statp->st_dev would be used uninitialized.
77962         Ensures that we always call fts_stat on the very first entry.
77963         Miklos Szeredi reported that find -xdev stopped working.
77964
77965 2006-10-12  Bruno Haible  <bruno@clisp.org>
77966
77967         * gnulib-tool (func_get_automake_snippet): Append an automatically
77968         computed EXTRA_DIST augmentation.
77969         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77970         * modules/alloca-opt (Makefile.am): Likewise.
77971         * modules/allocsa (Makefile.am): Likewise.
77972         * modules/arcfour (Makefile.am): Likewise.
77973         * modules/arctwo (Makefile.am): Likewise.
77974         * modules/argmatch (Makefile.am): Likewise.
77975         * modules/argz (Makefile.am): Likewise.
77976         * modules/atexit (Makefile.am): Likewise.
77977         * modules/backupfile (Makefile.am): Likewise.
77978         * modules/byteswap (Makefile.am): Likewise.
77979         * modules/c-strtod (Makefile.am): Likewise.
77980         * modules/c-strtold (Makefile.am): Likewise.
77981         * modules/calloc (Makefile.am): Likewise.
77982         * modules/canon-host (Makefile.am): Likewise.
77983         * modules/canonicalize (Makefile.am): Likewise.
77984         * modules/chdir-long (Makefile.am): Likewise.
77985         * modules/chdir-safer (Makefile.am): Likewise.
77986         * modules/check-version (Makefile.am): Likewise.
77987         * modules/chown (Makefile.am): Likewise.
77988         * modules/cloexec (Makefile.am): Likewise.
77989         * modules/close-stream (Makefile.am): Likewise.
77990         * modules/closeout (Makefile.am): Likewise.
77991         * modules/crc (Makefile.am): Likewise.
77992         * modules/csharpexec (Makefile.am): Likewise.
77993         * modules/cycle-check (Makefile.am): Likewise.
77994         * modules/des (Makefile.am): Likewise.
77995         * modules/dev-ino (Makefile.am): Likewise.
77996         * modules/dirfd (Makefile.am): Likewise.
77997         * modules/dirname (Makefile.am): Likewise.
77998         * modules/dup2 (Makefile.am): Likewise.
77999         * modules/eealloc (Makefile.am): Likewise.
78000         * modules/error (Makefile.am): Likewise.
78001         * modules/euidaccess (Makefile.am): Likewise.
78002         * modules/exclude (Makefile.am): Likewise.
78003         * modules/exitfail (Makefile.am): Likewise.
78004         * modules/fcntl-safer (Makefile.am): Likewise.
78005         * modules/fcntl (Makefile.am): Likewise.
78006         * modules/file-type (Makefile.am): Likewise.
78007         * modules/fileblocks (Makefile.am): Likewise.
78008         * modules/filemode (Makefile.am): Likewise.
78009         * modules/filenamecat (Makefile.am): Likewise.
78010         * modules/fnmatch (Makefile.am): Likewise.
78011         * modules/fopen-safer (Makefile.am): Likewise.
78012         * modules/fpending (Makefile.am): Likewise.
78013         * modules/fprintftime (Makefile.am): Likewise.
78014         * modules/free (Makefile.am): Likewise.
78015         * modules/fsusage (Makefile.am): Likewise.
78016         * modules/ftruncate (Makefile.am): Likewise.
78017         * modules/fts (Makefile.am): Likewise.
78018         * modules/gc-arcfour (Makefile.am): Likewise.
78019         * modules/gc-des (Makefile.am): Likewise.
78020         * modules/gc-hmac-md5 (Makefile.am): Likewise.
78021         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
78022         * modules/gc-md4 (Makefile.am): Likewise.
78023         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78024         * modules/gc-sha1 (Makefile.am): Likewise.
78025         * modules/gc (Makefile.am): Likewise.
78026         * modules/getaddrinfo (Makefile.am): Likewise.
78027         * modules/getcwd (Makefile.am): Likewise.
78028         * modules/getdelim (Makefile.am): Likewise.
78029         * modules/getdomainname (Makefile.am): Likewise.
78030         * modules/getgroups (Makefile.am): Likewise.
78031         * modules/gethostname (Makefile.am): Likewise.
78032         * modules/gethrxtime (Makefile.am): Likewise.
78033         * modules/getline (Makefile.am): Likewise.
78034         * modules/getloadavg (Makefile.am): Likewise.
78035         * modules/getlogin_r (Makefile.am): Likewise.
78036         * modules/getndelim2 (Makefile.am): Likewise.
78037         * modules/getopt (Makefile.am): Likewise.
78038         * modules/getpagesize (Makefile.am): Likewise.
78039         * modules/getpass-gnu (Makefile.am): Likewise.
78040         * modules/getpass (Makefile.am): Likewise.
78041         * modules/getsubopt (Makefile.am): Likewise.
78042         * modules/gettime (Makefile.am): Likewise.
78043         * modules/gettimeofday (Makefile.am): Likewise.
78044         * modules/getugroups (Makefile.am): Likewise.
78045         * modules/getusershell (Makefile.am): Likewise.
78046         * modules/glob (Makefile.am): Likewise.
78047         * modules/group-member (Makefile.am): Likewise.
78048         * modules/hard-locale (Makefile.am): Likewise.
78049         * modules/hash (Makefile.am): Likewise.
78050         * modules/hmac-md5 (Makefile.am): Likewise.
78051         * modules/hmac-sha1 (Makefile.am): Likewise.
78052         * modules/human (Makefile.am): Likewise.
78053         * modules/idcache (Makefile.am): Likewise.
78054         * modules/imaxabs (Makefile.am): Likewise.
78055         * modules/imaxdiv (Makefile.am): Likewise.
78056         * modules/inet_ntop (Makefile.am): Likewise.
78057         * modules/inet_pton (Makefile.am): Likewise.
78058         * modules/intprops (Makefile.am): Likewise.
78059         * modules/inttostr (Makefile.am): Likewise.
78060         * modules/inttypes (Makefile.am): Likewise.
78061         * modules/isapipe (Makefile.am): Likewise.
78062         * modules/javaversion (Makefile.am): Likewise.
78063         * modules/lchmod (Makefile.am): Likewise.
78064         * modules/lchown (Makefile.am): Likewise.
78065         * modules/localcharset (Makefile.am): Likewise.
78066         * modules/long-options (Makefile.am): Likewise.
78067         * modules/lstat (Makefile.am): Likewise.
78068         * modules/malloc (Makefile.am): Likewise.
78069         * modules/mathl (Makefile.am): Likewise.
78070         * modules/mbchar (Makefile.am): Likewise.
78071         * modules/md2 (Makefile.am): Likewise.
78072         * modules/md4 (Makefile.am): Likewise.
78073         * modules/md5 (Makefile.am): Likewise.
78074         * modules/memcasecmp (Makefile.am): Likewise.
78075         * modules/memchr (Makefile.am): Likewise.
78076         * modules/memcmp (Makefile.am): Likewise.
78077         * modules/memcoll (Makefile.am): Likewise.
78078         * modules/memcpy (Makefile.am): Likewise.
78079         * modules/memmem (Makefile.am): Likewise.
78080         * modules/memmove (Makefile.am): Likewise.
78081         * modules/mempcpy (Makefile.am): Likewise.
78082         * modules/memrchr (Makefile.am): Likewise.
78083         * modules/memset (Makefile.am): Likewise.
78084         * modules/memxor (Makefile.am): Likewise.
78085         * modules/mkancesdirs (Makefile.am): Likewise.
78086         * modules/mkdir-p (Makefile.am): Likewise.
78087         * modules/mkdir (Makefile.am): Likewise.
78088         * modules/mkdtemp (Makefile.am): Likewise.
78089         * modules/mkstemp (Makefile.am): Likewise.
78090         * modules/mktime (Makefile.am): Likewise.
78091         * modules/modechange (Makefile.am): Likewise.
78092         * modules/mountlist (Makefile.am): Likewise.
78093         * modules/nanosleep (Makefile.am): Likewise.
78094         * modules/obstack (Makefile.am): Likewise.
78095         * modules/openat (Makefile.am): Likewise.
78096         * modules/pagealign_alloc (Makefile.am): Likewise.
78097         * modules/pathmax (Makefile.am): Likewise.
78098         * modules/physmem (Makefile.am): Likewise.
78099         * modules/poll (Makefile.am): Likewise.
78100         * modules/posixtm (Makefile.am): Likewise.
78101         * modules/posixver (Makefile.am): Likewise.
78102         * modules/putenv (Makefile.am): Likewise.
78103         * modules/quote (Makefile.am): Likewise.
78104         * modules/quotearg (Makefile.am): Likewise.
78105         * modules/raise (Makefile.am): Likewise.
78106         * modules/read-file (Makefile.am): Likewise.
78107         * modules/readline (Makefile.am): Likewise.
78108         * modules/readlink (Makefile.am): Likewise.
78109         * modules/readtokens (Makefile.am): Likewise.
78110         * modules/readutmp (Makefile.am): Likewise.
78111         * modules/realloc (Makefile.am): Likewise.
78112         * modules/regex (Makefile.am): Likewise.
78113         * modules/rename-dest-slash (Makefile.am): Likewise.
78114         * modules/rename (Makefile.am): Likewise.
78115         * modules/rijndael (Makefile.am): Likewise.
78116         * modules/rmdir (Makefile.am): Likewise.
78117         * modules/rpmatch (Makefile.am): Likewise.
78118         * modules/safe-read (Makefile.am): Likewise.
78119         * modules/safe-write (Makefile.am): Likewise.
78120         * modules/same-inode (Makefile.am): Likewise.
78121         * modules/same (Makefile.am): Likewise.
78122         * modules/save-cwd (Makefile.am): Likewise.
78123         * modules/savedir (Makefile.am): Likewise.
78124         * modules/setenv (Makefile.am): Likewise.
78125         * modules/settime (Makefile.am): Likewise.
78126         * modules/sha1 (Makefile.am): Likewise.
78127         * modules/sig2str (Makefile.am): Likewise.
78128         * modules/snprintf (Makefile.am): Likewise.
78129         * modules/stat-macros (Makefile.am): Likewise.
78130         * modules/stat-time (Makefile.am): Likewise.
78131         * modules/stdbool (Makefile.am): Likewise.
78132         * modules/stdint (Makefile.am): Likewise.
78133         * modules/stdlib-safer (Makefile.am): Likewise.
78134         * modules/stpcpy (Makefile.am): Likewise.
78135         * modules/stpncpy (Makefile.am): Likewise.
78136         * modules/strcase (Makefile.am): Likewise.
78137         * modules/strcasestr (Makefile.am): Likewise.
78138         * modules/strchrnul (Makefile.am): Likewise.
78139         * modules/strcspn (Makefile.am): Likewise.
78140         * modules/strdup (Makefile.am): Likewise.
78141         * modules/strerror (Makefile.am): Likewise.
78142         * modules/strftime (Makefile.am): Likewise.
78143         * modules/strndup (Makefile.am): Likewise.
78144         * modules/strnlen (Makefile.am): Likewise.
78145         * modules/strpbrk (Makefile.am): Likewise.
78146         * modules/strsep (Makefile.am): Likewise.
78147         * modules/strstr (Makefile.am): Likewise.
78148         * modules/strtod (Makefile.am): Likewise.
78149         * modules/strtoimax (Makefile.am): Likewise.
78150         * modules/strtok_r (Makefile.am): Likewise.
78151         * modules/strtol (Makefile.am): Likewise.
78152         * modules/strtoll (Makefile.am): Likewise.
78153         * modules/strtoul (Makefile.am): Likewise.
78154         * modules/strtoull (Makefile.am): Likewise.
78155         * modules/strtoumax (Makefile.am): Likewise.
78156         * modules/strverscmp (Makefile.am): Likewise.
78157         * modules/sys_socket (Makefile.am): Likewise.
78158         * modules/sys_stat (Makefile.am): Likewise.
78159         * modules/sysexits (Makefile.am): Likewise.
78160         * modules/time_r (Makefile.am): Likewise.
78161         * modules/timegm (Makefile.am): Likewise.
78162         * modules/timespec (Makefile.am): Likewise.
78163         * modules/tmpfile-safer (Makefile.am): Likewise.
78164         * modules/trim (Makefile.am): Likewise.
78165         * modules/unistd-safer (Makefile.am): Likewise.
78166         * modules/unlinkdir (Makefile.am): Likewise.
78167         * modules/unlocked-io (Makefile.am): Likewise.
78168         * modules/userspec (Makefile.am): Likewise.
78169         * modules/utime (Makefile.am): Likewise.
78170         * modules/utimecmp (Makefile.am): Likewise.
78171         * modules/utimens (Makefile.am): Likewise.
78172         * modules/vasnprintf (Makefile.am): Likewise.
78173         * modules/vasprintf (Makefile.am): Likewise.
78174         * modules/vsnprintf (Makefile.am): Likewise.
78175         * modules/xalloc (Makefile.am): Likewise.
78176         * modules/xgetcwd (Makefile.am): Likewise.
78177         * modules/xnanosleep (Makefile.am): Likewise.
78178         * modules/xreadlink (Makefile.am): Likewise.
78179         * modules/xstrtod (Makefile.am): Likewise.
78180         * modules/xstrtol (Makefile.am): Likewise.
78181         * modules/xstrtold (Makefile.am): Likewise.
78182         * modules/yesno (Makefile.am): Likewise.
78183         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
78184
78185 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78186
78187         * modules/error (Makefile.am): Distribute files through
78188         EXTRA_DIST, not lib_SOURCES.
78189
78190 2006-10-12  Eric Blake  <ebb9@byu.net>
78191
78192         * modules/error (Makefile.am): Distribute files in /lib.
78193         * modules/obstack (Makefile.am): Likewise.
78194
78195 2006-10-12  Bruno Haible  <bruno@clisp.org>
78196
78197         * modules/acl (Makefile.am): Distribute all files in lib/ through
78198         EXTRA_DIST.
78199         * modules/arcfour (Makefile.am): Likewise.
78200         * modules/arctwo (Makefile.am): Likewise.
78201         * modules/argmatch (Makefile.am): Likewise.
78202         * modules/argz (Makefile.am): Likewise.
78203         * modules/atexit (Makefile.am): Likewise.
78204         * modules/backupfile (Makefile.am): Likewise.
78205         * modules/c-strtod (Makefile.am): Likewise.
78206         * modules/c-strtold (Makefile.am): Likewise.
78207         * modules/calloc (Makefile.am): Likewise.
78208         * modules/canon-host (Makefile.am): Likewise.
78209         * modules/canonicalize (Makefile.am): Likewise.
78210         * modules/chdir-long (Makefile.am): Likewise.
78211         * modules/chdir-safer (Makefile.am): Likewise.
78212         * modules/check-version (Makefile.am): Likewise.
78213         * modules/chown (Makefile.am): Likewise.
78214         * modules/cloexec (Makefile.am): Likewise.
78215         * modules/close-stream (Makefile.am): Likewise.
78216         * modules/closeout (Makefile.am): Likewise.
78217         * modules/crc (Makefile.am): Likewise.
78218         * modules/cycle-check (Makefile.am): Likewise.
78219         * modules/des (Makefile.am): Likewise.
78220         * modules/dirfd (Makefile.am): Likewise.
78221         * modules/dirname (Makefile.am): Likewise.
78222         * modules/dup2 (Makefile.am): Likewise.
78223         * modules/euidaccess (Makefile.am): Likewise.
78224         * modules/exclude (Makefile.am): Likewise.
78225         * modules/exitfail (Makefile.am): Likewise.
78226         * modules/fcntl-safer (Makefile.am): Likewise.
78227         * modules/file-type (Makefile.am): Likewise.
78228         * modules/fileblocks (Makefile.am): Likewise.
78229         * modules/filemode (Makefile.am): Likewise.
78230         * modules/filenamecat (Makefile.am): Likewise.
78231         * modules/fnmatch (Makefile.am): Likewise.
78232         * modules/fopen-safer (Makefile.am): Likewise.
78233         * modules/fpending (Makefile.am): Likewise.
78234         * modules/fprintftime (Makefile.am): Likewise.
78235         * modules/free (Makefile.am): Likewise.
78236         * modules/fsusage (Makefile.am): Likewise.
78237         * modules/ftruncate (Makefile.am): Likewise.
78238         * modules/fts (Makefile.am): Likewise.
78239         * modules/gc (Makefile.am): Likewise.
78240         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78241         * modules/getaddrinfo (Makefile.am): Likewise.
78242         * modules/getcwd (Makefile.am): Likewise.
78243         * modules/getdelim (Makefile.am): Likewise.
78244         * modules/getdomainname (Makefile.am): Likewise.
78245         * modules/getgroups (Makefile.am): Likewise.
78246         * modules/gethostname (Makefile.am): Likewise.
78247         * modules/gethrxtime (Makefile.am): Likewise.
78248         * modules/getline (Makefile.am): Likewise.
78249         * modules/getloadavg (Makefile.am): Likewise.
78250         * modules/getlogin_r (Makefile.am): Likewise.
78251         * modules/getopt (Makefile.am): Likewise.
78252         * modules/getpass (Makefile.am): Likewise.
78253         * modules/getpass-gnu (Makefile.am): Likewise.
78254         * modules/getsubopt (Makefile.am): Likewise.
78255         * modules/gettime (Makefile.am): Likewise.
78256         * modules/gettimeofday (Makefile.am): Likewise.
78257         * modules/getugroups (Makefile.am): Likewise.
78258         * modules/getusershell (Makefile.am): Likewise.
78259         * modules/glob (Makefile.am): Likewise.
78260         * modules/group-member (Makefile.am): Likewise.
78261         * modules/hard-locale (Makefile.am): Likewise.
78262         * modules/hash (Makefile.am): Likewise.
78263         * modules/hmac-md5 (Makefile.am): Likewise.
78264         * modules/hmac-sha1 (Makefile.am): Likewise.
78265         * modules/human (Makefile.am): Likewise.
78266         * modules/idcache (Makefile.am): Likewise.
78267         * modules/imaxabs (Makefile.am): Likewise.
78268         * modules/imaxdiv (Makefile.am): Likewise.
78269         * modules/inet_ntop (Makefile.am): Likewise.
78270         * modules/inet_pton (Makefile.am): Likewise.
78271         * modules/inttostr (Makefile.am): Likewise.
78272         * modules/isapipe (Makefile.am): Likewise.
78273         * modules/lchown (Makefile.am): Likewise.
78274         * modules/long-options (Makefile.am): Likewise.
78275         * modules/lstat (Makefile.am): Likewise.
78276         * modules/malloc (Makefile.am): Likewise.
78277         * modules/mathl (Makefile.am): Likewise.
78278         * modules/mbchar (Makefile.am): Likewise.
78279         * modules/md2 (Makefile.am): Likewise.
78280         * modules/md4 (Makefile.am): Likewise.
78281         * modules/md5 (Makefile.am): Likewise.
78282         * modules/memcasecmp (Makefile.am): Likewise.
78283         * modules/memchr (Makefile.am): Likewise.
78284         * modules/memcmp (Makefile.am): Likewise.
78285         * modules/memcoll (Makefile.am): Likewise.
78286         * modules/memcpy (Makefile.am): Likewise.
78287         * modules/memmem (Makefile.am): Likewise.
78288         * modules/memmove (Makefile.am): Likewise.
78289         * modules/mempcpy (Makefile.am): Likewise.
78290         * modules/memrchr (Makefile.am): Likewise.
78291         * modules/memset (Makefile.am): Likewise.
78292         * modules/memxor (Makefile.am): Likewise.
78293         * modules/mkancesdirs (Makefile.am): Likewise.
78294         * modules/mkdir (Makefile.am): Likewise.
78295         * modules/mkdir-p (Makefile.am): Likewise.
78296         * modules/mkdtemp (Makefile.am): Likewise.
78297         * modules/mkstemp (Makefile.am): Likewise.
78298         * modules/mktime (Makefile.am): Likewise.
78299         * modules/modechange (Makefile.am): Likewise.
78300         * modules/mountlist (Makefile.am): Likewise.
78301         * modules/nanosleep (Makefile.am): Likewise.
78302         * modules/openat (Makefile.am): Likewise.
78303         * modules/pagealign_alloc (Makefile.am): Likewise.
78304         * modules/physmem (Makefile.am): Likewise.
78305         * modules/poll (Makefile.am): Likewise.
78306         * modules/posixtm (Makefile.am): Likewise.
78307         * modules/posixver (Makefile.am): Likewise.
78308         * modules/putenv (Makefile.am): Likewise.
78309         * modules/quote (Makefile.am): Likewise.
78310         * modules/quotearg (Makefile.am): Likewise.
78311         * modules/raise (Makefile.am): Likewise.
78312         * modules/read-file (Makefile.am): Likewise.
78313         * modules/readline (Makefile.am): Likewise.
78314         * modules/readlink (Makefile.am): Likewise.
78315         * modules/readtokens (Makefile.am): Likewise.
78316         * modules/readutmp (Makefile.am): Likewise.
78317         * modules/realloc (Makefile.am): Likewise.
78318         * modules/regex (Makefile.am): Likewise.
78319         * modules/rename (Makefile.am): Likewise.
78320         * modules/rename-dest-slash (Makefile.am): Likewise.
78321         * modules/rijndael (Makefile.am): Likewise.
78322         * modules/rmdir (Makefile.am): Likewise.
78323         * modules/rpmatch (Makefile.am): Likewise.
78324         * modules/safe-read (Makefile.am): Likewise.
78325         * modules/safe-write (Makefile.am): Likewise.
78326         * modules/same (Makefile.am): Likewise.
78327         * modules/save-cwd (Makefile.am): Likewise.
78328         * modules/savedir (Makefile.am): Likewise.
78329         * modules/setenv (Makefile.am): Likewise.
78330         * modules/settime (Makefile.am): Likewise.
78331         * modules/sha1 (Makefile.am): Likewise.
78332         * modules/sig2str (Makefile.am): Likewise.
78333         * modules/snprintf (Makefile.am): Likewise.
78334         * modules/stdlib-safer (Makefile.am): Likewise.
78335         * modules/stpcpy (Makefile.am): Likewise.
78336         * modules/stpncpy (Makefile.am): Likewise.
78337         * modules/strcase (Makefile.am): Likewise.
78338         * modules/strcasestr (Makefile.am): Likewise.
78339         * modules/strchrnul (Makefile.am): Likewise.
78340         * modules/strcspn (Makefile.am): Likewise.
78341         * modules/strdup (Makefile.am): Likewise.
78342         * modules/strerror (Makefile.am): Likewise.
78343         * modules/strftime (Makefile.am): Likewise.
78344         * modules/strndup (Makefile.am): Likewise.
78345         * modules/strnlen (Makefile.am): Likewise.
78346         * modules/strpbrk (Makefile.am): Likewise.
78347         * modules/strsep (Makefile.am): Likewise.
78348         * modules/strstr (Makefile.am): Likewise.
78349         * modules/strtod (Makefile.am): Likewise.
78350         * modules/strtoimax (Makefile.am): Likewise.
78351         * modules/strtok_r (Makefile.am): Likewise.
78352         * modules/strtol (Makefile.am): Likewise.
78353         * modules/strtoll (Makefile.am): Likewise.
78354         * modules/strtoul (Makefile.am): Likewise.
78355         * modules/strtoull (Makefile.am): Likewise.
78356         * modules/strtoumax (Makefile.am): Likewise.
78357         * modules/strverscmp (Makefile.am): Likewise.
78358         * modules/time_r (Makefile.am): Likewise.
78359         * modules/timegm (Makefile.am): Likewise.
78360         * modules/tmpfile-safer (Makefile.am): Likewise.
78361         * modules/unistd-safer (Makefile.am): Likewise.
78362         * modules/unlinkdir (Makefile.am): Likewise.
78363         * modules/userspec (Makefile.am): Likewise.
78364         * modules/utime (Makefile.am): Likewise.
78365         * modules/utimecmp (Makefile.am): Likewise.
78366         * modules/utimens (Makefile.am): Likewise.
78367         * modules/vasnprintf (Makefile.am): Likewise.
78368         * modules/vasprintf (Makefile.am): Likewise.
78369         * modules/vsnprintf (Makefile.am): Likewise.
78370         * modules/xalloc (Makefile.am): Likewise.
78371         * modules/xgetcwd (Makefile.am): Likewise.
78372         * modules/xnanosleep (Makefile.am): Likewise.
78373         * modules/xreadlink (Makefile.am): Likewise.
78374         * modules/xstrtod (Makefile.am): Likewise.
78375         * modules/xstrtol (Makefile.am): Likewise.
78376         * modules/xstrtold (Makefile.am): Likewise.
78377         * modules/yesno (Makefile.am): Likewise.
78378
78379 2006-10-12  Jim Meyering  <jim@meyering.net>
78380
78381         * m4/getloadavg.m4: Revert the change below.
78382
78383         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78384         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78385         fail with a symlink, which is what coreutils' ./bootstrap now
78386         creates by default.
78387
78388 2006-10-12  Bruno Haible  <bruno@clisp.org>
78389
78390         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78391         mingw.
78392         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78393         MSVC and mingw explicitly.
78394
78395 2006-10-11  Simon Josefsson  <jas@extundo.com>
78396             Bruno Haible  <bruno@clisp.org>
78397
78398         Add support for multiple gnulib-tool invocations in the scope of a
78399         single configure.ac file.
78400         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78401         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78402         with the same contents as the _LIBADD variable.
78403         (func_emit_initmacro_start, func_emit_initmacro_end,
78404         func_emit_initmacro_done): New functions.
78405         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78406         gl_LIBOBJS and gl_LTLIBOBJS.
78407
78408 2006-10-11  Bruno Haible  <bruno@clisp.org>
78409
78410         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78411         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78412         autoreconf. Instead, invoke autopoint explicitly but move back the
78413         *.m4 files from gnulib.
78414
78415 2006-10-11  Bruno Haible  <bruno@clisp.org>
78416
78417         * gnulib-tool (func_usage): Make module names after --create-testdir
78418         optional.
78419         (func_create_testdir): If no module was specified, use nearly all
78420         modules.
78421
78422 2006-10-12  Jim Meyering  <jim@meyering.net>
78423
78424         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78425         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78426         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78427         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78428         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78429         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78430         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78431         (fts_set_stat_required): New function.
78432         (fts_open): Defer the calls to fts_stat, if possible or requested.
78433         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78434         into fts_stat itself.
78435         (fts_read): Perform any required (deferred) fts_stat call.
78436         (fts_build): Likewise, for the directory we're about to open and read.
78437         In the readdir loop, carefully decide whether each entry will require
78438         an eventual call to fts_stat, using dirent.d_type info if available.
78439         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78440         a command line argument into this function.  Update all callers.
78441         Map a return value of FTS_DOT to FTS_D for a command line argument.
78442         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78443         Thanks to Miklos Szeredi for his tenacity and for the initial
78444         bug report about "find" failing on a FUSE-based file system.
78445
78446         * lib/fts.c (fts_open): Use consistent indentation.
78447
78448 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78451         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78452         reported by Jim Meyering.  All uses of cache variables renamed
78453         to match Autoconf's.
78454         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78455         the other one.
78456
78457         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78458         Fix misspelling in diagnostic.
78459
78460 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78461
78462         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78463         defined.  Problem reported by Matthew Woehlke.
78464
78465         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78466         Add support for Tandem NonStop R series.
78467         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78468         Use new macro.
78469
78470         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78471         (has_trailing_slash): Omit size arg; all callers changed.
78472         Omit 'inline', since it doesn't help performance and we'd
78473         need to configure it.
78474         Don't count //, ///, etc. as having a trailing slash.
78475         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78476         (rpl_rename_dest_slash): On failure, use rename's errno rather
78477         than (in some cases) an incorrect or junk errno.
78478         Simplify code by removing need to compute length; this does
78479         cause it to make two passes instead of one over the file name,
78480         but it's worth it.
78481
78482         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78483         change, since Autoconf's version may no longer be appropriate now
78484         that we are using CVS Autoconf's version.  Add support for Tandem.
78485
78486 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78487             Bruno Haible  <bruno@clisp.org>
78488
78489         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78490         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78491         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78492         gl_AC_TYPE_LONG_LONG.
78493
78494         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78495         instead of HAVE_LONG_LONG.
78496         * lib/printf-args.c (printf_fetchargs): Likewise.
78497         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78498         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78499         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78500         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78501         gl_AC_TYPE_LONG_LONG.
78502
78503 2006-10-11  Bruno Haible  <bruno@clisp.org>
78504
78505         * m4/longlong.m4: Add comments.
78506         * m4/ulonglong.m4: Likewise.
78507
78508 2006-10-10  Bruno Haible  <bruno@clisp.org>
78509
78510         Make it possible to #define stpcpy, strdup to aliases.
78511         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78512         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78513
78514 2006-10-10  Bruno Haible  <bruno@clisp.org>
78515
78516         Make it possible to #define gcd to an alias.
78517         * lib/gcd.c: Include config.h.
78518
78519 2006-10-10  Bruno Haible  <bruno@clisp.org>
78520
78521         Make it possible to #define c_isascii to an alias.
78522         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78523         defined. Undefine the macros before defining them, to avoid gcc
78524         warnings.
78525         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78526         define NO_C_CTYPE_MACROS early.
78527
78528 2006-10-10  Bruno Haible  <bruno@clisp.org>
78529
78530         Make it possible to #define set_program_name to an alias.
78531         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78532         ENABLE_RELOCATABLE early.
78533
78534 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78537         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78538         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78539         More generally, don't assume that 64-bit signed int is available
78540         if unsigned int is, and vice versa.
78541         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78542         unsigned symbols, not on their signed counterparts.
78543         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78544         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78545         (UINT64_C, UINTMAX_C):
78546         Likewise.
78547         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78548         unsigned counterparts.
78549         (Have_long_long, Unsigned): New macros.
78550         (Int): Renamed from INT.
78551         (strtoimax): Use the new macros.
78552         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78553         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78554         * modules/inttypes (inttypes.h): Substitute
78555         HAVE_UNSIGNED_LONG_LONG_INT.
78556         * modules/stdint (stdint.h): Likewise.
78557         (Files): Add m4/ulonglong.m4.
78558
78559 2006-10-10  Bruno Haible  <bruno@clisp.org>
78560
78561         Fix a gcc -Wshadow warning.
78562         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78563         to 'bucket'.
78564         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78565         gl_linked_indexof_from_to): Likewise.
78566         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78567         Likewise.
78568         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78569         Likewise.
78570         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78571         Reported by Eric Blake.
78572
78573 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78576         for NetBSD.  Problem reported by Bruno Haible.
78577
78578 2006-10-09  Jim Meyering  <jim@meyering.net>
78579
78580         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78581         Patch from Bruno Haible.
78582
78583 2006-10-09  Jim Meyering  <jim@meyering.net>
78584
78585         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78586         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78587         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78588
78589 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78590
78591         Don't include <config.h> twice; this doesn't work in some cases,
78592         e.g., when config.h has "#define intmax_t long long int" and
78593         we include <config.h>, <inttypes.h>, <config.h> in that order.
78594         Problem reported by Matthew Woehlke in:
78595         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78596         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78597         * lib/fts-cycle.c: Don't include config.h.
78598         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78599         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78600         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78601         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78602         inttypes.h.
78603         * lib/xstrtoumax.c: Likewise.
78604         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78605         __strtol and the like, so that this module is more like its siblings.
78606         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78607         Remove; no longer needed now that we assume gnulib inttypes.h.
78608
78609 2006-10-08  Bruno Haible  <bruno@clisp.org>
78610
78611         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78612         option.
78613
78614 2006-10-07  Jim Meyering  <jim@meyering.net>
78615
78616         * modules/inttypes (inttypes.h): Revert what seems to have been
78617         an inadvertent part of today's change: use "|", not "/" in the
78618         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78619
78620 2006-10-07  Bruno Haible  <bruno@clisp.org>
78621
78622         * modules/sublist: New file.
78623
78624 2006-10-07  Bruno Haible  <bruno@clisp.org>
78625
78626         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78627         * modules/argz (argz.h): Likewise.
78628         * modules/arpa_inet (arpa/inet.h): Likewise.
78629         * modules/byteswap (byteswap.h): Likewise.
78630         * modules/configmake (configmake.h): Likewise.
78631         * modules/fcntl (fcntl.h): Likewise.
78632         * modules/fnmatch (fnmatch.h): Likewise.
78633         * modules/getopt (getopt.h): Likewise.
78634         * modules/glob (glob.h): Likewise.
78635         * modules/inttypes (inttypes.h): Likewise.
78636         * modules/netinet_in (netinet/in.h): Likewise.
78637         * modules/poll (poll.h): Likewise.
78638         * modules/stdbool (stdbool.h): Likewise.
78639         * modules/stdint (stdint.h): Likewise.
78640         * modules/sys_select (sys/select.h): Likewise.
78641         * modules/sys_socket (sys/socket.h): Likewise.
78642         * modules/sys_stat (sys/stat.h): Likewise.
78643         * modules/sysexits (sysexits.h): Likewise.
78644         * modules/unistd (unistd.h): Likewise.
78645         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78646         Add a "DO NOT EDIT" comment to the generated file.
78647         (func_import): Likewise for gnulib-comp.m4.
78648
78649 2006-10-07  Bruno Haible  <bruno@clisp.org>
78650
78651         * lib/gl_sublist.h: New file.
78652         * lib/gl_sublist.c: New file.
78653
78654 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78657         name (relative to the original working directory) and the file
78658         name component (relative to the temporary working directory).  All
78659         callers changed.
78660         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78661         * lib/mkdir-p.c (make_dir_parents): Likewise.
78662         * lib/mkdir-p.h (make_dir_parents): Likewise.
78663
78664 2006-10-06  Eric Blake  <ebb9@byu.net>
78665
78666         Define several macros for use by the clean-temp module.
78667         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78668         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78669         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78670
78671         * lib/clean-temp.h (close_stream_temp): New declaration.
78672         * lib/clean-temp.c (includes): Pull in headers according to what
78673         other modules are in use.
78674         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78675
78676 2006-10-06  Bruno Haible  <bruno@clisp.org>
78677
78678         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78679         instead of fopen, fwriteerror.
78680
78681 2006-10-06  Bruno Haible  <bruno@clisp.org>
78682
78683         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78684         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78685         int.
78686         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78687         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78688         Return an error indicator.
78689         Suggested by Eric Blake.
78690
78691 2006-10-06  Bruno Haible  <bruno@clisp.org>
78692
78693         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78694         Reported by Eric Blake.
78695
78696 2006-10-06  Bruno Haible  <bruno@clisp.org>
78697
78698         * modules/closeout (Description): Mention stderr too.
78699
78700 2006-10-06  Bruno Haible  <bruno@clisp.org>
78701         and Paul Eggert  <eggert@cs.ucla.edu>
78702
78703         * lib/closeout.c (close_stdout): Also close stderr.
78704         * lib/closeout.h: Update comment.
78705
78706 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78707
78708         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78709         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78710         * lib/dirchownmod.c: Include lchown.h.
78711         * lib/lchown.c: Don't include files that lchown.h now includes.
78712         Don't declare chown, since lchown.h now does that.
78713         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78714         (lchown): Define to rpl_chown if lchown is declared but
78715         does not exist.  Declare using a prototype if lchown is not
78716         declared.  Add a copyright notice.
78717         * lib/mkstemp.h: Include <unistd.h>.
78718         * lib/openat.c: Include lchown.h.
78719
78720         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78721         we now test for that separately.
78722         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78723         rather than O_NOFOLLOW, when testing whether it's possible to
78724         avoid a race condition reliably.
78725         * lib/savewd.c (savewd_chdir): Likewise.
78726
78727         Remove macros that are no longer needed now that stdint.h is
78728         reliable.
78729         * lib/fsusage.c (UINTMAX_MAX): Remove.
78730         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78731         * lib/utimecmp.c (SIZE_MAX): Remove.
78732
78733         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78734
78735         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78736         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78737         O_NOATIME works.
78738
78739 2006-10-05  Bruno Haible  <bruno@clisp.org>
78740
78741         * lib/gl_list.h (gl_sortedlist_search_from_to,
78742         gl_sortedlist_indexof_from_to): New declarations.
78743         (gl_list_implementation): New fields sortedlist_search_from_to,
78744         sortedlist_indexof_from_to.
78745         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78746         inline functions.
78747         * lib/gl_list.c (gl_sortedlist_search_from_to,
78748         gl_sortedlist_indexof_from_to): New functions.
78749         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78750         function.
78751         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78752         (gl_array_sortedlist_search_from_to): New function.
78753         (gl_array_list_implementation): Update.
78754         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78755         function.
78756         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78757         (gl_carray_sortedlist_search_from_to): New function.
78758         (gl_carray_list_implementation): Update.
78759         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78760         gl_linked_sortedlist_indexof_from_to): New functions.
78761         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78762         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78763         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78764         gl_tree_sortedlist_indexof_from_to): New functions.
78765         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78766         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78767         Update.
78768         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78769         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78770         Update.
78771
78772 2006-10-05  Bruno Haible  <bruno@clisp.org>
78773
78774         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78775         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78776         (struct gl_list_implementation): Add fields search_from_to,
78777         indexof_from_to. Remove fields search, indexof.
78778         (gl_list_search): Use the search_from_to method.
78779         (gl_list_search_from, gl_list_search_from_to): New functions.
78780         (gl_list_indexof): Use the indexof_from_to method.
78781         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78782         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78783         (gl_list_search_from, gl_list_search_from_to): New functions.
78784         (gl_list_indexof): Use the indexof_from_to method.
78785         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78786         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78787         gl_array_indexof. Add start_index, end_index arguments.
78788         (gl_array_search_from_to): Renamed from gl_array_search. Add
78789         start_index, end_index arguments.
78790         (gl_array_remove, gl_array_list_implementation): Update.
78791         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78792         gl_carray_indexof. Add start_index, end_index arguments.
78793         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78794         start_index, end_index arguments.
78795         (gl_carray_remove, gl_carray_list_implementation): Update.
78796         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78797         gl_linked_search. Add start_index, end_index arguments.
78798         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78799         start_index, end_index arguments.
78800         (gl_linked_remove): Update.
78801         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78802         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78803         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78804         field to 'size_t'.
78805         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78806         gl_tree_search. Add start_index, end_index arguments.
78807         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78808         start_index, end_index arguments.
78809         (gl_tree_remove): Update.
78810         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78811         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78812         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78813         function.
78814         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78815         gl_tree_search. Add start_index, end_index arguments.
78816         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78817         start_index, end_index arguments.
78818         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78819         Update.
78820         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78821
78822 2006-10-05  Bruno Haible  <bruno@clisp.org>
78823
78824         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78825
78826         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78827         fwriteerror_temp): New declarations.
78828         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78829         (descriptors): New variable.
78830         (cleanup): First, close the descriptors.
78831         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78832         fclose_temp, fwriteerror_temp): New functions.
78833
78834 2006-10-04  Jim Meyering  <jim@meyering.net>
78835
78836         * lib/fts.c (fts_open): Tiny comment change.
78837
78838 2006-10-04  Bruno Haible  <bruno@clisp.org>
78839
78840         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78841         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78842         gl_LOCK_BODY.
78843         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78844         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78845         gl_LOCK_EARLY_BODY.
78846         (gl_LOCK): Require gl_LOCK_BODY.
78847
78848 2006-10-04  Bruno Haible  <bruno@clisp.org>
78849
78850         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78851         (gl_oset_search_atleast): New declaration.
78852         (struct gl_oset_implementation): Add field 'search_atleast'.
78853         (gl_oset_search_atleast): New inline function.
78854         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78855         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78856         (gl_array_oset_implementation): Update.
78857         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78858         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78859         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78860
78861 2006-10-04  Bruno Haible  <bruno@clisp.org>
78862
78863         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78864
78865 2006-10-03  Bruno Haible  <bruno@clisp.org>
78866
78867         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78868         from gl_avltreehash_list_implementation.
78869
78870 2006-10-03  Bruno Haible  <bruno@clisp.org>
78871
78872         * lib/gl_oset.c (gl_oset_add): Fix return type.
78873
78874 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78875
78876         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78877
78878 2006-10-02  Eric Blake  <ebb9@byu.net>
78879
78880         * modules/strnlen (Depends-on): Add extensions.
78881
78882 2006-10-02  Eric Blake  <ebb9@byu.net>
78883
78884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78885         definition in 2.60+.
78886
78887 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78888
78889         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78890         checks.
78891
78892 2006-10-02  Bruno Haible  <bruno@clisp.org>
78893
78894         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78895         to the AUTOMAKE_OPTIONS.
78896         Reported by Jim Meyering.
78897
78898 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78899
78900         Work around bug in Solaris 10 /proc file system:
78901         /proc/self/fd/NNN/.. isn't the parent directory of
78902         the directory whose file descriptor is NNN.  This needs to
78903         be worked around at run time, not compile time, since a
78904         program might be built on Solaris 8, where things work, and
78905         run on Solaris 10.
78906         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78907         to use the following interface instead:
78908         (OPENAT_BUFFER_SIZE): New macro.
78909         (openat_proc_name): New function.
78910         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78911         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78912         Likewise.
78913         * lib/openat-proc.c: New file.
78914         * modules/openat (Files): Add lib/openat-proc.c.
78915         (Depends-on): Add same-inode, stdbool.
78916         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78917
78918 2006-09-29  Bruno Haible  <bruno@clisp.org>
78919
78920         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78921         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78922         argument. Set stdout_closed before testing for ferror, not after.
78923         (fwriteerror, fwriteerror_no_ebadf): New functions.
78924
78925 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78926
78927         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78928
78929 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78930
78931         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78932         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78933
78934 2006-09-28  Jim Meyering  <jim@meyering.net>
78935
78936         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78937         Include <unistd.h>.
78938
78939 2006-09-28  Bruno Haible  <bruno@clisp.org>
78940
78941         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78942         * modules/linkedhash-list (Depends-on): Likewise.
78943         * modules/rbtreehash-list (Depends-on): Likewise.
78944
78945 2006-09-28  Bruno Haible  <bruno@clisp.org>
78946
78947         * lib/strndup.h: Simplify the redefinition of strndup.
78948         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78949         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78950
78951 2006-09-28  Bruno Haible  <bruno@clisp.org>
78952
78953         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78954         * lib/gl_linkedhash_list.c: Likewise.
78955         * lib/gl_rbtreehash_list.c: Likewise.
78956
78957 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78958
78959         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78960         getaddrinfo.
78961
78962         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78963         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78964         it causes <stdio_ext.h> to cause a compile-time error.
78965         Problem reported by Nelson H. F. Beebe.
78966         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78967         of HAVE_DECL___PENDING.
78968
78969         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78970         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78971         declaration.
78972
78973 2006-09-27  Jim Meyering  <jim@meyering.net>
78974
78975         This file could end up with a definition for a function
78976         named __strndup, rather than rpl_strndup on a system with
78977         incomplete weak_alias support.
78978         * lib/strndup.c (strndup): Rename from __strndup.
78979         Remove #defines that used to map __strndup to strndup.
78980         Don't use K&R prototypes.
78981         Remove LIBC-related code, since this file is not sync'd with glibc.
78982         * lib/strndup.h: Revamp, accordingly.
78983         * m4/strndup.m4: Modernize.
78984
78985 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78986
78987         * modules/savewd (Depends-on): Add 'raise'.
78988         * lib/savewd.c: Include <signal.h>, for 'raise'.
78989
78990 2006-09-26  Jim Meyering  <jim@meyering.net>
78991
78992         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78993         when we detect Darwin 8.7.0's acl_get_file bug.
78994         Rearrange to perform the new (below) run-test while $LIBS
78995         contains any acl-related library.  Set USE_ACL at the end.
78996         (gl_ACL_GET_FILE): New function.
78997
78998 2006-09-26  Eric Blake  <ebb9@byu.net>
78999
79000         * lib/verror.c: Include <config.h> unconditionally.
79001
79002 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
79003
79004         * modules/clock-time (Maintainer): Add self.
79005         * modules/getlogin_r (Depends-on): Add extensions.
79006
79007 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79008
79009         * modules/clock-time: New module.
79010         * modules/nanosleep (Depends-on): Add clock-time.
79011         * modules/gethrxtime (Depends-on): Likewise.
79012         * modules/gettime (Depends-on): Likewise.
79013         * modules/settime (Depends-on): Likewise.
79014
79015         * modules/fts-lgpl: Depend on openat.
79016         * modules/mkancesdirs: Depend on savewd.
79017         * modules/mkdir-p: Likewise.
79018
79019 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79020
79021         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
79022
79023         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
79024         `gl_have_arbitrary_file_name_length_limit' to
79025         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
79026         actually works between configure runs.
79027
79028 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79029             Bruno Haible  <bruno@clisp.org>
79030
79031         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
79032
79033 2006-09-25  Jim Meyering  <jim@meyering.net>
79034
79035         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
79036         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
79037
79038 2006-09-25  Eric Blake  <ebb9@byu.net>
79039
79040         * gnulib-tool (func_import, func_create_testdir): Fix typos in
79041         exec's in 2006-09-18 patch when shuffling fds.
79042
79043 2006-09-25  Bruno Haible  <bruno@clisp.org>
79044
79045         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
79046         Reported by Jim Meyering.
79047
79048 2006-09-24  Jim Meyering  <jim@meyering.net>
79049
79050         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
79051         compare a pointer against a literal "0".  That caused failures with
79052         at least HP-UX's hpcc.
79053
79054 2006-09-22  Simon Josefsson  <jas@extundo.com>
79055
79056         * modules/gc-sha1:
79057         * modules/gc-md4:
79058         * modules/gc-hmac-sha1:
79059         * modules/gc-hmac-md5:
79060         * modules/gc-des:
79061         * modules/gc-arcfour: Distribute more files.
79062
79063 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79064
79065         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
79066         (gl_linked_iterator_from_to): Initialize struct completely.
79067         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
79068         (gl_tree_iterator_from_to): Likewise
79069         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
79070         * lib/gl_array_list.c [lint] (gl_array_iterator)
79071         (gl_array_iterator_from_to): Likewise.
79072         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
79073         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
79074         (gl_carray_iterator_from_to): Likewise.
79075
79076         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
79077         * lib/md4.c (md4_process_block): Remove unused variable.
79078         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
79079         parentheses for clarity.
79080
79081 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79082
79083         * modules/bison-i18n (Depends-on): Add gettext.
79084
79085 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79086
79087         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
79088         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79089         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
79090         also add missing comma that caused broken test.
79091         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
79092         stdlib.h, for `abort'.
79093         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
79094         variables.
79095         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
79096         include unistd.h if present, for `rmdir'.
79097         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
79098         variables.
79099         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
79100         in the process include standard headers for prototypes.
79101         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
79102         gets declared on GNU/Linux.
79103         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
79104         unistd.h, for `rmdir'.
79105         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
79106
79107         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
79108         always true.
79109         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
79110
79111         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
79112
79113 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79114
79115         * gnulib-tool (func_version): Create output all at once.  This
79116         may help avoid triggering unnecessary SIGPIPEs, and at any
79117         rate it doesn't hurt.
79118
79119 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79120             Bruno Haible  <bruno@clisp.org>
79121
79122         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
79123         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
79124         * m4/signed.m4 (bh_C_SIGNED): Likewise.
79125
79126         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
79127         (gl_FUNC_VASPRINTF): Invoke it.
79128
79129 2006-09-22  Bruno Haible  <bruno@clisp.org>
79130
79131         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
79132         getloadavg.c as first argument.
79133
79134 2006-09-22  Bruno Haible  <bruno@clisp.org>
79135
79136         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
79137         at the beginning of the gl_INIT macro.
79138         * modules/getloadavg (configure.ac): Pass $gl_source_base to
79139         gl_GETLOADAVG.
79140
79141 2006-09-22  Bruno Haible  <bruno@clisp.org>
79142
79143         * gnulib-tool (func_create_megatestdir): Don't include the config-h
79144         module.
79145         Suggested by Ralf Wildenhues.
79146
79147 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79148
79149         Import this patch from libc:
79150
79151         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
79152
79153         * lib/regex_internal.c (re_string_reconstruct): Handle
79154         offset < pstr->valid_raw_len && pstr->offsets_needed case.
79155         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
79156         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
79157         re_string_context_at.
79158
79159         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
79160         now requires it.
79161         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
79162         gl_REGEX now does it for us.
79163         (gl_REGEX): Add test taken from
79164         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
79165
79166         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
79167         Check that large offsets work.  Modernize Autoconf usages.
79168         Prefer "yes" to mean a good thing rather than a bad.
79169         Don't put "#define mkstemp" in config.h, as this might interfere
79170         with standard system headers that "#define mkstemp mkstemp64".
79171
79172         * modules/mkstemp (Depends-on): Add extensions, so that
79173         mkstemp is visible on some platforms.
79174         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
79175         (Include): Change to "mkstemp.h" from <stdlib.h>.
79176         (Files): Add mkstemp.h.
79177
79178         * lib/mkstemp.h: New file, since some standard headers
79179         #define mkstemp.
79180         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
79181         Include "mkstemp.h".
79182         Make the _LIBC code resemble glibc original more,
79183         e.g., use K&R style.
79184         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
79185         (mkstemp): Remove, since mkstemp.h does this for us.
79186         * lib/stdlib--.h: Include mkstemp.h.
79187
79188         Import this patch from libc:
79189
79190         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79191
79192         * lib/tempname.c (__gen_tempname): Change attempts_min
79193         into a macro.  Use preprocessor to decide how to initialize
79194         attempts [Coverity CID 67].
79195
79196 2006-09-20  Bruno Haible  <bruno@clisp.org>
79197
79198         * lib/mkdtemp.c: Import from libc.
79199         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79200                 * sysdeps/posix/tempname.c (__gen_tempname): Change
79201                 attempts_min into a macro.  Use preprocessor to decide how to
79202                 initialize attempts [Coverity CID 67].
79203         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79204                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79205                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79206
79207 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79208
79209         * gnulib-tool (func_exit): New function, to allow to pass the
79210         exit status portably through the trap.  Use everywhere.
79211         (--help, --version): Signal a write error.
79212         (trap): catch SIGPIPE, for write errors.
79213         Exit at the end of the trap, with the correct exit status.
79214
79215 2006-09-19  Karl Berry  <karl@gnu.org>
79216
79217         * doc/gnulib.texi: note about the license texinfo files.
79218
79219 2006-09-19  Eric Blake  <ebb9@byu.net>
79220
79221         * gnulib-tool: Avoid space-tab.
79222
79223 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79224
79225         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79226         that prevented coreutils 6.1 from building.  Problem reported
79227         by Petter Reinholdtsen.
79228
79229 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * gnulib-tool (avoidlist): Fix typo that broke options like
79232         --avoid=lock that are used by coreutils bootstrap.
79233
79234 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79235
79236         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79237         more systematically.
79238
79239 2006-09-18  Jim Meyering  <jim@meyering.net>
79240
79241         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79242
79243 2006-09-18  Bruno Haible  <bruno@clisp.org>
79244
79245         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79246
79247 2006-09-18  Bruno Haible  <bruno@clisp.org>
79248
79249         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79250         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79251         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79252         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79253         * m4/gettext.m4: Require autoconf >= 2.52.
79254         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79255         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79256         of gl_cv_header_inttypes_h.
79257
79258 2006-09-18  Bruno Haible  <bruno@clisp.org>
79259
79260         * lib/javaversion.c: Include configmake.h.
79261
79262 2006-09-18  Bruno Haible  <bruno@clisp.org>
79263
79264         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79265         avoid that the while loops be executed in a subshell.
79266
79267 2006-09-18  Bruno Haible  <bruno@clisp.org>
79268
79269         * MODULES.html.sh (func_module): Break long lines.
79270         Suggested by Bruce Korb <bkorb@gnu.org>.
79271
79272 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79273
79274         Speed up by a factor of 1.12.
79275         * gnulib-tool (nl): New variable.
79276         (func_import): Rewrite include directive extraction to only read each
79277         directive once.
79278
79279 2006-09-17  Bruno Haible  <bruno@clisp.org>
79280
79281         * modules/javaversion (Makefile.am): Remove DEFS setting.
79282         (Depends-on): Add configmake, for PKGDATADIR definition.
79283
79284 2006-09-17  Bruno Haible  <bruno@clisp.org>
79285
79286         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79287
79288 2006-09-17  Bruno Haible  <bruno@clisp.org>
79289
79290         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79291         (func_modules_transitive_closure, func_modules_add_dummy,
79292         func_modules_to_filelist, func_import, func_create_testdir,
79293         func_create_megatestdir, ...): Use it wherever possible.
79294         Suggested by Ralf Wildenhues.
79295
79296 2006-09-16  Karl Berry  <karl@gnu.org>
79297
79298         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79299         to avoid sectioning errors.
79300         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79301         [ifinfo]: blank line after @center-ed titles.
79302         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79303         Spell FSF address consistently with others.
79304         (These changes approved by rms.)
79305
79306 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79307
79308         Speed up by a factor of 1.61.
79309         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79310         already checked module names again.
79311
79312 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79313
79314         Speed up by a factor of 1.13.
79315         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79316         for new_files, and the input to func_add_or_update.
79317
79318 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79319
79320         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79321         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79322
79323 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         * modules/mkancesdirs (Depends-on): Add fcntl.
79326         * modules/savewd: New file.
79327         * MODULES.html.sh (File system functions): Add savewd.
79328
79329         * modules/configmake (Makefile.am): Add support for the
79330         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79331
79332 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79333
79334         * m4/savewd.m4: New file.
79335
79336 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79339         (dirchownmod): New arg FD.  All callers changed.
79340         Use FD rather than opening the directory ourself, as opening is
79341         now the caller's responsibility.
79342         * lib/dirchownmod.h: Likewise.
79343         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79344         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79345         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79346         (test_dir): Remove.
79347         (mkancesdirs): Return length of prefix of FILE that has already
79348         been made, or -2 if there is a child doing the work.  Redo
79349         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79350         ".", and treat ".." specially since it might stray back into
79351         already-created areas.  Use a subprocess if necessary.  New arg
79352         WD; all users changed.  MAKE_DIR function should now return 1
79353         if it creates a directory that is not readable.  Return -2 if
79354         a child process is spun off.
79355         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79356         Adjust signature to match code.
79357         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79358         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79359         all users changed.
79360         * lib/savewd.c, lib/savewd.h: New files.
79361
79362 2006-09-15  Jim Meyering  <jim@meyering.net>
79363
79364         * modules/rename-dest-slash: New module.
79365         * MODULES.html.sh (posix_compat): Add it here.
79366
79367         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79368
79369 2006-09-15  Jim Meyering  <jim@meyering.net>
79370
79371         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79372         file.
79373
79374         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79375
79376 2006-09-15  Jim Meyering  <jim@meyering.net>
79377
79378         * lib/rename-dest-slash.c (has_trailing_slash): Use
79379         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79380         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79381         test before testing whether SRC is a directory.
79382         Suggestions from Bruno Haible.
79383
79384         Avoid a warning about an unused variable.
79385         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79386         into the #ifdef block where it's used.
79387
79388         * lib/rename-dest-slash.c: New file.
79389
79390 2006-09-14  Bruno Haible  <bruno@clisp.org>
79391
79392         * lib/allocsa.c: Include <config.h> unconditionally.
79393         * lib/asnprintf.c: Likewise.
79394         * lib/asprintf.c: Likewise.
79395         * lib/c-strcasecmp.c: Likewise.
79396         * lib/c-strcasestr.c: Likewise.
79397         * lib/c-strncasecmp.c: Likewise.
79398         * lib/c-strstr.c: Likewise.
79399         * lib/classpath.c: Likewise.
79400         * lib/clean-temp.c: Likewise.
79401         * lib/concatpath.c: Likewise.
79402         * lib/copy-file.c: Likewise.
79403         * lib/csharpcomp.c: Likewise.
79404         * lib/csharpexec.c: Likewise.
79405         * lib/execute.c: Likewise.
79406         * lib/fatal-signal.c: Likewise.
79407         * lib/findprog.c: Likewise.
79408         * lib/fwriteerror.c: Likewise.
79409         * lib/gl_array_list.c: Likewise.
79410         * lib/gl_array_oset.c: Likewise.
79411         * lib/gl_avltree_list.c: Likewise.
79412         * lib/gl_avltree_oset.c: Likewise.
79413         * lib/gl_avltreehash_list.c: Likewise.
79414         * lib/gl_carray_list.c: Likewise.
79415         * lib/gl_linked_list.c: Likewise.
79416         * lib/gl_linkedhash_list.c: Likewise.
79417         * lib/gl_list.c: Likewise.
79418         * lib/gl_oset.c: Likewise.
79419         * lib/gl_rbtree_list.c: Likewise.
79420         * lib/gl_rbtree_oset.c: Likewise.
79421         * lib/gl_rbtreehash_list.c: Likewise.
79422         * lib/imaxabs.c: Likewise.
79423         * lib/imaxdiv.c: Likewise.
79424         * lib/javacomp.c: Likewise.
79425         * lib/javaexec.c: Likewise.
79426         * lib/javaversion.c: Likewise.
79427         * lib/linebreak.c: Likewise.
79428         * lib/localcharset.c: Likewise.
79429         * lib/lock.c: Likewise.
79430         * lib/mbchar.c: Likewise.
79431         * lib/mbswidth.c: Likewise.
79432         * lib/mkdtemp.c: Likewise.
79433         * lib/pipe.c: Likewise.
79434         * lib/printf-args.c: Likewise.
79435         * lib/printf-parse.c: Likewise.
79436         * lib/progname.c: Likewise.
79437         * lib/progreloc.c: Likewise.
79438         * lib/readlink.c: Likewise.
79439         * lib/sh-quote.c: Likewise.
79440         * lib/stpcpy.c: Likewise.
79441         * lib/stpncpy.c: Likewise.
79442         * lib/strcasecmp.c: Likewise.
79443         * lib/strcasestr.c: Likewise.
79444         * lib/strcspn.c: Likewise.
79445         * lib/striconv.c: Likewise.
79446         * lib/strncasecmp.c: Likewise.
79447         * lib/strnlen1.c: Likewise.
79448         * lib/strstr.c: Likewise.
79449         * lib/strtok_r.c: Likewise.
79450         * lib/tls.c: Likewise.
79451         * lib/tmpdir.c: Likewise.
79452         * lib/unicodeio.c: Likewise.
79453         * lib/unsetenv.c: Likewise.
79454         * lib/vasnprintf.c: Likewise.
79455         * lib/vasprintf.c: Likewise.
79456         * lib/wait-process.c: Likewise.
79457         * lib/xallocsa.c: Likewise.
79458         * lib/xsetenv.c: Likewise.
79459         * lib/xstriconv.c: Likewise.
79460
79461 2006-09-13  Simon Josefsson  <jas@extundo.com>
79462
79463         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79464         that internally, suggested by Ralf Wildenhues
79465         <Ralf.Wildenhues@gmx.de>.
79466
79467 2006-09-13  Simon Josefsson  <jas@extundo.com>
79468
79469         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79470         @LIBOBJS@.
79471         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79472
79473 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79474
79475         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79476         longer worry about uses that don't define HAVE_CONFIG_H.
79477         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79478         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79479         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79480         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79481         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79482         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79483         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79484         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79485         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79486         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79487         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79488         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79489         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79490         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79491         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79492         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79493         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79494         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79495         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79496         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79497         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79498         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79499         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79500         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79501         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79502         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79503         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79504         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79505         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79506         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79507         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79508         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79509         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79510         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79511         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79512         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79513         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79514         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79515         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79516         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79517         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79518         Likewise.
79519
79520 2006-09-13  Eric Blake  <ebb9@byu.net>
79521
79522         * lib/getopt.c: Fix typo in last commit.
79523
79524 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79525
79526         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79527         dgettext.
79528
79529 2006-09-12  Jim Meyering  <jim@meyering.net>
79530
79531         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79532         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79533         Reported by Nelson H. F. Beebe.
79534
79535 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79536
79537         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79538         program_invocation_name and program_invocation_short_name are
79539         initialized.
79540         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79541         and program_invocation_short_name to argp.h, so they are visible
79542         to user programs.
79543         * lib/argp.h: Likewise
79544
79545 2006-09-10  Bruno Haible  <bruno@clisp.org>
79546
79547         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79548         m4/inttypes_h.m4, m4/uintmax_t.m4.
79549
79550 2006-09-10  Bruno Haible  <bruno@clisp.org>
79551
79552         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79553         gl_AC_TYPE_UINTMAX_T.
79554
79555 2006-09-10  Bruno Haible  <bruno@clisp.org>
79556
79557         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79558
79559 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79560
79561         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79562         convention.  Text proposed by Bruno Haible.
79563         (struct argp_option): Document the use of N_() wrappers.
79564
79565         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79566         '\v', and translate the two parts separately, instead of feeding
79567         the whole string to gettext.  This allows to exclude
79568         '\v' from the strings visible to the translator by writing doc
79569         strings as N_("..") "\v" N_("..").
79570
79571 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79572
79573         * config/srclist.txt: Undo latest change; the bug was fixed.
79574
79575 2006-09-09  Bruno Haible  <bruno@clisp.org>
79576
79577         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79578         assignments if building a library without libtool.
79579         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79580         in func_emit_lib_Makefile_am.
79581         (func_import): When building a static library libfoo.a, arrange to
79582         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79583         (func_create_testdir): Likewise.
79584         * modules/gc (configure.ac, Makefile.am): If building statically,
79585         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79586         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79587         * modules/striconv (configure.ac, Makefile.am): Likewise.
79588         Based on a suggestion by Ralf Wildenhues.
79589
79590 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79591
79592         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79593         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79594         Also:
79595
79596         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79597         Add year_2050_test to catch glibc bug 2821
79598         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79599
79600         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79601         Prefer #ifdef to #if.
79602
79603         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79604         Return from 'main' instead of calling 'exit'.
79605
79606 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79609         returned the maximum time_t value rather than (time_t) -1.
79610         Problem originally reported by William Bardwell
79611         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79612
79613         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79614         Moved to here ...
79615         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79616         ... from here.
79617
79618 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79621         2821 is fixed.
79622
79623 2006-09-08  Jim Meyering  <jim@meyering.net>
79624
79625         Don't make generated files read-only.  That would bother too many
79626         people.  However, do retain the ability to work when targets are
79627         read-only: remove the destination and temporary files before writing
79628         them (when generated via sed or echo), or by using the -f option for
79629         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79630         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79631         * modules/byteswap, modules/configmake, modules/fcntl:
79632         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79633         * modules/localcharset, modules/netinet_in, modules/poll:
79634         * modules/stdbool, modules/stdint, modules/sys_select:
79635         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79636
79637 2006-09-08  Jim Meyering  <jim@meyering.net>
79638
79639         Avoid new build failure on FreeBSD 6.0.
79640         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79641         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79642         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79643
79644 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79645
79646         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79647
79648 2006-09-07  Jim Meyering  <jim@meyering.net>
79649
79650         Fix global typo in last change: use chmod u-w, not chmod u-x.
79651         Spotted by Paul Eggert and Bruce Korb.
79652         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79653         * modules/byteswap, modules/configmake, modules/fcntl:
79654         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79655         * modules/localcharset, modules/netinet_in, modules/poll:
79656         * modules/stdbool, modules/stdint, modules/sys_select:
79657         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79658
79659 2006-09-06  Jim Meyering  <jim@meyering.net>
79660
79661         Make generated files be read-only.
79662         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79663         Ensure that each generated file is now read-only.
79664         * modules/argz: Likewise.
79665         * modules/arpa_inet: Likewise.
79666         * modules/byteswap: Likewise.
79667         * modules/configmake: Likewise.
79668         * modules/fcntl: Likewise.
79669         * modules/fnmatch: Likewise.
79670         * modules/getopt: Likewise.
79671         * modules/glob: Likewise.
79672         * modules/inttypes: Likewise.
79673         * modules/netinet_in: Likewise.
79674         * modules/poll: Likewise.
79675         * modules/stdbool: Likewise.
79676         * modules/stdint: Likewise.
79677         * modules/sys_select: Likewise.
79678         * modules/sys_socket: Likewise.
79679         * modules/sys_stat: Likewise.
79680         * modules/sysexits: Likewise.
79681         * modules/localcharset: Same as above, but continue using temporary
79682         file named "t-$@" (why different?) rather than the "$@-t" used
79683         everywhere else.
79684
79685         * modules/sysexits (Makefile.am): Replace literal occurrences
79686         of "sysexit.h" more readable, and more consistent, "$@".
79687
79688 2006-09-06  Bruno Haible  <bruno@clisp.org>
79689
79690         * modules/striconv: New file.
79691         * modules/xstriconv: New file.
79692         * MODULES.html.sh (Internationalization functions): Add striconv,
79693         xstriconv.
79694
79695 2006-09-06  Bruno Haible  <bruno@clisp.org>
79696
79697         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79698         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79699         not using libtool correctly.
79700
79701 2006-09-06  Bruno Haible  <bruno@clisp.org>
79702
79703         * lib/striconv.h: New file.
79704         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79705         iconvstring.c.
79706         * lib/xstriconv.h: New file.
79707         * lib/xstriconv.c: New file.
79708
79709 2006-09-06  Bruno Haible  <bruno@clisp.org>
79710
79711         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79712         lib_..._LDFLAGS.
79713
79714 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79715
79716         * lib/argz_.h: Sync from Libtool.
79717
79718         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79719                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79720
79721         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79722
79723 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79724
79725         * modules/trim: New file.
79726
79727 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79728
79729         * lib/trim.h: New file.
79730         * lib/trim.c: New file.
79731
79732 2006-09-05  Bruno Haible  <bruno@clisp.org>
79733
79734         * MODULES.html.sh (String handling): Add trim.
79735
79736 2006-09-04  Karl Berry  <karl@gnu.org>
79737
79738         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79739         until next release.
79740
79741 2006-09-03  Bruno Haible  <bruno@clisp.org>
79742
79743         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79744         correctly.
79745
79746 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79747
79748         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79749         not gl_GETLOADAVG.  Omit unneeded semicolons.
79750         Problems reported by Ralf Wildenhues in
79751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79752         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79753         at the end, which is the usual gnulib style.
79754
79755         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79756         of doing all the work ourselves.
79757         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79758         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79759
79760 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79761
79762         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79763         Problem reported by Ralf Wildenhues in
79764         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79765
79766         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79767         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79768
79769 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79772         yesterday's patch by changing test -n to test -z.
79773
79774 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79775
79776         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79777         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79778         the former is now obsolescent.
79779
79780         * modules/chdir-long (Depends-on): Add fcntl.
79781
79782 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79783
79784         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79785         obsolescent, and programs should use gnulib instead.
79786         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79787         but with prefixes changed.
79788
79789 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79790
79791         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79792         or stdbool.h, because they might not exist while configuring.
79793
79794         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79795         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79796         does that for us.
79797         (O_DIRECTORY): Remove.
79798
79799 2006-08-31  Eric Blake  <ebb9@byu.net>
79800
79801         * gnulib-tool: Don't let emacs change spaces to TAB.
79802
79803 2006-08-31  Bruno Haible  <bruno@clisp.org>
79804
79805         * gnulib-tool: When calling func_import more than once, do it in a
79806         subshell.
79807         Reported by Eric Blake <ebb9@byu.net>.
79808
79809 2006-08-31  Bruno Haible  <bruno@clisp.org>
79810
79811         * gnulib-tool (nl): Remove variable.
79812         (sed_transform_lib_file): Use more robust test for config-h module.
79813         (func_import): Fix typo in 2006-08-25 patch.
79814
79815 2006-08-31  Bruno Haible  <bruno@clisp.org>
79816
79817         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79818         specified, augment Makefile.am variables instead of assigning them.
79819
79820 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79821
79822         Work around a bug in both the Linux and SunOS 64-bit kernels:
79823         nanosleep mishandles sleeps for longer than 2**31 seconds.
79824         Problem reported by Frank v Waveren in
79825         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79827         Check for nanosleep bug.
79828         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79829
79830 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         Work around a bug in both the Linux and SunOS 64-bit kernels:
79833         nanosleep mishandles sleeps for longer than 2**31 seconds.
79834         Problem reported by Frank v Waveren in
79835         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79836         * lib/nanosleep.c (BILLION): New constant.
79837         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79838         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79839         implementation.
79840
79841 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         * modules/nanosleep (Depends-on): Add gettime.
79844
79845 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79846         and Simon Josefsson  <jas@extundo.com>
79847         and Oskar Liljeblad  <oskar@osk.mine.nu>
79848
79849         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79850         * gnulib-tool (func_import): New license type 'unmodifiable license
79851         text'.
79852         * modules/fdl: Use it.  Longer description.
79853         * module/gpl, module/lgpl: New files.
79854
79855 2006-08-30  Jim Meyering  <jim@meyering.net>
79856
79857         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79858         shadowing the parameter.
79859
79860 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79861
79862         Sync from Libtool:
79863
79864         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79865
79866         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79867         sharing with gnulib.  Report by Eric Blake.
79868
79869 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79870
79871         * modules/isapipe: New file.
79872         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79873
79874 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * modules/configmake (Makefile.am): Add a comment, and omit
79877         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79878         by Bruno Haible.
79879
79880 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * m4/isapipe.m4: New file.
79883
79884 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79885
79886         * lib/isapipe.c, lib/isapipe.h: New files.
79887
79888 2006-08-29  Jim Meyering  <jim@meyering.net>
79889
79890         * modules/configmake (Makefile.am): Make configmake.h depend on
79891         Makefile.  Otherwise, a stale configmake.h could hang around.
79892
79893 2006-08-29  Eric Blake  <ebb9@byu.net>
79894
79895         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79896         resolution of upstream bug 3044.
79897
79898 2006-08-29  Bruno Haible  <bruno@clisp.org>
79899
79900         * modules/localcharset (Depends-on): Add configmake.
79901         (Makefile.am): Remove setting of LIBDIR through DEFS.
79902
79903 2006-08-29  Bruno Haible  <bruno@clisp.org>
79904
79905         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79906         defined.
79907
79908 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         * modules/fcntl: New file.
79911         * modules/chdir-safer (Depends-on): Add fcntl.
79912         * modules/fts: Likewise.
79913         * modules/mkdir-p: Likewise.
79914
79915         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79916         This undoes the most recent change, since we're now addressing the
79917         problem in a different way.
79918
79919         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79920         into output, since the output might be called Makefile.am even
79921         if $makefile_name is something different.
79922         (func_import): Use $makefile_am rather than
79923         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79924         empty.
79925
79926         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79927
79928 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79931         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79932         recent change to stdint.m4, since we're now addressing the problem in a
79933         different way.
79934
79935 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79936
79937         * m4/fcntl_h.m4: New file.
79938
79939 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79940
79941         * lib/fcntl_.h: New file.
79942         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79943         the fcntl module.
79944         * lib/dirchownmod.c: Likewise.
79945         * lib/fts.c: Likewise.
79946
79947         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79948         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79949         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79950         just before including <inttypes.h>, to avoid circular inclusion.
79951
79952 2006-08-28  Jim Meyering  <jim@meyering.net>
79953
79954         * doc/visibility.texi: Actually read and correct the grammar of the
79955         sentence affected by yesterday's change.
79956
79957 2006-08-28  Eric Blake  <ebb9@byu.net>
79958
79959         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79960         needs wrapper.
79961
79962 2006-08-28  Eric Blake  <ebb9@byu.net>
79963
79964         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79965
79966 2006-08-28  Eric Blake  <ebb9@byu.net>
79967
79968         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79969
79970 2006-08-28  Bruno Haible  <bruno@clisp.org>
79971
79972         * modules/c-strstr: New file, from GNU gettext.
79973         * MODULES.html.sh (String handling): Add c-strstr.
79974
79975 2006-08-28  Bruno Haible  <bruno@clisp.org>
79976
79977         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79978         macros.
79979         Reported by Eric Blake.
79980
79981 2006-08-28  Bruno Haible  <bruno@clisp.org>
79982
79983         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79984         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79985         * lib/vasprintf.c: Include errno.h, limits.h.
79986         (EOVERFLOW): New fallback definition.
79987         (vasprintf): Test here whether the string length is > INT_MAX.
79988         * lib/vsnprintf.c: Include errno.h, limits.h.
79989         (EOVERFLOW): New fallback definition.
79990         (vsnprintf): Fix bug when generated string was too long for the buffer.
79991         Test here whether the string length is > INT_MAX.
79992
79993 2006-08-28  Bruno Haible  <bruno@clisp.org>
79994
79995         * lib/inttypes_.h (SCNX*): Remove definitions.
79996         Reported by Eric Blake.
79997
79998 2006-08-28  Bruno Haible  <bruno@clisp.org>
79999
80000         * lib/c-strstr.h: New file, from GNU gettext.
80001         * lib/c-strstr.c: New file, from GNU gettext.
80002
80003 2006-08-28  Bruno Haible  <bruno@clisp.org>
80004
80005         * gnulib-tool: Reorder some statements.
80006
80007 2006-08-28  Bruno Haible  <bruno@clisp.org>
80008
80009         * gnulib-tool: New option --makefile-name.
80010         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
80011         $makefile_name.
80012         (func_import): Write $makefile_name to the cache file, and read it from
80013         there unless explicitly specified. Use $makefile_name as file name
80014         instead of Makefile.am. Adjust the recommendations accordingly.
80015
80016 2006-08-28  Bruno Haible  <bruno@clisp.org>
80017
80018         * gnulib-tool (func_verify_module): Check against misapplying patch.
80019
80020 2006-08-28  Bruno Haible  <bruno@clisp.org>
80021
80022         * gnulib-tool (func_relativize, func_relconcat): New functions.
80023         Give an error if --local-dir is given with --update.
80024         Remove trailing slashes from $local_gnulib_dir.
80025         (func_import): Store the relativized $local_gnulib_dir in
80026         gnulib-cache.m4, and read it from there if not specified explicitly.
80027
80028 2006-08-28  Bruno Haible  <bruno@clisp.org>
80029
80030         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
80031         is the current directory. Respect also $local_gnulib_dir.
80032
80033 2006-08-28  Bruno Haible  <bruno@clisp.org>
80034             Simon Josefsson  <jas@extundo.com>
80035
80036         BeOS portability.
80037         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
80038
80039 2006-08-27  Jim Meyering  <jim@meyering.net>
80040
80041         * doc/visibility.texi: Remove duplicate word: "pointer".
80042
80043 2006-08-26  Bruno Haible  <bruno@clisp.org>
80044
80045         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
80046         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
80047         (Makefile.am): Create inttypes.h from inttypes_.h.
80048         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
80049
80050         * modules/imaxabs: New file.
80051
80052         * modules/imaxdiv: New file.
80053
80054 2006-08-26  Bruno Haible  <bruno@clisp.org>
80055
80056         * m4/inttypes.m4: New file.
80057         * m4/_inttypes_h.m4: Remove file.
80058         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
80059         PRI_MACROS_BROKEN.
80060         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
80061
80062         * m4/imaxabs.m4: New file.
80063
80064         * m4/imaxdiv.m4: New file.
80065
80066 2006-08-26  Bruno Haible  <bruno@clisp.org>
80067
80068         * lib/inttypes_.h: New file.
80069         * lib/inttypes.h: Remove file.
80070         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
80071
80072         * lib/imaxabs.c: New file.
80073
80074         * lib/imaxdiv.c: New file.
80075
80076 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80077
80078         New config-h module, so that "make" output needn't be cluttered
80079         by -DHAVE_CONFIG_H.
80080         * MODULES.html.sh (Support for building libraries and executables):
80081         Add config-h.
80082         * modules/config-h: New file.
80083         * gnulib-tool (nl, sed_transform_lib_file): New vars.
80084         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
80085         the config-h module is used.
80086
80087         New configmake module, so that "make" output needn't be cluttered
80088         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
80089         * MODULES.html.sh (Support for building libraries and executables):
80090         Add configmake.
80091         * modules/configmake: New file.
80092
80093 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80094
80095         * m4/config-h.m4: New file.
80096
80097 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         * config/srclist.txt: Add elisp-comp.
80100
80101 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80102
80103         * MODULES.html.sh (Support for building libraries and executables):
80104         Add elisp-comp.
80105         * build-aux/elisp-comp: New file.
80106         * modules/elisp-comp: New file.
80107
80108 2006-08-24  Bruno Haible  <bruno@clisp.org>
80109
80110         * gnulib-tool (func_create_testdir): Use non-default values of
80111         sourcebase and m4base.
80112
80113 2006-08-24  Bruno Haible  <bruno@clisp.org>
80114
80115         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
80116         HTML structure.
80117
80118 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80119
80120         * modules/openat (Depends-on): Add lchown.
80121
80122 2006-08-23  Bruno Haible  <bruno@clisp.org>
80123
80124         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
80125         of gl_LOCK_EARLY instead of gl_LOCK.
80126
80127 2006-08-23  Bruno Haible  <bruno@clisp.org>
80128
80129         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
80130         on OSF/1 to no.
80131         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
80132
80133 2006-08-23  Bruno Haible  <bruno@clisp.org>
80134
80135         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
80136         as unusable.
80137
80138         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
80139         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
80140         (gl_LOCK): New macro.
80141
80142 2006-08-22  Simon Josefsson  <jas@extundo.com>
80143
80144         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
80145         to md5 module.
80146
80147 2006-08-22  Simon Josefsson  <jas@extundo.com>
80148
80149         * MODULES.html.sh: Add "Support for maintaining and release
80150         projects".
80151
80152         * build-aux/gnupload: New file, from coreutils.
80153
80154 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         Avoid the need for AC_LIBSOURCES in m4 macros.
80157         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
80158         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
80159         * modules/check-version (EXTRA_DIST): Add check-version.h.
80160         * modules/crc (EXTRA_DIST): Add crc.h.
80161         * modules/des (EXTRA_DIST): Add des.h.
80162         * modules/gc (EXTRA_DIST): Add gc.h.
80163         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
80164         * modules/getline (EXTRA_DIST): Add getline.h.
80165         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
80166         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
80167         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
80168         * modules/md2 (EXTRA_DIST): Add md2.h.
80169         * modules/md4 (EXTRA_DIST): Add md4.h.
80170         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
80171         * modules/read-file (EXTRA_DIST): Add read-file.h.
80172         * modules/readline (EXTRA_DIST): Add readline.h.
80173         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
80174         rijndael-api-fst.h.
80175
80176 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80177
80178         * m4/rijndael.m4 (gl_ARCFOUR):
80179         * m4/arctwo.m4 (gl_ARCTWO):
80180         * m4/check-version.m4 (gl_CHECK_VERSION):
80181         * m4/crc.m4 (gl_CRC):
80182         * m4/des.m4 (gl_DES):
80183         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
80184         * m4/gc.m4 (gl_GC):
80185         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
80186         * m4/getline.m4 (gl_FUNC_GETLINE):
80187         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
80188         * m4/hmac-md5.m4 (gl_HMAC_MD5):
80189         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
80190         * m4/md2.m4 (gl_MD2):
80191         * m4/md4.m4 (gl_MD4):
80192         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
80193         * m4/read-file.m4 (gl_FUNC_READ_FILE):
80194         * m4/readline.m4 (gl_FUNC_READLINE):
80195         * m4/rijndael.m4 (gl_RIJNDAEL):
80196         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80197         to get the necessary .h files and whatnot.
80198
80199 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80200
80201         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
80202         gnulib rather than the other way around.
80203         * config/srclistvars.sh (COREUTILS): Remove.
80204
80205 2006-08-22  Jim Meyering  <jim@meyering.net>
80206
80207         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80208
80209         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80210
80211 2006-08-22  Eric Blake  <ebb9@byu.net>
80212
80213         * modules/regexprops-generic: New file.
80214         * MODULES.html.sh (Support for building documentation): List it.
80215
80216 2006-08-22  Eric Blake  <ebb9@byu.net>
80217
80218         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80219         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80220         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80221         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80222
80223 2006-08-22  Bruno Haible  <bruno@clisp.org>
80224
80225         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80226         and lib_LTLIBRARIES like the other lib_* variables.
80227
80228 2006-08-22  Bruno Haible  <bruno@clisp.org>
80229
80230         * build-aux/x-to-1.in: New file, from GNU gettext.
80231
80232 2006-08-22  Bruno Haible  <bruno@clisp.org>
80233
80234         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80235         <utmpx.h> exists.
80236
80237 2006-08-22  Bruno Haible  <bruno@clisp.org>
80238
80239         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80240         <utmpx.h> exists.
80241
80242 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80243
80244         BeOS portability.
80245         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80246         exist.
80247         Problem reported by Bruno Haible.
80248
80249 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80250
80251         Avoid the need for AC_LIBSOURCES in m4 macros.
80252         * modules/acl (EXTRA_DIST): Add acl.h.
80253         * modules/argmatch (Files): Add m4/argmatch.m4.
80254         (configure.ac): Add gl_ARGMATCH.
80255         (EXTRA_DIST): Renamed from lib_SOURCES, for
80256         consistency with the other modules.  Remove argmatch.c.
80257         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80258         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80259         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80260         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80261         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80262         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80263         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80264         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80265         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80266         * modules/closeout (EXTRA_DIST): Add closeout.h.
80267         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80268         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80269         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80270         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80271         dirname.h; remove basename.c and stripslash.c.
80272         * modules/exclude (EXTRA_DIST): Add exclude.h.
80273         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80274         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80275         * modules/file-type (EXTRA_DIST): Add file-type.h.
80276         * modules/filemode (EXTRA_DIST): Add filemode.h.
80277         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80278         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80279         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80280         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80281         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80282         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80283         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80284         * modules/getdate (EXTRA_DIST): Add getdate.c.
80285         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80286         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80287         * modules/getpass (EXTRA_DIST): Add getpass.h.
80288         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80289         * modules/group-member (EXTRA_DIST): Add group-member.h.
80290         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80291         * modules/hash (EXTRA_DIST): Add hash.h.
80292         * modules/human (EXTRA_DIST): Add human.h.
80293         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80294         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80295         * modules/lchown (EXTRA_DIST): Add lchown.h.
80296         * modules/long-options (EXTRA_DIST): Add long-options.h.
80297         * modules/lstat (EXTRA_DIST): Add lstat.h.
80298         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80299         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80300         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80301         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80302         * modules/memxor (EXTRA_DIST): Add memxor.h.
80303         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80304         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80305         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80306         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80307         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80308         * modules/physmem (EXTRA_DIST): Add physmem.h.
80309         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80310         * modules/posixver (EXTRA_DIST): Add posixver.h.
80311         * modules/quote (EXTRA_DIST): Add quote.h.
80312         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80313         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80314         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80315         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80316         regex_internal.h regexec.c.
80317         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80318         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80319         * modules/same (EXTRA_DIST): Add same.h.
80320         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80321         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80322         * modules/savedir (EXTRA_DIST): Add savedir.h.
80323         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80324         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80325         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80326         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80327         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80328         * modules/strdup (EXTRA_DIST): Add strdup.h.
80329         * modules/strftime (EXTRA_DIST): Add strftime.h.
80330         * modules/strndup (EXTRA_DIST): Add strndup.h.
80331         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80332         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80333         * modules/time_r (EXTRA_DIST): Add time_r.h.
80334         * modules/timespec (EXTRA_DIST): Add timespec.h.
80335         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80336         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80337         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80338         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80339         * modules/userspec (EXTRA_DIST): Add userspec.h.
80340         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80341         * modules/utimens (EXTRA_DIST): Add utimens.h.
80342         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80343         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80344         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80345         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80346         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80347         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80348         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80349         * modules/yesno (EXTRA_DIST): Add yesno.h.
80350
80351 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80352
80353         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80354
80355         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80356         * m4/dev-ino.m4, same-inode.m4: Remove.
80357
80358         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80359         * m4/acl.m4 (AC_FUNC_ACL):
80360         * m4/backupfile.m4 (gl_BACKUPFILE):
80361         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80362         * m4/canon-host.m4 (gl_CANON_HOST):
80363         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80364         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80365         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80366         * m4/cloexec.m4 (gl_CLOEXEC):
80367         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80368         * m4/closeout.m4 (gl_CLOSEOUT):
80369         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80370         * m4/dirname.m4 (gl_DIRNAME):
80371         * m4/exclude.m4 (gl_EXCLUDE):
80372         * m4/exitfail.m4 (gl_EXITFAIL):
80373         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80374         * m4/file-type.m4 (gl_FILE_TYPE):
80375         * m4/filemode.m4 (gl_FILEMODE):
80376         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80377         * m4/fpending.m4 (gl_FUNC_FPENDING):
80378         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80379         * m4/fts.m4 (gl_FUNC_FTS):
80380         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80381         * m4/getdate.m4 (gl_GETDATE):
80382         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80383         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80384         * m4/getpass.m4 (gl_FUNC_GETPASS):
80385         * m4/gettime.m4 (gl_GETTIME):
80386         * m4/getugroups.m4 (gl_GETUGROUPS):
80387         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80388         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80389         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80390         * m4/hash.m4 (gl_HASH):
80391         * m4/idcache.m4 (gl_IDCACHE):
80392         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80393         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80394         * m4/long-options.m4 (gl_LONG_OPTIONS):
80395         * m4/lstat.m4 (gl_FUNC_LSTAT):
80396         * m4/md5.m4 (gl_MD5):
80397         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80398         * m4/memcoll.m4 (gl_MEMCOLL):
80399         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80400         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80401         * m4/memxor.m4 (gl_MEMXOR):
80402         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80403         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80404         * m4/modechange.m4 (gl_MODECHANGE):
80405         * m4/mountlist.m4 (gl_MOUNTLIST):
80406         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80407         * m4/openat.m4 (gl_FUNC_OPENAT):
80408         * m4/pathmax.m4 (gl_PATHMAX):
80409         * m4/physmem.m4 (gl_PHYSMEM):
80410         * m4/posixtm.m4 (gl_POSIXTM):
80411         * m4/posixver.m4 (gl_POSIXVER):
80412         * m4/quote.m4 (gl_QUOTE):
80413         * m4/quotearg.m4 (gl_QUOTEARG):
80414         * m4/readtokens.m4 (gl_READTOKENS):
80415         * m4/readutmp.m4 (gl_READUTMP):
80416         * m4/regex.m4 (gl_REGEX):
80417         * m4/safe-read.m4 (gl_SAFE_READ):
80418         * m4/safe-write.m4 (gl_SAFE_WRITE):
80419         * m4/same.m4 (gl_SAME):
80420         * m4/save-cwd.m4 (gl_SAVE_CWD):
80421         * m4/savedir.m4 (gl_SAVEDIR):
80422         * m4/settime.m4 (gl_SETTIME):
80423         * m4/sha1.m4 (gl_SHA1):
80424         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80425         * m4/stat-macros.m4 (gl_STAT_MACROS):
80426         * m4/stat-time.m4 (gl_STAT_TIME):
80427         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80428         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80429         * m4/strdup.m4 (gl_FUNC_STRDUP):
80430         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80431         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80432         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80433         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80434         * m4/time_r.m4 (gl_TIME_R):
80435         * m4/timespec.m4 (gl_TIMESPEC):
80436         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80437         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80438         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80439         * m4/userspec.m4 (gl_USERSPEC):
80440         * m4/utimecmp.m4 (gl_UTIMECMP):
80441         * m4/utimens.m4 (gl_UTIMENS):
80442         * m4/xalloc.m4 (gl_XALLOC):
80443         * m4/xgetcwd.m4 (gl_XGETCWD):
80444         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80445         * m4/xreadlink.m4 (gl_XREADLINK):
80446         * m4/xstrtod.m4 (gl_XSTRTOD):
80447         * m4/yesno.m4 (gl_YESNO):
80448         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80449         to get the necessary .h files and whatnot.
80450
80451 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80452             Bruno Haible  <bruno@clisp.org>
80453
80454         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80455         /bin/sh understanding of '!' conditional negation.
80456
80457 2006-08-21  Jim Meyering  <jim@meyering.net>
80458
80459         * modules/openat (Depends-on): Really alphabetize.
80460
80461         * modules/acl (Depends-on): Add error and quote.
80462
80463         * check-module (find_included_lib_files): Add at-func.c to the
80464         ok-to-include-more-than-once white list.
80465
80466         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80467
80468 2006-08-21  Bruno Haible  <bruno@clisp.org>
80469
80470         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80471         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80472         Reported by Martin Lambers <marlam@marlam.de>.
80473
80474 2006-08-21  Bruno Haible  <bruno@clisp.org>
80475
80476         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80477         specify an installation location, don't emit a noinst_LIBRARIES or
80478         noinst_LTLIBRARIES assignment.
80479
80480 2006-08-21  Bruno Haible  <bruno@clisp.org>
80481
80482         BeOS portability.
80483         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80484         BeOS has mbrtowc() but no <wctype.h>.
80485
80486 2006-08-21  Bruno Haible  <bruno@clisp.org>
80487
80488         BeOS portability.
80489         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80490         exist.
80491
80492 2006-08-21  Bruno Haible  <bruno@clisp.org>
80493
80494         BeOS portability.
80495         * lib/mbchar.h: Include <wctype.h> only if it exists.
80496
80497 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80498
80499         Remove files that are no longer needed by their respective modules.
80500         * m4/obstack.m4: Remove.
80501         * m4/strerror_r.m4: Remove.
80502         * m4/uint32_t.m4: Remove.
80503         * m4/uintptr_t.m4: Remove.
80504         * m4/ullong_max.m4: Remove.
80505         * m4/xstrtoimax.m4: Remove.
80506         * m4/xstrtoumax.m4: Remove.
80507
80508         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80509         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80510         dependencies now capture this.
80511
80512         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80513         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80514         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80515         * m4/human.m4 (gl_HUMAN): Likewise.
80516         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80517         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80518
80519         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80520
80521         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80522         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80523         stdint.
80524         * m4/human.m4 (gl_HUMAN): Likewise.
80525         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80526         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80527         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80528         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80529         * m4/xstrtol (gl_XSTRTOL): Likewise.
80530
80531         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80532         AC_TYPE_LONG_LONG_INT.
80533         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80534         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80535         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80536         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80537
80538         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80539         on stdbool.
80540
80541         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80542         (gl_PREREQ_XSTRTOUL): Remove.
80543
80544         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80545
80546         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80547         mode.
80548
80549 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         Add and change modules to make it easier for coreutils to use
80552         gnulib-tool.
80553         * modules/backupfile (Files): Remove m4/d-ino.m4.
80554         (Depends-on): Add d-ino.
80555         * modules/cycle-check (Depends-on): Add stdint.
80556         (lib_SOURCES): Add cycle-check.h.
80557         * modules/d-ino: New module.
80558         * modules/d-type: New module.
80559         * modules/error (Files): Remove m4/strerror_r.m4.
80560         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80561         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80562         m4/inttypes_h.m4, m4/uintmax_t.m4.
80563         (Depends-on): Add stdint.
80564         (lib_SOURCES): Add fsusage.h.
80565         * modules/getcwd (Files): Remove d-ino.m4.
80566         (Depends-on): Add d-ino.
80567         * modules/getndelim2 (Depends-on): Add stdint.
80568         * modules/glob (Files): Remove m4/d-type.m4.
80569         (Depends-on): Add d-type.
80570         * modules/host-os: New module.
80571         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80572         m4/inttypes_h.m4, m4/uintmax_t.m4.
80573         * Depends-on: Add stdint.
80574         (lib_SOURCES): Add human.h.
80575         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80576         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80577         m4/uintmax_t.m4, m4/ulonglong.m4.
80578         (Depends-on): Add stdint.
80579         (EXTRA_DIST): Add inttostr.h.
80580         * modules/lchmod: New module.
80581         * modules/link-follow: New module.
80582         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80583         (Depends-on): Add lchmod.
80584         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80585         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80586         (Depends-on): Add stdint.
80587         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80588         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80589         (Depends-on): Add stdint.
80590         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80591         * modules/perl: New module.
80592         * modules/regex (Depends-on): Add stdint.
80593         * modules/rmdir-errno: New module.
80594         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80595         m4/intmax_t.m4.
80596         (Depends-on): Add stdint.
80597         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80598         m4/uintmax_t.m4.
80599         (Depends-on): Add stdint.
80600         * modules/unlink-busy: New module.
80601         * modules/utimecmp (Depends-on): Add stdint.
80602         * modules/uptime: New module.
80603         * modules/winsz-ioctl: New module.
80604         * modules/winsz-termios: New module.
80605         * modules/xnanosleep (Depends-on): Add nanosleep.
80606         * modules/ullong_max: Remove.
80607         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80608         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80609         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80610         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80611         (Depends-on): Add inttypes.
80612         (lib_SOURCES): Add xstrtol.h.
80613         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80614         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80615         * MODULES.html.sh: Move 'assert' into the assert section.
80616         Move 'dummy' into the linking section.
80617         Remove ullong_max.
80618         Add section for compatibility checks for POSIX:2001 functions,
80619         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80620         winsz-ioctl, and winsz-termios into it.
80621         Add lchmod.
80622         Add top-level Misc section and put host-os, perl, and uptime
80623         into it.
80624
80625 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80626
80627         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80628         now assume the stdint module.  Do not include inttypes.h.
80629         * lib/fsusage.h: Likewise.
80630         * lib/getndelim2.c: Likewise.
80631         * lib/human.h: Likewise.
80632         * lib/inttostr.h: Likewise.
80633         * lib/obstack.c: Likewise.
80634         * lib/regex_internal.h: Likewise.
80635         * lib/tempname.c: Likewise.
80636         * lib/utimecmp.c: Likewise.
80637         * lib/xstrtol.h: Likewise.
80638
80639         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80640
80641         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80642         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80643         * lib/xtime.h: Likewise.
80644
80645 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80646
80647         * modules/openat (Files): Add lib/fchmodat.c.
80648         Fixes problem reported by Jay Youngman.
80649
80650 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80651
80652         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80653         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80654
80655 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80656             Bruno Haible  <bruno@clisp.org>
80657
80658         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80659         and is a script that invokes bison. Tighten the code. Add comments.
80660
80661 2006-08-18  Jim Meyering  <jim@meyering.net>
80662
80663         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80664         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80665         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80666         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80667
80668 2006-08-18  Bruno Haible  <bruno@clisp.org>
80669
80670         * modules/bison-i18n: New file.
80671         * MODULES.html.sh (Internationalization functions): Add it.
80672
80673 2006-08-18  Bruno Haible  <bruno@clisp.org>
80674
80675         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80676         sys/statvfs.h. When getmntinfo was found, check its declaration and
80677         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80678
80679 2006-08-18  Bruno Haible  <bruno@clisp.org>
80680
80681         * m4/bison-i18n.m4: New file, from bison.
80682
80683 2006-08-18  Bruno Haible  <bruno@clisp.org>
80684
80685         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80686         (ME_DUMMY): Treat "kernfs" as a dummy.
80687         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80688
80689 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80690
80691         Update from coreutils.
80692
80693         2006-08-15  Jim Meyering  <jim@meyering.net>
80694
80695         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80696
80697         2006-01-17  Jim Meyering  <jim@meyering.net>
80698
80699         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80700
80701         2006-01-11  Jim Meyering  <jim@meyering.net>
80702
80703         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80704         Check for the lchmod function.
80705
80706 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80707
80708         Update from coreutils.
80709
80710         * lib/__fpending.h: Add copyright notice.
80711         * lib/fprintftime.h: Likewise.
80712         * lib/savedir.c: Use (C) in copyright notice.
80713         * lib/savedir.h: Likewise.
80714
80715         2006-08-15  Jim Meyering  <jim@meyering.net>
80716
80717         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80718         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80719         in support of the EXPECTED_ERRNO macro.
80720         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80721         definitions.  Instead, define the appropriate symbols and include
80722         "at-func.c".
80723         * lib/mkdirat.c (mkdirat): Likewise.
80724         * lib/fchmodat.c (fchmodat): Likewise.
80725         (ENOSYS): Remove definition.
80726         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80727         it.  Don't include "unistd--.h" -- it wasn't ever used.
80728
80729         2006-01-17  Jim Meyering  <jim@meyering.net>
80730
80731         Rewrite fts.c not to change the current working directory,
80732         by using openat, fstatat, fdopendir, etc..
80733
80734         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80735         (HAVE_OPENAT_SUPPORT): Define.
80736         [_LIBC] (fchdir): Don't undef or define; no longer used.
80737         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80738         Now, this `function' always succeeds, and consumes its file descriptor
80739         parameter -- so callers must not close such FDs.  Update callers.
80740         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80741         (diropen): Add parameter, SP.  Adjust all callers.
80742         Implement using diropen_fd, rather than open.
80743         (fts_open): Initialize new member, fts_cwd_fd.
80744         Remove fts_rft-setting code.
80745         (fts_close): Close fts_cwd_fd, if necessary.
80746         (__opendir2): Define in terms of opendir or opendirat,
80747         depending on whether the FST_NOCHDIR flag is set.
80748         (fts_build): Since fts_safe_changedir consumes its FD, and since
80749         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80750         and close the dup'd file descriptor upon failure.
80751         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80752         (fts_safe_changedir): Tweak semantics to reflect that this function
80753         now calls cwd_advance_fd and hence consumes its FD argument.
80754         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80755         [struct FTS] (fts_rft): Remove now-unused member.
80756         [struct FTS] (fts_cycle.state): Improve comment.
80757
80758         * lib/openat.c (openat_needs_fchdir): New function.
80759         * lib/openat.h (openat_needs_fchdir): Declare it.
80760
80761 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80762
80763         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80764         Problem and fix reported by Pádraig Brady in
80765         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80766
80767 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80768
80769         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80770
80771 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80772
80773         * lib/memcoll.c (memcoll): Optimize for the common case where the
80774         arguments are bytewise equal.
80775
80776 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         * doc/regexprops-generic.texi: Add a copyright notice.
80779
80780 2006-08-15  Bruno Haible  <bruno@clisp.org>
80781
80782         * modules/tmpdir (License): Change to LGPL.
80783
80784 2006-08-15  Bruno Haible  <bruno@clisp.org>
80785
80786         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80787         module.
80788
80789 2006-08-14  Simon Josefsson  <jas@extundo.com>
80790
80791         * config/srclist.txt: Add gnupload.
80792
80793 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80794
80795         Change copyright notice from LGPL 2 to GPL 2, since that's the
80796         standard form used in the gnulib repository.
80797         * tests/test-lock.c: Likewise.
80798         * tests/test-stdint.c: Likewise.
80799         * tests/test-tls.c: Likewise.
80800
80801         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80802         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80803         Add copyright notice.
80804
80805         * check-module: Add copyright notice.  Output a copyright
80806         notice if "--version" is specified.
80807         * modules/COPYING: New file.
80808         * tests/test-getaddrinfo.c: Add copyright notice.
80809         * tests/test-verify.c: Likewise.
80810
80811 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80812
80813         Change copyright notice from LGPL 2 to GPL 2, since that's the
80814         standard form used in the gnulib repository.
80815         * lib/lock.c: LGPL -> GPL.
80816         * lib/lock.h: Likewise.
80817         * lib/strnlen1.c: Likewise.
80818         * lib/strnlen1.h: Likewise.
80819         * lib/tls.c: Likewise.
80820         * lib/tls.h: Likewise.
80821         * lib/tmpdir.c: Likewise.
80822
80823         * lib/TODO: Remove; this belongs only in coreutils.
80824
80825 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80826
80827         Add copyright notices to long-enough files that lack them, since
80828         otherwise the files aren't clearly free.  Use the same notice that
80829         getdate.texi already uses.
80830         * doc/alloca-opt.texi: Add copyright notice.
80831         * doc/alloca.texi: Likewise.
80832         * doc/ctime.texi: Likewise.
80833         * doc/functions.texi: Likewise.
80834         * doc/gcd.texi: Likewise.
80835         * doc/gnulib-tool.texi: Likewise.
80836         * doc/inet_ntoa.texi: Likewise.
80837         * doc/visibility.texi: Likewise.
80838
80839         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80840         * doc/quote.texi: Add copyright notice.
80841
80842         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80843         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80844         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80845         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80846         is now obsolete, and give a pointer to the Sun list.
80847         Add copyright notice.
80848
80849 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80850
80851         * config/srclistvars.sh: Add copyright notice.
80852
80853 2006-08-14  Eric Blake  <ebb9@byu.net>
80854
80855         Import the following change from libc:
80856
80857         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80858
80859         Upstream bug 2997.
80860         * lib/misc/error.c: Add space between program name and message if file
80861         name is missing.
80862
80863 2006-08-12  Karl Berry  <karl@gnu.org>
80864
80865         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80866         remove, these originate in gnulib now.
80867
80868 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80869
80870         * doc/Makefile (standards.info standards.html standards.dvi):
80871         Also depend on make-stds.texi.
80872
80873 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80874
80875         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80876         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80877
80878         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80879         in wchar_t.  Problem reported by Eric Blake.
80880
80881         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80882         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80883         Also, help the compiler to keep LEN in a register.
80884
80885 2006-08-11  Eric Blake  <ebb9@byu.net>
80886
80887         * users.txt: Sort.  Add tar.
80888
80889 2006-08-11  Bruno Haible  <bruno@clisp.org>
80890
80891         * users.txt: New file.
80892
80893 2006-08-11  Bruno Haible  <bruno@clisp.org>
80894
80895         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80896         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80897
80898 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80899
80900         * modules/snprintf (Depends-on): Remove minmax.
80901         (Maintainer): Add self and Bruno.
80902
80903 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80904
80905         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80906         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80907         (EOVERFLOW): Define if the system does not.
80908         Do not include "minmax.h"; it wasn't used.
80909         (snprintf): Don't assume size_t promotes to an unsigned type.
80910         Fix bug when generated string was too long for the buffer: the
80911         buffer's contents are supposed to be the initial prefix of the
80912         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80913         exceeds INT_MAX; do the check ourselves.
80914
80915         Import the following changes from libc:
80916
80917         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80918
80919         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80920         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80921         set wc to the byte which couldn't be converted.
80922         (re_string_reconstruct): Don't clear valid_raw_len before calling
80923         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80924         tip_context using re_string_context_at.
80925
80926         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80927
80928         * lib/posix/regex.h: g++ still cannot handled [restrict].
80929
80930         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80931
80932         * lib/posix/regex.h: Remove special handling for VMS.
80933
80934 2006-08-10  Jim Meyering  <jim@meyering.net>
80935
80936         * modules/same-inode: New module.
80937         * modules/dev-ino: New module.
80938         * modules/cycle-check: Depend on these modules, rather than simply
80939         including their .h files.
80940         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80941         required via m4/cycle-check.m4.
80942         * modules/same: Depend on new same-inode module, rather than
80943         including same-inode.h.
80944         * modules/chdir-safer: New file.
80945
80946         * modules/chown (Depends-on): Add stat-macros.
80947
80948 2006-08-10  Jim Meyering  <jim@meyering.net>
80949
80950         * m4/cycle-check.m4: New file.
80951         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80952         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80953
80954 2006-08-10  Eric Blake  <ebb9@byu.net>
80955
80956         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80957         in from original proposal.
80958
80959 2006-08-10  Eric Blake  <ebb9@byu.net>
80960         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80961
80962         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80963         namespace.
80964
80965 2006-08-10  Bruno Haible  <bruno@clisp.org>
80966
80967         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80968         as well.
80969
80970 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         Sync from coreutils.
80973
80974         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80975
80976         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80977         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80978
80979 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80980
80981         * modules/restrict: Remove; no longer needed now that we assume
80982         Autoconf 2.59 or later.
80983         * MODULES.html.sh: Remove 'restrict'.
80984         * modules/argp (Depends-on): Remove 'restrict'.
80985         * modules/base64 (Depends-on): Likewise.
80986         * modules/gc (Depends-on): Likewise.
80987         * modules/getaddrinfo (Depends-on): Likewise.
80988         * modules/glob (Depends-on): Likewise.
80989         * modules/inet_ntop (Depends-on): Likewise.
80990         * modules/inet_pton (Depends-on): Likewise.
80991         * modules/memxor (Depends-on): Likewise.
80992         * modules/regex (Depends-on): Likewise.
80993         * modules/strtok_r (Depends-on): Likewise.
80994         * modules/time_r (Depends-on): Likewise.
80995
80996 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80997
80998         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80999         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
81000         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81001         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
81002         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
81003         * m4/memxor.m4 (gl_MEMXOR): Likewise.
81004         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
81005         gl_C_RESTRICT replaced by AC_C_RESTRICT.
81006
81007         Merge from coreutils.
81008         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
81009         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
81010         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
81011         * m4/time_r.m4 (gl_TIME_R): Likewise.
81012
81013 2006-08-09  Karl Berry  <karl@gnu.org>
81014
81015         * config/srclist.txt: no more gettext-tools, per Bruno.
81016
81017 2006-08-08  Eric Blake  <ebb9@byu.net>
81018
81019         * modules/verror: New module.
81020         * MODULES.html.sh: Document it.
81021
81022 2006-08-08  Eric Blake  <ebb9@byu.net>
81023
81024         * lib/verror.h, lib/verror.c: New files.
81025
81026 2006-08-08  Eric Blake  <ebb9@byu.net>
81027
81028         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
81029         verror_at_line output complies with GNU Coding Standards even when
81030         file is NULL.
81031
81032 2006-08-07  Bruno Haible  <bruno@clisp.org>
81033
81034         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
81035         versions of AIX.
81036         Reported by Ralf Wildenhues.
81037
81038 2006-08-07  Bruno Haible  <bruno@clisp.org>
81039
81040         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
81041         in an AC_DEFUN. Needed so that the autoconf snippets can use
81042         AC_REQUIRE.
81043
81044 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81045
81046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81047         Initialize pkgdata_DATA.
81048         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
81049         overriding it.
81050
81051 2006-08-06  Eric Blake  <ebb9@byu.net>
81052
81053         * lib/error.h: Fold in some upstream changes from glibc.
81054         * lib/error.c: Likewise.
81055
81056 2006-08-04  Bruno Haible  <bruno@clisp.org>
81057
81058         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81059         Make the mostlyclean-local rule depend on mostlyclean-generic.
81060         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
81061
81062 2006-07-31  Bruno Haible  <bruno@clisp.org>
81063
81064         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
81065         <stdlib.h>, <string.h>.
81066
81067 2006-07-30  Bruno Haible  <bruno@clisp.org>
81068
81069         * modules/readlink (License): Change to LGPL.
81070
81071 2006-07-30  Bruno Haible  <bruno@clisp.org>
81072
81073         * modules/javaversion (Makefile.am): Distribute javaversion.java and
81074         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
81075         set PKGDATADIR to point to it.
81076
81077 2006-07-30  Bruno Haible  <bruno@clisp.org>
81078
81079         * modules/csharpexec (configure.ac): Comment out macro invocation.
81080         * modules/javaexec (configure.ac): Likewise.
81081         * modules/javacomp-script (configure.ac): Likewise.
81082
81083         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
81084
81085 2006-07-30  Bruno Haible  <bruno@clisp.org>
81086
81087         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
81088         linked-list.
81089
81090 2006-07-30  Bruno Haible  <bruno@clisp.org>
81091
81092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
81093
81094 2006-07-30  Bruno Haible  <bruno@clisp.org>
81095
81096         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81097         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
81098         get removed.
81099
81100 2006-07-29  Bruno Haible  <bruno@clisp.org>
81101
81102         Make it possible for gnulib-tool to work with locally modified or
81103         augmented gnulib repositories.
81104         * gnulib-tool (func_usage): Document --local-dir option.
81105         (local_gnulib_dir): New variable.
81106         Handle --local-dir option.
81107         (func_lookup_file): New function.
81108         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
81109         (func_get_description, func_get_filelist, func_get_description,
81110         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
81111         func_get_automake_snippet, func_get_include_directive,
81112         func_get_license, func_get_maintainer): Use func_lookup_file.
81113         (func_import, func_create_testdir): Use func_lookup_file.
81114
81115 2006-07-29  Bruno Haible  <bruno@clisp.org>
81116
81117         * modules/setenv (Depends-on): Add unistd.
81118
81119 2006-07-29  Bruno Haible  <bruno@clisp.org>
81120
81121         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
81122
81123 2006-07-29  Bruno Haible  <bruno@clisp.org>
81124
81125         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
81126
81127 2006-07-29  Bruno Haible  <bruno@clisp.org>
81128
81129         * gnulib-tool (import, update): If there is no Makefile.am, look at
81130         aclocal.m4, instead of bailing out.
81131
81132 2006-07-29  Bruno Haible  <bruno@clisp.org>
81133
81134         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
81135         Categorize the options by when they are useful.
81136
81137 2006-07-29  Bruno Haible  <bruno@clisp.org>
81138
81139         * gnulib-tool (func_usage): Document option --no-libtool.
81140         Handle option --no-libtool.
81141         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
81142         for changed semantics of $libtool variable.
81143         (func_import): Likewise. If libtool is not used, show this through
81144         an option --no-libtool.
81145         (func_create_testdir): Update.
81146
81147 2006-07-29  Bruno Haible  <bruno@clisp.org>
81148
81149         * gnulib-tool (func_import): Extend error message about missing
81150         --doc-base.
81151
81152 2006-07-29  Bruno Haible  <bruno@clisp.org>
81153
81154         * gnulib-tool (func_import): Don't create the $docbase directory if
81155         there is no file to store there.
81156
81157 2006-07-29  Bruno Haible  <bruno@clisp.org>
81158
81159         * gnulib-tool (autoconf_minversion): If a --dir option is given and
81160         relevant, look for configure.ac there, not in the current directory.
81161         Also use a simple search for AC_PREREQ, not "autoconf --trace".
81162
81163 2006-07-29  Bruno Haible  <bruno@clisp.org>
81164
81165         * gnulib-tool (SORT): New variable.
81166         (func_usage): Undocument --assume-autoconf option.
81167         Remove --assume-autoconf option handling.
81168         (autoconf_minversion): Determine from the contents of configure.ac.
81169         (func_import): Remove autoconf_minversion handling.
81170         Suggested by Eric Blake.
81171
81172 2006-07-29  Bruno Haible  <bruno@clisp.org>
81173
81174         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
81175
81176 2006-07-29  Bruno Haible  <bruno@clisp.org>
81177
81178         * config/srclist.txt (*setenv.[ch]): Remove rules.
81179
81180 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81181
81182         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
81183
81184 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81185
81186         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
81187         arpa/inet.h.
81188
81189 2006-07-28  Simon Josefsson  <jas@extundo.com>
81190
81191         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
81192         * modules/inet_pton (Depends-on): Likewise.
81193
81194 2006-07-28  Simon Josefsson  <jas@extundo.com>
81195
81196         * m4/netinet_in_h.m4: New file.
81197
81198 2006-07-28  Simon Josefsson  <jas@extundo.com>
81199
81200         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
81201         #include's.
81202
81203 2006-07-28  Simon Josefsson  <jas@extundo.com>
81204
81205         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81206         #include's.
81207
81208 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81209
81210         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81211         setgid on directories only if they set these bits.
81212         * lib/modechange.h: Remove obsolete comment about masks.
81213
81214 2006-07-28  Eric Blake  <ebb9@byu.net>
81215
81216         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81217         macro expansion.
81218
81219 2006-07-28  Bruno Haible  <bruno@clisp.org>
81220
81221         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81222
81223 2006-07-28  Bruno Haible  <bruno@clisp.org>
81224
81225         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81226
81227 2006-07-28  Bruno Haible  <bruno@clisp.org>
81228
81229         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81230         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81231         Define fallbacks.
81232         Avoids link error on FreeBSD 4.x.
81233         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81234
81235         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81236         encoding.
81237         * lib/mbswidth.c (iswcntrl): Likewise.
81238
81239 2006-07-27  Bruno Haible  <bruno@clisp.org>
81240
81241         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81242         test.
81243
81244 2006-07-27  Bruno Haible  <bruno@clisp.org>
81245
81246         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81247         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81248         defined.
81249
81250 2006-07-26  Eric Blake  <ebb9@byu.net>
81251
81252         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81253
81254 2006-07-26  Eric Blake  <ebb9@byu.net>
81255
81256         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81257         like mingw that lack mkstemp.
81258         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81259         avoid compilation warning on mingw.
81260
81261 2006-07-26  Bruno Haible  <bruno@clisp.org>
81262
81263         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81264         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81265         INT_FAST*_MIN, INTPTR_MIN.
81266
81267 2006-07-25  Bruno Haible  <bruno@clisp.org>
81268
81269         * modules/version-etc (Depends-on): Add stdarg.
81270
81271 2006-07-25  Bruno Haible  <bruno@clisp.org>
81272
81273         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81274         complex commands.
81275
81276 2006-07-25  Bruno Haible  <bruno@clisp.org>
81277
81278         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81279         defined in <stdarg.h> or config.h.
81280
81281 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81282
81283         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81284         (gl_STDIO_SAFER): Remove.
81285
81286 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81287
81288         * MODULES.html.sh (File stream based Input/Output):
81289         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81290         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81291         * modules/fopen-safer, modules/tmpfile-safer: New files.
81292         * modules/stdio-safer: Remove.
81293
81294 2006-07-24  Bruno Haible  <bruno@clisp.org>
81295
81296         * modules/tmpdir: New file.
81297         * MODULES.html.sh (File system functions): Add it.
81298
81299 2006-07-24  Bruno Haible  <bruno@clisp.org>
81300
81301         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81302         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81303
81304 2006-07-24  Bruno Haible  <bruno@clisp.org>
81305
81306         * modules/clean-temp: New file.
81307
81308 2006-07-24  Bruno Haible  <bruno@clisp.org>
81309
81310         * m4/tmpdir.m4: New file, from GNU gettext.
81311
81312 2006-07-24  Bruno Haible  <bruno@clisp.org>
81313
81314         * lib/tmpdir.h: New file, from GNU gettext.
81315         * lib/tmpdir.c: New file, from GNU gettext.
81316
81317 2006-07-24  Bruno Haible  <bruno@clisp.org>
81318
81319         * lib/clean-temp.h: New file, from GNU gettext.
81320         * lib/clean-temp.c: New file, from GNU gettext.
81321
81322 2006-07-23  Eric Blake  <ebb9@byu.net>
81323
81324         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81325         (Depends-on): Add binary-io.
81326
81327 2006-07-23  Eric Blake  <ebb9@byu.net>
81328
81329         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81330
81331 2006-07-23  Eric Blake  <ebb9@byu.net>
81332
81333         * lib/tmpfile-safer.c: New file.
81334         * lib/stdio-safer.h (fopen_safer): Add prototype.
81335         * lib/stdio--.h (tmpfile): Make safer.
81336
81337 2006-07-23  Bruno Haible  <bruno@clisp.org>
81338
81339         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81340         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81341         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81342         gl_linked_remove_at): Use it.
81343
81344 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81345         and Simon Josefsson <jas@extundo.com>
81346
81347         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81348
81349         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81350
81351 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81352
81353         * modules/close-stream: New file.
81354         * modules/closeout (Description): Make it clear that it exits
81355         with a diagnostic on error.
81356         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81357         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81358
81359 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81360
81361         * m4/close-stream.m4: New file.
81362
81363 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81364
81365         * lib/close-stream.c, lib/close-stream.h: New files.
81366
81367 2006-07-22  Bruno Haible  <bruno@clisp.org>
81368
81369         Merge from GNU gettext 0.15.
81370
81371         2006-05-01  Bruno Haible  <bruno@clisp.org>
81372
81373                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81374
81375         2006-07-22  Bruno Haible  <bruno@clisp.org>
81376
81377                 * modules/javaversion: New file.
81378                 * MODULES.html.sh (Java): Add javaversion.
81379
81380         2006-03-12  Bruno Haible  <bruno@clisp.org>
81381
81382                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81383
81384         2005-12-04  Bruno Haible  <bruno@clisp.org>
81385
81386                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81387                 (untested).
81388
81389         2006-06-21  Bruno Haible  <bruno@clisp.org>
81390
81391                 Avoid warnings from recent versions of mcs.
81392                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81393                 -o, -L, -r any more. Use options documented since mcs-1.0
81394                 instead. Similarly for -g.
81395
81396         2005-12-04  Bruno Haible  <bruno@clisp.org>
81397
81398                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81399                 .resources, not .resource.
81400
81401         2005-07-09  Bruno Haible  <bruno@clisp.org>
81402
81403                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81404                 add a .dll suffix.
81405                 Reported by Mark Junker <mjscod@gmx.de>.
81406
81407         2006-07-22  Bruno Haible  <bruno@clisp.org>
81408
81409                 * modules/gettext: Upgrade to gettext-0.15.
81410                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81411                 m4/visibility.m4.
81412                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81413
81414 2006-07-22  Bruno Haible  <bruno@clisp.org>
81415
81416         Merge from GNU gettext 0.15.
81417
81418         2006-03-25  Bruno Haible  <bruno@clisp.org>
81419
81420                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81421
81422         2006-07-21  Bruno Haible  <bruno@clisp.org>
81423
81424                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81425                 "1.1".
81426
81427         2006-05-09  Bruno Haible  <bruno@clisp.org>
81428
81429                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81430                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81431                 for the conftestver execution.
81432
81433         2006-05-01  Bruno Haible  <bruno@clisp.org>
81434
81435                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81436                 optional target-version argument. Verify that the compiler
81437                 groks source of the specified source-version, or add -source
81438                 option as necessary. Verify that the compiler produces
81439                 bytecode in the specified target-version, or add -target and
81440                 -source options as necessary. Make the result of the test
81441                 available as variable CONF_JAVAC. Also log error output in
81442                 config.log.
81443
81444         2006-03-11  Bruno Haible  <bruno@clisp.org>
81445
81446                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81447
81448         2006-05-09  Bruno Haible  <bruno@clisp.org>
81449
81450                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81451                 CLASSPATH_SEPARATOR to a semicolon.
81452
81453         2006-03-12  Bruno Haible  <bruno@clisp.org>
81454
81455                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81456                 available as variable CONF_JAVA, for subsequent autoconf
81457                 tests. Also log error output in config.log.
81458
81459         2006-07-19  Bruno Haible  <bruno@clisp.org>
81460
81461                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81462                 that getline works on glibc2 systems. Needed to avoid trouble
81463                 in relocatable.c.
81464                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81465
81466         2005-12-04  Bruno Haible  <bruno@clisp.org>
81467
81468                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81469                 launcher (untested).
81470
81471         2005-12-04  Bruno Haible  <bruno@clisp.org>
81472
81473                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81474
81475         2006-07-22  Bruno Haible  <bruno@clisp.org>
81476
81477                 * gettext.m4: Update from GNU gettext-0.15.
81478                 * nls.m4: Likewise.
81479                 * po.m4: Likewise.
81480                 * inttypes-pri.m4: Likewise.
81481                 * inttypes-h.m4: Renamed from inttypes.m4.
81482                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81483
81484 2006-07-22  Bruno Haible  <bruno@clisp.org>
81485
81486         Merge from GNU gettext 0.15.
81487
81488         2005-07-05  Bruno Haible  <bruno@clisp.org>
81489
81490                 * printf-args.c (printf_fetchargs): Work around broken
81491                 definition of wint_t on mingw.
81492
81493         2005-02-12  Bruno Haible  <bruno@clisp.org>
81494
81495                 * xallocsa.h: Add extern "C" for C++.
81496
81497         2006-05-17  Bruno Haible  <bruno@clisp.org>
81498
81499                 Cygwin portability.
81500                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81501
81502         2006-04-30  Bruno Haible  <bruno@clisp.org>
81503
81504                 * progreloc.c: Include <mach-o/dyld.h> if available.
81505                 (find_executable): Use _NSGetExecutablePath when possible.
81506
81507         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81508
81509                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81510                 function.
81511
81512         2005-12-29  Bruno Haible  <bruno@clisp.org>
81513
81514                 * progreloc.c (set_program_name_and_installdir): Fix
81515                 compilation error.
81516
81517         2005-12-04  Bruno Haible  <bruno@clisp.org>
81518
81519                 Cygwin portability.
81520                 * progreloc.c: Include <windows.h> also on Cygwin.
81521                 (find_executable): Add support for Cygwin.
81522                 (set_program_name_and_installdir): Handle also platforms with
81523                 nonempty EXEEXT.
81524
81525         2006-07-11  Bruno Haible  <bruno@clisp.org>
81526
81527                 * javacomp.c: Fix a comment.
81528                 Reported by Jim Meyering.
81529
81530         2006-04-30  Bruno Haible  <bruno@clisp.org>
81531
81532                 * javacomp.h (compile_java_class): Add source_version,
81533                 target_version arguments.
81534                 * javacomp.c: Rewritten to choose only a compiler that
81535                 respects the specified source_version and target_version.
81536
81537         2006-06-27  Bruno Haible  <bruno@clisp.org>
81538
81539                 Assume correct S_ISDIR macro.
81540                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81541
81542         2006-07-22  Bruno Haible  <bruno@clisp.org>
81543
81544                 * javaversion.h: New file, from GNU gettext.
81545                 * javaversion.c: New file, from GNU gettext.
81546                 * javaversion.java: New file, from GNU gettext.
81547                 * javaversion.class: New file, from GNU gettext.
81548
81549         2006-05-17  Bruno Haible  <bruno@clisp.org>
81550
81551                 Cygwin portability.
81552                 * javaexec.c (execute_java_class): Test for jview program
81553                 also on Cygwin.
81554
81555         2006-04-09  Bruno Haible  <bruno@clisp.org>
81556
81557                 * fatal-signal.c: Don't include string.h.
81558                 (at_fatal_signal): Use a copying loop instead of memcpy.
81559
81560         2005-12-04  Bruno Haible  <bruno@clisp.org>
81561
81562                 * csharpexec.c: Add support for 'clix' launcher (untested).
81563                 (execute_csharp_using_sscli): New function.
81564                 (execute_csharp_program): Call it.
81565
81566         2006-06-21  Bruno Haible  <bruno@clisp.org>
81567
81568                 Avoid warnings from recent versions of mcs.
81569                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81570                 -o, -L, -r any more. Use options documented since mcs-1.0
81571                 instead. Similarly for -g.
81572
81573         2005-07-09  Bruno Haible  <bruno@clisp.org>
81574
81575                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81576                 add a .dll suffix.
81577                 Reported by Mark Junker <mjscod@gmx.de>.
81578
81579         2006-06-17  Bruno Haible  <bruno@clisp.org>
81580
81581                 * config.charset: Update for NetBSD 3.0.
81582
81583         2006-05-17  Bruno Haible  <bruno@clisp.org>
81584
81585                 Cygwin portability.
81586                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81587
81588         2006-05-16  Bruno Haible  <bruno@clisp.org>
81589
81590                 * localcharset.c [CYGWIN]: Include <windows.h>.
81591                 (get_charset_aliases): For Cygwin, return the same CPxxx
81592                 aliases list as under WIN32.
81593                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81594                 the environment variables. Fall back to GetACP().
81595
81596         2006-04-05  Bruno Haible  <bruno@clisp.org>
81597
81598                 * config.charset: Update Juan Manuel Guerrero's address.
81599
81600         2005-02-12  Bruno Haible  <bruno@clisp.org>
81601
81602                 * allocsa.h: Add extern "C" for C++.
81603
81604         2005-02-10  Bruno Haible  <bruno@clisp.org>
81605
81606                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81607                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81608
81609         2006-07-22  Bruno Haible  <bruno@clisp.org>
81610
81611                 * gettext.h: Update to GNU gettext-0.15.
81612
81613 2006-07-22  Bruno Haible  <bruno@clisp.org>
81614
81615         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81616         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81617         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81618
81619 2006-07-21  Eric Blake  <ebb9@byu.net>
81620
81621         * modules/stdlib-safer: New file.
81622         * MODULES.html.sh (File stream based Input/Output): Add
81623         stdlib-safer.
81624
81625 2006-07-21  Eric Blake  <ebb9@byu.net>
81626
81627         * lib/stdlib-safer.h: New file from coreutils, required by
81628         stdlib--.h.
81629
81630 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81631
81632         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81633
81634 2006-07-20  Bruno Haible  <bruno@clisp.org>
81635
81636         * gnulib-tool: Recognize new option --assume-autoconf.
81637         (autoconf_minversion): New variable.
81638         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81639
81640 2006-07-20  Bruno Haible  <bruno@clisp.org>
81641
81642         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81643
81644 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81645
81646         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81647         Reindent and repaginate.
81648
81649 2006-07-19  Derek Price  <derek@ximbiot.com>
81650
81651         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81652         Correct grammar.
81653
81654 2006-07-17  Bruno Haible  <bruno@clisp.org>
81655
81656         * modules/list: New file.
81657         * modules/array-list: New file.
81658         * modules/carray-list, modules/carray-list-tests: New files.
81659         * modules/linked-list, modules/linked-list-tests: New files.
81660         * modules/avltree-list, modules/avltree-list-tests: New files.
81661         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81662         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81663         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81664         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81665         * modules/oset: New file.
81666         * modules/array-oset: New file.
81667         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81668         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81669         * tests/test-carray_list.c: New file.
81670         * tests/test-linked_list.c: New file.
81671         * tests/test-avltree_list.c: New file.
81672         * tests/test-rbtree_list.c: New file.
81673         * tests/test-linkedhash_list.c: New file.
81674         * tests/test-avltreehash_list.c: New file.
81675         * tests/test-rbtreehash_list.c: New file.
81676         * tests/test-avltree_oset.c: New file.
81677         * tests/test-rbtree_oset.c: New file.
81678         * MODULES.html.sh (Container data structures): New section.
81679
81680 2006-07-17  Bruno Haible  <bruno@clisp.org>
81681
81682         * m4/gl_list.m4: New file.
81683
81684 2006-07-17  Bruno Haible  <bruno@clisp.org>
81685
81686         * lib/gl_list.h: New file.
81687         * lib/gl_list.c: New file.
81688         * lib/gl_array_list.h: New file.
81689         * lib/gl_array_list.c: New file.
81690         * lib/gl_carray_list.h: New file.
81691         * lib/gl_carray_list.c: New file.
81692         * lib/gl_linked_list.h: New file.
81693         * lib/gl_linked_list.c: New file.
81694         * lib/gl_anylinked_list1.h: New file.
81695         * lib/gl_anylinked_list2.h: New file.
81696         * lib/gl_avltree_list.h: New file.
81697         * lib/gl_avltree_list.c: New file.
81698         * lib/gl_anyavltree_list1.h: New file.
81699         * lib/gl_anyavltree_list2.h: New file.
81700         * lib/gl_rbtree_list.h: New file.
81701         * lib/gl_rbtree_list.c: New file.
81702         * lib/gl_anyrbtree_list1.h: New file.
81703         * lib/gl_anyrbtree_list2.h: New file.
81704         * lib/gl_anytree_list1.h: New file.
81705         * lib/gl_anytree_list2.h: New file.
81706         * lib/gl_linkedhash_list.h: New file.
81707         * lib/gl_linkedhash_list.c: New file.
81708         * lib/gl_anyhash_list1.h: New file.
81709         * lib/gl_anyhash_list2.h: New file.
81710         * lib/gl_avltreehash_list.h: New file.
81711         * lib/gl_avltreehash_list.c: New file.
81712         * lib/gl_rbtreehash_list.h: New file.
81713         * lib/gl_rbtreehash_list.c: New file.
81714         * lib/gl_anytreehash_list1.h: New file.
81715         * lib/gl_anytreehash_list2.h: New file.
81716
81717         * lib/gl_oset.h: New file.
81718         * lib/gl_oset.c: New file.
81719         * lib/gl_array_oset.h: New file.
81720         * lib/gl_array_oset.c: New file.
81721         * lib/gl_avltree_oset.h: New file.
81722         * lib/gl_avltree_oset.c: New file.
81723         * lib/gl_rbtree_oset.h: New file.
81724         * lib/gl_rbtree_oset.c: New file.
81725         * lib/gl_anytree_oset.h: New file.
81726
81727 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * m4/mkancesdirs.m4: New file.
81730         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81731         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81732         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81733         it.
81734
81735 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81738         * lib/mkancesdirs.h: New files.
81739         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81740         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81741         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81742         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81743         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81744         callers changed.  Revamp internals significantly, by not
81745         attempting to create directories that are temporarily more
81746         permissive than the final results.  Do not attempt to use
81747         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81748         This removes some race conditions, fixes some bugs, and simplifies
81749         things.  Use new dirchownmod function to do owner and mode changes.
81750         * lib/mkdir-p.h: Likewise.
81751         * lib/modechange.c (octal_to_mode): New function.
81752         (struct mode_change): New member mentioned.
81753         (make_node_op_equals): New arg mentioned.  All callers changed.
81754         (mode_compile): Keep track of which mode bits the user has explicitly
81755         mentioned.
81756         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81757         New arg PMODE_BITS, to keep track of which mode bits the user
81758         mentioned; it treats S_ISUID and S_ISGID speciall.
81759         All callers changed.
81760         * lib/modechange.h: Likewise.
81761
81762 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81763
81764         * MODULES.html.sh: Add mkancestors.
81765         * modules/mkancesdirs: New module.
81766         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81767         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81768         The chdir-safer and afs files are now orphans; I'll remove them
81769         unless someone speaks up.
81770         Add lib/dirchownmod.c, lib/dirchownmod.h.
81771         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81772         Add lchown, mkancesdirs.
81773         (Maintainer): Add self.
81774
81775 2006-07-15  Karl Berry  <karl@gnu.org>
81776
81777         * gnulib-tool: help message wording/arrangement.
81778
81779 2006-07-14  Simon Josefsson  <jas@extundo.com>
81780
81781         * doc/gnulib.texi (Libtool and Windows): New section.
81782
81783 2006-07-12  Simon Josefsson  <jas@extundo.com>
81784
81785         * modules/gendocs (License): Fix license, approved by Karl.
81786
81787 2006-07-12  Eric Blake  <ebb9@byu.net>
81788
81789         * MODULES.html.sh: Add gendocs.
81790
81791 2006-07-11  Eric Blake  <ebb9@byu.net>
81792
81793         * modules/fdl: New module, to install doc/fdl.texi.
81794         * MODULES.html.sh: Add new section for documentation modules.
81795         * gnulib-tool: Avoid space-tab.
81796         (--doc-base): New option, to manage files from doc.
81797
81798 2006-07-11  Eric Blake  <ebb9@byu.net>
81799
81800         * m4/absolute-header.m4: Fix comments to match recent change.
81801
81802 2006-07-11  Eric Blake  <ebb9@byu.net>
81803
81804         * gnulib-tool: List --doc-base before --tests-base.
81805
81806 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81807
81808         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81809
81810 2006-07-11  Bruno Haible  <bruno@clisp.org>
81811
81812         * README: Mention where to put documentation.
81813
81814 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81815
81816         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81817
81818 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81819
81820         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81821         to stdint.m4.
81822
81823 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81824
81825         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81826         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81827         "no/such/file/stdint.h" when there is no such file, so that
81828         the resulting C code can be parsed by dodgy compilers.
81829         Problems reported by Bob Proulx.
81830
81831 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81832
81833         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81834         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81835         macros into the GNU _D_EXACT_NAMLEN.
81836         * lib/savedir.c:  Likewise.
81837         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81838
81839 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81840         and Paul Eggert  <eggert@cs.ucla.edu>
81841
81842         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81843         * m4/savedir.m4:
81844         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81845         macros into the GNU _D_EXACT_NAMLEN.
81846
81847 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81848
81849         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81850         around the absolute name, to work around a problem with the HP-UX
81851         11.23 native C compiler, reported by Bob Proulx.
81852
81853 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         * doc/maintain.texi, make-stds.texi: Sync from
81856         <http://savannah.gnu.org/projects/gnustandards>.
81857
81858 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81859
81860         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81861
81862 2006-07-09  Jim Meyering  <jim@meyering.net>
81863
81864         * m4/glob.m4: Remove a doubled word in a comment.
81865
81866 2006-07-09  Jim Meyering  <jim@meyering.net>
81867
81868         * lib/argp-pv.c: Remove a doubled word in a comment.
81869         * lib/check-version.c (check_version): Likewise.
81870         * lib/javacomp.c (compile_java_class): Likewise.
81871
81872 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81875         for the benefit of people using Autoconf 2.60.  If you want to
81876         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81877         (or m4/onceonly.m4, if pre-2.57) manually.
81878
81879 2006-07-08  Jim Meyering  <jim@meyering.net>
81880
81881         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81882         comment.
81883         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81884         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81885         comment.
81886
81887 2006-07-08  Jim Meyering  <jim@meyering.net>
81888
81889         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81890
81891 2006-07-07  Simon Josefsson  <jas@extundo.com>
81892
81893         * tests/test-crc.c: Change expected crc value, the test vector
81894         were probably computed using the old broken crc.c?
81895
81896 2006-07-06  Simon Josefsson  <jas@extundo.com>
81897
81898         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81899         now the canonical place for the M4 file).
81900
81901         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81902         from the sys_socket dependency now.
81903
81904         * modules/inet_pton (Files): Ditto.
81905
81906         * modules/inet_ntop (Files): Ditto.
81907
81908 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81909
81910         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81911         not gl_PREREQ_GETUSERSHELL.
81912
81913 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81914
81915         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81916         with only one argument, for Autoconf 2.60.
81917         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81918         expand to nothing, so add a shell command to avoid syntax error.
81919         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81920
81921 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81922
81923         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81924
81925 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81926
81927         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81928         no longer needed.  Check for isblank decl.
81929         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81930         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81931         of existence.
81932
81933 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81934
81935         * lib/getloadavg.c: Use __VMS, not VMS.
81936         * lib/getopt.c: Likewise.
81937         * lib/getpagesize.h: Likewise.
81938         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81939         and probably does not work.
81940
81941 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81942
81943         * lib/.cppi-disable: Add wcwidth.
81944         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81945         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81946         (ISGRAPH): Remove.  All uses changed to isgraph.
81947         (FOLD) [!defined _LIBC]: Remove special case.
81948         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81949         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81950         HAVE_ISBLANK.
81951         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81952         case.
81953
81954 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81955
81956         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81957         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81958         brackets.  Other minor changes to suppress some compiler
81959         warnings.
81960
81961 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81962         and Paul Eggert  <eggert@cs.ucla.edu>
81963
81964         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81965         of invoking obsolescent AC_HEADER_DIRENT macro.
81966         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81967         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81968         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81969         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81970         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81971         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81972         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81973         * m4/readdir.m4: Remove; no longer needed.
81974
81975 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81976         and Paul Eggert  <eggert@cs.ucla.edu>
81977
81978         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81979         Don't worry about this obsolete case any more.
81980         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81981         directories.
81982         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81983         worry about this obsolete case any more.
81984         * lib/fts.c: Likewise.
81985         * lib/getcwd.c: Likewise.
81986         * lib/glob.h: Likewise.
81987         * lib/savedir.c: Likewise.
81988
81989 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81990
81991         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81992         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81993         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81994         needed.
81995         All uses removed.
81996         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81997         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81998         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81999         needed.
82000         * m4/getdate.m4 (gl_GETDATE): Likewise.
82001         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82002         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82003         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82004         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82005         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
82006         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82007         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
82008         needed.
82009
82010 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82011
82012         * lib/memcasecmp.c: Include <limits.h>.
82013         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
82014         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
82015         Don't assume isdigit succeeds only on '0' through '9'.
82016
82017 2006-07-05  Eric Blake  <ebb9@byu.net>
82018
82019         * modules/getaddrinfo (Depends-on): Add snprintf.
82020
82021 2006-07-05  Eric Blake  <ebb9@byu.net>
82022
82023         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
82024         to avoid 'header present but could not be compiled' on cygwin.
82025
82026 2006-07-05  Eric Blake  <ebb9@byu.net>
82027
82028         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
82029         missing from netdb.h.
82030         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
82031
82032 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82033
82034         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
82035         no longer needed.
82036         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
82037         * m4/getdate.m4 (gl_GETDATE): Likewise.
82038         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82039         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82040         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82041         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82042         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82043
82044 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82045
82046         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
82047         All uses of is_space replaced by isspace.
82048         * lib/exit.h: Don't talk about STDC_HEADERS.
82049         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
82050         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
82051         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
82052         replaced by isprint etc.
82053         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
82054         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82055         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
82056         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
82057         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
82058         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82059
82060 2006-07-05  Bruno Haible  <bruno@clisp.org>
82061
82062         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
82063         the function exists, before testing against AIX.
82064         Reported by Martin Lambers <marlam@marlam.de>.
82065
82066 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82067
82068         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
82069         From Mark D. Baushke.
82070
82071 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82072
82073         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
82074         to the absolute name, not just one, to bypass Sun C 5.8's
82075         "warning: #include of /usr/include/... may be non-portable".
82076
82077 2006-07-04  Eric Blake  <ebb9@byu.net>
82078
82079         * modules/dirname-tests: New test module.
82080         * tests/test-dirname.c: New file, replacing dirname.c
82081         TEST_DIRNAME section that was recently deleted.
82082
82083 2006-07-04  Bruno Haible  <bruno@clisp.org>
82084
82085         Assume ANSI C header files and <ctype.h> functions.
82086         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
82087         (mbsnwidth): Use isprint, iscntrl instead.
82088
82089 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82090
82091         Merge from coreutils.
82092         * MODULES.html.sh: Add xstrtold.
82093         * modules/xstrtold: New file.
82094         * modules/cycle-check (Files): Add lib/same-inode.h.
82095         * modules/dirname (Files): Add m4/double-slash-root.m4.
82096         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
82097         * modules/mkdir-p (Files): Add lib/same-inode.h.
82098         * modules/same (Files): Add lib/same-inode.h.
82099
82100 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82101
82102         * m4/absolute-header.m4: Renamed from full-header-path.m4.
82103         This is to keep the terminology clean; POSIX talks about
82104         "absolute pathnames", not "full pathnames", but the GNU
82105         Coding Standards say to use "path" for something else;
82106         so use "absolute" to keep both sides happy.
82107         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
82108         Set gl_absolute_header, not gl_full_header_path.
82109         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
82110         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
82111         All uses changed.
82112
82113         Merge from coreutils.
82114
82115         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82116
82117         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
82118         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
82119         want to require the building of c-strtod.o.
82120         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
82121         needs -lm directly.
82122         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
82123
82124         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82125
82126         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
82127         --as-needed option if available.  Problem reported by Albert Chin in
82128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
82129         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
82130         cc merely issues a bunch of annoying warnings for --as-needed
82131         (this problem was reported by Bob Proulx).  Also, try linking with
82132         -lm to detect a bug in binutils 2.16 (this problem was reported
82133         by Ralf Wildenhues).
82134
82135         2006-06-18  Jim Meyering  <jim@meyering.net>
82136
82137         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
82138         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
82139         macro.
82140         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
82141         also check for glibc-2.4's abort-inducing bug.
82142
82143         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
82144         Low-probability clean-up should be to use rmdir to get rid of
82145         the just-created directory, not unlink.
82146
82147         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
82148         configure fail, and request a bug report to inform us about it.
82149         Add a comment that, barring reports to the contrary, in 2007 we'll
82150         assume ftruncate is universally available.
82151
82152         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82153
82154         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
82155
82156         2006-03-12  Jim Meyering  <jim@meyering.net>
82157
82158         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
82159         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
82160         * m4/same.m4 (gl_SAME): Likewise.
82161         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
82162
82163         2006-03-11  Eric Blake  <ebb9@byu.net>
82164
82165         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
82166         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
82167         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
82168         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
82169
82170 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82171
82172         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
82173         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
82174         reported by Mark D. Baushke, one in
82175         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
82176
82177         Merge from coreutils.
82178
82179         * lib/.cppi-disable: Add stdint_.h.
82180         * lib/.cvsignore: Add stdint.h.
82181
82182         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82183
82184         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
82185         both double and long double versions.
82186         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
82187         * lib/xstrtold.c: New file.
82188         * lib/xstrtod.h (xstrtold): New decl.
82189
82190         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82191
82192         * lib/filemode.c (setst): Remove.
82193         (strmode): Rewrite to avoid setst.  This makes the code shorter,
82194         (arguably) clearer, and the generated code is a bit smaller on my
82195         Debian GNU/Linux stable x86 host.
82196
82197         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82198
82199         * lib/filemode.c: Include "filemode.h" first, to test the interface.
82200         Assume that filemode.h includes sys/types.h and sys/stat.h.
82201         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
82202         (ftypelet): Reorder to put common cases first, for efficiency.
82203         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82204         to do 'M'.
82205         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82206         of 10, for compatibility with FreeBSD.  All callers changed.
82207         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82208         types that can't be deduced solely from st_mode.  First arg is now a
82209         const pointer.
82210         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82211         (strmode): Renamed from mode_string.
82212         (filemodestring): New decl.
82213         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82214         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82215         needed.
82216         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82217
82218         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82219
82220         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82221         fsusage.h now does that.  Include fsusage.h first, to test interface.
82222         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82223         at most one method (the old code could have generated decls that
82224         didn't conform to C89, not that this was ever exercised).
82225         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82226
82227         2006-03-19  Jim Meyering  <jim@meyering.net>
82228
82229         Work even in a chroot where d_ino values for entries in "/"
82230         don't match the stat.st_ino values for the same names.
82231         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82232         number, iterate through all entries again, using lstat instead.
82233         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82234         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82235
82236         * lib/getcwd.c (__getcwd): Clarify a comment.
82237         Use memcpy in place of a call to strcpy.
82238
82239         2006-03-12  Jim Meyering  <jim@meyering.net>
82240
82241         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82242         matches that of the current directory (which we're about to chdir ".."
82243         out of), then save the dev-ino of the parent, instead.
82244
82245         * lib/same-inode.h (SAME_INODE): New file/macro.
82246         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82247         Include "same-inode.h", instead.
82248         * lib/same.c: Likewise.
82249         * lib/cycle-check.h: Include "same-inode.h".
82250         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82251         * lib/cycle-check.c (SAME_INODE): Remove definition.
82252         * lib/root-dev-ino.h: Include "same-inode.h".
82253
82254         2006-03-11  Eric Blake  <ebb9@byu.net>
82255
82256         * lib/same.c (same_name): s/base_name/last_component/
82257         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82258         * lib/filenamecat.c (file_name_concat): Likewise.
82259
82260         2006-03-11  Eric Blake  <ebb9@byu.net>,
82261                     Paul Eggert  <eggert@cs.ucla.edu>
82262
82263         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82264         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82265         drive prefix.
82266         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82267         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82268         (last_component): New method.
82269         * lib/dirname.c (dir_len): Determine when drive letters need a
82270         subsequent slash.  Preserve // when it is special.
82271         (dir_name): Don't append dot when drive letter is absolute.
82272         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82273         * lib/basename.c (base_name): New semantics - malloc the result.
82274         Preserve // when it is special.  Preserve relative files that look
82275         like drive letters.
82276         (base_len): Preserve // when it is special.
82277         (last_component): New method, similar to old base_name semantics.
82278         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82279         base_name.  Strip redundant slashes from ///.
82280
82281 2006-07-03  Jim Meyering  <jim@meyering.net>
82282
82283         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82284         macro is used before the first cycle_check call.
82285
82286 2006-07-03  Eric Blake  <ebb9@byu.net>
82287
82288         * modules/dirname (Depends-on): Add xstrndup.
82289
82290 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82291
82292         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82293         test cases, so that config.log is a bit easier to follow.
82294
82295 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82296
82297         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82298         both are 64 bits, since this seems to be the tradition, and this
82299         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82300         we ever run into a host that prefers long long to long in this
82301         case, we'll need another configure-time test.  Problem reported by
82302         Jim Meyering.
82303
82304 2006-07-02  Eric Blake  <ebb9@byu.net>
82305
82306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82307
82308 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82309
82310         * modules/inttypes (Depends-on): No longer depends on stdint.
82311         * modules/stdint (Description): Say more about assumptions.
82312         Say that the fast types might differ.  Say macros are used.
82313         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82314         (Makefile.am): Revise list of substituted symbols to match
82315         new stdint.m4.
82316         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82317         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82318         * tests/test-stdint.c (verify_same_types)
82319         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82320         the code conforms to C99/C89.
82321         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82322         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82323
82324 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82327         but fix a bug, by requiring at least 64 bits.
82328         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82329         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82330         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82331         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82332
82333         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82334         changes.  Make 2.59 a prerequisite.  Check and substitute for
82335         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82336         inttypes.h.  Do not use special include files; just use the
82337         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82338         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82339         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82340         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82341         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82342         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82343         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82344         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82345         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82346         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82347         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82348         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82349         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82350         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82351         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82352         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82353         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82354         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82355         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82356         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82357         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82358         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82359         not check for things that C99 does not require, e.g., int8_t.  If
82360         a test isn't needed unless <stdint.h> isn't working, and is
82361         unlikely to be needed for any other reason, then don't do it
82362         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82363         size_t, since we assume C89 freestanding at least.  Do not check
82364         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82365         the right thing even if the types are not defined.  Instead use:
82366         (gl_STDINT_TYPE_PROPERTIES): New macro.
82367         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82368         testing whether <sys/types.h> clashes, as Autoconf does this for
82369         us now.  All uses removed.
82370         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82371         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82372         (gl_CHECK_TYPE_SAME):
82373         Remove; no longer needed.
82374         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82375         exists, since we'll return 0 anyway in that case.
82376         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82377
82378 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82379
82380         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82381         possible collision with system files.
82382         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82383         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82384         WCHAR_MIN and WCHAR_MAX in this case.
82385         (<stddef.h>): Do not include; no longer needed.
82386         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82387         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82388         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82389         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82390         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82391         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82392         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82393         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82394         !defined(__c99))]: Include in this case too, since it's harmless
82395         now.
82396         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82397         dangerous to do so.
82398         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82399         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82400         (_STDINT_MIN, _STDINT_MAX): New macros.
82401         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82402         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82403         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82404         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82405         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82406         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82407         macros, not typedefs; this simplifies things quite a bit.
82408         Use long int for all types narrower than int64_t.
82409         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82410         Define in terms of long long int or int64_t or long int,
82411         not int64_t or int32_t.  This saves some compile-time testing.
82412         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82413         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82414         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82415         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82416         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82417         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82418         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82419         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82420         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82421         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82422         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82423         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82424         undef any previous version and define our own version, for
82425         simplicity and consistency with the new macros for types.
82426         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82427         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82428         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82429         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82430         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82431         @WINT_T_SUFFIX@ to keep things simple here.
82432         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82433         Simplify by assuming typical 8/16/32/64 host, since we're
82434         already doing that elsewhere anyway.
82435         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82436         and assume long long int is 64 bits if available.  This
82437         speeds up 'configure'.
82438
82439 2006-07-01  Eric Blake  <ebb9@byu.net>
82440
82441         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82442         Reported by Andreas Buening.
82443
82444 2006-07-01  Eric Blake  <ebb9@byu.net>
82445
82446         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82447
82448 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82449
82450         * lib/getaddrinfo.c: fixed typo
82451
82452 2006-06-29  Jim Meyering  <jim@meyering.net>
82453
82454         * modules/strftime (Maintainer): Add my name, since with the
82455         FPRINTFTIME changes strftime.c has forked from glibc.
82456
82457 2006-06-29  Eric Blake  <ebb9@byu.net>
82458
82459         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82460
82461 2006-06-29  Eric Blake  <ebb9@byu.net>
82462
82463         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82464
82465 2006-06-29  Eric Blake  <ebb9@byu.net>
82466
82467         * lib/stat_.h: New file.
82468
82469 2006-06-29  Eric Blake  <ebb9@byu.net>
82470
82471         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82472         unused static function.
82473
82474 2006-06-29  Eric Blake  <ebb9@byu.net>
82475
82476         * doc/functions.texi (Function Portability): Document missing lstat
82477         on mingw.
82478
82479 2006-06-29  Eric Blake  <ebb9@byu.net>
82480
82481         * MODULES.html.sh: Add sys_stat.
82482         * modules/sys_stat: New module.
82483         * modules/mkstemp (Depends-on): Add sys_stat.
82484
82485 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82486
82487         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82488
82489 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82490
82491         * m4/c-bs-a.m4: Removed.
82492
82493 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82494
82495         * lib/strftime.c: Assume strftime() exists.
82496
82497 2006-06-29  Derek Price  <derek@ximbiot.com>
82498
82499         * modules/c-bs-a: Removed - \a is C89.
82500         * MODULES.html.sh: Remove c-bs-a.
82501
82502 2006-06-29  Bruno Haible  <bruno@clisp.org>
82503
82504         * modules/wcwidth (License): Change to LGPL.
82505
82506 2006-06-28  Simon Josefsson  <jas@extundo.com>
82507
82508         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82509         on _WIN32.
82510
82511         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82512         getnameinfo.
82513
82514 2006-06-28  Simon Josefsson  <jas@extundo.com>
82515
82516         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82517
82518 2006-06-28  Simon Josefsson  <jas@extundo.com>
82519
82520         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82521         functions there.  It will succeed on Windows XP, but on Windows
82522         2000 and (presumably) earlier, it will fail, and use the internal
82523         re-implementation.
82524         (use_win32_p): New function.
82525         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82526         Support AI_NUMERICSERV to disable getservbyname.
82527         (getnameinfo): New function, only supports
82528         NI_NUMERICHOST|NI_NUMERICSERV for now.
82529
82530         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82531         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82532         getnameinfo.
82533
82534 2006-06-28  Eric Blake  <ebb9@byu.net>
82535
82536         * modules/wcwidth: New file.
82537         * modules/mbchar (Depends-on): Add wcwidth.
82538         * modules/mbswidth (Depends-on): Add wcwidth.
82539         * MODULES.html.sh: Add wcwidth.
82540
82541 2006-06-28  Eric Blake  <ebb9@byu.net>
82542
82543         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82544         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82545
82546 2006-06-28  Eric Blake  <ebb9@byu.net>
82547
82548         * lib/xvasprintf.h: Fix comments.
82549
82550 2006-06-28  Eric Blake  <ebb9@byu.net>
82551
82552         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82553         * lib/mbswidth.c (wcwidth): Move from here...
82554         * lib/wcwidth.h: ...to this new file.
82555
82556 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82557
82558         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82559
82560         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82561         it's obsolete.
82562         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82563
82564 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82565
82566         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82567         Autoconf 2.60 says this stuff was obsolete.
82568
82569 2006-06-28  Bruno Haible  <bruno@clisp.org>
82570
82571         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82572
82573 2006-06-28  Bruno Haible  <bruno@clisp.org>
82574
82575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82576         gt_TYPE_WCHAR_T.
82577
82578 2006-06-28  Bruno Haible  <bruno@clisp.org>
82579
82580         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82581         declaration for wcwidth.
82582         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82583
82584 2006-06-28  Bruno Haible  <bruno@clisp.org>
82585
82586         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82587         (mkdir): Define using _mkdir.
82588
82589 2006-06-28  Bruno Haible  <bruno@clisp.org>
82590
82591         * lib/getaddrinfo.h: Fix POSIX URL.
82592         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82593         _WIN32.
82594         (use_win32_p): Make static.
82595         (getaddrinfo): Reject service name if it is empty or does not consist
82596         solely of decimal digits, or if its value is > 65535.
82597         (getnameinfo): Remove useless casts.
82598
82599 2006-06-27  Simon Josefsson  <jas@extundo.com>
82600
82601         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82602         Eggert and Martin Lambers.
82603
82604 2006-06-27  Simon Josefsson  <jas@extundo.com>
82605
82606         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82607         Eggert and Martin Lambers.
82608
82609 2006-06-27  Bruno Haible  <bruno@clisp.org>
82610
82611         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82612         result to 0, not to empty.
82613         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82614
82615 2006-06-27  Bruno Haible  <bruno@clisp.org>
82616
82617         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82618
82619 2006-06-26  Simon Josefsson  <jas@extundo.com>
82620
82621         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82622         present.
82623
82624 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82625
82626         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82627         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82628         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82629
82630 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82631
82632         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82633
82634 2006-06-26  Bruno Haible  <bruno@clisp.org>
82635
82636         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82637
82638 2006-06-26  Bruno Haible  <bruno@clisp.org>
82639
82640         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82641
82642 2006-06-26  Bruno Haible  <bruno@clisp.org>
82643
82644         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82645         SGI C compiler in pre-C99 mode.
82646         Suggested by Mark D. Baushke and Larry Jones.
82647
82648 2006-06-26  Bruno Haible  <bruno@clisp.org>
82649
82650         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82651         WCHAR_MAX.
82652         Reported by Mark D. Baushke and Larry Jones.
82653
82654 2006-06-26  Bruno Haible  <bruno@clisp.org>
82655
82656         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82657         in pre-C99 mode.
82658         Suggested by Mark D. Baushke and Larry Jones.
82659
82660 2006-06-23  Simon Josefsson  <jas@extundo.com>
82661             Bruno Haible  <bruno@clisp.org>
82662
82663         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82664         Emit mostlyclean-local rule.
82665         (func_emit_tests_Makefile_am): Likewise.
82666         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82667
82668 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82669
82670         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82671
82672 2006-06-23  Bruno Haible  <bruno@clisp.org>
82673
82674         * tests/test-stdint.c: Update to match ISO C 99 Technical
82675         Corrigendum 1.
82676
82677 2006-06-23  Bruno Haible  <bruno@clisp.org>
82678
82679         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82680
82681 2006-06-23  Bruno Haible  <bruno@clisp.org>
82682
82683         * lib/stdint_.h: Treat IRIX like OpenBSD.
82684
82685 2006-06-23  Bruno Haible  <bruno@clisp.org>
82686
82687         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82688         ISO C 99 Technical Corrigendum 1.
82689
82690 2006-06-22  Simon Josefsson  <jas@extundo.com>
82691
82692         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82693         MinGW.
82694
82695 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82696
82697         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82698         needed.  Some compiler complained about some of them.  Problem reported
82699         by Larry Jones in
82700         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82701
82702 2006-06-21  Simon Josefsson  <jas@extundo.com>
82703
82704         * tests/test-getaddrinfo.c: New file.
82705
82706         * modules/getaddrinfo-tests: New file.
82707
82708         * MODULES.html.sh: Add inet_pton.
82709
82710         * modules/inet_pton: New file.
82711
82712 2006-06-21  Simon Josefsson  <jas@extundo.com>
82713
82714         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82715         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82716         of using the (limited) gnulib implementation on Windows XP.
82717
82718         * m4/inet_pton.m4: New file.
82719
82720 2006-06-21  Simon Josefsson  <jas@extundo.com>
82721
82722         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82723         variable.
82724
82725         * lib/socket_.h: Don't define WINVER.
82726
82727         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82728         slightly modified to work in gnulib.
82729
82730 2006-06-21  Simon Josefsson  <jas@extundo.com>
82731
82732         * doc/gnulib.texi (Windows sockets): Add.
82733
82734 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82735
82736         * lib/read-file.c (fread_file): Start with buffer allocation of
82737         0 bytes rather than 1 byte; this simplifies the code.
82738         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82739         code to free buffer and save/restore errno.
82740         (internal_read_file): Remove unused local.
82741
82742 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82743
82744         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82745         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82746         Problem reported by Denis Excoffier in
82747         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82748
82749 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82750
82751         * modules/sys_socket, modules/socklen: Include sys/types since
82752         FreeBSD 4.x's sys/socket.h needs it.
82753
82754 2006-06-19  Simon Josefsson  <jas@extundo.com>
82755
82756         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82757
82758 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82759
82760         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82761
82762 2006-06-19  Bruno Haible  <bruno@clisp.org>
82763
82764         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82765         and FULL_PATH_INTTYPES_H in angle brackets.
82766         Reported by Mark D. Baushke <mdb@gnu.org>.
82767
82768 2006-06-17  Eric Blake  <ebb9@byu.net>
82769
82770         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82771         errno.
82772
82773 2006-06-17  Bruno Haible  <bruno@clisp.org>
82774
82775         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82776         <sys/inttypes.h>.
82777
82778 2006-06-17  Bruno Haible  <bruno@clisp.org>
82779
82780         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82781         whether errno is declared. Assume <errno.h> declares errno.
82782
82783 2006-06-17  Bruno Haible  <bruno@clisp.org>
82784
82785         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82786
82787 2006-06-17  Bruno Haible  <bruno@clisp.org>
82788
82789         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82790         problem on Solaris 2.5.1.
82791
82792 2006-06-16  Eric Blake  <ebb9@byu.net>
82793
82794         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82795         * lib/unicodeio.c [!defined errno]: Likewise.
82796         * lib/strtol.c [!defined errno]: Likewise.
82797         * lib/strtod.c [!defined errno]: Likewise.
82798
82799 2006-06-15  Eric Blake  <ebb9@byu.net>
82800
82801         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82802
82803 2006-06-15  Eric Blake  <ebb9@byu.net>
82804
82805         * config/srclist.txt (ssize_t.m4): Lose sync.
82806
82807 2006-06-15  Bruno Haible  <bruno@clisp.org>
82808
82809         * modules/stdint (Files): Include m4/full-header-path.m4,
82810         m4/size_max.m4, m4/wchar_t.m4.
82811         (Makefile.am): Many more substitutions.
82812         * modules/stdint-tests: New file.
82813         * tests/test-stdint.c: New file.
82814
82815 2006-06-15  Bruno Haible  <bruno@clisp.org>
82816
82817         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82818         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82819         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82820         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82821         gl_CHECK_TYPE_SAME): New macros.
82822
82823 2006-06-15  Bruno Haible  <bruno@clisp.org>
82824
82825         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82826
82827 2006-06-15  Bruno Haible  <bruno@clisp.org>
82828
82829         * lib/stdint_.h: Rewritten to be fully auto-configured.
82830         Fixes bug on HP-UX/IA64.
82831
82832 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82833
82834         * lib/getdate.y (__attribute__): Don't define if already defined.
82835         Problem reported by Larry Jones.
82836         * lib/utimens.c (__attribute__): Likewise.
82837
82838 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82839
82840         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82841         reported by Andreas Schwab.
82842
82843 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82844             Bruno Haible  <bruno@clisp.org>
82845
82846         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82847         check for the declaration of strnlen and a run test that exposes the
82848         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82849         rpl_strndup.
82850
82851 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82852             Bruno Haible  <bruno@clisp.org>
82853
82854         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82855
82856 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82857
82858         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82859         compile test, for Tru64 4.0D.
82860
82861 2006-05-28  Karl Berry  <karl@gnu.org>
82862
82863         * config/srclist.txt (printf-args.c): lose sync.
82864
82865 2006-05-26  Martin Lambers  <marlam@marlam.de>
82866
82867         * lib/getpass.c: Updates the test for the native W32 API, and adds
82868         missing includes, thus fixing compilation warnings.
82869
82870 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82871
82872         * lib/exclude.c (exclude_fnmatch): New function.
82873         (excluded_file_name): Call exclude_fnmatch.
82874         * lib/exclude.h (excluded_file_name): New prototype
82875
82876 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82877
82878         * lib/tempname.c (small_open, large_open): New macros.
82879         (__open, __open64) [!_LIBC]: Remove.
82880         (__gen_tempname): Use small_open and large_open instead of __open
82881         and __open64.  This fixes a portability bug on HP-UX 11.11i
82882         reported by Simon Wing-Tang in
82883         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82884
82885 2006-05-24  Bruno Haible  <bruno@clisp.org>
82886
82887         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82888         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82889         Reported by Thorsten Maerz <torte@netztorte.de> via
82890         Aaron Stone <aaron@serendipity.cx>.
82891
82892 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82893
82894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82895         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82896         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82897         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82898         not really conditional on the cache.
82899         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82900
82901 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82902
82903         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82904         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82905         (my_usleep): Don't mishandle maximum value.
82906
82907 2006-05-19  Jim Meyering  <jim@meyering.net>
82908
82909         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82910
82911 2006-05-17  Bruno Haible  <bruno@clisp.org>
82912
82913         Cygwin portability.
82914         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82915
82916 2006-05-17  Bruno Haible  <bruno@clisp.org>
82917
82918         * lib/stdint_.h: Fix recognition of Cygwin.
82919
82920 2006-05-15  Bruno Haible  <bruno@clisp.org>
82921
82922         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82923         on libtool patch by Ralf Wildenhues.
82924
82925 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82926
82927         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82928         test for C99 conformance; (bool) 0.5 is an integer constant
82929         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82930         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82931
82932 2006-05-11  Simon Josefsson  <jas@extundo.com>
82933
82934         * m4/xvasprintf.m4: Fix obvious typo.
82935
82936 2006-05-11  Jim Meyering  <jim@meyering.net>
82937
82938         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82939         James Lemley.
82940
82941 2006-05-10  Simon Josefsson  <jas@extundo.com>
82942
82943         * lib/md4.c: Typo fix, update copyright years.
82944         (K1, K2): Don't use L because it turn computations into 64-bit on
82945         64-bit platforms.
82946
82947 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82948
82949         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82950         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82951         unwanted sign propagation, e.g., on hosts with 64-bit int.
82952         There still are some problems with reeelly weird theoretical hosts
82953         (e.g., 33-bit int) but it's not worth worrying about now.
82954         * lib/sha1.c (rol): Likewise.
82955         (K1, K2, K3, K4): Remove unnecessary L suffix.
82956
82957 2006-05-10  Bruno Haible  <bruno@clisp.org>
82958
82959         * lib/des.c: Cast to avoid warnings.
82960
82961 2006-05-09  Bruno Haible  <bruno@clisp.org>
82962
82963         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82964         (Depends-on): Depend also on xsize, stdarg.
82965         (configure.ac): Add gl_XVASPRINTF.
82966
82967 2006-05-09  Bruno Haible  <bruno@clisp.org>
82968
82969         * m4/xvasprintf.m4: New file.
82970
82971 2006-05-09  Bruno Haible  <bruno@clisp.org>
82972
82973         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82974         (EOVERFLOW): Define fallback value.
82975         (xstrcat): New function.
82976         (xvasprintf): Recognize the special case of a string concatenation.
82977
82978 2006-05-08  Eric Blake  <ebb9@byu.net>
82979
82980         * gnulib-tool (func_version): Base copyright year on CVS date.
82981         (func_emit_copyright_notice): New function.
82982         (func_emit_lib_Makefile_am): Use it.
82983         (func_emit_tests_Makefile_am): Likewise.
82984         (func_import): Likewise.
82985
82986 2006-05-08  Bruno Haible  <bruno@clisp.org>
82987
82988         * modules/stdarg: New file.
82989         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82990
82991 2006-05-08  Bruno Haible  <bruno@clisp.org>
82992
82993         * m4/stdarg.m4: New file, from GNU gettext.
82994
82995 2006-05-08  Bruno Haible  <bruno@clisp.org>
82996
82997         * config/srclist.txt (build-aux/config.rpath): different from latest
82998         release.
82999
83000 2006-05-08  Bruno Haible  <bruno@clisp.org>
83001
83002         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
83003
83004 2006-05-05  Jim Meyering  <jim@meyering.net>
83005
83006         * m4/warning.m4: New file, derived from bison's file by the same name.
83007
83008 2006-05-03  Bruno Haible  <bruno@clisp.org>
83009
83010         * lib/stdint_.h: Shorter URL.
83011         * lib/inttypes.h: Likewise.
83012
83013 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83014
83015         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
83016
83017 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83018
83019         * lib/verify.h: Document the internals better.  Most of this change
83020         was written by Bruno Haible.
83021
83022 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83023
83024         * doc/verify.texi: New file, partly based on a proposal by
83025         Bruno Haible.
83026
83027 2006-05-02  Bruno Haible  <bruno@clisp.org>
83028
83029         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
83030         test from here...
83031         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
83032
83033 2006-04-29  Bruno Haible  <bruno@clisp.org>
83034
83035         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
83036         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
83037
83038 2006-04-29  Bruno Haible  <bruno@clisp.org>
83039
83040         * gnulib-tool: Make --update option actually work.
83041
83042 2006-04-29  Bruno Haible  <bruno@clisp.org>
83043
83044         * doc/gcd.texi: New file.
83045         * doc/gnulib.texi: Include it.
83046
83047 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
83048
83049         * lib/getdate.y (get_date): When adding relative date, start with the
83050         initial time, not with the result of the first mktime call.
83051
83052 2006-04-25  Bruno Haible  <bruno@clisp.org>
83053
83054         * gnulib-tool (func_import): Output the include directives in three
83055         blocks, sorted separately.
83056         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83057
83058 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83059
83060         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
83061         to define main with arguments, for C++.  Reported by Eric Blake.
83062         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
83063         Prefer 'int main ()' to 'int main (void)', for C++.
83064         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
83065         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
83066         for 'main', for C99 and C++.
83067
83068 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83069
83070         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
83071         Don't assume that exit status -1 is valid.
83072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83073         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
83074         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
83075         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
83076         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
83077         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
83078         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
83079         functions can be used without declaring them, or that you can
83080         exit with status -1.
83081         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
83082
83083 2006-04-24  Karl Berry  <karl@gnu.org>
83084
83085         * config/srclist.txt (longdouble.m4): sync lost.
83086
83087 2006-04-24  Eric Blake  <ebb9@byu.net>
83088
83089         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
83090
83091 2006-04-24  Bruno Haible  <bruno@clisp.org>
83092
83093         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
83094         poll() implementation in AIX.
83095         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83096
83097 2006-04-24  Bruno Haible  <bruno@clisp.org>
83098
83099         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
83100         assigned exactly once.
83101
83102 2006-04-23  Claudio Fontana  <claudio@gnu.org>
83103             Bruno Haible  <bruno@clisp.org>
83104
83105         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
83106         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
83107         for AM_CPPFLAGS.
83108
83109 2006-04-23  Bruno Haible  <bruno@clisp.org>
83110
83111         * modules/copy-file: Depend on unistd.
83112         * modules/execute: Likewise.
83113         * modules/fatal-signal: Likewise.
83114         * modules/findprog: Likewise.
83115         * modules/mkdtemp : Likewise.
83116         * modules/pipe: Likewise.
83117         * modules/wait-process: Likewise.
83118
83119 2006-04-23  Bruno Haible  <bruno@clisp.org>
83120
83121         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
83122         condition was already detected.
83123         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83124
83125 2006-04-23  Bruno Haible  <bruno@clisp.org>
83126
83127         * lib/copy-file.c: Include <unistd.h> unconditionally.
83128         * lib/execute.c: Likewise.
83129         * lib/fatal-signal.c: Likewise.
83130         * lib/findprog.c: Likewise.
83131         * lib/mkdtemp.c: Likewise.
83132         * lib/pipe.h: Likewise.
83133         * lib/pipe.c: Likewise.
83134         * lib/wait-process.h: Likewise.
83135
83136 2006-04-23  Bruno Haible  <bruno@clisp.org>
83137
83138         * gnulib-tool (func_usage): Fix --import description. Document
83139         --update.
83140         (func_import): Create temporary file in a temporary directory, if
83141         --dry-run is specified. Silence errors from 'grep' when there are no
83142         m4 files in $m4dir.
83143         (func_create_testdir): Silence errors from 'grep' when there are no
83144         m4 files in $m4dir.
83145         Reported by Karl Berry <karl@freefriends.org>.
83146
83147 2006-04-20  Bruno Haible  <bruno@clisp.org>
83148
83149         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
83150         one argument, so that the code will be portable to Autoconf 2.60.
83151         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
83152         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
83153         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
83154
83155 2006-04-19  Derek Price  <derek@ximbiot.com>
83156             Eric Blake  <ebb9@byu.net>
83157
83158         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
83159         rather than "/full/path.h".  Update comment to match.  Shorten &
83160         generalize m4_translit call via AS_TR_CPP.
83161
83162 2006-04-19  Derek Price  <derek@ximbiot.com>
83163             Eric Blake  <ebb9@byu.net>
83164
83165         * lib/inttypes.h: Correct grammar in comment.
83166
83167 2006-04-18  Derek Price  <derek@ximbiot.com>
83168             Paul Eggert  <eggert@cs.ucla.edu>
83169
83170         * modules/inttypes: New file.
83171         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
83172
83173 2006-04-18  Derek Price  <derek@ximbiot.com>
83174             Paul Eggert  <eggert@cs.ucla.edu>
83175
83176         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
83177         New files.
83178
83179 2006-04-18  Derek Price  <derek@ximbiot.com>
83180             Paul Eggert  <eggert@cs.ucla.edu>
83181
83182         * lib/inttypes.h: New file.
83183         * lib/strtoimax.c: Assume <inttypes.h>.
83184
83185 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
83186
83187         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
83188         isn't mounted.  Problem reported by Kir Kolyshkin.
83189
83190 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83191
83192         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
83193         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
83194         Derek R. Price.
83195         * lib/regex.h (RE_DUP_MAX): Update comment to match current
83196         implementation.
83197
83198 2006-04-12  Eric Blake  <ebb9@byu.net>
83199
83200         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
83201         is now done automatically by the corresponding Autoconf macro.
83202
83203 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83204
83205         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83206         time_r.h.
83207
83208 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83209
83210         Merge regex changes from libc, removing some of our
83211         POSIX-conformance changes that were rejected and redoing them in a
83212         less-intrusive way.
83213
83214         * lib/regcomp.c (re_compile_internal, init_dfa):
83215         Length arg is now size_t, not Idx.  All uses changed.
83216         (peek_token): Forward decl now says internal_function.
83217         (__re_error_msgid, __re_error_msgid_idx):
83218         Now static rather than extern with attribute_hidden.
83219         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83220         For some reason libc prefers K&R style defns for external functions.
83221         (regerror) [!defined _LIBC]: Likewise.
83222         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83223         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83224         (build_range_exp, build_collating_symbol):
83225         Use K&R-style defn.
83226         (re_compile_fastmap): Use '\0' to memset, not 0.
83227         (utf8_sb_map): Make the calculations more obvious.
83228         (init_dfa, parse_bracket_exp, build_charclass_op):
83229         Call calloc and cast result, as glibc does.
83230         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83231         (build_range_exp, build_collating_symbol):
83232         Now internal functions.
83233
83234         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83235
83236         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83237         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83238         Don't depend on VMS; depend on __VMS instead, for POSIX
83239         namespace cleanness.
83240         (regoff_t): Define to ssize_t, not long int.
83241
83242         Remove the REG_ macros named below.  Instead, make the old names
83243         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83244         __USE_GNU_REGEX.
83245         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83246         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83247         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83248         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83249         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83250         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83251         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83252         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83253         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83254         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83255         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83256         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83257         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83258         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83259         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83260         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83261         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83262         (REG_NREGS):
83263         Remove.  All uses replaced by the old RE_* names.
83264         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83265         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83266         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83267         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83268         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83269         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83270         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83271         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83272         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83273         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83274         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83275         Don't bother having these macros be independent of each others'
83276         values, since they no longer exist in the POSIX name space.
83277
83278         Rename the following member names back to their old names,
83279         unless !__USE_GNU_REGEX.  All uses changed back.
83280         (buffer): Renamed from re_buffer.
83281         (allocated): Renamed from re_allocated.
83282         (used): Renamed from re_used.
83283         (syntax): Renamed from re_syntax.
83284         (fastmap): Renamed from re_fastmap.
83285         (translate): Renamed from re_translate.
83286         (can_be_null): Renamed from re_can_be_null.
83287         (regs_allocated): Renamed from re_regs_allocated.
83288         (fastmap_accurate): Renamed from re_fastmap_accurate.
83289         (no_sub): Renamed from re_no_sub.
83290         (not_bol): Renamed from re_not_bol.
83291         (not_eol): Renamed from re_not_eol.
83292         (newline_anchor): Renamed from re_newline_anchor.
83293         (num_regs): Renamed from rm_num_regs.
83294         (start): Renamed from rm_start.
83295         (end): Renamed from rm_end.
83296
83297         (free_state): Move up a bit.
83298
83299         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83300         #define to be empty.
83301         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83302         when that is what is intended.
83303         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83304         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83305         (MAX): New macro.
83306         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83307         All uses changed back to re_malloc, etc.  It's now the caller's
83308         responsibility to check for overflow; all callers changed.
83309         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83310         (re_x2nrealloc): Remove.
83311         (free_state): Remove decl.
83312
83313         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83314         (re_set_registers, re_exec):
83315         Use K&R-style defn.
83316
83317         2006-01-31  Roland McGrath  <roland@redhat.com>
83318
83319         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83320         Reported by Mike Frysinger <vapier@gentoo.org>.
83321
83322         2006-01-15  Andreas Jaeger  <aj@suse.de>
83323
83324         [BZ #1950]
83325         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83326         build_wcs_upper_buffer change.
83327         (build_wcs_upper_buffer): Change return type.
83328
83329         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83330
83331         * lib/regex_internal.h: Include <stdint.h> if available.
83332
83333         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83334
83335         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83336
83337         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83338
83339         * lib/regcomp.c: Adjust for changed secondary hash function.
83340
83341         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83342
83343         * lib/regex.h: Pretty printing.
83344         Clean up namespace a bit.
83345
83346         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83347
83348         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83349         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83350
83351         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83352                     Ulrich Drepper  <drepper@redhat.com>
83353
83354         [BZ #1302]
83355         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83356         changed.
83357         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83358
83359         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83360
83361         [BZ #281]
83362         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83363         * lib/regcomp.c: Remove unnecessary uses of
83364         unsigned RE_TRANSLATE_TYPE.
83365         * lib/regex_internal.h: Likewise.
83366         * lib/regex_internal.c: Likewise.
83367         * lib/regexec.c: Likewise.
83368         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83369
83370         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83371
83372         * lib/regexec.c (find_recover_state): Remove unnecessary
83373         initialization.
83374         (transit_state_bkref): Make DFA a const pointer.
83375         (get_subexp): Likewise.
83376         (check_arrival): Likewise.
83377         (update_cur_sifted_state): Likewise.
83378         (re_search_internal): Likewise.
83379         (prune_impossible_nodes): Likewise.
83380         (acquire_init_state_context): Likewise.
83381         (proceed_next_node): Likewise.
83382         (set_regs): Likewise.
83383         (free_fail_stack_return): Likewise.
83384         (check_arrival_expand_ecl): Mark DFA parameter as const.
83385         (check_arrival_expand_ecl_sub): Likewise.
83386         (check_subexp_limits): Likewise.
83387         (sub_epsilon_src_nodes):  Likewise.
83388         (add_epsilon_src_nodes):  Likewise.
83389         (merge_state_array): Likewise.
83390         (update_regs): Likewise.
83391         (build_trtable): Likewise.
83392         (sift_states_backward): Mark MCTX parameter as const.
83393         (build_sifted_states): Likewise.
83394         (update_cur_sifted_state): Likewise.
83395         (sift_states_mkref): Likewise.
83396         (check_arrival_expand_ecl): Mark eclosure as const.
83397         (check_dst_limits_calc_pos_1): Likewise.
83398         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83399         pointer.
83400
83401         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83402
83403         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83404         (transit_state_sb): Likewise.
83405         (transit_state_mb): Likewise.
83406         (sift_states_iter_mb): Likewise.
83407         (check_arrival_add_next_nodes): Likewise.
83408         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83409         [_LIBC] (re_search_2_stub): Use mempcpy.
83410
83411         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83412         mbrtowc for very simple UTF-8 case.
83413
83414         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83415         a pointer-to-const.
83416         (re_acquire_state_context): Likewise.
83417         * lib/regex_internal.h: Adjust prototypes.
83418
83419         * lib/regex.c: Prevent using C++ compilers.
83420
83421         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83422         (re_acquire_state_context): Likewise.
83423
83424 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83425
83426         * modules/regex (Depends-on): Add ssize_t.
83427
83428 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83429
83430         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83431         translation table.
83432
83433 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83434
83435         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83436
83437 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83438             Bruno Haible  <bruno@clisp.org>
83439
83440         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83441         <sys/types.h> and <inttypes.h>.
83442
83443 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83444
83445         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83446         `__error_t_defined', so argp.h will not typedef the former.
83447
83448 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83449
83450         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83451         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83452         glibc names.  Even if glibc is changed to conform to POSIX, the
83453         traditional names will be available anyway, since regex depends on
83454         the extensions module.  Also, fix a longstanding typo in the
83455         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83456         reported by Emanuele Giaquinta.  Also, change sense of cached
83457         variable, so that the message makes sense.
83458
83459 2006-03-24  Simon Josefsson  <jas@extundo.com>
83460
83461         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83462         including some doc fixes.
83463         (base64_encode_alloc): Fix +1 bug on allocation failures.
83464
83465 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83466
83467         * lib/base64.c (base64_encode): Do not read past end of array with
83468         unsanitized input on systems with CHAR_BIT > 8.
83469
83470 2006-03-24  Eric Blake  <ebb9@byu.net>
83471
83472         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83473
83474 2006-03-22  Karl Berry  <karl@gnu.org>
83475
83476         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83477         * config/srclistvars.sh (COREUTILS): new var.
83478
83479 2006-03-17  Jim Meyering  <jim@meyering.net>
83480
83481         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83482         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83483
83484 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83485
83486         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83487         no longer needs it.  Instead, check that regoff_t is as least
83488         as wide as ptrdiff_t.
83489
83490         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83491         so that our regex.h stays compatible with the installed regex.
83492         This is helpful for installers who configure --without-included-regex.
83493         Problem reported by Emanuele Giaquinta.
83494
83495 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83496
83497         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83498         Typedef to long int, not to off_, as POSIX will likely change
83499         in that direction.
83500
83501 2006-03-15  Eric Blake  <ebb9@byu.net>
83502
83503         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83504
83505 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83506
83507         * lib/argp-help.c (validate_uparams): Fix typo
83508         * lib/argp-parse.c (argp_default_options): Consistently begin help
83509         messages with a lowercase letter.
83510
83511 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83512
83513         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83514         overrun buffers and shouldn't be used (much as gets shouldn't be
83515         used).
83516         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83517
83518 2006-03-08  Simon Josefsson  <jas@extundo.com>
83519
83520         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83521         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83522
83523 2006-03-08  Simon Josefsson  <jas@extundo.com>
83524
83525         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83526         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83527
83528 2006-03-08  Simon Josefsson  <jas@extundo.com>
83529
83530         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83531         signal that configure disabled the device.
83532
83533 2006-03-08  Simon Josefsson  <jas@extundo.com>
83534
83535         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83536         languages.
83537
83538 2006-03-07  Simon Josefsson  <jas@extundo.com>
83539
83540         * modules/getopt (Depends-on): Add unistd.
83541
83542         * modules/unistd: New file.
83543
83544 2006-03-07  Simon Josefsson  <jas@extundo.com>
83545
83546         * modules/gc-random: New file.
83547
83548 2006-03-07  Simon Josefsson  <jas@extundo.com>
83549
83550         * m4/unistd_h.m4: New file.
83551
83552 2006-03-07  Simon Josefsson  <jas@extundo.com>
83553
83554         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83555         test to be side-effect free by storing the result in the cache
83556         variable gl_cv_lib_readline, and moving the assignment of
83557         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83558         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83559
83560 2006-03-07  Simon Josefsson  <jas@extundo.com>
83561
83562         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83563         error on missing devices (the functions will return an error).
83564
83565         * m4/gc.m4: Move random stuff to gc-random.m4
83566
83567 2006-03-07  Simon Josefsson  <jas@extundo.com>
83568
83569         * lib/unistd_.h: New file.
83570
83571 2006-03-07  Simon Josefsson  <jas@extundo.com>
83572
83573         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83574
83575 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83576
83577         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83578         Problem reported by Juan Manuel Guerrero.
83579
83580 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83581
83582         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83583         the unistd module.
83584         * lib/getlogin_r.c: Likewise.
83585         * lib/getlogin_r.h: Likewise.
83586         * lib/glob.c: Likewise.
83587         * lib/pagealign_alloc.c: Likewise.
83588         * lib/unistd_.h: Remove; no longer needed.
83589
83590 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83591
83592         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83593         Add unistd.
83594         * modules/c-stack (Depends-on): Add unistd.
83595         * modules/getlogin_r: Likewise.
83596         * modules/glob: Likewise.
83597         * modules/pagealign_alloc: Likewise.
83598         * modules/unistd (Files): Remove lib/unistd_.h.
83599         (EXTRA_DIST): Remove.
83600         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83601         need unistd_.h.
83602         (MOSTLYCLEANFILES): Remove unistd.h-t.
83603
83604 2006-03-03  Simon Josefsson  <jas@extundo.com>
83605
83606         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83607
83608 2006-03-03  Simon Josefsson  <jas@extundo.com>
83609
83610         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83611         libidn and bison.
83612
83613 2006-03-03  Simon Josefsson  <jas@extundo.com>
83614
83615         * build-aux/maint.mk: Add indent target.
83616
83617 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83618
83619         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83620         our replacement poll.h in any case, to avoid a differing
83621         declaration from a system header.  Seen on AIX.
83622
83623 2006-03-01  Simon Josefsson  <jas@extundo.com>
83624
83625         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83626         <kasal@ucw.cz>.
83627
83628 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83629
83630         * modules/gettime (Depends-on): Add extensions module.
83631         * modules/nanosleep (Depends-on): Likewise.
83632         * modules/settime (Depends-on): Likewise.
83633
83634 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83637         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83638         pedantically.
83639         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83640         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83641
83642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83643         not "==".  Reported by Ralf Wildenhues.
83644
83645 2006-03-01  Karl Berry  <karl@gnu.org>
83646
83647         * doc/Copyright/request-*: new files, synced from gnuorg.
83648
83649 2006-03-01  Karl Berry  <karl@gnu.org>
83650
83651         * config/srclist.txt (Copyright/*): new entries.
83652
83653 2006-02-28  Simon Josefsson  <jas@extundo.com>
83654
83655         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83656
83657 2006-02-27  Simon Josefsson  <jas@extundo.com>
83658
83659         * lib/base64.h: Indent #define's.  From Jim Meyering
83660         <jim@meyering.net>.
83661
83662 2006-02-27  Jim Meyering  <jim@meyering.net>
83663
83664         Revert the change of 2006-02-24, so these files can continue
83665         to be sync'd from gettext.
83666         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83667         of `config.h'.
83668
83669 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83670
83671         * modules/intprops: New file.
83672         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83673         Add intprops.
83674         * modules/getloadavg (Files): Remove lib/intprops.h.
83675         (Depends-on): Add intprops.
83676         * modules/human: Likewise.
83677         * modules/inttostr: Likewise.
83678         * modules/openat: Likewise.
83679         * modules/sig2str: Likewise.
83680         * modules/userspec: Likewise.
83681         * modules/utimecmp: Likewise.
83682         * modules/xnanosleep: Likewise.
83683         * modules/xstrtol: Likewise.
83684
83685 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83686
83687         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83688         * modules/lock-tests (TESTS): Use $(EXEEXT).
83689         * modules/tls-tests: Likewise.
83690         * modules/argp-tests: Likewise.
83691         (check_PROGRAMS): New var, replacing...
83692         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83693
83694 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83695
83696         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83697         `config.h'.
83698
83699 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83700
83701         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83702
83703 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83704
83705         Sync from coreutils.
83706         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83707         gl_CHDIR_SAFER.
83708
83709 2006-02-22  Jim Meyering  <jim@meyering.net>
83710
83711         Sync from coreutils.
83712         * m4/chdir-safer.m4: New file.
83713
83714 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83715
83716         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83717         AT_FDCWD exceeds INT_MAX.
83718         * lib/openat.h (AT_FDCWD): Likewise.
83719
83720 2006-02-17  Eric Blake  <address@hidden>
83721
83722         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83723
83724 2006-02-16  Simon Josefsson  <jas@extundo.com>
83725
83726         * modules/getaddrinfo (Depends-on): Add sys_socket.
83727
83728 2006-02-15  Simon Josefsson  <jas@extundo.com>
83729
83730         * build-aux/maint.mk: Add dsyntax-check rule.
83731
83732 2006-02-15  Eric Blake  <ebb9@byu.net>
83733
83734         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83735         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83736         'present but cannot compile' warnings on cygwin.
83737         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83738         use ws2tcpip.h if sys/socket.h works.
83739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83740         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83741
83742 2006-02-14  Simon Josefsson  <jas@extundo.com>
83743
83744         * modules/maintainer-makefile (Files): Rename.
83745
83746         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83747         and (the local) Makefile.cfg to maint-cfg.mk.
83748
83749         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83750         to the latter.
83751
83752         * modules/maintainer-makefile: New module.
83753
83754         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83755         severaly stripped to make it possible to build it up from scratch
83756         with reliable tests.
83757
83758         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83759         fixes to permit overriding the default actions when configure and
83760         makefile are not available.
83761
83762 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83763
83764         Sync from coreutils.
83765         * modules/lstat (Depends-on): Don't depend on xalloc.
83766         (License): Change from GPL to LGPL, since this is now simply a
83767         replacement for a libc function.
83768
83769 2006-02-14  Jim Meyering  <jim@meyering.net>
83770
83771         Sync from coreutils.
83772
83773         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83774         failure on deficient systems, and simplify gnulib lgpl dependencies.
83775         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83776         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83777
83778         * lib/xalloc-die.c: Remove unused definition of N_.
83779
83780 2006-02-14  Jim Meyering  <jim@meyering.net>
83781
83782         Sync from coreutils.
83783         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83784         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83785         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83786         double-quote uses of that variable, to accommodate the rare case in
83787         which getmntent is available in none of the libraries checked.  This
83788         happens at least on FreeBSD 5.0.
83789
83790 2006-02-13  Simon Josefsson  <jas@extundo.com>
83791
83792         * gnulib-tool (Usage): Fix --import, from
83793         karl@freefriends.org (Karl Berry).
83794
83795 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83796
83797         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83798
83799 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83800
83801         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83802         "autoupdate" on 2005-12-12.
83803
83804 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83805
83806         * modules/closeout (Depends-on): Remove atexit.
83807
83808 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83811         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83812
83813 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83814
83815         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83816         __EXTENSIONS__ if this causes compilation to fail.  Problem
83817         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83818         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83819
83820 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83821
83822         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83823         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83824         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83825         All uses changed.
83826
83827 2006-01-26  Simon Josefsson  <jas@extundo.com>
83828
83829         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83830         prototype is visible on mingw32.
83831
83832         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83833         for mingw32.
83834
83835         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83836         mingw32).
83837
83838 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83839
83840         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83841         attempt to open for write; this always fails, at least on POSIX
83842         hosts.  This reinstates the 2006-01-09 change, which was
83843         inadvertently removed.
83844
83845 2006-01-26  Bruno Haible  <bruno@clisp.org>
83846
83847         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83848         Reported by Paul Eggert.
83849
83850 2006-01-26  Bruno Haible  <bruno@clisp.org>
83851             Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         * lib/stdbool_.h (_Bool)
83854         [(! (defined __cplusplus || defined __BEOS__)
83855           && !defined __GNUC__
83856           && !(defined __HP_cc || defined __xlc__
83857                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83858                || defined __sgi))]:
83859         #define to signed char in these cases too; this simplifies
83860         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83861         etc., separately) and makes it more conservative.
83862
83863 2006-01-25  Simon Josefsson  <jas@extundo.com>
83864
83865         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83866         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83867         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83868
83869 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83870
83871         * lib/argp-namefrob.h: Bugfix. Remove stray #
83872
83873 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83874
83875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83876         so that we test the test.
83877         Check for yet another HP-UX cc bug involving *bool |= bool.
83878
83879 2006-01-25  Karl Berry  <karl@gnu.org>
83880
83881         * config/srclist.txt (vasnprintf.c): sync lost.
83882
83883 2006-01-25  Jim Meyering  <jim@meyering.net>
83884
83885         Sync from the stable (b5) branch of coreutils:
83886
83887         * lib/fts.c (fts_children): Don't let close() clobber errno from
83888         failed fchdir().
83889
83890         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83891         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83892         a dangling symlink.  That can also happen at least for ELOOP.
83893         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83894         FYI, this bug predates the inclusion of fts.c in coreutils.
83895
83896         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83897         in their own block, so pre-c99 compilers don't object.
83898
83899         Avoid the double-free (first in fts_read, second in fts_close) that
83900         would occur when an `active' directory is made inaccessible (e.g.,
83901         via chmod a-x) during a traversal.
83902         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83903         before returning.  Reproduce this failure by
83904         mkdir -p a/b; cd a; chmod a-x . b
83905         Reported by Stavros Passas.
83906
83907 2006-01-25  Jim Meyering  <jim@meyering.net>
83908
83909         * lib/fileblocks.c: Remove more useless parentheses.
83910         * lib/readutmp.h: Likewise.
83911
83912 2006-01-25  Bruno Haible  <bruno@clisp.org>
83913
83914         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83915         warnings.
83916         Reported by Paul Eggert.
83917
83918 2006-01-25  Bruno Haible  <bruno@clisp.org>
83919
83920         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83921         rid of a trap command. For Solaris sh.
83922         Reported by Mark D. Baushke <mdb@gnu.org>.
83923
83924 2006-01-24  Simon Josefsson  <jas@extundo.com>
83925
83926         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83927         Bruno.
83928
83929 2006-01-24  Karl Berry  <karl@gnu.org>
83930
83931         * config/srclist.txt (argp-namefrob.h): sync lost.
83932
83933 2006-01-24  Jim Meyering  <jim@meyering.net>
83934
83935         * modules/openat (Files): Add lib/intprops.h.
83936         From Mark D. Baushke.
83937
83938 2006-01-24  Jim Meyering  <jim@meyering.net>
83939
83940         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83941         Reported by Mark D. Baushke.
83942
83943 2006-01-24  Jim Meyering  <jim@meyering.net>
83944
83945         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83946
83947 2006-01-24  Bruno Haible  <bruno@clisp.org>
83948
83949         * modules/strnlen (Maintainer): Change from glibc to all.
83950
83951 2006-01-24  Bruno Haible  <bruno@clisp.org>
83952
83953         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83954         Patch by Paul Eggert.
83955
83956 2006-01-24  Bruno Haible  <bruno@clisp.org>
83957
83958         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83959         already has it.
83960         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83961         2005-11-26.
83962
83963         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83964         'signed char' to avoid problems with the built-in _Bool type.
83965         Reported by Paul Eggert on 2005-11-26.
83966
83967 2006-01-24  Bruno Haible  <bruno@clisp.org>
83968
83969         * gnulib-tool (func_import): Avoid constructing complicated sed
83970         expressions inside backquote.
83971         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83972
83973 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83974
83975         These changes imported from libc.
83976         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83977         test and two separate function calls.
83978         * lib/strndup.c (__strndup): Add libc_hidden_def.
83979
83980 2006-01-23  Simon Josefsson  <jas@extundo.com>
83981
83982         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83983         Remove the test_*_SOURCES variable: automake infers it by default.
83984         * modules/tls-tests: Likewise.
83985
83986 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83987
83988         Work around porting bugs reported by Dieter in
83989         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83990         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83991         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83992         Include "getopt.h" first, to check interface.
83993         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83994         !HAVE_DECL_GETENV.
83995         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83996         (__strndup): Revert to K&R-style function dfns, the glibc style.
83997         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83998         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83999         Include strnlen.h first, to get prototype properly.
84000         (strnlen): Renamed from __strnlen.
84001         Remove weak alias.
84002
84003 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84004
84005         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
84006
84007 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84008
84009         * config/srclist.txt: Adjust to reflect glibc reorganization.
84010         This affects only comments.
84011
84012 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84013
84014          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
84015          Reported by Bruce Korb <bkorb@gnu.org>.
84016
84017 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
84020         to pacify gcc -Wswitch-default.
84021
84022 2006-01-22  Bruno Haible  <bruno@clisp.org>
84023
84024         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
84025         temporary buffer for sprintf, take into account the precision also
84026         for 'd', 'i', 'u', 'o', 'x', 'X'.
84027
84028 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84029
84030         * modules/argp-tests: New module
84031         * tests/test-argp.c: New file
84032         * tests/test-argp-2.sh: New file
84033
84034 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84035
84036         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
84037         (__argp_base_name): Removed
84038         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
84039         typo.
84040         (__argp_base_name): Provide macro definition or extern declaration
84041         depending on the configuration
84042
84043 2006-01-20  Simon Josefsson  <jas@extundo.com>
84044
84045         * modules/inet_ntop (Depends-on): Depend on sys_socket.
84046
84047 2006-01-20  Simon Josefsson  <jas@extundo.com>
84048
84049         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
84050
84051 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
84054         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
84055         Suggested by Bruno Haible.
84056
84057 2006-01-20  Karl Berry  <karl@gnu.org>
84058
84059         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
84060         until changes propagate, I guess.
84061
84062 2006-01-19  Simon Josefsson  <jas@extundo.com>
84063
84064         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
84065
84066 2006-01-19  Simon Josefsson  <jas@extundo.com>
84067
84068         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
84069
84070 2006-01-19  Simon Josefsson  <jas@extundo.com>
84071
84072         * gnulib-tool: Set check_PROGRAMS.
84073
84074         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84075         modules/des-tests, modules/gc-arcfour-tests,
84076         modules/gc-arctwo-tests, modules/gc-des-tests,
84077         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84078         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84079         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84080         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84081         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84082         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
84083         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
84084         test_*_SOURCES.
84085
84086 2006-01-18  Simon Josefsson  <jas@extundo.com>
84087
84088         * modules/socklen (Depends-on): Depend on sys_socket.
84089
84090 2006-01-18  Simon Josefsson  <jas@extundo.com>
84091
84092         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84093         modules/des-tests, modules/gc-arcfour-tests,
84094         modules/gc-arctwo-tests, modules/gc-des-tests,
84095         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84096         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84097         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84098         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84099         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84100         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
84101         $(EXEEXT) to automake TESTS variable, for mingw32.
84102
84103 2006-01-17  Simon Josefsson  <jas@extundo.com>
84104
84105         * modules/socklen (Include): Need sys/socket.h.
84106
84107 2006-01-17  Bruno Haible  <bruno@clisp.org>
84108
84109         * modules/ssize_t (Include): Add <sys/types.h>.
84110
84111 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
84112
84113         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
84114         it's not portable and it doesn't work with cross-compiles.
84115         Problem reported by Bruno Haible.  Fix missing-$ typo in
84116         'test "gl_cv_ignore_unused_libraries" ...' that prevented
84117         -zignore from being used with Sun's C compiler.
84118
84119 2006-01-12  Simon Josefsson  <jas@extundo.com>
84120
84121         * lib/base64.c: Fix warning, reported by Bruno Haible
84122         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
84123
84124 2006-01-12  Bruno Haible  <bruno@clisp.org>
84125
84126         * modules/ldd: New file.
84127         * build-aux/ldd.sh.in: New file.
84128         * MODULES.html.sh (Support for building libraries and executables): Add
84129         ldd.
84130
84131 2006-01-12  Bruno Haible  <bruno@clisp.org>
84132
84133         * m4/ldd.m4: New file.
84134
84135 2006-01-12  Bruno Haible  <bruno@clisp.org>
84136
84137         * gnulib-tool (func_import, func_create_testdir): Don't go into an
84138         endless loop while replacing $auxdir with build-aux.
84139
84140 2006-01-11  Simon Josefsson  <jas@extundo.com>
84141
84142         * lib/stdint_.h (SIZE_MAX): Add missing (.
84143
84144 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
84145
84146         Sync from coreutils.
84147         * lib/md5.c: Fix commentary typos.
84148         (alignof, UNALIGNED_P): No need for a GCC-specific version.
84149         * lib/md5.h (__attribute__): Remove; unused.
84150         * lib/sha1.c: Fix commentary to match md5 better.
84151         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
84152         so that we don't need to worry about alignment.  All uses changed.
84153         This merges the 2005-10-28 md5 change into sha1.
84154
84155 2006-01-11  Jim Meyering  <jim@meyering.net>
84156
84157         Sync from coreutils.
84158         * lib/md5.c (OP): Fix spacing.
84159
84160 2006-01-11  Bruno Haible  <bruno@clisp.org>
84161
84162         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84163         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
84164         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
84165
84166 2006-01-11  Bruno Haible  <bruno@clisp.org>
84167
84168         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84169         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
84170         the "early" section as well.
84171
84172 2006-01-11  Bruno Haible  <bruno@clisp.org>
84173
84174         Avoid "ar: no archive members specified" error on MacOS X.
84175         * gnulib-tool (func_modules_add_dummy): New function.
84176         (func_import, func_create_testdir): Invoke it.
84177
84178 2006-01-11  Bruno Haible  <bruno@clisp.org>
84179
84180         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
84181         with $auxdir in AC_CONFIG_FILES statements.
84182
84183 2006-01-11  Bruno Haible  <bruno@clisp.org>
84184
84185         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84186         Initialize also noinst_HEADERS to empty.
84187
84188 2006-01-11  Bruno Haible  <bruno@clisp.org>
84189
84190         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
84191         variables.
84192         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
84193         autoreconf.
84194
84195 2006-01-11  Bruno Haible  <bruno@clisp.org>
84196
84197         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
84198         overridable by the user.
84199         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84200
84201 2006-01-10  Simon Josefsson  <jas@extundo.com>
84202
84203         * modules/sys_socket: New file.
84204
84205 2006-01-10  Simon Josefsson  <jas@extundo.com>
84206
84207         * m4/sys_socket_h.m4: New file.
84208
84209 2006-01-10  Simon Josefsson  <jas@extundo.com>
84210
84211         * lib/socket_.h: New file.
84212
84213 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84214
84215         * modules/readutmp (Maintainer): Add myself.
84216
84217 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84218
84219         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84220         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84221         People who are still concerned with buggy memcmp implementations
84222         can invoke gl_FUNC_MEMCMP themselves.
84223
84224 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84225
84226         * lib/regex_internal.h (BITSET_WORD_BITS):
84227         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84228         preprocessor mishandles large unsigned values as if they were signed.
84229         Problem reported by Claudio Fontana in
84230         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84231
84232 2006-01-10  Jim Meyering  <jim@meyering.net>
84233
84234         Avoid the double-free (first in fts_read, second in fts_close) that
84235         would occur when an `active' directory is made inaccessible (e.g.,
84236         via chmod a-x) during a traversal.
84237         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84238         before returning.  Reproduce this failure by
84239         mkdir -p a/b; cd a; chmod a-x . b
84240         Reported by Stavros Passas.
84241
84242         Sync from coreutils.
84243         * lib/sha1.c: Tweak grammar in a comment.
84244
84245 2006-01-10  Jim Meyering  <jim@meyering.net>
84246
84247         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84248         Patch by Joerg Sonnenberger.
84249
84250 2006-01-10  Bruno Haible  <bruno@clisp.org>
84251
84252         * modules/readutmp: Depend on module free.
84253         * modules/strtok_r: Depend on module restrict.
84254
84255 2006-01-10  Bruno Haible  <bruno@clisp.org>
84256
84257         * modules/gettext (configure.ac): Add an invocation of
84258         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84259
84260 2006-01-10  Bruno Haible  <bruno@clisp.org>
84261
84262         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84263         Reported by Werner Lemberg <wl@gnu.org>.
84264
84265 2006-01-10  Bruno Haible  <bruno@clisp.org>
84266
84267         * lib/localcharset.c: Update from GNU gettext.
84268
84269 2006-01-10  Bruno Haible  <bruno@clisp.org>
84270
84271         * lib/argp.h (__const): Remove macro. Use const instead.
84272         * lib/argp-fmtstream.h (__const): Likewise.
84273         * lib/glob_.h (__const): Remove macro.
84274         * lib/glob-libc.h: Use const instead of __const.
84275
84276 2006-01-10  Bruno Haible  <bruno@clisp.org>
84277
84278         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84279         variable.
84280         Needed to avoid an automake error regarding the 'gettext' module.
84281
84282 2006-01-09  Simon Josefsson  <jas@extundo.com>
84283
84284         * modules/inet_ntop (Depends-on): Add restrict.
84285
84286 2006-01-09  Simon Josefsson  <jas@extundo.com>
84287
84288         * modules/gc-rijndael-tests (License): Put under LGPL.
84289
84290         * modules/gc-des-tests (License): Likewise.
84291
84292         * modules/gc-arcfour-tests (License): Likewise.
84293
84294         * modules/gc-arctwo-tests (License): Likewise.
84295
84296         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84297
84298         * modules/gc-hmac-sha1-tests (Files): Likewise.
84299
84300         * modules/gc-hmac-md5-tests (License): Likewise.
84301
84302         * modules/gc-sha1-tests (License): Likewise.
84303
84304         * modules/gc-md5-tests (License): Likewise.
84305
84306         * modules/gc-md4-tests (License): Likewise.
84307
84308         * modules/gc-md2-tests (License): Likewise.
84309
84310         * modules/gc-tests (License): Likewise.
84311
84312         * modules/des-tests (License): Likewise.
84313
84314         * modules/md4-tests (License): Likewise.
84315
84316         * modules/md2-tests (License): Likewise.
84317
84318 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84319
84320         Sync from coreutils:
84321
84322         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84323         * modules/lib-ignore: New file.
84324         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84325         chdir-safer.m4, lchmod.m4.
84326         * modules/openat: Add mkdirat.c, openat-priv.h.
84327
84328 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84329
84330         Sync from coreutils.
84331         * m4/lib-ignore.m4: New file.
84332         * m4/lchmod.m4: New file.
84333
84334 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84335
84336         Sync from coreutils.
84337         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84338         for write access: POSIX says that must fail.
84339         * lib/fts.c (diropen): Likewise.
84340         * lib/save-cwd.c (save_cwd): Likewise.
84341         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84342         well, for minor improvements on hosts that lack O_DIRECTORY.
84343         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84344         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84345         Fall back on chown if open failed with EACCES.
84346
84347         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84348         Report an error at compile-time if only a 1-second nominal clock
84349         resolution is found.
84350
84351         * lib/lchmod.h: New file.
84352         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84353         (make_dir_parents): Use lchown rather than chown, and
84354         lchmod rather than chmod.
84355
84356         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84357         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84358         "proc" reported by n0dalus.
84359
84360         * lib/mountlist.c: Include <limits.h>.
84361         (dev_from_mount_options)
84362         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84363         New function.  It no longer assumes "dev=" has the System V meaning
84364         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84365         (read_file_system_list)
84366         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84367         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84368         dev= in that case.
84369
84370         * lib/posixtm.h (PDS_PRE_2000): New macro.
84371         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84372         allow_century.  All usages changed.  Reject dates outside the range
84373         1969-1999 if PDS_PRE_2000 is used.
84374
84375 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84376
84377         Sync from coreutils.
84378         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84379         (Time of day items): Mention the possibility of leap seconds.
84380         Problem reported by Dr. David Alan Gilbert.
84381
84382 2006-01-09  Jim Meyering  <jim@meyering.net>
84383
84384         Sync from coreutils.
84385
84386         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84387
84388         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84389
84390         * lib/modechange.c (mode_compile): Reject an invalid mode string
84391         that starts with an octal digit.  From Andreas Gruenbacher.
84392
84393         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84394         and dup to open_safer and dup_safer, respectively.
84395         (openat_permissive): Fix typo in comment.
84396
84397         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84398         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84399         (_): Remove; no longer needed.
84400         (openat): Renamed from rpl_openat; no need for rpl_openat
84401         since openat.h renames openat for us.
84402         Replace most of the body with a call to openat_permissive,
84403         to avoid duplicate code.
84404         Port to (probably hypothetical) environments were mode_t is
84405         wider than int.
84406         (openat_permissive): Require mode arg, so that we can check
84407         types better.  Put it just after flags.  Change cwd failure
84408         indicator from pointer-to-bool to pointer-to-errno-value.
84409         All callers changed.
84410         Invoke openat_save_fail and/or openat_restore_fail if
84411         cwd_errno is null, so that openat can call us.
84412         (openat_permissive, fdopendir, fstatat, unlinkat):
84413         Simplify errno handling to avoid some duplicate code,
84414         as it's OK to set errno on success.
84415         * lib/openat.h: Revamp code so that function macros depend on
84416         __OPENAT_PREFIX only, not also on AT_FDCWD.
84417         (openat_ro): Remove.  Caller changed to use openat_permissive.
84418         (openat_permissive): Now a macro, if not a function.
84419         (openat_restore_fail, openat_save_fail): Now always functions,
84420         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84421
84422         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84423         and openat.c.
84424         * lib/mkdirat.c: Include openat-priv.h.
84425         Remove definitions of macros defined therein.
84426         * lib/openat.c: Likewise.
84427
84428         * lib/mkdirat.c (mkdirat): New file and function.
84429         * lib/openat.h (mkdirat): Declare.
84430
84431         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84432
84433         * lib/openat.h (openat_permissive): Declare.
84434         (openat_ro): Define.
84435
84436         * lib/openat.c (EXPECTED_ERRNO): New macro.
84437         (openat_permissive): New function -- used in remove.c rewrite.
84438         (all functions): Set errno just before returning, only if there
84439         was an actual failure.
84440         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84441
84442         Emulate openat-family functions using Linux's procfs, if possible.
84443         Idea and some code based on Ulrich Drepper's glibc changes.
84444
84445         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84446         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84447         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84448         before falling back on save_cwd and restore_cwd.
84449         (fdopendir, fstatat, unlinkat): Likewise.
84450
84451         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84452         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84453
84454         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84455         as second argument to va_arg.  Otherwise, some versions of gcc
84456         warn that `if this code is reached, the program will abort'.
84457
84458 2006-01-09  Jim Meyering  <jim@meyering.net>
84459
84460         Sync from coreutils.
84461         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84462         Require openat-priv.h.
84463
84464 2006-01-09  Bruno Haible  <bruno@clisp.org>
84465
84466         * modules/strnlen (Include): Use strnlen.h.
84467
84468 2006-01-09  Bruno Haible  <bruno@clisp.org>
84469
84470         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84471
84472 2006-01-09  Bruno Haible  <bruno@clisp.org>
84473
84474         * lib/sysexit_.h (EX_OK): New macro.
84475         Suggested by Martin Lambers <marlam@marlam.de>.
84476
84477 2006-01-09  Bruno Haible  <bruno@clisp.org>
84478
84479         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84480         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84481
84482 2006-01-09  Bruno Haible  <bruno@clisp.org>
84483
84484         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84485         numbers.
84486
84487 2006-01-09  Bruno Haible  <bruno@clisp.org>
84488
84489         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84490         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84491         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84492         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84493
84494 2006-01-09  Bruno Haible  <bruno@clisp.org>
84495
84496         * build-aux/javacomp.sh.in: New file, moved from lib/.
84497         * modules/javacomp-script (Files): Update.
84498         (configure.ac): Add AC_CONFIG_FILES invocation.
84499         (EXTRA_DIST): Remove variable.
84500
84501         * build-aux/javaexec.sh.in: New file, moved from lib/.
84502         * modules/javaexec (Files): Update.
84503         (configure.ac): Add AC_CONFIG_FILES invocation.
84504         (EXTRA_DIST): Remove javaexec.sh.in.
84505
84506         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84507         * modules/csharpcomp-script (Files): Update.
84508         (configure.ac): Add AC_CONFIG_FILES invocation.
84509         (EXTRA_DIST): Remove variable.
84510
84511         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84512         * modules/csharpexec (Files): Update.
84513         (configure.ac): Add AC_CONFIG_FILES invocation.
84514         (EXTRA_DIST): Remove csharpexec.sh.in.
84515
84516 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84517
84518         Sync from coreutils.
84519
84520         Add POSIX ACL support
84521         * lib/acl.h (copy_acl, set_acl): Add declarations.
84522         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84523         systems other than Linux.
84524         (chmod_or_fchmod): New function: use fchmod when possible,
84525         and chmod otherwise.
84526         (file_has_acl): Add a POSIX ACL implementation, with a
84527         Linux-specific subcase.
84528         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84529         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84530         acls are unsupported.
84531         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84532         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84533         are unsupported.
84534
84535 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84536
84537         Sync from coreutils.
84538         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84539
84540 2006-01-07  Bruno Haible  <bruno@clisp.org>
84541
84542         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84543         gl_EARLY.
84544
84545 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84546
84547         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84548         Problem reported for Mingw by Mark Junker.
84549
84550 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84551
84552         * README: Gnulib normally doesn't generate a tarball.
84553
84554 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84555
84556         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84557         long int, not int, for nanosecond counts, so that people who are
84558         used to POSIX struct timespec won't be surprised.  Reported by Jim
84559         Meyering.
84560
84561 2005-12-28  Bruno Haible  <bruno@clisp.org>
84562
84563         * build-aux/config.rpath: Update from GNU gettext.
84564
84565 2005-12-16  Jim Meyering  <jim@meyering.net>
84566
84567         * modules/fprintftime: New module.
84568         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84569
84570 2005-12-16  Jim Meyering  <jim@meyering.net>
84571
84572         * m4/fprintftime.m4: New file.
84573
84574 2005-12-16  Jim Meyering  <jim@meyering.net>
84575
84576         * lib/fprintftime.c, lib/fprintftime.h: New files.
84577
84578 2005-12-15  Simon Josefsson  <jas@extundo.com>
84579
84580         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84581         new m4/socklen.m4.
84582
84583 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84584
84585         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84586         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84587
84588 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84589
84590         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84591         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84592         struct uparams is valid. Fall back to the default values if it is
84593         not.
84594
84595 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84596
84597         * modules/argp (Files): Add argp-pin.c
84598         (Depends-on): dirname
84599         (lib_SOURCES): Add argp-pin.c
84600
84601 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84602
84603         * m4/argp.m4:  Check if program_invocation_name and
84604         program_invocation_short_name are declared and define appropriate
84605         macros if they are not.
84606
84607 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84608
84609         * lib/argp-help.c (__argp_base_name): New function
84610         (__argp_short_program_name): Rewrite using __argp_base_name
84611         * lib/argp-namefrob.h: Define program_invocation_name and
84612         program_invocation_short_name if requested
84613         (__argp_base_name): Add prototype
84614         * lib/argp-parse.c (argp_def): Use gettext wrappers
84615         (argp_default_parser): Use __argp_base_name
84616         * lib/argp-pin.c: New file. Defines program_invocation_name and
84617         program_invocation_short_name on systems that lack them.
84618
84619 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84620
84621         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84622         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84623         porting problem reported by Georg Schwarz in
84624         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84625
84626 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84627
84628         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84629         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84630         porting problem reported by Georg Schwarz in
84631         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84632
84633 2005-12-05  Bruno Haible  <bruno@clisp.org>
84634
84635         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84636         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84637         Reported by Mark Junker <mjscod@gmx.de>.
84638
84639 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84640
84641         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84642         Use implementation from Albert Chin, with some
84643         comments/corrections by Stepan Kasal and myself.
84644
84645 2005-12-02  Bruno Haible  <bruno@clisp.org>
84646
84647         * gnulib-tool (func_import): Accept GPLed build tool modules when
84648         --lgpl is given.
84649         * modules/csharpcomp-script: New file.
84650         * modules/csharpcomp: Depend on it.
84651         * modules/javacomp-script: New file.
84652         * modules/javacomp: Depend on it.
84653         Suggested by Simon Josefsson.
84654
84655 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84656
84657         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84658         statement, to work around an HP-UX 10.20 compiler bug reported by
84659         Peter O'Gorman.
84660
84661 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84662
84663         * modules/savedir (Depends-on): Add openat.
84664
84665 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84666
84667         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84668         (uintmax_t) [defined uintmax_t]: Do not declare.
84669         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84670         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84671         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84672         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84673         sake of portability to weird hosts that C allows (though we don't
84674         know of any practical examples).
84675
84676         * lib/savedir.h (fdsavedir): New decl.
84677         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84678         contains most of the former guts of savedir.
84679         (savedir): Use savedirstream.
84680         Include "openat.h".
84681
84682 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84683
84684         * modules/obstack (Files): Add m4/ulonglong.m4.
84685         Problem reported by Davide Angelocola.
84686
84687 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84688
84689         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84690         coreutils no longer futzes with rounding modes.
84691
84692 2005-11-14  Jim Meyering  <jim@meyering.net>
84693
84694         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84695         replacement of mkstemp.
84696
84697 2005-11-10  Simon Josefsson  <jas@extundo.com>
84698
84699         * lib/readline.c: Remove EOL.
84700
84701 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84702
84703         * modules/gethrxtime (Depends-on): Add gettime.
84704
84705 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84706
84707         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84708         or gettimeofday; no longer needed.
84709
84710 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84711
84712         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84713         time business.
84714         (gethrxtime) [! (HAVE_NANOUPTIME
84715         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84716         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84717         our own approximation.
84718
84719 2005-11-08  Eric Blake  <ebb9@byu.net>
84720
84721         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84722
84723 2005-11-08  Eric Blake  <ebb9@byu.net>
84724
84725         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84726
84727 2005-11-04  Bruno Haible  <bruno@clisp.org>
84728
84729         * gnulib-tool: Implement --update mode.
84730
84731 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84732
84733         Fix porting problem reported by Theodoros V. Kalamatianos.
84734         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84735         Don't assume that futimes failing means we must fail.
84736
84737 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84740         variables to suggest the intended function of the PATH_MAX check.
84741
84742 2005-10-30  Kean Johnston  <jkj@sco.com>
84743
84744         Trivial changes to support SCO systems.
84745         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84746         as PATH_MAX.
84747         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84748         where __ptr is null when no I/O is pending.
84749
84750 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84751
84752         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84753         leave errno alone.  Problem reported by Dmitry V. Levin.
84754
84755 2005-10-28  Simon Josefsson  <jas@extundo.com>
84756
84757         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84758         Test more.
84759
84760         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84761
84762         * modules/md2, modules/md2-tests: New files.
84763
84764 2005-10-28  Simon Josefsson  <jas@extundo.com>
84765
84766         * m4/inet_ntop.m4: More tests.
84767
84768         * m4/gc-md2.m4, md2.m4: New file.
84769
84770 2005-10-28  Simon Josefsson  <jas@extundo.com>
84771
84772         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84773         "restrict" keywords, as per POSIX.  Protect the function
84774         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84775         Don't use K&R prototypes.  Check the sprintf return values.
84776         Re-define EAFNOSUPPORT if not present.  Indent.
84777
84778         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84779         suggested by Bruno Haible <bruno@clisp.org>.
84780
84781         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84782
84783         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84784
84785         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84786         libgcrypt).
84787
84788         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84789
84790         * lib/md2.h, lib/md2.c: New files.
84791
84792 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84793
84794         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84795         errno alone.  Problem reported by Frederic Jolliton.
84796
84797 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84798
84799         * modules/verify (License): Change from GPL to LGPL.  This is a
84800         tiny module and there are apparently near-equivalents that are
84801         under the BSD license.
84802
84803 2005-10-24  Simon Josefsson  <jas@extundo.com>
84804
84805         * modules/sha1: Relicense to LGPL.
84806
84807 2005-10-24  Simon Josefsson  <jas@extundo.com>
84808
84809         * lib/md4.h: Shrink buffer size, now that we changed the type.
84810
84811 2005-10-23  Simon Josefsson  <jas@extundo.com>
84812
84813         * gnulib-tool (func_import): Fix --tests-base.
84814
84815 2005-10-22  Simon Josefsson  <jas@extundo.com>
84816
84817         * modules/arcfour (Depends-on): Need stdint.
84818
84819 2005-10-22  Simon Josefsson  <jas@extundo.com>
84820
84821         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84822         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84823
84824 2005-10-22  Simon Josefsson  <jas@extundo.com>
84825
84826         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84827         suggested by Bruno Haible <bruno@clisp.org>.
84828
84829 2005-10-22  Simon Josefsson  <jas@extundo.com>
84830
84831         * lib/crc.h: Include stddef.h, for size_t.
84832
84833 2005-10-22  Simon Josefsson  <jas@extundo.com>
84834
84835         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84836         arcfour_context struct (simplify test vector testing in GNU
84837         Shishi).
84838
84839 2005-10-21  Simon Josefsson  <jas@extundo.com>
84840
84841         * modules/des, modules/des-tests: New files.
84842
84843         * modules/gc-des, modules/gc-des-tests: New files.
84844
84845         * tests/test-des.c, tests/test-gc-des.c: New file.
84846
84847 2005-10-21  Simon Josefsson  <jas@extundo.com>
84848
84849         * modules/arctwo, modules/arctwo-tests: New files.
84850
84851         * tests/test-arctwo.c: New file.
84852
84853         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84854
84855         * tests/test-gc-arctwo.c: New file.
84856
84857 2005-10-21  Simon Josefsson  <jas@extundo.com>
84858
84859         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84860         Bruno Haible <bruno@clisp.org>.
84861
84862         * m4/gc-des.m4: New file.
84863
84864 2005-10-21  Simon Josefsson  <jas@extundo.com>
84865
84866         * m4/arctwo.m4: New file.
84867
84868         * m4/gc-arctwo.m4: New file.
84869
84870 2005-10-21  Simon Josefsson  <jas@extundo.com>
84871
84872         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84873         block.
84874
84875 2005-10-21  Simon Josefsson  <jas@extundo.com>
84876
84877         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84878         <bruno@clisp.org>.
84879
84880         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84881
84882         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84883         Bruno Haible <bruno@clisp.org>.
84884
84885         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84886         <bruno@clisp.org>.
84887
84888 2005-10-21  Simon Josefsson  <jas@extundo.com>
84889
84890         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84891
84892 2005-10-21  Simon Josefsson  <jas@extundo.com>
84893
84894         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84895
84896 2005-10-21  Simon Josefsson  <jas@extundo.com>
84897
84898         * lib/des.h, lib/des.c: New files.
84899
84900         * lib/gc-gnulib.c: Support DES.c
84901
84902 2005-10-21  Simon Josefsson  <jas@extundo.com>
84903
84904         * lib/arctwo.h, lib/arctwo.c: New files.
84905
84906         * lib/gc-gnulib.c: Support ARCTWO.
84907
84908 2005-10-21  Simon Josefsson  <jas@extundo.com>
84909
84910         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84911         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84912
84913 2005-10-21  Simon Josefsson  <jas@extundo.com>
84914
84915         * gnulib-tool (func_import, func_create_testdir): Define automake
84916         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84917         Makefile.am snippet),
84918         suggested by Bruno Haible <bruno@clisp.org>.
84919
84920         * modules/gc (Makefile.am): Use it.
84921
84922 2005-10-21  Bruno Haible  <bruno@clisp.org>
84923
84924         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84925         patch.
84926
84927 2005-10-19  Simon Josefsson  <jas@extundo.com>
84928
84929         * tests/test-gc-rijndael.c: New file.
84930
84931         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84932
84933 2005-10-19  Simon Josefsson  <jas@extundo.com>
84934
84935         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84936         interface too.
84937
84938 2005-10-19  Simon Josefsson  <jas@extundo.com>
84939
84940         * tests/test-gc-arcfour.c: New file.
84941
84942         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84943
84944 2005-10-19  Simon Josefsson  <jas@extundo.com>
84945
84946         * modules/gc-md4, modules/gc-md4-tests: New file.
84947
84948         * tests/test-gc-md4.c: New file.
84949
84950 2005-10-19  Simon Josefsson  <jas@extundo.com>
84951
84952         * m4/gc-md4.m4: New file.
84953
84954 2005-10-19  Simon Josefsson  <jas@extundo.com>
84955
84956         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84957         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84958         <kasal@ucw.cz>.
84959
84960 2005-10-19  Simon Josefsson  <jas@extundo.com>
84961
84962         * m4/gc-arcfour.m4: New file.
84963
84964         * m4/gc-rijndael.m4: New file.
84965
84966 2005-10-19  Simon Josefsson  <jas@extundo.com>
84967
84968         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84969
84970 2005-10-19  Simon Josefsson  <jas@extundo.com>
84971
84972         * lib/gc-gnulib.c: Support ARCFOUR.
84973
84974 2005-10-19  Simon Josefsson  <jas@extundo.com>
84975
84976         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84977         support.
84978
84979         * lib/gc.h: Add ECB enum type.
84980
84981         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84982
84983 2005-10-18  Simon Josefsson  <jas@extundo.com>
84984
84985         * tests/test-md5.c: New file.
84986
84987         * modules/md5-tests: New file.
84988
84989 2005-10-18  Simon Josefsson  <jas@extundo.com>
84990
84991         * tests/test-md4.c: New file.
84992
84993         * modules/md4, modules/md4-tests: New files.
84994
84995 2005-10-18  Simon Josefsson  <jas@extundo.com>
84996
84997         * m4/md4.m4: New file.
84998
84999 2005-10-18  Simon Josefsson  <jas@extundo.com>
85000
85001         * lib/md4.h, lib/md4.c: New files, based on md5.?.
85002
85003 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
85004
85005         * gnulib-tool (func_create_testdir): Omit the second check whether
85006         BUILT_SOURCES in nonempty.
85007
85008 2005-10-17  Simon Josefsson  <jas@extundo.com>
85009
85010         * tests/test-rijndael.c: New file.
85011
85012 2005-10-17  Simon Josefsson  <jas@extundo.com>
85013
85014         * modules/sha1: Depend on stdint instead of md5.
85015
85016         * modules/md5: Depend on stdint, remove uint32_t.
85017
85018 2005-10-17  Simon Josefsson  <jas@extundo.com>
85019
85020         * modules/gc-sha1-tests: New file.
85021
85022         * tests/test-gc-sha1.c: New file.
85023
85024 2005-10-17  Simon Josefsson  <jas@extundo.com>
85025
85026         * m4/md5.m4: Remove call to uint32_t.m4.
85027
85028 2005-10-17  Simon Josefsson  <jas@extundo.com>
85029
85030         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
85031
85032         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
85033         md5.h.
85034
85035         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
85036
85037         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
85038
85039 2005-10-17  Simon Josefsson  <jas@extundo.com>
85040
85041         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
85042
85043 2005-10-17  Simon Josefsson  <jas@extundo.com>
85044
85045         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
85046
85047 2005-10-17  Simon Josefsson  <jas@extundo.com>
85048
85049         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
85050
85051         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
85052
85053 2005-10-17  Bruno Haible  <bruno@clisp.org>
85054
85055         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
85056         that it can also be used in a test.
85057
85058 2005-10-16  Bruno Haible  <bruno@clisp.org>
85059
85060         * gnulib-tool (func_emit_tests_Makefile_am): Also define
85061         TESTS_ENVIRONMENT, so that individual tests can augment it.
85062
85063         * gnulib-tool (func_create_testdir): Use an intermediate target for
85064         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
85065         macros, like $(ALLOCA_H), which cannot be passed through the command
85066         line.
85067
85068 2005-10-15  Simon Josefsson  <jas@extundo.com>
85069
85070         * modules/rijndael-tests: New file.
85071
85072         * modules/rijndael: New file.
85073
85074 2005-10-15  Simon Josefsson  <jas@extundo.com>
85075
85076         * m4/rijndael.m4: New file.
85077
85078 2005-10-15  Simon Josefsson  <jas@extundo.com>
85079
85080         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
85081
85082         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
85083
85084 2005-10-14  Simon Josefsson  <jas@extundo.com>
85085
85086         * tests/test-arcfour.c: New file.
85087
85088         * modules/arcfour, modules/arcfour-tests: New files.
85089
85090 2005-10-14  Simon Josefsson  <jas@extundo.com>
85091
85092         * m4/arcfour.m4: New file.
85093
85094 2005-10-14  Simon Josefsson  <jas@extundo.com>
85095
85096         * lib/arcfour.h, lib/arcfour.c: New files.
85097
85098 2005-10-14  Roland McGrath  <roland@redhat.com>
85099
85100         Import from libc.  [BZ #1331]
85101         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
85102         macro argument.
85103         Reported by Matej Vela <vela@debian.org>.
85104
85105 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
85108         include <wchar.h>; no longer needed.
85109
85110 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85111
85112         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
85113
85114 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
85115         and  Ulrich Drepper  <drepper@redhat.com>
85116
85117         Import from libc.
85118         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
85119         instead of inline stream orientation test and two separate
85120         function calls.  Pay no attention to USE_IN_LIBIO.
85121
85122 2005-10-13  Simon Josefsson  <jas@extundo.com>
85123
85124         * modules/gc-hmac-md5-tests: New file.
85125
85126         * tests/test-gc-hmac-sha1.c: New file.
85127
85128         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
85129
85130         * modules/gc-hmac-md5-tests: New file.
85131
85132         * tests/test-gc-md5.c: New file.
85133
85134         * modules/gc-md5-tests: New file.
85135
85136 2005-10-13  Simon Josefsson  <jas@extundo.com>
85137
85138         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
85139         Move memory allocation outside of loop.
85140
85141 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
85142
85143         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
85144         intermediate directory is in a read-only file system.  Problem
85145         reported by Eric Blake.
85146
85147 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
85148
85149         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
85150
85151 2005-10-12  Simon Josefsson  <jas@extundo.com>
85152
85153         * tests/test-hmac-sha1.c: New file.
85154
85155         * modules/hmac-sha1-tests: New file.
85156
85157         * modules/hmac-sha1: New file.
85158
85159 2005-10-12  Simon Josefsson  <jas@extundo.com>
85160
85161         * modules/gc-sha1: New file.
85162
85163 2005-10-12  Simon Josefsson  <jas@extundo.com>
85164
85165         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
85166
85167         * tests/test-gc-pbkdf2-sha1.c: New file.
85168
85169 2005-10-12  Simon Josefsson  <jas@extundo.com>
85170
85171         * modules/gc-md5, modules/gc-hmac-md5: New files.
85172
85173         * modules/gc (Files): Remove md5, memxor and hmac files.
85174
85175 2005-10-12  Simon Josefsson  <jas@extundo.com>
85176
85177         * m4/gc-pbkdf2-sha1.m4: New file.
85178
85179         * m4/gc-hmac-sha1.m4: New file.
85180
85181         * m4/gc-sha1: New file.
85182
85183         * m4/hmac-sha1.m4: New file.
85184
85185 2005-10-12  Simon Josefsson  <jas@extundo.com>
85186
85187         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
85188
85189         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
85190
85191 2005-10-12  Simon Josefsson  <jas@extundo.com>
85192
85193         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
85194         suggested by Bruno Haible <bruno@clisp.org>.
85195
85196 2005-10-12  Simon Josefsson  <jas@extundo.com>
85197
85198         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
85199
85200 2005-10-12  Simon Josefsson  <jas@extundo.com>
85201
85202         * lib/gc-pbkdf2-sha1.c: New file.
85203
85204         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85205
85206 2005-10-12  Simon Josefsson  <jas@extundo.com>
85207
85208         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85209
85210         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85211
85212 2005-10-12  Simon Josefsson  <jas@extundo.com>
85213
85214         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85215         GC_USE_HMAC_MD5, respectively.
85216
85217         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85218         (gc_md5): Fix typo.
85219
85220         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85221
85222         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85223
85224         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85225
85226 2005-10-12  Bruno Haible  <bruno@clisp.org>
85227
85228         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85229         Reported by Stepan Kasal <kasal@ucw.cz>.
85230
85231 2005-10-11  Simon Josefsson  <jas@extundo.com>
85232
85233         * tests/test-crc.c: New file.
85234
85235         * modules/crc, modules/crc-tests: New files.
85236
85237 2005-10-11  Simon Josefsson  <jas@extundo.com>
85238
85239         * m4/crc.m4: New file.
85240
85241 2005-10-11  Simon Josefsson  <jas@extundo.com>
85242
85243         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85244
85245         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85246
85247         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85248
85249 2005-10-11  Simon Josefsson  <jas@extundo.com>
85250
85251         * lib/crc.h, lib/crc.c: New files.
85252
85253         * lib/gc.h (gc_hash_buffer): Add doc.
85254
85255 2005-10-11  Bruno Haible  <bruno@clisp.org>
85256
85257         * modules/c-strcasestr: New file.
85258         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85259
85260 2005-10-11  Bruno Haible  <bruno@clisp.org>
85261
85262         * modules/c-strcase: New file.
85263         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85264
85265 2005-10-11  Bruno Haible  <bruno@clisp.org>
85266
85267         * lib/strcasecmp.c: Include limits.h.
85268         (strcasecmp): Avoid integer overflow on exotic platforms.
85269         * lib/strncasecmp.c: Include limits.h.
85270         (strncasecmp): Avoid integer overflow on exotic platforms.
85271         Reported by Paul Eggert.
85272
85273 2005-10-11  Bruno Haible  <bruno@clisp.org>
85274
85275         * lib/c-strcasestr.h: New file, from GNU gettext.
85276         * lib/c-strcasestr.c: New file, from GNU gettext.
85277
85278 2005-10-11  Bruno Haible  <bruno@clisp.org>
85279
85280         * lib/c-strcase.h: New file, from GNU gettext.
85281         * lib/c-strcasecmp.c: New file, from GNU gettext.
85282         * lib/c-strncasecmp.c: New file, from GNU gettext.
85283
85284 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85285
85286         * modules/mempcpy (License): GPL -> LGPL.
85287         * modules/strchrnul (License): Likewise.
85288         * modules/sysexits (License): Likewise.
85289
85290 2005-10-08  Simon Josefsson  <jas@extundo.com>
85291
85292         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85293
85294 2005-10-07  Simon Josefsson  <jas@extundo.com>
85295
85296         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85297
85298 2005-10-06  Simon Josefsson  <jas@extundo.com>
85299
85300         * tests/test-hmac-md5.c: New file.
85301
85302         * modules/hmac-md5-tests: New file.
85303
85304         * modules/hmac-md5: New file.
85305
85306 2005-10-06  Simon Josefsson  <jas@extundo.com>
85307
85308         * m4/hmac-md5.m4: New file.
85309
85310         * m4/memxor.m4: Require gl_C_RESTRICT.
85311
85312 2005-10-06  Simon Josefsson  <jas@extundo.com>
85313
85314         * lib/memxor.c (memxor): Avoid casts and warnings.
85315
85316 2005-10-06  Simon Josefsson  <jas@extundo.com>
85317
85318         * lib/hmac-md5.c: New file.
85319
85320         * lib/hmac.h: New file.
85321
85322 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85323
85324         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85325         promotes to int, not unsigned int, to catch the AIX 5.3
85326         compiler bug.
85327
85328 2005-10-05  Simon Josefsson  <jas@extundo.com>
85329
85330         * modules/memxor: New file.
85331
85332         * modules/iconv (Files): Move config.rpath to havelib, it is used
85333         there.
85334
85335         * modules/havelib (Files): Add config.rpath.
85336
85337 2005-10-05  Simon Josefsson  <jas@extundo.com>
85338
85339         * m4/memxor.m4: New file.
85340
85341 2005-10-05  Simon Josefsson  <jas@extundo.com>
85342
85343         * lib/memxor.c (memxor): Fix compiler error.
85344
85345         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85346         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85347
85348         * lib/memxor.h, lib/memxor.c: New files.
85349
85350         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85351         we assume all systems have it, suggested by Jim Meyering
85352         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85353         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85354         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85355         same reasons.
85356
85357 2005-10-05  Simon Josefsson  <jas@extundo.com>
85358
85359         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85360
85361 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85362
85363         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85364         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85365         needed, since the source code now assumes these .h files.
85366
85367 2005-10-05  Derek Price  <derek@ximbiot.com>
85368
85369         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85370
85371 2005-10-05  Bruno Haible  <bruno@clisp.org>
85372
85373         * modules/stdint (License): Change to LGPL.
85374
85375 2005-10-04  Simon Josefsson  <jas@extundo.com>
85376
85377         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85378         D. Baushke" <mdb@gnu.org>.
85379
85380 2005-10-04  Bruno Haible  <bruno@clisp.org>
85381
85382         * lib/verify.h (verify_true): Provide alternative definition for C++.
85383
85384 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85385
85386         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85387         (SSIZE_MAX): New macro, if not already defined.
85388         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85389         than 2 GiB.
85390
85391 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85392
85393         Sync from coreutils.
85394         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85395         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85396         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85397         ULLONG_MAX doesn't work with 2.7.2.1.
85398
85399 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85400
85401         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85402         From Ben Pfaff.
85403
85404         * modules/exclude (Depends-on): Depend on verify.
85405         * modules/strtoimax (Depends-on): Likewise.
85406         * modules/utimecmp (Depends-on): Likewise.
85407
85408 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         * lib/exclude.c: Include verify.h.
85411         (verify): Remove.  All callers changed to use verify.h's version.
85412         * lib/strtoimax.c: Likewise.
85413         * lib/utimecmp.c: Likewis.e
85414
85415         Sync from coreutils.
85416         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85417         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85418         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85419         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85420         bother returning ENOSYS if settimeofday or stime fails; just let
85421         them return whatever errno they want to return.
85422         * lib/utimens.c: Include unistd.h, for dup2.
85423         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85424         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85425
85426 2005-10-02  Jim Meyering  <jim@meyering.net>
85427
85428         Sync from coreutils.
85429         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85430         from glibc-2.2.5 that fails for read-only files.
85431
85432 2005-10-02  Jim Meyering  <jim@meyering.net>
85433
85434         Sync from coreutils.
85435         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85436         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85437         `#if HAVE_CONFIG_H'.
85438         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85439         Remove AT_FDCWD test.
85440         Do not consume the fd unless successful.
85441         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85442         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85443         block, so that we don't even try to compile it if settimeofday is
85444         available.  This works around a compilation failure on OSF1 V5.1,
85445         due to stime requiring a `long int*' while tv_sec is `int'.
85446
85447 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85448
85449         Sync from coreutils.
85450         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85451         against `yes', rather than just testing for nonempty.
85452
85453 2005-10-01  Simon Josefsson  <jas@extundo.com>
85454
85455         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85456         and Darwin.
85457
85458         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85459         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85460         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85461         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85462         Check if struct addrinfo is declared.
85463
85464 2005-10-01  Simon Josefsson  <jas@extundo.com>
85465
85466         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85467         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85468         AI_* and EAI_* definitions.  Protect function declarations.
85469
85470 2005-10-01  Jim Meyering  <jim@meyering.net>
85471
85472         Sync from coreutils.
85473
85474         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85475         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85476         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85477         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85478         in the inet and nsl libraries.  Required on Solaris 5.7.
85479
85480 2005-10-01  Jim Meyering  <jim@meyering.net>
85481
85482         Sync from coreutils.
85483         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85484         in the inet and nsl libraries.  Required on Solaris 5.7.
85485
85486 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85487
85488         * lib/getdelim.c (getdelim): Remove unused variables.
85489
85490 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85491
85492         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85493         so that the code works even with ancient cpp.  Portability problem
85494         with GCC 2.7.2.1 reported by Thomas M.Ott.
85495
85496 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85497
85498         * modules/regex (Depends-on): Add strcase.
85499
85500         * modules/gethostname (Licence): Change from GPL to LGPL, since
85501         gethostname.c is a trivial implementation of a standard library
85502         function.
85503         * modules/poll (License): Change from GPL to LGPL, since it's
85504         derived from LGPL code.
85505
85506 2005-09-27  Jim Meyering  <jim@meyering.net>
85507
85508         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85509         HAVE_CONFIG_H.
85510
85511         * lib/intprops.h (signed_type_or_expr__): Define.
85512         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85513         for unsigned types.
85514
85515 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85516
85517         * lib/verify.h (verify_expr): Remove, replacing with:
85518         (verify_true): New macro that returns true instead of void.
85519         (verify_type__): Remove.
85520         (verify): Use verify_true rather than verify_type__.
85521
85522 2005-09-26  Bruno Haible  <bruno@clisp.org>
85523
85524         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85525         is necessary.
85526         (lib_SOURCES): Remove mbchar.c.
85527         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85528         (Files): Add m4/mbrtowc.m4.
85529         * modules/mbiter: Likewise.
85530         * modules/mbuiter: Likewise.
85531
85532 2005-09-26  Bruno Haible  <bruno@clisp.org>
85533
85534         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85535         compile mbchar.c if they are not both present.
85536         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85537         * m4/mbiter.m4 (gl_MBITER): Likewise.
85538         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85539         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85540         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85541
85542 2005-09-25  Jim Meyering  <jim@meyering.net>
85543
85544         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85545         also uses socklen_t.
85546
85547 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85548
85549         * lib/utimens.c (ENOSYS): Define if not already defined.
85550         (futimens): Support having a null PATH if the file descriptor
85551         is nonnegative.
85552
85553         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85554         Remove.
85555         (__attribute): Define to empty unless GCC 3.1 or later.
85556         This works around a core dump on OpenBSD 3.4, which has GCC
85557         2.95.3, which dumps core when given __attribute__(()).  It also
85558         simplifies other tests, since we really don't want to bother with
85559         worrying about which ancient version of GCC supported what.
85560         Original problem reported by Yoann Vandoorselaere, with part of
85561         the fix suggested by Derek Price.
85562
85563 2005-09-24  Jim Meyering  <jim@meyering.net>
85564
85565         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85566         so we can once again use a positive bitfield width of 1 -- now we
85567         don't have to explain why we were using a bitfield width of 2.
85568
85569 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85570
85571         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85572         and similarly for the other external symbols.  Problem reported
85573         by James Gallager.
85574
85575         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85576         bug reported by Jim Meyering.
85577
85578         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85579         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85580         not needed, since socklen is a prerequisite module.
85581
85582 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85583
85584         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85585         Problem reported by Eric Blake.
85586         (getaddrinfo): Initialize se so that it's not garbage.
85587         Redo internal storage allocation so that it doesn't make unportable
85588         assumptions about alignment.
85589         Fix a memory leak.
85590
85591         * lib/utimens.c (futimens): Use futimesat if available.
85592         Prefer it to futimes since it doesn't have the futimes bug.
85593
85594         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85595         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85596         Instead, declare a function that returns a pointer to an array,
85597         and use verify_type__ to declare the size of the array.
85598         Problem and germ of a solution reported by Bruno Haible.
85599         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85600         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85601
85602 2005-09-23  Jim Meyering  <jim@meyering.net>
85603
85604         Sync from coreutils.
85605         Correct build failure (socklen_t not defined) on at least
85606         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85607         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85608
85609 2005-09-23  Jim Meyering  <jim@meyering.net>
85610
85611         * modules/getaddrinfo (Depends-on): Add socklen.
85612
85613 2005-09-23  Bruno Haible  <bruno@clisp.org>
85614
85615         * tests/test-verify.c: New file.
85616
85617 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85618
85619         Sync from coreutils.
85620
85621         * modules/argmatch (Depends-on): Add verify.
85622         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85623         unistd-safer.
85624         * modules/save-cwd (Depends-on): Likewise.
85625
85626         * modules/openat (Files): Add lib/openat-die.c.
85627         (Depends-on): Remove error, exitfail.
85628         Add dirname.
85629
85630         * modules/verify: New file.
85631         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85632         with "verify" module.
85633
85634 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85635
85636         Sync from coreutils.
85637
85638         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85639         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85640         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85641         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85642         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85643         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85644         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85645         Don't bother checking for string.h, stdlib.h, unistd.h.
85646         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85647         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85648         module's job.
85649         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85650         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85651
85652         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85653         (gl_GETDATE): Use it.
85654
85655         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85656
85657 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85658
85659         Sync from coreutils.
85660
85661         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85662         stat-time.h.
85663         * lib/argmatch.h: Include verify.h
85664         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85665         (ARGMATCH_ASSERT): Remove; unused.
85666         * lib/canonicalize.c: Assume STDC_HEADERS.
85667         * lib/exclude.c: Include "strcase.h".
85668         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85669         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85670         and stdio-safer.h.
85671         (getusershell): Call fopen, not fopen_safer.
85672         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85673         Do not include unistd-safer.h.
85674         (save_cwd): Don't call fd_safer; no longer needed
85675         now that we include fcntl--.h.
85676
85677         * lib/getdate.y (relative_time): New type.
85678         (RELATIVE_TIME_0): New constant.
85679         (parser_control): Use relative_time instead of doing it ourselves.
85680         (%union): Add new relative_time rel member.
85681         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85682         Now typeless.
85683         (relunit, relunit_snumber): Now of type rel.
85684         (zone, rel, relunit, get_date): Adjust to above changes.
85685
85686         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85687         Do not include unistd-safer.h.
85688         (getloadavg): Don't call fd_safer; no longer needed
85689         now that we include fcntl--.h.
85690
85691         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85692         (make_dir_parents): Treat ENOSYS like EEXIST.
85693
85694         Improve quality of diagnostics on restore_cwd failure.
85695         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85696         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85697         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85698         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85699         each time through the loop.  Do not diagnose restore_cwd failure;
85700         that is the caller's job (and perhaps the caller does not care).
85701
85702         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85703         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85704         If the file already exists but is not a directory, don't bother
85705         to try to make its parents.
85706         Close potential file descriptor leak if we can't chdir("/") (!).
85707         Don't always return true if chdir($PWD) fails; return true only
85708         if the requested action was done successfully (except for the
85709         chdir($PWD)).
85710         Don't log final directory unless we actually made it.
85711         Refactor to avoid duplicate code to fix up permissions.
85712         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85713
85714         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85715         to make it a bit faster and (I hope) clearer.
85716         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85717         Fix bug in formats like %2N.
85718
85719         * lib/verify.h: New file.
85720
85721 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85722
85723         Sync from coreutils.
85724         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85725
85726 2005-09-22  Jim Meyering  <jim@meyering.net>
85727
85728         Sync from coreutils.
85729
85730         * m4/lstat.m4 (gl_FUNC_LSTAT):
85731         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85732         Remove obsolete comment.
85733         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85734         * m4/xstrtod.m4: Likewise.
85735
85736         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85737
85738 2005-09-22  Jim Meyering  <jim@meyering.net>
85739
85740         Sync from coreutils.
85741
85742         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85743
85744         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85745         the .tm_year member, since otherwise gcc-4.0 would now warn about
85746         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85747
85748         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85749         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85750
85751         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85752         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85753         when run in a time zone for which daylight savings time is in effect
85754         for the starting date.
85755
85756         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85757         stop us from restricting permissions of just-created absolute-named
85758         directories.
85759         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85760         to restore initial working directory.
85761         * lib/mkdir-p.c (make_dir_parents): New parameter:
85762         different_working_dir, to tell caller if/when we change the working
85763         directory and are unable to return to the initial one.
85764         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85765         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85766         `return false'.  This fixes a bug introduced on 2004-07-30.
85767
85768         * lib/openat.c (fdopendir): Be sure to close the supplied
85769         file descriptor before returning.  This makes our replacement
85770         implementation a little closer to Solaris's, where fdopendir
85771         ties the file descriptor to the returned DIR* pointer.
85772         * lib/openat.c (unlinkat): New function.
85773         * lib/openat.h (unlinkat): Add prototype.
85774         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85775         (openat_restore_fail): Rename from openat_restore_die.
85776         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85777
85778         Provide an alternative to exiting immediately upon save_cwd or
85779         restore_cwd failure.  Now, an application can arrange e.g.,
85780         to perform a longjump in that case.
85781         * lib/openat.c: Include dirname.h.
85782         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85783         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85784         and openat_restore_die rather than calling error directly.
85785         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85786
85787         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85788         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85789         define.
85790
85791         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85792         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85793                             int utc, int nanoseconds);
85794         Background:
85795         date should not have to allocate a megabyte of virtual memory to
85796         handle a format argument like +%1048575T.  When implemented with
85797         strftime, it must allocate such a buffer, use strftime to fill it
85798         in, print it, then free it.
85799         With fprintftime, it simply prints everything and exits.
85800         With no need for memory allocation, that's one fewer way to fail.
85801         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85802         optional field width, not before, so we accept %9:z, not %:9z.
85803         (my_strftime): Be sure to use L_('x') for literals.
85804
85805         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85806         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85807         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85808         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85809         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85810         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85811         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85812         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85813         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85814         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85815         * lib/xgethostname.c, lib/xreadlink.c:
85816         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85817
85818         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85819         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85820         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85821         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85822         and don't include <sys/file.h>).
85823
85824 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85825
85826         Sync from coreutils.
85827
85828         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85829         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85830         [!LDAV_DONE]: Avoid unused variable warning.
85831
85832 2005-09-21  Bruno Haible  <bruno@clisp.org>
85833
85834         * lib/unicodeio.h (unicode_to_mb): New declaration.
85835
85836 2005-09-20  Derek Price  <derek@ximbiot.com>
85837
85838         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85839         getaddrinfo.h.
85840
85841 2005-09-20  Bruno Haible  <bruno@clisp.org>
85842
85843         * gnulib-tool: Remove trailing slashes from the values specified for
85844         --source-base, --m4-base, --tests-base, --aux-dir.
85845         Suggested by Simon Josefsson <jas@extundo.com>.
85846
85847 2005-09-20  Bruno Haible  <bruno@clisp.org>
85848
85849         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85850         func_modules_to_filelist, func_import, func_create_testdir): Make all
85851         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85852         change when gnulib-tool is invoked in a different locale.
85853
85854 2005-09-19  Simon Josefsson  <jas@extundo.com>
85855
85856         * m4/socklen.m4: Fix typo.
85857
85858 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85859
85860         Use a consistent style for including <config.h>.
85861         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85862         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85863         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85864         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85865         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85866         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85867         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85868         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85869         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85870         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85871         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85872         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85873         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85874         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85875         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85876         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85877         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85878         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85879         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85880         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85881         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85882         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85883         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85884         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85885         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85886         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85887         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85888         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85889         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85890         lib/xstrtoumax.c, lib/yesno.c:
85891         Standardize inclusion of config.h.
85892         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85893         lib/inttostr.h:  Removed inclusion of config.h from header files.
85894         * lib/inttostr.c:  Adjusted in-tree users.
85895         * lib/timespec.h: Remove superfluous warning to include config.h.
85896         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85897         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85898         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85899         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85900         config.h with HAVE_CONFIG_H.
85901
85902 2005-09-19  Jim Meyering  <jim@meyering.net>
85903
85904         * modules/pathmax (License): Change to LGPL.
85905
85906 2005-09-19  Derek Price  <derek@ximbiot.com>
85907
85908         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85909
85910 2005-09-19  Bruno Haible  <bruno@clisp.org>
85911
85912         * gnulib-tool (import): Provide default for --tests-base.
85913
85914 2005-09-19  Bruno Haible  <bruno@clisp.org>
85915
85916         * doc/quote.texi: New file, extracted from gnulib.texi.
85917         * doc/ctime.texi: New file, extracted from gnulib.texi.
85918         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85919         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85920         * doc/gnulib.texi: Include them.
85921
85922 2005-09-18  Bruno Haible  <bruno@clisp.org>
85923
85924         Portability fix.
85925         * gnulib-tool (func_readlink): New function.
85926         (func_ln_if_changed): Use it.
85927
85928 2005-09-18  Bruno Haible  <bruno@clisp.org>
85929
85930         * gnulib-tool: Support --with-tests also with --import.
85931         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85932         (func_import): Use variables $testsbase and $inctests. Emit a
85933         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85934         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85935         SUBDIRS += $testsdir.
85936         (func_create_testdir): Update.
85937
85938 2005-09-18  Bruno Haible  <bruno@clisp.org>
85939
85940         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85941         instead of $dry_run.
85942         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85943         (func_ln_if_changed): Don't handle dry-run here.
85944         (func_import): In dry-run mode, detect more precisely which actions
85945         would be performed, and don't use "...ing" verbs.
85946
85947 2005-09-18  Bruno Haible  <bruno@clisp.org>
85948
85949         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85950         (func_import): Use join on two temporary files instead of three nested
85951         loops, in order to determine which files are new or old.
85952
85953 2005-09-18  Bruno Haible  <bruno@clisp.org>
85954
85955         * gnulib-tool (func_import): Comment out code that spits out the
85956         new files with --dry-run.
85957
85958 2005-09-18  Bruno Haible  <bruno@clisp.org>
85959
85960         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85961
85962 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85963
85964         * lib/stat-time.h: New file.
85965         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85966         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85967         in a different way.
85968         (timespec_cmp): New function.
85969         * lib/utimecmp.c: Include stat-time.h.
85970         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85971         members exist, not on the obsolescent ST_MTIM_NSEC.
85972         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85973
85974 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85975
85976         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85977
85978 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         * MODULES.html.sh (File system functions): Add stat-time.
85981         * modules/stat-time: New file.
85982         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85983         is now done in a different way, by the stat-time module.
85984         * modules/utimecmp (Depends-on): Add stat-time.
85985
85986 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85987
85988         * m4/st_mtim.m4: Remove.  Superseded by...
85989         * m4/stat-time.m4: New file.
85990         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85991         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85992
85993 2005-09-15  Derek Price  <derek@ximbiot.com>
85994
85995         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85996
85997 2005-09-15  Derek Price  <derek@ximbiot.com>
85998
85999         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
86000         * lib/regex_internal.c: Ditto, using this...
86001         (__GNUC_PREREQ): ...new macro.
86002         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
86003         using...
86004         (__GNUC_PREREQ): ...this new macro.
86005
86006         * lib/strstr.h: Include string.h. Define strstr as a macro here.
86007
86008 2005-09-15  Derek Price  <derek@ximbiot.com>
86009             Paul Eggert  <eggert@cs.ucla.edu>
86010
86011         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
86012         changes, consolidating in...
86013         * lib/regex_internal.h: ...this file.
86014
86015 2005-09-13  Jim Meyering  <jim@meyering.net>
86016
86017         * lib/canon-host.c: Filter through gnu indent and reword comments
86018         slightly.
86019         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
86020
86021 2005-09-13  Derek Price  <derek@ximbiot.com>
86022
86023         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
86024         failure.
86025         Reported by Jim Meyering  <jim@meyering.net>.
86026
86027 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86028
86029         * lib/base64.c: Typo.
86030         (base64_encode): Put b64str in initialized data section.
86031
86032 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
86033
86034         Merge glibc and coreutils changes into gnulib, plus a few
86035         extra fixes.
86036         * lib/md5.c: Use #error rather than a string.
86037         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
86038         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
86039         (__attribute__): Define to empty for non recent-GCC.
86040         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
86041         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
86042         Renamed from their non-__ counterparts, with new macros replacing
86043         them if not _LIBC.  Add __THROW attribute.
86044         (rol): Remove.
86045         (struct md5_ctx): Align buffer if using GCC.
86046         * lib/sha1.h (struct sha1_ctx): Likewise.
86047         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
86048         The old name was backwards.
86049         (NOTSWAP): Remove; not used.
86050         (rol): New macro, moved here from md5.h.
86051         (sha1_process_block): Remove a FIXME that doesn't make sense.
86052
86053 2005-09-12  Derek Price  <derek@ximbiot.com>
86054
86055         Return usable errors from canon-host.
86056         * lib/canon-host.h: New file.
86057         * lib/canon-host.c (canon_host): Wrap...
86058         (canon_host_r): ...this new function, which now relies exclusively on
86059         getaddrinfo.
86060         (ch_strerror): New function.
86061         (last_cherror): New global.
86062         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
86063         interface.
86064         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
86065         void *.
86066         (freeaddrinfo): Free ai->ai_canonname when set.
86067
86068 2005-09-12  Derek Price  <derek@ximbiot.com>
86069
86070         Make canon-host require getaddrinfo.
86071         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
86072         AC_LIBSOURCE canon-host.h.  Call...
86073         (gl_PREREQ_CANON_HOST): ...this new function, which requires
86074         gl_GETADDRINFO.
86075         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
86076
86077 2005-09-12  Derek Price  <derek@ximbiot.com>
86078
86079         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
86080         LGPL.
86081         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
86082
86083 2005-09-12  Derek Price  <derek@ximbiot.com>
86084
86085         * lib/gai_strerror.c: Include config.h when available.  Include
86086         getaddrinfo.h before other headers to test interface.
86087         Reported by Larry Jones <lawrence.jones@ugs.com>.
86088
86089 2005-09-12  Derek Price  <derek@ximbiot.com>
86090             Paul Eggert  <eggert@cs.ucla.edu>
86091
86092         * modules/glob (Files): Add glob-libc.h.
86093
86094 2005-09-12  Derek Price  <derek@ximbiot.com>
86095             Paul Eggert  <eggert@cs.ucla.edu>
86096
86097         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
86098         glob_.h, glob-libc.h.
86099         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
86100
86101 2005-09-12  Derek Price  <derek@ximbiot.com>
86102             Paul Eggert  <eggert@cs.ucla.edu>
86103
86104         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
86105         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
86106         protecting things that should be done only in gnulib contexts.
86107         * lib/glob_.h: New file, containing only the glob things needed for
86108         gnulib.
86109         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
86110         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
86111         (glob, globfree, glob_pattern_p): Now defined simply in terms of
86112         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
86113         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
86114         and to respect the namespace rules better.
86115
86116 2005-09-08  Simon Josefsson  <jas@extundo.com>
86117
86118         * modules/socklen: New file.
86119
86120 2005-09-08  Simon Josefsson  <jas@extundo.com>
86121
86122         * m4/socklen.m4: New file.
86123
86124 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86125
86126         * modules/utimens (Files): Add m4/utimbuf.m4, since
86127         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
86128         Reported by Sergey Poznyakoff.
86129
86130 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86131
86132         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
86133         definitions, since that's the preferred style in glibc.
86134         Fix a minor spacing issue, and update copyright notice to match
86135         glibc's.
86136
86137 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86138
86139         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
86140
86141 2005-09-06  Simon Josefsson  <jas@extundo.com>
86142
86143         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
86144         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
86145
86146 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86147
86148         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
86149         warning.
86150
86151 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86152
86153         * config/srclist.txt: Add glibc bug 1302.
86154
86155 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
86156
86157         Change bitset word type from unsigned int to unsigned long int,
86158         as this has better performance on typical 64-bit hosts.
86159         Port bitset code to hosts with unusual word sizes.
86160         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
86161         (build_collating_symbol):
86162         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
86163         argument is a bitset.  This is merely a style issue, but it makes
86164         it clearer that an entire array is expected.
86165         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
86166         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
86167         Port to the case where bitset_word is not the same as unsigned int.
86168         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86169         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
86170         Likewise.
86171         * lib/regexec.c (check_dst_limits_calc_pos_1,
86172         check_subexp_matching_top):
86173         (build_trtable, group_nodes_into_DFAstates):
86174         Likewise.
86175         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
86176         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
86177         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
86178         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
86179         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
86180         * lib/regcomp.c (optimize_subexps, lower_subexp):
86181         Work even if bitset_word has holes in its bitwise representation.
86182         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
86183         * lib/regexec.c (check_dst_limits_calc_pos_1,
86184         check_subexp_matching_top):
86185         Likewise.
86186         * lib/regex_internal.c (re_string_reconstruct):
86187         Don't assume UCHAR_MAX == 255.
86188         * lib/regex_internal.h (bitset_set_all): Likewise.
86189         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
86190         All uses changed.
86191         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
86192         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
86193         All uses changed.
86194         (BITSET_WORD_MAX): New macro.
86195         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
86196         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
86197         (bitset_empty, bitset_copy):
86198         Prefer sizeof (bitset) to multiplying it out ourselves.
86199         (bitset_not_merge): Remove; unused.
86200         (bitset_contain): Return bool, not unsigned int with one bit on.
86201         All callers changed.
86202         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
86203         alignment than re_node_set; do this by defining a new internal
86204         type struct dests_alloc and using it to allocate memory.
86205
86206 2005-09-05  Bruno Haible  <bruno@clisp.org>
86207
86208         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86209         links.
86210
86211 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86212
86213         * modules/size_max (Makefile.am): Add size_max.h
86214
86215 2005-09-04  Derek Price  <derek@ximbiot.com>
86216
86217         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86218
86219 2005-09-03  Simon Josefsson  <jas@extundo.com>
86220
86221         * gnulib-tool: Fix typo.
86222
86223 2005-09-03  Simon Josefsson  <jas@extundo.com>
86224
86225         * config/srclist.txt: Add glibc bug 1293.
86226
86227 2005-09-03  Derek Price  <derek@ximbiot.com>
86228
86229         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86230         From Larry Jones <lawrence.jones@ugs.com>.
86231
86232 2005-09-02  Simon Josefsson  <jas@extundo.com>
86233
86234         * modules/socklen: New file.
86235
86236 2005-09-02  Simon Josefsson  <jas@extundo.com>
86237
86238         * modules/havelib: New module.
86239
86240         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86241         Use havelib.
86242
86243 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86244
86245         Check for arithmetic overflow when calculating sizes, to prevent
86246         some buffer-overflow issues.  These patches are conservative, in the
86247         sense that when I couldn't determine whether an overflow was possible,
86248         I inserted a run-time check.
86249         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86250         macros.
86251         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86252         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86253         (re_xnrealloc, re_x2nrealloc): New inline functions.
86254         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86255         parse_bracket_exp):
86256         (build_equiv_class, build_charclass): Check for arithmetic overflow
86257         in size expression calculations.
86258         * lib/regex_internal.c (re_string_realloc_buffers):
86259         (build_wcs_upper_buffer, re_node_set_add_intersect):
86260         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86261         (re_dfa_add_node, register_state): Likewise.
86262         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86263         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86264         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86265         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86266
86267 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86268
86269         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86270         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86271
86272 2005-09-02  Bruno Haible  <bruno@clisp.org>
86273
86274         Support for lib vs. lib64 distinction on biarch platforms.
86275         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86276         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86277         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86278
86279 2005-09-02  Bruno Haible  <bruno@clisp.org>
86280
86281         * gnulib-tool (import): In the other first-use case, provide defaults
86282         as well.
86283
86284 2005-09-02  Bruno Haible  <bruno@clisp.org>
86285
86286         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86287         patches not yet found in the latest gettext release.
86288
86289 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86290
86291         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86292         to avoid a collision with bits/local_lim.h in glibc.
86293         All uses changed.  Problem reported by Dmitry V. Levin in
86294         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86295
86296         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86297         bugs in int versus size_t comparisons.
86298         (re_string_context_at): Fix bug where the code assumed that
86299         Idx is signed.
86300
86301         Use bool where appropriate.
86302         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86303         All callers changed.
86304         (calc_eclosure_iter): Likewise, for ROOT arg.
86305         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86306         (build_charclass_op): Likewise, for NON_MATCH arg.
86307         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86308         (re_string_construct_common): Likewise, for ICASE arg.
86309         * lib/regexec.c (re_search_2_stub, re_search_stub):
86310         Likewise, for RET_LEN arg.
86311         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86312         (set_regs): Likewise, for FL_BACKTRACK arg.
86313         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86314         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86315         (calc_eclosure_iter, parse_bracket_exp):
86316         Use bool for internal variables that are booleans.
86317         * lib/regexec.c (re_search_internal, check_matching,
86318         proceed_next_node):
86319         (set_regs, build_sifted_states, sift_states_bkref):
86320         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86321         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86322         (find_collation_sequence_value):
86323         Likewise.
86324         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86325         (re_node_set_compare):
86326         Return bool, not int. All callers changed.
86327         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86328         (build_trtable, check_node_accept): Likewise.
86329         * lib/regex_internal.h: Include stdbool.h.
86330
86331         Fix bugs uncovered when converting to bool.
86332         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86333         failure instead of charging ahead blindly.
86334         * lib/regex_internal.c (register_state): Likewise.
86335         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86336         for freeing internal storage.
86337         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86338         bitset pieces used as boolean, to avoid undefined behavior
86339         on hosts that do int overflow checking.
86340
86341 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86342
86343         * config/srclist.txt: Add glibc bugs 1285-1287.
86344
86345 2005-09-01  Jim Meyering  <jim@meyering.net>
86346
86347         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86348         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86349         Require gl_STAT_MACROS, too.
86350
86351 2005-09-01  Bruno Haible  <bruno@clisp.org>
86352
86353         * gnulib-tool (import): In the first-use case, provide defaults.
86354
86355 2005-09-01  Bruno Haible  <bruno@clisp.org>
86356
86357         * gnulib-tool (func_import): Remove the .tmp files.
86358
86359 2005-09-01  Bruno Haible  <bruno@clisp.org>
86360
86361         * gnulib-tool (func_import): Fix handling of symbolic links.
86362
86363 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86364
86365         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86366         old glibc regex code mishandles strings longer than 2**31 bytes.
86367         This patch fixes this when the regex code is used in gnulib
86368         (i.e., outside glibc).
86369
86370         This patch should not affect the use of the regex code inside
86371         glibc.  No doubt this problem also needs to be handled for glibc
86372         as well, but the result will be an incompatible change to the
86373         glibc ABI, and the old ABI will have to be supported too.  That
86374         can be the the subject for another patch.
86375
86376         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86377         governing whether the rest of this patch is active.  By default,
86378         the macro is disabled and the patch has no effect.
86379         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86380         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86381         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86382         (re_match_2, re_set_registers): Use the new types.
86383         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86384         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86385         New macros.
86386         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86387         (re_string_context_at, bin_tree_t, re_dfastate_t):
86388         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86389         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86390         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86391         (re_string_char_size_at, re_string_wchar_at):
86392         (re_string_elem_size_at):
86393         Use the new types and macros to port to 64-bit hosts.
86394         Use unsigned types for internal values, so that the code
86395         mostly works even for arrays larger than SSIZE_MAX.
86396         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86397         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86398         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86399         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86400         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86401         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86402         (calc_inveclosure, parse_dup_op, build_range_exp):
86403         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86404         (fetch_number, create_token_tree, mark_opt_subexp):
86405         Likewise.
86406         * lib/regex_internal.c (re_string_construct_common,
86407         create_ci_newstate):
86408         (create_cd_newstate, re_string_allocate, re_string_construct):
86409         (re_string_realloc_buffers, build_wcs_upper_buffer):
86410         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86411         (re_string_reconstruct, re_string_peek_byte_case):
86412         (re_string_fetch_byte_case, re_string_context_at):
86413         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86414         (re_node_set_init_copy, re_node_set_add_intersect):
86415         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86416         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86417         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86418         (re_acquire_state, re_acquire_state_context, register_state):
86419         Likewise.
86420         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86421         search_cur_bkref_entry):
86422         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86423         (re_search_internal, re_search_2_stub, re_search_stub)
86424         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86425         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86426         (update_cur_sifted_state, check_dst_limits):
86427         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86428         (check_subexp_limits, sift_states_bkref, merge_state_array):
86429         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86430         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86431         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86432         (expand_bkref_cache, check_node_accept_bytes):
86433         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86434         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86435         (acquire_init_state_context, check_halt_node_context):
86436         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86437         (sift_states_backward, clean_state_log_if_needed):
86438         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86439         (find_recover_state, transit_state_sb, transit_state_mb):
86440         (transit_state_bkref, build_trtable, match_ctx_clean):
86441         Likewise.
86442         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86443         to work around an assumption that REG_MISSING is negative.
86444
86445         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86446         (seek_collating_symbol_entry) [defined _LIBC]:
86447         (lookup_collation_sequence_value) [defined _LIBC]:
86448         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86449         Use prototypes rather than old-style function definitions.
86450         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86451         (transit_state_sb) [0]:
86452         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86453
86454         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86455         rm_eo.
86456
86457         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86458         (optimize_subexps, lower_subexp):
86459         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86460         since the signed shift might overflow.  Use 1u<<31 instead.
86461         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86462         Likewise.
86463         * lib/regexec.c (check_dst_limits_calc_pos_1,
86464         check_subexp_matching_top): Likewise.
86465
86466         * lib/regcomp.c (optimize_subexps, lower_subexp):
86467         Use CHAR_BIT rather than 8, for clarity.
86468         * lib/regexec.c (check_dst_limits_calc_pos_1):
86469         (check_subexp_matching_top): Likewise.
86470         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86471         have to worry about portability issues when shifting it left.
86472         Remove no-longer-needed test for table_size > 0.
86473         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86474         in a word, as the resulting behavior is undefined.
86475         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86476         in one case, a <= should have been an <, and in another case the
86477         whole test was missing.
86478         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86479         the standard name CHAR_BIT.
86480         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86481         this is not true on one's complement and signed-magnitude hosts.
86482
86483         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86484         next_last_offset.
86485         (struct re_dfa_t): Remove unused member states_alloc.
86486         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86487
86488 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86489
86490         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86491         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86492         and large-file glibc and in 32-bit large-file Solaris.
86493
86494 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86495
86496         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86497         lengths fit in regoff_t; this isn't true if regoff_t is the same
86498         width as size_t.
86499         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86500         (= START + RANGE) instead of RANGE.  This avoids overflow
86501         problems when regoff_t is the same width as size_t.
86502         All callers changed.
86503         (re_search_2_stub): Check for overflow when adding the
86504         sizes of the two strings.
86505         (re_search_stub): Check for overflow when adding START
86506         to RANGE; if it occurs, substitute the extreme value.
86507
86508 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86509
86510         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86511
86512 2005-08-31  Jim Meyering  <jim@meyering.net>
86513
86514         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86515         a pointer-to-const.
86516         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86517         (register_state): Likewise.
86518         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86519         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86520         (group_nodes_into_DFAstates): Likewise.
86521
86522 2005-08-31  Jim Meyering  <jim@meyering.net>
86523
86524         * check-module: Add a FIXME comment.
86525
86526 2005-08-31  Eric Blake  <ebb9@byu.net>
86527
86528         * modules/unistd-safer (Files): Add unistd--.h.
86529         * modules/stdio-safer (Files): Add stdio--.h.
86530
86531 2005-08-31  Derek Price  <derek@ximbiot.com>
86532
86533         * lib/getdelim.c (getdelim): Return EOF on EOF.
86534         Reported by Larry Jones <lawrence.jones@ugs.com>.
86535
86536 2005-08-31  Bruno Haible  <bruno@clisp.org>
86537
86538         Avoid unnecessary diffs in the generated lib/Makefile.am.
86539         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86540         the generated files.
86541         (func_import): Don't set cmd.
86542
86543 2005-08-31  Bruno Haible  <bruno@clisp.org>
86544
86545         * lib/strstr.c: Include <stddef.h>, for NULL.
86546         * lib/strcasestr.c: Likewise.
86547         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86548
86549 2005-08-31  Bruno Haible  <bruno@clisp.org>
86550
86551         * gnulib-tool: New option --macro-prefix.
86552         (func_import): Use macro_prefix.
86553         (import): Handle option --macro-prefix.
86554
86555 2005-08-31  Bruno Haible  <bruno@clisp.org>
86556
86557         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86558         Also use new variables cached_lgpl, cached_libtool.
86559
86560 2005-08-31  Bruno Haible  <bruno@clisp.org>
86561
86562         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86563         always instantiating them.
86564
86565 2005-08-31  Bruno Haible  <bruno@clisp.org>
86566
86567         * gnulib-tool (func_import): Read the previous cached settings
86568         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86569         earlier added by gnulib but are now dropped. Warn when a gnulib file
86570         overwrites a non-gnulib file.
86571
86572 2005-08-31  Bruno Haible  <bruno@clisp.org>
86573
86574         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86575         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86576         projects that don't keep autogenerated files in CVS. Put into
86577         actioncmd only the specified modules, not the transitive closure.
86578
86579 2005-08-31  Bruno Haible  <bruno@clisp.org>
86580
86581         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86582         Create directories that shall be filled.
86583         (import): Don't look for gl_* macros in configure.ac. Recurse across
86584         all directories containing a gnulib-cache.m4 files, if meaningful.
86585
86586 2005-08-31  Bruno Haible  <bruno@clisp.org>
86587
86588         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86589         (import): Set seen_libtool when we see gl_LIBTOOL.
86590
86591 2005-08-31  Bruno Haible  <bruno@clisp.org>
86592
86593         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86594         declaration macro definitions from generated gnulib.m4.
86595
86596 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86597
86598         * lib/iconvme.h: Add prototype for iconv_alloc.
86599
86600 2005-08-29  Simon Josefsson  <jas@extundo.com>
86601
86602         * lib/iconvme.c: Fix errno.
86603
86604 2005-08-29  Bruno Haible  <bruno@clisp.org>
86605
86606         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86607         that it works when the directory contains spaces.
86608
86609 2005-08-29  Bruno Haible  <bruno@clisp.org>
86610
86611         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86612
86613 2005-08-29  Bruno Haible  <bruno@clisp.org>
86614
86615         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86616         Emit more advice.
86617
86618 2005-08-29  Bruno Haible  <bruno@clisp.org>
86619         and Stepan Kasal  <kasal@ucw.cz>
86620
86621         * check-module: If more parameters are given, check each of them
86622         separately; add more exceptions, as noted by Jim Meyering.
86623         (check_module): New procedure.
86624         (%exempt_header): Now contains all exceptions.
86625
86626 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86627
86628         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86629
86630 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86631
86632         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86633
86634 2005-08-28  Bruno Haible  <bruno@clisp.org>
86635
86636         * m4/gnulib-tool.m4: New file.
86637
86638 2005-08-27  Jim Meyering  <jim@meyering.net>
86639
86640         * modules/unistd-safer (Files): Add pipe-safer.c.
86641         * modules/fcntl-safer (Files): Add creat-safer.c.
86642
86643 2005-08-27  Jim Meyering  <jim@meyering.net>
86644
86645         * m4/stdlib-safer.m4: New file.  From coreutils.
86646         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86647         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86648         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86649         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86650         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86651
86652 2005-08-27  Jim Meyering  <jim@meyering.net>
86653
86654         * lib/fopen-safer.c: Merge minor changes from coreutils.
86655         * lib/dup-safer.c: Likewise.
86656         * lib/fd-safer.c: Likewise.
86657
86658         Merge from coreutils.
86659         * lib/stdio--.h: New file.
86660         * lib/stdlib--.h: New file.
86661         * lib/mkstemp-safer.c: New file.
86662
86663         GNU tar needs these.
86664         * lib/pipe-safer.c: New file.
86665         * lib/creat-safer.c: New file.
86666         * lib/fcntl--.h (creat): Define to creat_safer.
86667         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86668         * lib/unistd--.h (pipe): Define to pipe_safer.
86669         * lib/unistd-safer.h: Declare pipe_safer.
86670
86671 2005-08-26  Simon Josefsson  <jas@extundo.com>
86672
86673         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86674         Haible <bruno@clisp.org>.
86675
86676 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86677
86678         * lib/regex_internal.h: Remove all references to
86679         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86680         or better.
86681         (bitset_not, bitset_merge, bitset_not_merge):
86682         (bitset_mask, re_string_allocate, re_string_construct):
86683         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86684         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86685         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86686         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86687         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86688         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86689         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86690         (re_acquire_state_context):
86691         Remove unnecessary forward decls.
86692         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86693         Put __attribute at function definition,
86694         now that the function decl has been removed.
86695         * lib/regex_internal.c (re_string_peek_byte_case):
86696         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86697         Likewise.
86698
86699 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86700
86701         * m4/regex.m4: Add AC_PREREQ(2.50).
86702         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86703
86704 2005-08-25  Simon Josefsson  <jas@extundo.com>
86705
86706         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86707         __fsetlocking.
86708
86709 2005-08-25  Simon Josefsson  <jas@extundo.com>
86710
86711         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86712         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86713         GLIBC specific code.
86714
86715 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86716
86717         Make regex safe for g++.  This fixes one real bug (an "err"
86718         that should have been "*err").  g++ problem reported by
86719         Sam Steingold.
86720         * lib/regex_internal.h (re_calloc): New macro, consistent with
86721         re_malloc etc.  All callers of calloc changed to use re_calloc.
86722         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86723         not int.  All callers changed.
86724         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86725         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86726         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86727         (find_recover_state): Change "err" to "*err"; this fixes what
86728         appears to be a real bug.
86729         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86730         versus int.
86731
86732 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86733
86734         * modules/regex (Depends-on): Add malloc, since the code
86735         assumes that !malloc(0) means failure.
86736
86737 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86738
86739         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86740
86741         alloca modernization/simplification for regex.
86742         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86743         needs to be at the start of the file, and can be moved into
86744         regex_internal.h and simplified.
86745         * lib/regex_internal.h: Include <alloca.h>.
86746         (__libc_use_alloca) [!defined _LIBC]: New macro.
86747         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86748         now works outside glibc.
86749
86750 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86751
86752         * config/srclist.txt: Add glibc bugs 1241, 1245.
86753
86754 2005-08-25  Jim Meyering  <jim@meyering.net>
86755
86756         * lib/open-safer.c: Include <config.h>.
86757         Otherwise, we'd lose LARGEFILE support in any file using
86758         e.g. "fcntl--.h"
86759
86760 2005-08-25  Bruno Haible  <bruno@clisp.org>
86761
86762         * m4/minmax.m4: Require autoconf 2.52.
86763         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86764         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86765         alternatives of translit over the alphabet.
86766         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86767
86768 2005-08-24  Simon Josefsson  <jas@extundo.com>
86769
86770         * tests/test-getpass.c: New file.
86771
86772 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86773
86774         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86775         for GNU regex features.
86776
86777 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86778
86779         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86780         * lib/regex.h (regerror): Likewise.
86781
86782         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86783         requires this.  (The code never needed it.)
86784
86785         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86786         All uses of recently-renamed identifiers changed to use the new,
86787         POSIX-compliant names.  The code will build and run just fine
86788         without these changes, but it's better to eat our own dog food
86789         and use the standard-conforming names.
86790
86791         * lib/regex.h: Fix a multitude of POSIX name space violations.
86792         These changes have an effect only for programs that define
86793         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86794         do not change anything for programs compiled in the normal way.
86795         Also, there is no effect on the ABI.
86796
86797         (_REGEX_SOURCE): New macro.
86798         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86799         defined and _GNU_SOURCE is not; this fixes a name space violation.
86800
86801         Rename the following macros to obey POSIX requirements.
86802         The old names are still visible as macros if _REGEX_SOURCE is defined.
86803         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86804         RE_BACKSLASH_ESCAPE_IN_LISTS.
86805         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86806         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86807         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86808         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86809         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86810         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86811         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86812         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86813         (REG_INTERVALS): renamed from RE_INTERVALS.
86814         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86815         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86816         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86817         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86818         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86819         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86820         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86821         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86822         RE_UNMATCHED_RIGHT_PAREN_ORD.
86823         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86824         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86825         (REG_DEBUG): renamed from RE_DEBUG.
86826         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86827         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86828         unusual, since we can't clash with the POSIX REG_ICASE.
86829         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86830         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86831         (REG_NO_SUB): renamed from RE_NO_SUB.
86832         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86833         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86834         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86835         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86836         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86837         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86838         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86839         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86840         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86841         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86842         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86843         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86844         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86845         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86846         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86847         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86848         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86849         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86850         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86851         (REG_FIXED): Renamed from REGS_FIXED.
86852         (REG_NREGS): Renamed from RE_NREGS.
86853
86854         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86855         of other REG_* macros, since POSIX says the user is allowed to
86856         #undef these macros selectively.
86857
86858         (reg_errcode_t): Update comment stating what other tables need
86859         to be consistent.
86860
86861         Rename the following enum values to obey POSIX requirements.
86862         The old names are still visible as macros.
86863         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86864         is not defined, since GNU is supposed to be a superset of POSIX as
86865         much as possible, and since we want reg_errcode_t to be a signed
86866         type for implementation consistency.
86867         (_REG_NOERROR): Renamed from REG_NOERROR.
86868         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86869         (_REG_BADPAT): Renamed from REG_BADPAT.
86870         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86871         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86872         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86873         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86874         (_REG_EBRACK): Renamed from REG_EBRACK.
86875         (_REG_EPAREN): Renamed from REG_EPAREN.
86876         (_REG_EBRACE): Renamed from REG_EBRACE.
86877         (_REG_BADBR): Renamed from REG_BADBR.
86878         (_REG_ERANGE): Renamed from REG_ERANGE.
86879         (_REG_ESPACE): Renamed from REG_ESPACE.
86880         (_REG_BADRPT): Renamed from REG_BADRPT.
86881         (_REG_EEND): Renamed from REG_EEND.
86882         (_REG_ESIZE): Renamed from REG_ESIZE.
86883         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86884         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86885         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86886         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86887         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86888
86889         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86890         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86891         changed.  But support the old name if the new one is not defined
86892         and if _REGEX_SOURCE.
86893
86894         Change the following member names in struct re_pattern_buffer.
86895         The old names are still supported if !_REGEX_SOURCE.
86896         The new names are always supported, regardless of _REGEX_SOURCE.
86897         (re_buffer): Renamed from buffer.
86898         (re_allocated): Renamed from allocated.
86899         (re_used): Renamed from used.
86900         (re_syntax): Renamed from syntax.
86901         (re_fastmap): Renamed from fastmap.
86902         (re_translate): Renamed from translate.
86903         (re_can_be_null): Renamed from can_be_null.
86904         (re_regs_allocated): Renamed from regs_allocated.
86905         (re_fastmap_accurate): Renamed from fastmap_accurate.
86906         (re_no_sub): Renamed from no_sub.
86907         (re_not_bol): Renamed from not_bol.
86908         (re_not_eol): Renamed from not_eol.
86909         (re_newline_anchor): Renamed from newline_anchor.
86910
86911         Change the following member names in struct re_registers.
86912         The old names are still supported if !_REGEX_SOURCE.
86913         The new names are always supported, regardless of _REGEX_SOURCE.
86914         (rm_num_regs): Renamed from num_regs.
86915         (rm_start): Renamed from start.
86916         (rm_end): Renamed from end.
86917
86918         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86919         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86920         Prepend __ to parameter names.
86921
86922         Undo yesterday's changes.
86923
86924 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86925
86926         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86927         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86928         lib/regex.c.
86929
86930 2005-08-24  Jim Meyering  <jim@meyering.net>
86931
86932         Sync from coreutils.
86933         * m4/fcntl-safer.m4: New file.
86934
86935         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86936         and object files for this module.
86937
86938 2005-08-24  Jim Meyering  <jim@meyering.net>
86939
86940         Sync from coreutils.
86941         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86942
86943 2005-08-24  Jim Meyering  <jim@meyering.net>
86944
86945         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86946         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86947
86948 2005-08-24  Jim Meyering  <jim@meyering.net>
86949
86950         * modules/fcntl-safer: New module.
86951         * modules/fts (Depends-on): Add fcntl-safer.
86952         * MODULES.html.sh (File descriptor based Input/Output):
86953         Add fcntl-safer.
86954
86955 2005-08-24  Bruno Haible  <bruno@clisp.org>
86956
86957         Support for unit test modules.
86958         * modules/README: Mention tests modules.
86959         * modules/TEMPLATE-TESTS: New file.
86960         * gnulib-tool: New options --extract-tests-module, --with-tests and
86961         --tests-base (unused for the moment).
86962         (testsbase, inctests): New variables.
86963         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86964         (func_verify_module): Exclude TEMPLATE-TESTS.
86965         (func_verify_nontests_module, func_verify_tests_module): New functions.
86966         (func_get_dependencies): Add implicit dependency for tests modules.
86967         (func_get_tests_module): New function.
86968         (func_modules_transitive_closure): When --with-tests was specified,
86969         include the unit tests as well, unless explicitly avoided.
86970         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86971         (func_emit_tests_Makefile_am): New function.
86972         (func_create_testdir): When --with-tests was specified, emit a
86973         tests/ directory.
86974         * MODULES.html.sh (Future developments): Update.
86975
86976 2005-08-24  Bruno Haible  <bruno@clisp.org>
86977
86978         * modules/tls-tests: New file.
86979         * tests/test-tls.c: New file, from GNU gettext.
86980
86981 2005-08-24  Bruno Haible  <bruno@clisp.org>
86982
86983         * modules/lock-tests: New file.
86984         * tests/test-lock.c: New file, from GNU gettext.
86985
86986 2005-08-24  Bruno Haible  <bruno@clisp.org>
86987
86988         * lib/lock.h: Add multiple inclusion guard.
86989         * lib/tls.h: Add multiple inclusion guard.
86990
86991 2005-08-24  Bruno Haible  <bruno@clisp.org>
86992
86993         * gnulib-tool: Add support for the --aux-dir option to
86994         --create-testdir, --create-megatestdir, --test, --megatest.
86995         (func_create_testdir, func_create_megatestdir): Optionally emit a
86996         AC_CONFIG_AUX_DIR directive.
86997         (create-testdir, create-megatestdir, test, megatest): Provide a
86998         default value for $auxdir.
86999
87000 2005-08-24  Bruno Haible  <bruno@clisp.org>
87001
87002         * gnulib-tool (import): Use compound statement instead of subshell
87003         where possible.
87004
87005 2005-08-24  Bruno Haible  <bruno@clisp.org>
87006
87007         * gnulib-tool (import): Change --aux-dir default to "build-aux".
87008
87009 2005-08-24  Bruno Haible  <bruno@clisp.org>
87010
87011         * gnulib-tool (func_version): Update.
87012
87013 2005-08-24  Bruno Haible  <bruno@clisp.org>
87014
87015         * gnulib-tool (func_import, func_create_testdir,
87016         func_create_megatestdir): Quote all autoconf macro arguments.
87017
87018 2005-08-24  Bruno Haible  <bruno@clisp.org>
87019
87020         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
87021         option --force, because --force causes the aclocal.m4 of each
87022         subdirectory to be newer than the corresponding config.h.in.
87023
87024 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87025
87026         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
87027         All contents moved to gl_REGEX.
87028         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
87029         assume that it does.
87030
87031 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87032
87033         * lib/regex.h (REG_NOSYS)
87034         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
87035         Define, since POSIX requires it as of 2001.
87036         (_REG_ENOSYS)
87037         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
87038         New private symbol, used to keep the enum signed in all cases.
87039         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
87040         Youngman in
87041         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
87042
87043         * lib/regex_internal.c (re_string_skip_chars, register_state):
87044         (calc_state_hash):
87045         Remove forward decls; no longer needed now that we use prototypes.
87046         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
87047         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
87048         (clean_state_log_if_needed): Likewise.
87049
87050 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87051
87052         * config/srclist.txt: Add glibc bugs 1231-1233.
87053
87054 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87055
87056         Fix problems reported by Sam Steingold in
87057         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
87058         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
87059         assumed that reg_errcode_t is a signed type, which is not
87060         necessarily true if _XOPEN_SOURCE is not defined.
87061         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
87062         since some compilers warn about it otherwise.
87063
87064 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87065
87066         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
87067         (init_word_char, create_initial_state, duplicate_node_closure):
87068         (fetch_token, peek_token_bracket, build_range_exp):
87069         (build_collating_symbol): Remove forward decls; no longer needed
87070         now that we use prototypes.
87071
87072         * lib/regcomp.c:
87073         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
87074         (re_compile_fastmap_iter, regcomp, regerror, regfree):
87075         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
87076         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
87077         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
87078         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
87079         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
87080         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
87081         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
87082         (build_range_exp, build_collating_symbol, parse_bracket_exp):
87083         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
87084         (build_charclass, build_charclass_op, fetch_number, create_tree):
87085         (create_token_tree, mark_opt_subexp, duplicate_tree):
87086         Use prototypes rather than old-style definitions.
87087
87088         * lib/regex_internal.c:
87089         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
87090         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
87091         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
87092         (re_string_reconstruct, re_string_peek_byte_case):
87093         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
87094         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
87095         (re_node_set_init_copy, re_node_set_add_intersect):
87096         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
87097         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
87098         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
87099         (re_acquire_state, re_acquire_state_context, register_state):
87100         (create_ci_newstate, create_cd_newstate, free_state):
87101         Likewise.
87102         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
87103         re_search_2):
87104         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
87105         (re_search_internal, prune_impossible_nodes):
87106         (acquire_init_state_context, check_matching, static):
87107         (check_halt_node_context, check_halt_state_context, proceed_next_node):
87108         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
87109         (update_regs, sift_states_backward, build_sifted_states):
87110         (clean_state_log_if_needed, merge_state_array):
87111         (update_cur_sifted_state, add_epsilon_src_nodes):
87112         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
87113         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
87114         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
87115         (find_recover_state, check_subexp_matching_top, transit_state_mb):
87116         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
87117         (check_arrival, check_arrival_add_next_nodes):
87118         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
87119         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
87120         (check_node_accept_bytes, check_node_accept, extend_buffers):
87121         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
87122         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
87123         (sift_ctx_init):
87124         Likewise.
87125
87126         * lib/regex_internal.h:
87127         (re_string_allocate, re_string_construct, re_string_reconstruct):
87128         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
87129         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
87130         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
87131         (re_string_context_at, re_string_peek_byte_case):
87132         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
87133         is defined, since we now use prototypes always.
87134
87135         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
87136         C89 or better.  All uses removed.
87137
87138 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87139
87140         * config/srclist.txt: Add glibc bugs 1220-1227.
87141
87142 2005-08-20  Jim Meyering  <jim@meyering.net>
87143
87144         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
87145         of unused local, dfa.
87146
87147 2005-08-20  Bruno Haible  <bruno@clisp.org>
87148
87149         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
87150
87151 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87152
87153         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
87154         (re_node_set_insert_last, re_dfa_add_node):
87155         Rename local variables to avoid GCC shadowing warnings.
87156
87157 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87158
87159         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
87160         [defined lint]: Suppress bogus uninitialized-variable warnings.
87161
87162         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
87163         and let the caller return REG_ESPACE if out of space.  This
87164         removes an uninitialied-variable warning with GCC 4.0.1, and also
87165         avoids taking the address of a local variable.  All callers
87166         changed.
87167
87168 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87169
87170         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
87171         $LIBCSRC/posix/regexec.c.
87172         Add glibc bug 1217 for regcomp.c.
87173
87174 2005-08-19  Jim Meyering  <jim@meyering.net>
87175
87176         * lib/regexec.c (proceed_next_node): Redo local variables to
87177         avoid GCC shadowing warnings.
87178
87179 2005-08-18  Bruno Haible  <bruno@clisp.org>
87180
87181         * lib/strstr.c (strstr): Fix return value in multibyte case.
87182         * lib/strcasestr.c (strcasestr): Likewise.
87183
87184 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87185
87186         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
87187
87188 2005-08-17  Jim Meyering  <jim@meyering.net>
87189
87190         Make the %s format (seconds since the epoch) work for a negative
87191         number and when used with a zero-padded field width, e.g. %015s.
87192
87193         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
87194         label so that it precedes the code to set `digits'.  Otherwise,
87195         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
87196         print `00-22'.  Now, it prints `-0022', as it should.
87197
87198 2005-08-17  Bruno Haible  <bruno@clisp.org>
87199
87200         * modules/strstr (Files): Add m4/mbrtowc.m4.
87201         (Depends-on): Add mbuiter.
87202
87203 2005-08-17  Bruno Haible  <bruno@clisp.org>
87204
87205         * modules/strcasestr: New file.
87206         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87207         strcasestr.
87208
87209 2005-08-17  Bruno Haible  <bruno@clisp.org>
87210
87211         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87212
87213 2005-08-17  Bruno Haible  <bruno@clisp.org>
87214
87215         * modules/mbuiter: New file.
87216         * MODULES.html.sh (Extended multibyte and wide character utilities):
87217         Add mbuiter.
87218
87219 2005-08-17  Bruno Haible  <bruno@clisp.org>
87220
87221         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87222         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87223
87224 2005-08-17  Bruno Haible  <bruno@clisp.org>
87225
87226         * m4/strcasestr.m4: New file.
87227
87228 2005-08-17  Bruno Haible  <bruno@clisp.org>
87229
87230         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87231         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87232
87233 2005-08-17  Bruno Haible  <bruno@clisp.org>
87234
87235         * lib/strcasestr.h: New file.
87236         * lib/strcasestr.c: New file.
87237
87238 2005-08-17  Bruno Haible  <bruno@clisp.org>
87239
87240         * lib/strcasecmp.c: Use mbuiter.h.
87241
87242 2005-08-17  Bruno Haible  <bruno@clisp.org>
87243
87244         * lib/mbuiter.h: New file.
87245
87246 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87247
87248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87249         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87250         and gl_GETOPT are both invoked via different paths (as happens
87251         with GNU tar CVS because it uses both argp and getopt), the former
87252         wins.
87253
87254 2005-08-16  Bruno Haible  <bruno@clisp.org>
87255
87256         * modules/tls: New file.
87257         * MODULES.html.sh (Multithreading): Add tls.
87258
87259 2005-08-16  Bruno Haible  <bruno@clisp.org>
87260
87261         * modules/strnlen1: New file.
87262         * MODULES.html.sh (String handling): Add strnlen1.
87263
87264 2005-08-16  Bruno Haible  <bruno@clisp.org>
87265
87266         * modules/strcase (Files): Add m4/mbrtowc.m4.
87267         (Depends-on): Add strnlen1, mbchar.
87268
87269 2005-08-16  Bruno Haible  <bruno@clisp.org>
87270
87271         * modules/mbiter: New file.
87272         * MODULES.html.sh (Extended multibyte and wide character utilities):
87273         Add mbiter.
87274
87275 2005-08-16  Bruno Haible  <bruno@clisp.org>
87276
87277         * modules/mbfile: New file.
87278         * MODULES.html.sh (Extended multibyte and wide character utilities):
87279         Add mbfile.
87280
87281 2005-08-16  Bruno Haible  <bruno@clisp.org>
87282
87283         * modules/mbchar: New file.
87284         * MODULES.html.sh (Extended multibyte and wide character utilities):
87285         New section.
87286
87287 2005-08-16  Bruno Haible  <bruno@clisp.org>
87288
87289         * m4/tls.m4: New file, from GNU gettext.
87290
87291 2005-08-16  Bruno Haible  <bruno@clisp.org>
87292
87293         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87294         always.
87295         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87296
87297 2005-08-16  Bruno Haible  <bruno@clisp.org>
87298
87299         * m4/mbiter.m4: New file.
87300
87301 2005-08-16  Bruno Haible  <bruno@clisp.org>
87302
87303         * m4/mbfile.m4: New file.
87304
87305 2005-08-16  Bruno Haible  <bruno@clisp.org>
87306
87307         * m4/mbchar.m4: New file.
87308
87309 2005-08-16  Bruno Haible  <bruno@clisp.org>
87310
87311         * lib/tls.h: New file, from GNU gettext.
87312         * lib/tls.c: New file, from GNU gettext.
87313
87314 2005-08-16  Bruno Haible  <bruno@clisp.org>
87315
87316         * lib/strnlen1.h: New file.
87317         * lib/strnlen1.c: New file.
87318
87319 2005-08-16  Bruno Haible  <bruno@clisp.org>
87320
87321         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87322         (mbi_init): Update.
87323         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87324         NUL byte, not after it.
87325
87326 2005-08-16  Bruno Haible  <bruno@clisp.org>
87327
87328         * lib/strcase.h (strcasecmp): Add note in comments.
87329         * lib/strncasecmp.c: Use code from strcasecmp.c.
87330         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87331         (strcasecmp): Work correctly in multibyte locales.
87332
87333 2005-08-16  Bruno Haible  <bruno@clisp.org>
87334
87335         * lib/mbiter.h: New file.
87336
87337 2005-08-16  Bruno Haible  <bruno@clisp.org>
87338
87339         * lib/mbfile.h: New file.
87340
87341 2005-08-16  Bruno Haible  <bruno@clisp.org>
87342
87343         * lib/mbchar.h: New file.
87344         * lib/mbchar.c: New file.
87345
87346 2005-08-16  Bruno Haible  <bruno@clisp.org>
87347
87348         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87349         the valid ones. Makes the comparison operations transitive:
87350         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87351         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87352
87353 2005-08-15  Simon Josefsson  <jas@extundo.com>
87354
87355         * modules/ssize_t (License): Change to 'unlimited'.
87356
87357         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87358
87359 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87360
87361         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87362         Add comments for each pending glibc patch.
87363
87364 2005-08-15  Bruno Haible  <bruno@clisp.org>
87365
87366         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87367         __cplusplus is defined.
87368
87369 2005-08-14  Jim Meyering  <jim@meyering.net>
87370
87371         Sync from coreutils.
87372
87373         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87374         Use the hash-table-based cycle-detection code not just when
87375         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87376         Reported by James Youngman in
87377         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87378         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87379         FTS_TIGHT_CYCLE_CHECK.
87380         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87381         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87382         once again.
87383         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87384         * lib/fts.c (fd_safer): Remove decl.
87385         Include fcntl--.h rather than unistd-safer.h
87386         (fts_safe_changedir): Don't call fd_safer; no longer needed
87387         now that we include fcntl--.h.
87388
87389 2005-08-12  Simon Josefsson  <jas@extundo.com>
87390
87391         * modules/getndelim2: Use ssize_t module.
87392         * modules/getnline: Likewise.
87393         * modules/safe-read: Likewise.
87394         * modules/xreadlink: Likewise.
87395
87396         * modules/ssize_t: New file.
87397
87398 2005-08-12  Simon Josefsson  <jas@extundo.com>
87399
87400         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87401
87402 2005-08-12  Simon Josefsson  <jas@extundo.com>
87403
87404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87405         ssize_t.
87406
87407 2005-08-12  Simon Josefsson  <jas@extundo.com>
87408
87409         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87410         readline, getdelim and check_version.
87411         (Support for systems lacking ISO C 99: Sizes of integer types):
87412         Add size_max.
87413
87414 2005-08-12  Bruno Haible  <bruno@clisp.org>
87415
87416         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87417
87418 2005-08-11  Simon Josefsson  <jas@extundo.com>
87419
87420         * modules/readline: New file.
87421
87422         * modules/strnlen (Files): Add strnlen.h.
87423
87424 2005-08-11  Simon Josefsson  <jas@extundo.com>
87425
87426         * m4/readline.m4: New file.
87427
87428 2005-08-11  Simon Josefsson  <jas@extundo.com>
87429
87430         * lib/readline.h, readline.c: New file.
87431
87432 2005-08-11  Simon Josefsson  <jas@extundo.com>
87433
87434         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87435         gl_AVOID.
87436
87437 2005-08-11  Bruno Haible  <bruno@clisp.org>
87438
87439         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87440
87441 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87442
87443         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87444
87445 2005-08-10  Simon Josefsson  <jas@extundo.com>
87446
87447         * tests/test-iconvme.c: New file.
87448
87449 2005-08-10  Simon Josefsson  <jas@extundo.com>
87450
87451         * m4/strnlen.m4: New file.
87452
87453         * m4/strndup.m4: Don't check for strnlen declaration, done in
87454         strnlen.m4.
87455
87456 2005-08-10  Simon Josefsson  <jas@extundo.com>
87457
87458         * lib/strndup.c: Use strnlen.h.
87459
87460         * lib/strnlen.h: New file.
87461
87462 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87463
87464         * README: Typos.
87465
87466 2005-08-02  Simon Josefsson  <jas@extundo.com>
87467
87468         * modules/readline: New file.
87469
87470 2005-08-02  Simon Josefsson  <jas@extundo.com>
87471
87472         * modules/getdelim: New file.
87473
87474         * modules/getline: Rewrite, don't use getndelim2.
87475
87476 2005-08-02  Simon Josefsson  <jas@extundo.com>
87477
87478         * m4/getline.m4: Separate out getdelim stuff into separate module.
87479
87480         * m4/getdelim.m4: New file.
87481
87482 2005-08-02  Simon Josefsson  <jas@extundo.com>
87483
87484         * lib/getline.h, getline.c: Rewrite.
87485
87486         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87487
87488 2005-07-31  Bruno Haible  <bruno@clisp.org>
87489
87490         * lib/lock.h (gl_lock_initializer): New macro.
87491         (gl_lock_define_initialized): Use it.
87492         (gl_rwlock_initializer): New macro.
87493         (gl_rwlock_define_initialized): Use it.
87494         (gl_recursive_lock_initializer): New macro.
87495         (gl_recursive_lock_define_initialized): Use it.
87496
87497 2005-07-30  Karl Berry  <karl@gnu.org>
87498
87499         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87500         Report from Ben Pfaff, regarding getopt.
87501
87502 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87503
87504         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87505         normal way.
87506         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87507         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87508         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87509         (gl_GETOPT): Use the new macros.  Most of the implementation
87510         is moved to the new macros.  This is for programs like Emacs
87511         that don't want all the functionality of gl_GETOPT.
87512
87513 2005-07-26  Bruno Haible  <bruno@clisp.org>
87514
87515         * m4/lock.m4: Update from GNU gettext.
87516
87517 2005-07-26  Bruno Haible  <bruno@clisp.org>
87518
87519         * lib/lock.h: Update from GNU gettext.
87520         * lib/lock.c: Update from GNU gettext.
87521
87522 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87523
87524         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87525         obsolescent AC_TRY_RUN.  Include the default includes files, for
87526         'exit'.
87527
87528 2005-07-24  Bruno Haible  <bruno@clisp.org>
87529
87530         * modules/visibility: New file.
87531         * MODULES.html.sh (Misc): Add visibility.
87532
87533 2005-07-24  Bruno Haible  <bruno@clisp.org>
87534
87535         * m4/visibility.m4: New file.
87536
87537 2005-07-24  Bruno Haible  <bruno@clisp.org>
87538
87539         * doc/visibility.texi: New file.
87540
87541 2005-07-22  Bruno Haible  <bruno@clisp.org>
87542
87543         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87544         $(ALLOCA_H), redundant through BUILT_SOURCES.
87545         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87546         redundant through BUILT_SOURCES.
87547         * modules/byteswap (Makefile.am): Remove explicit dependency on
87548         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87549         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87550         $(FNMATCH_H), redundant through BUILT_SOURCES.
87551         * modules/getopt (Makefile.am): Remove explicit dependency on
87552         $(GETOPT_H), redundant through BUILT_SOURCES.
87553         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87554         redundant through BUILT_SOURCES.
87555         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87556         redundant through BUILT_SOURCES.
87557         * modules/stdbool (Makefile.am): Remove explicit dependency on
87558         $(STDBOOL_H), redundant through BUILT_SOURCES.
87559         * modules/stdint (Makefile.am): Remove explicit dependency on
87560         $(STDINT_H), redundant through BUILT_SOURCES.
87561         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87562         Remove explicit dependency on $(SYSEXITS_H).
87563         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87564
87565 2005-07-18  Simon Josefsson  <jas@extundo.com>
87566
87567         * lib/check-version.c (check_version): Accept identical versions too.
87568
87569 2005-07-18  Bruno Haible  <bruno@clisp.org>
87570
87571         * modules/lock: New file.
87572         * MODULES.html.sh (Multithreading): New section.
87573
87574 2005-07-18  Bruno Haible  <bruno@clisp.org>
87575
87576         * m4/lock.m4: New file, from GNU gettext.
87577
87578 2005-07-18  Bruno Haible  <bruno@clisp.org>
87579
87580         * lib/lock.h: New file, from GNU gettext.
87581         * lib/lock.c: New file, from GNU gettext.
87582
87583 2005-07-18  Bruno Haible  <bruno@clisp.org>
87584
87585         * lib/lock.h (gl_once_t): New type.
87586         (gl_once_define, gl_once): New macros.
87587         * lib/lock.c (fresh_once): New variable.
87588         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87589         functions.
87590
87591 2005-07-16  Simon Josefsson  <jas@extundo.com>
87592
87593         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87594         workaround, suggested by Bruno.
87595
87596 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87597
87598         * modules/xalloc (Depends-on): Add xalloc-die.
87599         * modules/xvasprintf (Depends-on): Add xalloc-die.
87600
87601 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87602
87603         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87604         with a minor change.
87605
87606 2005-07-15  Bruno Haible  <bruno@clisp.org>
87607
87608         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87609         When using lib/poll.c, define poll as rpl_poll.
87610
87611 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87612
87613         * modules/argp (Depends-on): Remove unlocked-io.
87614
87615 2005-07-14  Derek Price  <derek@ximbiot.com>
87616
87617         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87618         for glob symlink bug.
87619
87620 2005-07-14  Bruno Haible  <bruno@clisp.org>
87621
87622         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87623         Instead, test for *_unlocked function declarations directly.
87624
87625 2005-07-11  Simon Josefsson  <jas@extundo.com>
87626
87627         * modules/size_max: New file.
87628
87629         * modules/xsize: Depend on size_max module for size_max.m4.
87630
87631 2005-07-11  Simon Josefsson  <jas@extundo.com>
87632
87633         * lib/size_max.h: New file.
87634
87635 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87636
87637         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87638         copyright symbol and the year.
87639         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87640         (version_etc_va): Use parameterized copyright notice.
87641         Reword to conform to the current GNU coding standards.
87642
87643 2005-07-11  Karl Berry  <karl@gnu.org>
87644
87645         * doc/gnulib.texi (Quoting): new node.
87646         (Initial import): more info, from Patrice.
87647
87648 2005-07-11  Bruno Haible  <bruno@clisp.org>
87649
87650         * gnulib-tool (func_usage): Document option --avoid.
87651         (Command line options): Handle --avoid.
87652         (func_acceptable): New function.
87653         (func_modules_transitive_closure): Use it.
87654
87655 2005-07-11  Bruno Haible  <bruno@clisp.org>
87656
87657         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87658         Reported by Jim Meyering.
87659
87660 2005-07-10  Bruno Haible  <bruno@clisp.org>
87661
87662         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87663         Needed when size_t is smaller than 'unsigned int'.
87664         Reported by Paul Eggert.
87665
87666 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87667
87668         * modules/argp (Depends-on): Add unlocked-io
87669
87670 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87671
87672         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87673         block of defines.
87674
87675 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87676
87677         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87678         fix now.
87679
87680 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87681         and Paul Eggert  <eggert@cs.ucla.edu>
87682
87683         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87684         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87685
87686 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87687
87688         * modules/regex (Files): Add lib/regex_internal.c,
87689         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87690         (Depends-on): Add extensions.
87691         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87692
87693 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87694
87695         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87696         pathconf.
87697         * m4/same.m4 (gl_SAME): Likewise.
87698         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87699
87700         * m4/regex.m4: Adjust to new libc regex implementation.
87701         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87702         all the .c and .h parts of (the new) regex.
87703         Quote the m4 stuff better.
87704         Check for RE_ICASE bug of old gnulib.
87705         Check for REG_STARTEND of recent libc.
87706         Rename local variables from jm_* to gl_*.
87707         Quote operand of "test -f".
87708         Say "recent enough" version of libc, not "version 2".
87709         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87710         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87711         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87712         Remove check for btowc, isascii.
87713         Require AM_LANGINFO_CODESET.
87714
87715 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87716
87717         * lib/regex.c, regex.h: Sync from libc.
87718         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87719         * lib/regexec.c:
87720         New files, synced from libc, except that regex_internal.h
87721         currently has a small porting fix.
87722
87723 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87724
87725         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87726         regex_internal.c, regexec.c.
87727         Add regex_internal.h too, but as a comment, since the libc version
87728         is currently broken in gnulib mode.
87729
87730 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87731
87732         Support programs like Emacs that use gnulib but not gettext.
87733         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87734         * modules/gettext-h: New file.
87735         * modules/gettext (Files): Remove lib/gettext.h.
87736         (Depends-on): Add gettext-h.
87737         (Makefile.am): Remove lib_SOURCES.
87738         * modules/argmatch, modules/c-stack, modules/closeout:
87739         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87740         * modules/execute, modules/file-type, modules/getaddrinfo:
87741         * modules/getopt, modules/human, modules/javacomp:
87742         * modules/javaexec, modules/mkdir-p, modules/obstack:
87743         * modules/openat, modules/pagealign_alloc, modules/pipe:
87744         * modules/quotearg, modules/regex, modules/rpmatch:
87745         * modules/unicodeio, modules/userspec, modules/version-etc:
87746         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87747         * modules/xsetenv:
87748         Depend on gettext-h, not gettext.
87749
87750 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87751
87752         * gnulib-tool (func_import): Add support for 'public domain' license.
87753         * modules/alloca, modules/atexit, modules/memmove:
87754         Now public domain, not GPL.
87755         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87756         * modules/realloc, modules/strerror, modules/strtod:
87757         Now LGPL, not GPL.
87758
87759 2005-07-05  Bruno Haible  <bruno@clisp.org>
87760
87761         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87762         autoconf CVS. Needed for mingw.
87763
87764 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87765
87766         Remove the dependency of the strftime module on the tzset module.
87767         * modules/strftime (Depends-on): Remove dependency on tzset.
87768
87769 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87770
87771         Remove the dependency of the strftime module on the tzset module.
87772         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87773         gl_FUNC_TZSET_CLOBBER.
87774
87775 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87776
87777         Remove the dependency of the strftime module on the tzset module.
87778         * lib/strftime.c (my_strftime)
87779         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87780         Copy the input structure, to work around some of the bug with
87781         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87782         Solaris releases, you should also use the tzset module, but we won't
87783         require it as a dependency any more since we don't want LGPLed code
87784         to depend on GPLed code.
87785
87786 2005-07-02  Jim Meyering  <jim@meyering.net>
87787
87788         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87789         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87790         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87791         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87792
87793 2005-07-02  Jim Meyering  <jim@meyering.net>
87794
87795         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87796
87797 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87798
87799         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87800         declares only 'struct timespec;' (!).
87801
87802 2005-07-01  Jim Meyering  <jim@meyering.net>
87803
87804         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87805         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87806         * lib/save-cwd.c, tempname.c:
87807         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87808         and don't include <sys/file.h>).
87809
87810 2005-06-29  Jim Meyering  <jim@meyering.net>
87811
87812         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87813         type name.  Use the variable name instead.
87814         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87815         Likewise.
87816
87817 2005-06-28  Simon Josefsson  <jas@extundo.com>
87818
87819         * modules/check-version (Files): Add check-version.m4.
87820
87821 2005-06-28  Simon Josefsson  <jas@extundo.com>
87822
87823         * m4/check-version.m4: New file, suggested by Jim Meyering
87824         <jim@meyering.net>.
87825
87826 2005-06-28  Simon Josefsson  <jas@extundo.com>
87827
87828         * lib/check-version.h, lib/check-version.c: New files.
87829
87830 2005-06-28  Simon Josefsson  <jas@extundo.com>
87831
87832         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87833         collision with global variable.  Better indentation.  Don't
87834         increment buffer pointer beyond buffer end.  Based on comments
87835         from Paul Eggert <eggert@cs.ucla.edu>.
87836
87837         * lib/base64.h: Indent.
87838
87839 2005-06-28  Simon Josefsson  <jas@extundo.com>
87840
87841         * doc/gnulib.texi (Library version handling): New section.
87842
87843 2005-06-28  Jim Meyering  <jim@meyering.net>
87844
87845         * check-module (find_included_lib_files): Hard-code another
87846         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87847         but modules/fts-lgpl (correctly) does not list those files.
87848
87849         * modules/canonicalize (Files): Add lib/pathmax.h.
87850
87851 2005-06-25  Simon Josefsson  <jas@extundo.com>
87852
87853         * modules/check-version: New file.
87854
87855 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87856
87857         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87858         initializer of struct addrinfo, as an indication that we don't
87859         care how many members the structure has.
87860
87861 2005-06-24  Derek Price  <derek@ximbiot.com>
87862         and Bruno Haible  <bruno@clisp.org>
87863
87864         Remove stat module & update lstat.
87865         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87866         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87867         * m4/stat.m4: Remove this file.
87868
87869 2005-06-24  Derek Price  <derek@ximbiot.com>
87870         and Bruno Haible  <bruno@clisp.org>
87871
87872         Remove stat module & update lstat.
87873         * lib/stat.c: Remove this file...
87874         (slash_aware_lstat): ...moving this content and its support...
87875         * lib/lstat.c (rpl_lstat): ...into here.
87876         * lib/lstat.h: New file.
87877
87878 2005-06-24  Derek Price  <derek@ximbiot.com>
87879         and Bruno Haible  <bruno@clisp.org>
87880
87881         Remove stat module & update lstat.
87882         * config/srclist.txt (libc sources): Remove stat.
87883
87884 2005-06-24  Derek Price  <derek@ximbiot.com>
87885         and Bruno Haible  <bruno@clisp.org>
87886
87887         Remove stat module & update lstat.
87888         * MODULES.html.sh (stat): Remove.
87889         * MODULES.html: Regenerated.
87890         * modules/lstat (Description): Correct function name.
87891         (Files): Add "lstat.h".
87892         (Depends-on): Remove stat, add xalloc, stat-macros.
87893         * modules/stat: Remove this file.
87894         (Include): Add "lstat.h", remove <sys/stat.h>.
87895
87896 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87897
87898         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87899         (ranged_convert): Don't save conversion in a temporary struct.
87900         This causes a warning with GCC 4.0.0, and anyway in the typical
87901         case it's not worth the extra 100 bytes or so of code.
87902         (ranged_convert, __mktime_internal): When calling a function via a
87903         pointer P, use P () rather than (*P) (), as we now assume C89 or
87904         better.
87905
87906 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87907
87908         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87909         "who -r" failed to give output.  Problem reported by Tim Waugh.
87910
87911         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87912         (xcalloc): Use it to avoid needless tests.
87913         Problem reported by Jim Meyering.
87914
87915 2005-06-20  Derek Price  <derek@ximbiot.com>
87916
87917         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87918         unnecessary for Autoconfs > 2.59c.
87919
87920 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87921
87922         * lib/argp.h (__option_is_short): Check upper limit of
87923         __key. Isprint() requires its argument to have the value
87924         of an unsigned char or EOF.
87925
87926 2005-06-16  Jim Meyering  <jim@meyering.net>
87927
87928         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87929         when either N or S is zero.
87930
87931 2005-06-16  Derek Price  <derek@ximbiot.com>
87932
87933         * m4/bison.m4: Declare YACC & YFLAGS precious.
87934
87935 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87936
87937         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87938         multibyte string or pattern, fall back on unibyte matching.
87939         Problem reported by James Youngman.
87940
87941 2005-06-08  Bruno Haible  <bruno@clisp.org>
87942
87943         * modules/csharpcomp: New file.
87944         * MODULES.html.sh (C#): Add csharpcomp.
87945
87946 2005-06-08  Bruno Haible  <bruno@clisp.org>
87947
87948         * m4/csharpcomp.m4: New file, from GNU gettext.
87949
87950 2005-06-08  Bruno Haible  <bruno@clisp.org>
87951
87952         * lib/csharpcomp.h: New file, from GNU gettext.
87953         * lib/csharpcomp.c: New file, from GNU gettext.
87954         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87955
87956 2005-06-08  Bruno Haible  <bruno@clisp.org>
87957
87958         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87959         warning on mingw.
87960
87961 2005-06-07  Derek Price  <derek@ximbiot.com>
87962
87963         Sync from CVS.
87964         * lib/glob_.h: Indent nested #ifdef.
87965
87966 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87967
87968         Sync from coreutils.
87969         Use "file name" when talking about file names, instead of "filename"
87970         or "path", as per the GNU coding standards.
87971         * lib/mkdir-p.c: Renamed from makepath.c.
87972         (make_dir_parents): Renamed from make_path.  All callers changed.
87973         * lib/mkdir-p.h: Likewise.  All includers changed.
87974         * lib/filenamecat.c: Renamed from path-concat.c.
87975         (file_name_concat): Renamed from path_concat.  All callers changed.
87976         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87977         * lib/filenamecat.h: Likewise.  All includers changed.
87978         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87979         in comments or local variable names.
87980         * lib/basename.c: Likewise.
87981         * lib/canonicalize.c, canonicalize.h: Likewise.
87982         * lib/dirname.c, dirname.h: Likewise.
87983         * lib/euidaccess.c: Likewise.
87984         * lib/exclude.c: Likewise
87985         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87986         * lib/fsusage.c, fsuage.h: Likewise.
87987         * lib/fts.c, fts_.h: Likewise.
87988         * lib/getcwd.c: Likewise.
87989         * lib/getloadavg.c: Likewise.
87990         * lib/mkstemp.c: Likewise.
87991         * lib/mountlist.c, mountlist.h: Likewise.
87992         * lib/openat.c, openat.h: Likewise.
87993         * lib/readlink-stub.c: Likewise.
87994         * lib/readutmp.c, readutmp.h: Likewise.
87995         * lib/rename.c: Likewise.
87996         * lib/rmdir.c: Likewise.
87997         * lib/same.c: Likewise.
87998         * lib/savedir.c: Likewise.
87999         * lib/stripslash.c: Likewise.
88000         * lib/tempname.c: Likewise.
88001         * lib/xreadlink.c: Likewise.
88002         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
88003         All uses changed.
88004         * lib/exclude.h: Likewise.
88005
88006         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
88007         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88008         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
88009         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88010         * lib/pathmax.h: Include <limits.h> unconditionally, since other
88011         files have been getting away with it for years (MORE/BSD 4.3
88012         is extinct now).
88013         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
88014         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88015
88016         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
88017         Define to 256, not 255, as per modern POSIX.
88018
88019 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88020
88021         Sync from coreutils.
88022         Use "file name" when talking about file names, instead of "filename"
88023         or "path", as per the GNU coding standards.
88024         * MODULES.html.sh: mkdir-p renamed from makepath.
88025         filenamecat renamed from path-concat.
88026         * modules/filenamecat: Renamed from modules/path-concat.
88027         (Files): filenamecat.h and filenamecat.c renamed from
88028         path-concat.h and path-concat.c.
88029         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
88030         (Include): filenamecat.h, not path-concat.h.
88031         * modules/mkdir-p: Renamed from modules/makepath.
88032         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
88033         makepath.c.
88034         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
88035         (Include): mkdir-p.h, not makepath.h.
88036
88037 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88038
88039         Sync from coreutils.
88040         * m4/mkdir-p.m4: Renamed from makepath.m4.
88041         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
88042         Rename files from makepath.c to mkdir-p.c, and from
88043         makepath.h to mkdir-p.h.
88044         * m4/filenamecat.m4: Renamed from path-concat.m4.
88045         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
88046         Rename files from path-concat.c to filenamecat.c,
88047         and from path-concat.h to filenamecat.h.
88048         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
88049         "file name" in local variables or comments.
88050         * m4/rename.m4: Likewise.
88051
88052 2005-06-01  Bruno Haible  <bruno@clisp.org>
88053
88054         * modules/csharpexec: New file.
88055         * MODULES.html.sh (C#): New section.
88056
88057 2005-06-01  Bruno Haible  <bruno@clisp.org>
88058
88059         * m4/csharp.m4: New file, from GNU gettext.
88060         * m4/csharpexec.m4: New file, from GNU gettext.
88061
88062 2005-06-01  Bruno Haible  <bruno@clisp.org>
88063
88064         * lib/csharpexec.h: New file, from GNU gettext.
88065         * lib/csharpexec.c: New file, from GNU gettext.
88066         * lib/csharpexec.sh.in: New file, from GNU gettext.
88067
88068 2005-05-31  Derek Price  <derek@ximbiot.com>
88069             Paul Eggert  <eggert@cs.ucla.edu>
88070
88071         Sync from cvs.
88072         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88073
88074 2005-05-31  Derek Price  <derek@ximbiot.com>
88075             Paul Eggert  <eggert@cs.ucla.edu>
88076
88077         Sync from cvs.
88078         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88079
88080 2005-05-29  Derek Price  <derek@ximbiot.com>
88081
88082         * config/srclist.txt (glob_.h, glob.c): Add these files.
88083
88084 2005-05-29  Derek Price  <derek@ximbiot.com>
88085
88086         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
88087         * modules/glob: New file.
88088         * modules/getlogin_r: Add link to POSIX spec in description.
88089
88090 2005-05-29  Derek Price  <derek@ximbiot.com>
88091             Paul Eggert  <eggert@cs.ucla.edu>
88092
88093         * m4/glob.m4: New file.
88094
88095 2005-05-29  Derek Price  <derek@ximbiot.com>
88096             Paul Eggert  <eggert@cs.ucla.edu>
88097
88098         * lib/glob_.h, lib/glob.c: New files.
88099
88100 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88101
88102         * modules/fts (Files): Remove m4/inttypes-pri.m4.
88103         * modules/fts-lgpl (Depends-on): Remove gettext.
88104
88105 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88106
88107         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
88108         and don't require gt_INTTYPES_PRI.
88109
88110 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88111
88112         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
88113
88114         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
88115         the configuration hassle isn't worth it.
88116         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
88117         (LONGEST_MODIFIER, PRIuMAX): Remove.
88118
88119 2005-05-27  Bruno Haible  <bruno@clisp.org>
88120
88121         * lib/getlogin_r.h: Remove second include of <stddef.h>.
88122
88123 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
88126         _POSIX_PTHREAD_SEMANTICS for Solaris.
88127
88128 2005-05-25  Derek Price  <derek@ximbiot.com>
88129
88130         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
88131
88132 2005-05-25  Derek Price  <derek@ximbiot.com>
88133             Paul Eggert  <eggert@cs.ucla.edu>
88134
88135         * modules/getlogin_r, m4/getlogin_r.m4: New files.
88136         * lib/getlogin_r.c, getlogin_r.h: New files.
88137
88138 2005-05-25  Bruno Haible  <bruno@clisp.org>
88139             Derek Price  <derek@ximbiot.com>
88140
88141         * lib/getlogin_r.h: Simplify API documentation.
88142
88143 2005-05-23  Derek Price  <derek@ximbiot.com>
88144
88145         * modules/minmax (Files): Add m4/minmax.m4.
88146         (configure.ac): Add gl_MINMAX.
88147
88148 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
88149
88150         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
88151         so that unistd-safer.h (GPL'ed code) need not be included.
88152
88153 2005-05-22  Bruno Haible  <bruno@clisp.org>
88154
88155         * m4/minmax.m4: New file.
88156         Based on a patch by Derek Price <derek@ximbiot.com>.
88157
88158 2005-05-22  Bruno Haible  <bruno@clisp.org>
88159
88160         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
88161         (INT64_MIN): Fix definition.
88162         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
88163
88164         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
88165         NEED_SIGNED_INT_TYPES.
88166
88167         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
88168         HAVE_SYSTEM_INTTYPES.
88169
88170 2005-05-22  Bruno Haible  <bruno@clisp.org>
88171
88172         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
88173         Also include <sys/param.h> if it defines MIN, MAX.
88174         Based on a patch by Derek Price <derek@ximbiot.com>.
88175
88176 2005-05-21  Jim Meyering  <jim@meyering.net>
88177
88178         * modules/fts (Files): Add m4/inttypes-pri.m4.
88179         (Depends-on): Add lstat and remove gettext.  Alphabetize.
88180
88181 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88182
88183         New fts module.
88184         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
88185         (setup_dir, free_dir): New functions.
88186         (enter_dir, leave_dir): Define trivial
88187         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
88188         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
88189         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
88190         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
88191         Move to fts-cycle.c.
88192         (fts_open): Use setup_dir.
88193         (fts_close): Use free_dir.
88194         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
88195         This adds a label and some gotos, but the alternatives were messier.
88196         Check for memory allocation failure when entering a dir.
88197         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
88198         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
88199         (FTS): New member fts_cycle, that is a union that contains the
88200         old active_dir_ht and cycle_state.  All uses changed to mention
88201         fts_cycle.ht and fts_cycle.state.
88202         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
88203         fts.c, with the following changes:
88204         (setup_dir, free_dir): New functions.
88205         (enter_dir): Now returns bool.  Return true if successful, false
88206         if memory exhausted.  All callers changed.
88207         Do not bother partly cleaning up on
88208         memory allocation failure; that is free_dir's job.
88209         However, free ad if hash_insert fails, to avoid memory leak.
88210         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88211         fts->fts_options to see which union member to use.
88212
88213 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88214
88215         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88216         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88217
88218 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88219
88220         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88221
88222 2005-05-20  Jim Meyering  <jim@meyering.net>
88223
88224         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88225         Now a macro, to pacify GCC.
88226
88227 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88228
88229         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88230         of -1.
88231
88232 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88233
88234         * lib/chown.c (rpl_chown): Return -1 on failure.
88235
88236 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88237
88238         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88239         Don't check for stddef.h.
88240         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88241         don't use its results.
88242         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88243         since we include them unconditionally.  Don't require
88244         AM_STDBOOL_H, since stdbool is a prerequisite.
88245         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88246         since we assume C89 or better.
88247         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88248         as we don't use their results.
88249         Don't check for fchdir, memmove, memset, strrchr, as we use
88250         them unconditionally.
88251         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88252         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88253
88254 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88255
88256         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88257         Include <stddef.h> unconditionally, since we assume C89 now.
88258         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88259         * lib/fts.c: Include fts_.h first, to check interface.
88260         Do not include intprops.h; no longer needed.
88261         Include cycle-check.h and hash.h, since fts_.h no longer does.
88262         Remove unnecessary casts of closedir to void.
88263         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88264         decide whether to decrement nlinks.
88265         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88266         (FTS): Use struct hash_table * instead of Hash_table, so that
88267         we no longer need to include hash.h here.
88268
88269 2005-05-18  Jim Meyering  <jim@meyering.net>
88270
88271         * modules/dirfd (License): Change to LGPL.  Most of the code
88272         is already in the public domain.
88273
88274 2005-05-18  Jim Meyering  <jim@meyering.net>
88275
88276         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88277         Reported by Yoann Vandoorselaere.
88278
88279 2005-05-17  Jim Meyering  <jim@meyering.net>
88280
88281         * m4/fts.m4: New file, from coreutils.
88282
88283 2005-05-17  Jim Meyering  <jim@meyering.net>
88284
88285         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88286
88287 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88288
88289         Sync from coreutils.
88290         * m4/unlinkdir.m4: New file.
88291
88292 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88293
88294         Sync from coreutils.
88295         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88296         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88297         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88298         White space changes only.
88299         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88300         special.
88301         * lib/yesno.c: Include getline.h, not ctype.h.
88302         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88303         Use getline to remove arbitrary restriction on response length.
88304
88305 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88306
88307         * config/srclist-update: Spell out "Street" in FSF postal
88308         mail address; this is the style the FSF seems to prefer.
88309
88310         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88311         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88312         this updates FSF postal mail address.
88313
88314         Sync from coreutils.
88315         * modules/unlinkdir: New file.
88316         * modules/yesno (Depends-on): Add getline.
88317         * MODULES.html.sh (File system functions): Add unlinkdir.
88318
88319 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88320
88321         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88322         lib/strsep.h:
88323         Change the initial comment to refer to GPL, not LGPL.
88324         gnulib-tool will change it to LGPL as needed.
88325
88326         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88327         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88328         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88329         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88330         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88331         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88332         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88333         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88334         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88335         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88336         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88337         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88338         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88339         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88340         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88341         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88342         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88343         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88344         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88345         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88346         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88347         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88348         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88349         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88350         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88351         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88352         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88353         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88354         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88355         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88356         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88357         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88358         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88359         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88360         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88361         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88362         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88363         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88364         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88365         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88366         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88367         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88368         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88369         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88370         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88371         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88372         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88373         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88374         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88375         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88376         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88377         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88378         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88379         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88380         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88381         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88382         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88383         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88384         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88385         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88386         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88387         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88388         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88389         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88390         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88391         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88392         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88393         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88394         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88395         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88396         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88397         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88398         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88399         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88400         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88401         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88402         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88403         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88404         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88405         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88406         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88407         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88408         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88409         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88410         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88411         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88412         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88413         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88414         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88415         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88416         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88417         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88418         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88419         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88420         lib/yesno.c, lib/yesno.h:
88421         Update FSF postal mail address.
88422
88423 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88424
88425         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88426         tests/test-memmem.c, tests/test-stpncpy.c:
88427         Update FSF postal mail address.
88428
88429 2005-05-13  Bruno Haible  <bruno@clisp.org>
88430
88431         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88432         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88433         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88434         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88435         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88436         Add support for 64-bit integers in the MSVC compiler.
88437
88438 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88439
88440         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88441
88442 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88443
88444         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88445
88446 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88447
88448         * doc/getdate.texi (General date syntax): Don't say that date
88449         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88450         Problem reported by Nic Ferrier.
88451
88452 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88453
88454         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88455         specified in ai_socktype. Fix invalid ai_protocol
88456         check. ai_protocol is usually set to 0 or depending on
88457         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88458         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88459         ai_socktype / ai_protocol in the returned addrinfo structure.
88460
88461 2005-05-10  Simon Josefsson  <jas@extundo.com>
88462
88463         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88464         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88465
88466 2005-05-10  Karl Berry  <karl@gnu.org>
88467
88468         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88469         (from http://www.gnu.org/licenses).
88470         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88471         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88472         fdl.texi suffices.
88473
88474 2005-05-10  Karl Berry  <karl@gnu.org>
88475
88476         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88477         (COPYING.DOC): remove.
88478
88479         * config/srclist-update: new FSF address.
88480
88481 2005-05-10  Derek Price  <derek@ximbiot.com>
88482
88483         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88484         possible.
88485
88486 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88487             Bruno Haible  <bruno@clisp.org>
88488
88489         * modules/inet_ntop: New file.
88490         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88491         inet_ntop.
88492
88493 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88494             Bruno Haible  <bruno@clisp.org>
88495
88496         * m4/inet_ntop.m4: New file.
88497
88498 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88499             Bruno Haible  <bruno@clisp.org>
88500
88501         * lib/inet_ntop.h: New file.
88502         * lib/inet_ntop.c: New file, from glibc with modifications.
88503
88504 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88505
88506         * modules/time_r (License): Change to LGPL.
88507         * modules/extensions (License): Change to LGPL.  Actually,
88508         the license is more permissive than that, but currently gnulib-tool
88509         doesn't know how to handle more-permissive licenses.
88510
88511         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88512         Problem reported by Dave Love.
88513
88514 2005-05-08  Jim Meyering  <jim@meyering.net>
88515
88516         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88517         blank.
88518
88519 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88520
88521         * modules/argmatch (Depends-on): Add stdbool.
88522         * modules/backupfile (Depends-on): Likewise.
88523         * modules/chdir-long (Depends-on): Likewise.
88524         * modules/closeout (Depends-on): Likewise.
88525         * modules/cycle-check (Depends-on): Likewise.
88526         * modules/dirname (Depends-on): Likewise.
88527         * modules/fnmatch (Depends-on): Likewise.
88528         * modules/fsusage (Depends-on): Likewise.
88529         * modules/fwriteerror (Depends-on): Likewise.
88530         * modules/getcwd (Depends-on): Likewise.
88531         * modules/getloadavg (Depends-on): Likewise.
88532         * modules/hard-locale (Depends-on): Likewise.
88533         * modules/makepath (Depends-on): Likewise.
88534         * modules/mountlist (Depends-on): Likewise.
88535         * modules/nanosleep (Depends-on): Likewise.
88536         * modules/posixtm (Depends-on): Likewise.
88537         * modules/quotearg (Depends-on): Likewise.
88538         * modules/readtokens (Depends-on): Likewise.
88539         * modules/readtokens0 (Depends-on): Likewise.
88540         * modules/readutmp (Depends-on): Likewise.
88541         * modules/save-cwd (Depends-on): Likewise.
88542         * modules/strftime (Depends-on): Likewise.
88543         * modules/userspec (Depends-on): Likewise.
88544         * modules/utimecmp (Depends-on): Likewise.
88545         * modules/xgetcwd (Depends-on): Likewise.
88546         * modules/xnanosleep (Depends-on): Likewise.
88547         * modules/xstrtod (Depends-on): Likewise.
88548         * modules/yesno (Depends-on): Likewise.
88549
88550 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88551
88552         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88553         needless checks.
88554
88555 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88556
88557         Merge from coreutils.  Among other things,
88558         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88559         * lib/fd-safer.c: New file.
88560         * lib/fcntl-safer.h, open-safer.c: Remove.
88561         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88562         * lib/dup-safer.c: Include unistd-safer.h first.
88563         Don't include errno.h.
88564         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88565         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88566         * lib/file-type.c: Rely on file-type.h change.
88567         * lib/getloadavg.c: Include unistd-safer.h.
88568         (getloadavg): Use safer open.
88569         * lib/getusershell.c: Include "stdio-safer.h".
88570         (getusershell): Use safer fopen.
88571         * lib/long-options.c (long_options): Use NULL rather than 0.
88572         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88573         'free'.
88574         * lib/modechange.c: Likewise.
88575         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88576         (MODE_DONE): New constant.
88577         (struct mode_change): Remove 'next' member.
88578         (make_node_op_equals): New function; like the old one of the
88579         same name, except it allocates an array.
88580         (mode_compile, mode_create_from_ref): Use it.
88581         (mode_compile): Allocate result as an array, not a linked list.
88582         Parse octal string ourself, so that we catch mistakes like "+0".
88583         (mode_adjust): Arg is an array, not a linked list.
88584         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88585         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88586         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88587         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88588         Remove.  This is now stat-macros.h's job.
88589         (talloc): Remove.  All callers replaced by xalloc, so that
88590         our invokers don't have to worry about reporting memory failures.
88591         (make_node_op_equals): Remove.
88592         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88593         New constants.
88594         (struct mode_change): Moved here from modechange.h.
88595         (mode_append_entry): Remove.
88596         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88597         apps to have incorrect behavior.  Use simpler algorithm for head
88598         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88599         Detect more invalid usages rather than having somewhat-random behavior.
88600         Don't insert an "a=" action, as that leads to incorrect behavior.
88601         (mode_compile, mode_create_from_ref): Return NULL on error instead
88602         of an enum, since now there's only one way to have an error.  All
88603         callers changed.
88604         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88605         at the correct time.  Simplify calculation of "+u" and its ilk.
88606         Don't mishandle "+X".
88607         (mode_free): Remove "register" and localize decls.
88608         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88609         (struct mode_change): Move to modechange.c; callers don't
88610         need to see this stuff.
88611         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88612         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88613         (mode_change, mode_adjust): Reflect the new signatures noted above.
88614         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88615         that might redefine system include files.
88616         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88617         (my_usleep): Use NULL rather than (void *) 0.
88618         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88619         Use siginterrupt to specify that system calls should be interrupted.
88620         (rpl_nanosleep): Move initialization of suspended closer to call of
88621         my_usleep.
88622         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88623         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88624         (desirable_utmp_entry): New function.
88625         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88626         using x2nrealloc, to simplify logic.
88627         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88628         size calculation.  Do not assume utmp file is a regular file.
88629         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88630         (READ_UTMP_CHECK_PIDS): New constant.
88631         * lib/save-cwd.c: Include unistd-safer.h.
88632         (save_cwd): Use fd_safer.
88633         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88634         [!_LIBC] Include "stat-macros.h" instead.
88635         * lib/unistd-safer.h (fd_safer): New decl.
88636
88637 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88638
88639         * modules/getloadavg (Depends-on): Add unistd-safer.
88640         * modules/getusershell (Depends-on): Add stdio-safer.
88641         * modules/lstat (Depends-on): Remove xalloc.
88642         * modules/mkstemp (Depends-on): Add stat-macros.
88643         * modules/modechange (Depends-on): Remove xstrtol.
88644         Add stat-macros, xalloc.
88645         * modules/save-cwd (Depends-on): Add unistd-safer.
88646         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88647         * modules/unistd-safer (Files): Add lib/fd-safer.c
88648         (Makefile.am): Remove lib_SOURCES.
88649
88650         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88651         Remove fcntl-safer; unistd-safer supersedes it.
88652
88653 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88654
88655         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88656         AC_HEADER_STAT.
88657         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88658         (gl_PREREQ_CHOWN): Remove.
88659         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88660         it.  Don't require AC_HEADER_STAT.
88661         (gl_PREREQ_LSTAT): Remove.
88662         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88663         Don't require AC_HEADER_STAT.
88664         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88665         (gl_PREREQ_RMDIR): Remove.
88666         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88667         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88668         the stat-macros module a prerequisite.
88669         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88670         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88671         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88672         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88673         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88674         variable names.
88675         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88676         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88677         variable prefixes.
88678         * m4/fcntl-safer.m4: Remove.
88679         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88680         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88681         Invoke gl_PREREQ_FD_SAFER.
88682         (gl_PREREQ_FD_SAFER): New macro.
88683         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88684         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88685         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88686         Remove duplicate call to AC_LIBOBJ(readutmp).
88687         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88688
88689         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88690         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88691
88692 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88693
88694         * MODULES.html.sh (Misc): Add byteswap.
88695
88696 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88697
88698         * modules/getcwd (Depends-on): Add extensions.
88699         * modules/openat (Depends-on): Likewise.
88700
88701 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88702
88703         * modules/byteswap: New file.
88704
88705 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88706
88707         * m4/byteswap.m4: New file.
88708
88709 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88710
88711         * lib/byteswap_.h: New file.
88712
88713 2005-04-25  Karl Berry  <karl@gnu.org>
88714
88715         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88716
88717 2005-04-25  Albert Chin  <china@thewrittenword.com>
88718
88719         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88720         Toolkit C bug.
88721
88722 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88723
88724         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88725         (func_ln_if_changed): Remove forcibly for no error message
88726         in case file does not exist.
88727
88728 2005-04-19  Simon Josefsson  <jas@extundo.com>
88729
88730         * gnulib-tool (Options): Make --symlink mean --symbolic.
88731
88732 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88733
88734         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88735
88736 2005-04-16  Simon Josefsson  <jas@extundo.com>
88737
88738         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88739
88740 2005-04-15  Simon Josefsson  <jas@extundo.com>
88741
88742         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88743
88744 2005-04-15  Simon Josefsson  <jas@extundo.com>
88745
88746         * gnulib-tool: Rename --symlink to --symbolic.
88747
88748 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88749
88750         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88751         symbolic links to files instead of copying/moving.  Add --aux-dir,
88752         specifying directory relative --dir where auxiliary build tools
88753         are placed.
88754
88755 2005-04-14  Bruno Haible  <bruno@clisp.org>
88756
88757         * modules/allocsa (License): Change to LGPL.
88758         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88759
88760 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88761
88762         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88763         that "UTC +1 second" continues to work.  Problem reported
88764         by Dmitry V. Levin.
88765         (relunit_snumber): New rule.
88766         (relunit): Use it.
88767
88768 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88769
88770         * lib/getdate.y (universal_time_zone_table): New constant.
88771         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88772         universal_time_zone_table.
88773         (lookup_zone): Prefer universal_time_zone_table to
88774         local_time_zone_table, so that "GMT" time stamps are allowed in
88775         London during the summer.  Problem reported by Ian Abbott.
88776
88777 2005-04-12  Jim Meyering  <jim@meyering.net>
88778
88779         * lib/human.c (humblock): Set *options even when returning due to
88780         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88781         warning from gcc-4.
88782
88783 2005-04-09  Jim Meyering  <jim@meyering.net>
88784
88785         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88786         -Wuninitialized: initialize tm0.tm_year.
88787
88788 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88789
88790         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88791         count, since there's no maximum.  All uses changed.
88792         Add member dsts_seen.
88793         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88794         not being INT_MAX.
88795         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88796         Use pc_rels_seen to decide whether a date is absolute.
88797
88798         * lib/getdate.y (number): Don't overwrite year.
88799         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88800         check.
88801
88802 2005-04-02  Simon Josefsson  <jas@extundo.com>
88803
88804         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88805         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88806
88807 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88808
88809         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88810         where no absolute path name can be longer than PATH_MAX.
88811
88812 2005-03-27  Jim Meyering  <jim@meyering.net>
88813
88814         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88815
88816 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88817
88818         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88819         "one's complement" -> "ones' complement" in comment, as per Knuth.
88820         "value of type" -> "type or expression" in comment.
88821         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88822
88823 2005-03-26  Jim Meyering  <jim@meyering.net>
88824
88825         Comment nits.
88826         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88827         Correct typos: s/or/of/.
88828
88829 2005-03-26  Jim Meyering  <jim@meyering.net>
88830
88831         * modules/check-include-files: Move to ../ and rename to...
88832         * check-module: ...this.
88833
88834 2005-03-25  Jim Meyering  <jim@meyering.net>
88835
88836         * modules/xvasprintf (Files): Add xalloc.h.
88837
88838 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88839
88840         * modules/gettext (Files): config/config.rpath ->
88841         build-aux/config.rpath
88842         * modules/iconv (Files): Likewise.
88843         Problem reported by Oskar Liljeblad.
88844
88845 2005-03-23  Jim Meyering  <jim@meyering.net>
88846
88847         * modules/check-include-files: New script to check for
88848         missing dependencies, multiple includes, etc.
88849
88850         * modules/c-strtold (Depends-on): Add xalloc.
88851         * modules/c-strtod (Depends-on): Add xalloc.
88852         * modules/hash (Depends-on): Add xalloc.
88853         (Files): Remove lib/xalloc.h.
88854
88855         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88856         * modules/userspec (Files): Add lib/inttostr.h.
88857
88858 2005-03-23  Jim Meyering  <jim@meyering.net>
88859
88860         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88861
88862 2005-03-22  Jim Meyering  <jim@meyering.net>
88863
88864         * modules/stat-macros: New module.
88865         * modules/canonicalize, modules/euidaccess, modules/file-type,
88866         * modules/filemode, modules/lchown, modules/makepath,
88867         * modules/rmdir, modules/stat: Depend on new stat-macros module
88868         rather than listing lib/stat-macros.h manually.
88869         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88870
88871 2005-03-22  Jim Meyering  <jim@meyering.net>
88872
88873         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88874
88875 2005-03-22  Bruno Haible  <bruno@clisp.org>
88876
88877         * config/srclist.txt: Replace target directory 'config' with
88878         'build-aux'.
88879         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88880         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88881         ../build-aux/.
88882
88883 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88884
88885         * modules/chdir-long (Depends-on): Add mempcpy.
88886
88887         * modules/acl, modules/backupfile, modules/c-strtod,
88888         modules/c-strtold, modules/canon-host, modules/canonicalize,
88889         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88890         modules/exclude, modules/exitfail, modules/file-type,
88891         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88892         modules/getdate, modules/getline, modules/getpagesize,
88893         modules/getpass, modules/getugroups, modules/group-member,
88894         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88895         modules/inttostr, modules/long-options, modules/makepath,
88896         modules/md5, modules/memcasecmp, modules/memcoll,
88897         modules/modechange, modules/mountlist, modules/path-concat,
88898         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88899         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88900         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88901         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88902         modules/strftime, modules/strndup, modules/strverscmp,
88903         modules/timespec, modules/unlocked-io, modules/userspec,
88904         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88905         modules/yesno:
88906         Remove lib_SOURCES line from Makefile.am section, as this is now
88907         done automatically by the corresponding Autoconf macro.
88908
88909 2005-03-21  Jim Meyering  <jim@meyering.net>
88910
88911         Changes imported from coreutils.
88912
88913         * lib/cycle-check.c: Don't include xalloc.h.
88914
88915         * lib/path-concat.c: Don't include assert.h.
88916         (path_concat): Remove assertion that would have triggered
88917         for ABASE starting with more than one slash.
88918         Reported by Andreas Schwab.
88919
88920         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88921         properly when ABASE is an absolute file name.
88922         Correct the description of this function.
88923         Include <assert.h>.
88924         Add an assertion and a test driver.
88925         This fixes a bug introduced on 2004-07-02.
88926         Andreas Schwab reported the resulting failure of cp --parents:
88927         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88928
88929 2005-03-21  Jim Meyering  <jim@meyering.net>
88930
88931         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88932         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88933
88934 2005-03-21  Jim Meyering  <jim@meyering.net>
88935         and  Paul Eggert  <eggert@cs.ucla.edu>
88936
88937         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88938         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88939         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88940         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88941         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88942         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88943         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88944         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88945         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88946         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88947         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88948         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88949         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88950         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88951         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88952         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88953         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88954         for these modules.
88955
88956 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88957
88958         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88959         (which shouldn't happen), generate nothing instead of returning 0
88960         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88961
88962 2005-03-16  Bruno Haible  <bruno@clisp.org>
88963
88964         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88965         HAVE_LONGLONG_64BIT.
88966
88967 2005-03-16  Bruno Haible  <bruno@clisp.org>
88968
88969         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88970         HAVE_LONGLONG_64BIT.
88971
88972 2005-03-16  Bruno Haible  <bruno@clisp.org>
88973
88974         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88975         HAVE_LONGLONG_64BIT.
88976
88977 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88978
88979         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88980         reliably distinguish strftime failure from empty output on POSIX
88981         hosts.
88982
88983 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88984
88985         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88986         (iconv_string): Don't guess a size-zero buffer, as that might cause
88987         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88988         result would be 'too large', where 'too large' is (heuristically)
88989         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88990         overflow concerns.  This will prevent some unwanted malloc failures
88991         when the inputs are very large.
88992
88993 2005-03-15  Karl Berry  <karl@gnu.org>
88994
88995         * config/srclist.txt (config.rpath): from gettext.
88996         * config/config.rpath: update.
88997
88998 2005-03-15  Bruno Haible  <bruno@clisp.org>
88999
89000         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
89001         to 'negate'.
89002
89003         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
89004         variable.
89005
89006         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
89007         results.
89008
89009 2005-03-14  Simon Josefsson  <jas@extundo.com>
89010
89011         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
89012         <fx@gnu.org>.
89013
89014 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
89015
89016         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
89017         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
89018         intprops.h.
89019         * lib/strtol.c: Likewise.
89020
89021 2005-03-14  Jim Meyering  <jim@meyering.net>
89022
89023         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
89024         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
89025         to be nonzero so that we (and caller) can detect the difference
89026         between a valid zero-length expansion and an error return, even
89027         when the underlying strftime fails before writing anything into
89028         that location.
89029
89030 2005-03-14  Bruno Haible  <bruno@clisp.org>
89031
89032         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
89033         Update from GNU gettext 0.14.3.
89034
89035 2005-03-10  Jim Meyering  <jim@meyering.net>
89036
89037         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
89038
89039 2005-03-10  Jim Meyering  <jim@meyering.net>
89040
89041         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
89042         so that this module works on systems without fchdir.
89043
89044 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
89045
89046         Factor int-properties macros into a single file, except for
89047         glibc-related files.
89048         * lib/intprops.h: New file.
89049         * lib/getloadavg.c: Include it instead of limits.h.
89050         (INT_STRLEN_BOUND): Remove.
89051         * lib/human.c: Include intprops.h.
89052         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
89053         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
89054         302/1000.
89055         * lib/inttostr.h: Include intprops.h instead of limits.h.
89056         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
89057         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
89058         for consistency with intprops.h.
89059         (time_t_is_integer, twos_complement_arithmetic): Use them.
89060         * lib/sig2str.h: Include <signal.h>, intprops.h.
89061         (INT_STRLEN_BOUND): Remove.
89062         * lib/strftime.c (TYPE_SIGNED): Remove.
89063         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
89064         * lib/strtol.c: Adjust comments to match intprops.h.
89065         * lib/userspec.c: Include intprops.h.
89066         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
89067         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
89068         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
89069         instead of rolling our own expressions.
89070         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
89071
89072         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
89073         instead of int.
89074         (my_strftime): Do not mishandle years close to INT_MAX, by doing
89075         the right thing even if adding 1900 would overflow.  Similarly
89076         for tm_mon + 1 and tm_yday + 1.
89077         Make %Y always equivalent to %C%y, and similarly for %G and %g.
89078         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
89079         (DO_SIGNED_NUMBER): New macro.
89080         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
89081
89082 2005-03-07  Bruno Haible  <bruno@clisp.org>
89083
89084         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
89085
89086 2005-03-07  Bruno Haible  <bruno@clisp.org>
89087
89088         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
89089
89090 2005-03-04  Derek R. Price  <derek@ximbiot.com>
89091
89092         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
89093         (func_import): Only replace files via --import when they have actually
89094         changed.
89095
89096 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89097
89098         * m4/mmap-anon.m4: New file.
89099         * m4/pagealign_alloc.m4: New file.
89100
89101 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89102             Bruno Haible  <bruno@clisp.org>
89103
89104         * modules/pagealign_alloc: New file.
89105         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
89106
89107 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89108             Bruno Haible  <bruno@clisp.org>
89109
89110         * lib/pagealign_alloc.h: New file.
89111         * lib/pagealign_alloc.c: New file.
89112
89113 2005-03-03  Bruno Haible  <bruno@clisp.org>
89114
89115         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
89116         Use an all-permissive copyright notice, recommended by RMS.
89117
89118 2005-03-02  Bruno Haible  <bruno@clisp.org>
89119
89120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
89121         of AIX, the replacement has to be done only after <string.h> is
89122         included, therefore not in config.h. stpncpy.h does the replacement,
89123         and stpncpy.c uses it.
89124
89125 2005-03-02  Bruno Haible  <bruno@clisp.org>
89126
89127         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
89128         stpncpy.c uses it.
89129
89130 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89131
89132         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
89133         The workaround isn't strictly needed for POSIX conformance, and
89134         it's too much of a pain to configure and maintain.  We'll ask
89135         people to fix their kernels instead.
89136         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
89137         (NANOSLEEP_BUG_WORKAROUND): Remove.
89138         (xnanosleep): Remove the workaround.
89139
89140 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89141
89142         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
89143         Reported by Derek Price.
89144         (Include): Add "timespec.h".
89145
89146         * modules/xnanosleep (Depends-on): Remove gethrxtime.
89147
89148 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89149
89150         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
89151         to detect nanosleep bug.
89152
89153 2005-03-01  Bruno Haible  <bruno@clisp.org>
89154
89155         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
89156
89157 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
89158
89159         * modules/gethrxtime: New file.
89160         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
89161         (Depends-on): Add gethrxtime.
89162         (configure.ac): Add gl_XNANOSLEEP.
89163         (Makefile.am): Remove lib_SOURCES line.
89164
89165 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89166
89167         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
89168         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
89169
89170 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89171
89172         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
89173         * lib/timespec.h (gettime): Return void, since it always
89174         succeeds now.  All uses changed.
89175         * lib/gettime.c (gettime): Likewise.
89176         [HAVE_NANOTIME]: Prefer nanotime.
89177         Assume gettimeofday succeeds, as POSIX requires.
89178         Assime time () succeeds, since other code already does.
89179         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
89180         (timespec_subtract): Remove.
89181         (NANOSLEEP_BUG_WORKAROUND): New constant.
89182         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
89183         things considerably.  Use it only on GNU/Linux hosts, since the
89184         workaround shouldn't be needed elsewhere.
89185
89186 2005-02-24  Bruno Haible  <bruno@clisp.org>
89187
89188         * modules/gettext (Files): Add m4/glibc2.m4.
89189
89190 2005-02-24  Bruno Haible  <bruno@clisp.org>
89191
89192         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
89193         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
89194         * m4/progtest.m4:
89195         Update from GNU gettext 0.14.2.
89196         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
89197
89198 2005-02-24  Bruno Haible  <bruno@clisp.org>
89199
89200         * lib/localcharset.c: Update from GNU gettext 0.14.2.
89201         * lib/config.charset: Update from GNU gettext 0.14.2.
89202
89203 2005-02-24  Bruno Haible  <bruno@clisp.org>
89204
89205         * lib/gettext.h: Update from GNU gettext 0.14.2.
89206
89207 2005-02-23  Simon Josefsson  <jas@extundo.com>
89208
89209         * m4/iconvme.m4: New file.
89210
89211 2005-02-23  Jim Meyering  <jim@meyering.net>
89212
89213         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89214         change.
89215         Thanks to Bruno Haible for catching it.
89216
89217 2005-02-22  Simon Josefsson  <jas@extundo.com>
89218
89219         * modules/iconvme: New file.
89220
89221         * MODULES.html.sh: Add iconvme.
89222
89223 2005-02-22  Simon Josefsson  <jas@extundo.com>
89224
89225         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89226
89227 2005-02-22  Simon Josefsson  <jas@extundo.com>
89228
89229         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89230
89231 2005-02-22  Jim Meyering  <jim@meyering.net>
89232
89233         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89234         s/ifndef/ifdef/.
89235
89236 2005-02-20  Neil Conway  <neilc@samurai.com>
89237
89238         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89239         returned by OSX/Darwin if the specified buffer is not large
89240         enough for the hostname.
89241
89242 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89243
89244         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89245         pass it to _help, otherwise the latter coredumps trying to
89246         dereference state.root_argp.
89247
89248 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89249
89250         * modules/chdir-long (Depends-on): Add memrchr.
89251         * modules/memrchr (Files): Add lib/memrchr.h.
89252         (Include): "memrchr.h".
89253
89254 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89255
89256         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89257
89258 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89259
89260         * lib/memrchr.h: New file.
89261         * lib/chdir-long.c: Include it.
89262         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89263         Don't bother including stddef.h.
89264
89265 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89266
89267         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89268         inclusion.
89269         Include <sys/types.h>, for dev_t.
89270         (ME_DUMMY, ME_REMOTE): Move from here....
89271         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89272         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89273         Dmitry V. Levin.
89274         Include mountlist.h first, to test the interface.
89275
89276 2005-01-29  Bruno Haible  <bruno@clisp.org>
89277
89278         * lib/progname.c (program_name): Initialize.
89279         Needed when linking statically on MacOS X.
89280
89281 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89282
89283         Sync from coreutils.
89284         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89285         (Depends-on): Add c-strtod.
89286         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89287
89288 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89289
89290         Sync from coreutils.
89291         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89292
89293         Remove files that are specific to coreutils.
89294         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89295
89296 2005-01-28  Bruno Haible  <bruno@clisp.org>
89297
89298         * modules/javacomp: New file.
89299         * MODULES.html.sh (Java): Add javacomp.
89300
89301 2005-01-28  Bruno Haible  <bruno@clisp.org>
89302
89303         * m4/javacomp.m4: New file, from GNU gettext.
89304
89305 2005-01-28  Bruno Haible  <bruno@clisp.org>
89306
89307         * lib/javacomp.sh.in: New file, from GNU gettext.
89308         * lib/javacomp.h: New file, from GNU gettext.
89309         * lib/javacomp.c: New file, from GNU gettext.
89310
89311 2005-01-26  Simon Josefsson  <jas@extundo.com>
89312
89313         * lib/gai_strerror.c: Use GPL in header.
89314
89315 2005-01-26  Bruno Haible  <bruno@clisp.org>
89316
89317         * modules/javaexec: New file.
89318         * MODULES.html.sh (Java): Add javaexec.
89319
89320 2005-01-26  Bruno Haible  <bruno@clisp.org>
89321
89322         * m4/javaexec.m4: New file, from GNU gettext.
89323
89324 2005-01-26  Bruno Haible  <bruno@clisp.org>
89325
89326         * lib/javaexec.sh.in: New file, from GNU gettext.
89327         * lib/javaexec.h: New file, from GNU gettext.
89328         * lib/javaexec.c: New file, from GNU gettext.
89329
89330 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89331
89332         * modules/lchown (Depends-on): Remove lchown.h
89333
89334 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89335
89336         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89337         must be defined if the header file was not found, in order
89338         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89339
89340 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89341
89342         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89343         initializers for struct pentry_state.
89344         (__argp_error): Check return value of __asprintf
89345         (__argp_failure): Translate error message
89346
89347         * lib/argp-parse.c: Removed braces around the expansion of N_()
89348
89349 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89350
89351         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89352         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89353         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89354         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89355         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89356         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89357         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89358         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89359         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89360         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89361         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89362         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89363         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89364         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89365         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89366         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89367         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89368         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89369         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89370         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89371         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89372         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89373         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89374         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89375         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89376         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89377         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89378         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89379         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89380         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89381         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89382         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89383         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89384         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89385         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89386         Use an all-permissive copyright notice, recommended by RMS.
89387
89388 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89389
89390         * modules/chdir-long (Depends-on): Remove mempcpy.
89391
89392 2005-01-21  Jim Meyering  <jim@meyering.net>
89393
89394         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89395         same value as for Solaris 9.
89396
89397         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89398         component length.  This included changing the parameter to be
89399         of type `char *' rather than `char const *'.
89400         * lib/chdir-long.h (chdir_long): Update prototype.
89401
89402         * lib/openat.c (fdopendir, fstatat): New functions.
89403         * lib/openat.h: Include headers required for use of DIR and struct
89404         stat.
89405         [AT_SYMLINK_NOFOLLOW]: Define.
89406         (fdopendir, fstatat): Add prototypes.
89407
89408 2005-01-21  Bruno Haible  <bruno@clisp.org>
89409
89410         * modules/classpath: New file.
89411         * MODULES.html.sh (Java): Add classpath.
89412
89413 2005-01-21  Bruno Haible  <bruno@clisp.org>
89414
89415         * lib/classpath.h: New file, from GNU gettext.
89416         * lib/classpath.c: New file, from GNU gettext.
89417
89418 2005-01-20  Simon Josefsson  <jas@extundo.com>
89419
89420         * modules/version-etc-fsf: New file.
89421
89422 2005-01-20  Simon Josefsson  <jas@extundo.com>
89423
89424         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89425         * lib/version-etc.c: Remove version_etc_copyright.
89426         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89427         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89428
89429 2005-01-20  Simon Josefsson  <jas@extundo.com>
89430
89431         * lib/base64.h (isbase64): Add.
89432
89433         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89434         using a unsigned prototype, don't inline.
89435         (base64_decode): Use it.
89436
89437 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89438
89439         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89440         it.
89441
89442 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89443
89444         * lib/save-cwd.c (save_cwd): Remove code to support the case
89445         where fchdir is missing or flaky.
89446
89447 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89448
89449         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89450
89451 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89452
89453         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89454         AC_LIBSOURCES now does this.
89455         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89456         with new ullong_max module.
89457
89458 2005-01-19  Bruno Haible  <bruno@clisp.org>
89459
89460         * modules/sh-quote: New file.
89461         * MODULES.html.sh (Executing programs): Add sh-quote.
89462
89463 2005-01-19  Bruno Haible  <bruno@clisp.org>
89464
89465         * lib/sh-quote.h: New file, from GNU gettext.
89466         * lib/sh-quote.c: New file, from GNU gettext.
89467
89468 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89469
89470         Merge from coreutils.
89471         * m4/ullong_max.m4: New file.
89472         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89473         (gl_MACROS): Assume localeconv exists.
89474
89475 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89476
89477         Merge changes from coreutils, as described below in several
89478         changelogs dated today.
89479
89480         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89481         (O_DIRECTORY): Remove; not needed here, since "." must be
89482         a directory.  All uses removed.
89483         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89484         universal on Suns, and we also need to test for IRIX.
89485         Revamp code to use 'if' rather than '#if'.
89486         Avoid unnecessary comparison of cwd->desc to 0.
89487
89488         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89489         for known valid error numbers rather than observed invalid ones.
89490
89491 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89492
89493         * modules/ullong_max: New file.
89494
89495         * modules/chdir-long, modules/openat: New files.
89496         * modules/save-cwd (Depends-on): Depend on chdir-long.
89497         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89498
89499 2005-01-18  Jim Meyering  <jim@meyering.net>
89500
89501         Merge from coreutils.
89502         * m4/chdir-long.m4, m4/openat.m4: New files.
89503         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89504         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89505         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89506         is sane and DOES follow symlinks.  Besides, testing 20 different
89507         systems found no broken chown implementations.
89508         Prompted by a change in rsync's copy of this macro.
89509         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89510
89511         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89512
89513         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89514         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89515         NULL-means-set-to-current-time semantics.
89516         Remove temporary file immediately, rather than waiting
89517         for configure's at-exit trap code to do it.
89518
89519 2005-01-18  Jim Meyering  <jim@meyering.net>
89520
89521         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89522
89523         * lib/utimens.c (futimens): Account for the fact that futimes
89524         can also fail with errno == ENOSYS or errno == ENOENT.
89525         Patch from Dmitry V. Levin.
89526
89527         Change the name of the robust chdir function from chdir to chdir_long.
89528         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89529         (restore_cwd): Use chdir_long, not chdir.
89530         * lib/chdir-long.c: Renamed from chdir.c.
89531         * lib/chdir-long.h: Renamed from chdir.h.
89532         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89533         Hurd.
89534
89535 2005-01-18  Bruno Haible  <bruno@clisp.org>
89536
89537         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89538         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89539         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89540         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89541         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89542         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89543         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89544         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89545         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89546         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89547         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89548         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89549         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89550         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89551         Use an all-permissive copyright notice, recommended by RMS.
89552
89553 2005-01-18  Bob Proulx  <bob@proulx.com>
89554
89555         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89556         simplify offsetof() macro construct to avoid compile failure with
89557         native HP-UX 11.0 ANSI C compiler.
89558
89559 2005-01-17  Bruno Haible  <bruno@clisp.org>
89560
89561         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89562         redundant because stpncpy.m4 takes care of it.
89563
89564 2005-01-17  Bruno Haible  <bruno@clisp.org>
89565
89566         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89567
89568 2005-01-17  Bruno Haible  <bruno@clisp.org>
89569
89570         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89571         used.
89572
89573 2005-01-17  Bruno Haible  <bruno@clisp.org>
89574
89575         * lib/fwriteerror.h (fwriteerror): Change specification to include
89576         fclose.
89577         * lib/fwriteerror.c: Include <stdbool.h>.
89578         (fwriteerror): At the end, close the file stream. Record whether
89579         stdout was already closed.
89580
89581 2005-01-17  Bruno Haible  <bruno@clisp.org>
89582
89583         * lib/execute.c (environ): Declare if needed.
89584         * lib/pipe.c (environ): Likewise.
89585         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89586
89587 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89588
89589         * modules/argp: Depend on vsnprintf
89590
89591 2005-01-10  Jim Meyering  <jim@meyering.net>
89592
89593         * modules/closeout (Depends-on): Add atexit.
89594
89595 2005-01-06  Bruno Haible  <bruno@clisp.org>
89596
89597         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89598
89599 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89600
89601         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89602         definitions to be after all include files, to avoid collisions.
89603         Problem reported by Bob Proulx.
89604
89605 2005-01-04  Jim Meyering  <jim@meyering.net>
89606
89607         Changes imported from coreutils.
89608         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89609         as the mkstemp template, use a temporary directory and an
89610         8.3-friendly template to avoid trouble on systems like DJGPP.
89611         Reported by Juan M. Guerrero via Stepan Kasal.
89612         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89613         close. Remove the temporary directory right away, rather than waiting
89614         for configure's at-exit trap code to do it.
89615         Suggestion from Stepan Kasal.
89616
89617 2005-01-01  Simon Josefsson  <jas@extundo.com>
89618
89619         * gnulib-tool: Print #include directives when --import'ing.
89620
89621 2004-12-28  Simon Josefsson  <jas@extundo.com>
89622
89623         * tests/test-base64.c: Include required header files.  Remove
89624         unused variables.
89625
89626 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89627
89628         * modules/error (Depends-on): Remove gettext.
89629
89630 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89631
89632         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89633         not needed.  This removes a dependency on the gettext module.
89634         [defined _LIBC]: Do not include <libintl.h>; not needed.
89635
89636 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89637
89638         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89639         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89640
89641 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89642
89643         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89644         HAVE_DECL_STRTOLD.
89645
89646 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89647
89648         * modules/getdate (Depends-on): Remove alloca-opt.
89649
89650 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89651
89652         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89653
89654 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89655
89656         * lib/argp-parse.c: Include <stddef.h>.
89657         (alignof, alignto): New macros.
89658         (parser_init): Don't assume that void * is aligned sufficiently
89659         for struct option.
89660
89661         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89662         need to extend the stack.
89663         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89664         large.
89665
89666 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89667
89668         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89669
89670 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89671
89672         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89673         (2004-10-24) change.  Apparently this was a false alarm.
89674
89675         * modules/getdate: Depend on alloca-opt, not alloca.
89676
89677 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89678
89679         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89680         Remove now-obsolete comment about AIX.
89681         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89682         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89683         (YYMAXDEPTH): New macro.
89684
89685 2004-12-18  Simon Josefsson  <jas@extundo.com>
89686
89687         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89688
89689 2004-12-18  Bruno Haible  <bruno@clisp.org>
89690
89691         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89692
89693 2004-12-18  Bruno Haible  <bruno@clisp.org>
89694
89695         * lib/fatal-signal.c (fatal_signals): Make non-const.
89696         (init_fatal_signals): New function.
89697         (uninstall_handlers, install_handlers): Ignore signals that were set to
89698         SIG_IGN.
89699         (at_fatal_signal): Call init_fatal_signals.
89700         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89701         SIG_IGN.
89702         Reported by Paul Eggert.
89703
89704 2004-12-18  Bruno Haible  <bruno@clisp.org>
89705
89706         * doc/alloca.texi: New file.
89707         * doc/alloca-opt.texi: New file.
89708
89709 2004-12-17  Jim Meyering  <jim@meyering.net>
89710
89711         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89712         Otherwise, install-sh could exit with improper exit status when
89713         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89714
89715 2004-12-16  Simon Josefsson  <jas@extundo.com>
89716
89717         * tests/test-base64.c: Add license.
89718
89719 2004-12-15  Stepan Kasal  <address@hidden>
89720
89721         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89722
89723 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89724
89725         * modules/getcwd (Files): Add m4/d-ino.m4.
89726         Suggested by Mark D. Baushke.
89727
89728 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89729
89730         * lib/getdate.y (textint): New member "negative".
89731         (time_zone_hhmm): New function.
89732         Expect 14 shift-reduce conflicts, not 13.
89733         (o_colon_minutes): New rule.
89734         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89735         (yylex): Set the "negative" member of signed numbers.
89736
89737 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89738
89739         * doc/getdate.texi (Time of day items, Time zone items):
89740         Describe new formats +00:00, UTC+00:00.
89741
89742 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89743
89744         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89745         spurious "-l"s.  Problem reported by Stepan Kasal.
89746
89747 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89748
89749         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89750         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89751
89752 2004-12-04  Simon Josefsson  <jas@extundo.com>
89753
89754         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89755         Vandoorselaere <yoann@prelude-ids.org>.
89756
89757 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89758
89759         Changes imported from coreutils.
89760         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89761         exist.
89762         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89763
89764 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89765
89766         Changes imported from coreutils.
89767         * lib/hard-locale.c: Assume <locale.h> exists.
89768         Include "strdup.h".
89769         (GLIBC_VERSION): New macro.
89770         (hard_locale): Assume setlocale exists.
89771         Rewrite to avoid #ifdef.
89772         Use strdup rather than malloc + strcpy.
89773         * lib/human.c: Assume <locale.h> exists.
89774         (human_readable): Assume localeconv exists.
89775
89776 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89777
89778         * modules/hard-locale (Depends-on): Add strdup.
89779
89780 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89781
89782         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89783         convert T2, not T.  (Imported from libc.)
89784
89785 2004-11-30  Simon Josefsson  <jas@extundo.com>
89786
89787         * modules/restrict (License): Change to LGPL.
89788
89789 2004-11-30  Simon Josefsson  <jas@extundo.com>
89790
89791         * m4/restrict.m4: Add copyright and copying conditions.
89792
89793 2004-11-30  Simon Josefsson  <jas@extundo.com>
89794
89795         * m4/base64.m4: New file.
89796
89797 2004-11-30  Simon Josefsson  <jas@extundo.com>
89798
89799         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89800         base64.
89801
89802         * tests/test-base64.c: New file.
89803
89804         * modules/base64: New file.
89805
89806 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89807
89808         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89809         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89810
89811         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89812
89813 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89814
89815         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89816         (__getcwd.c): Don't restore errno; glibc doesn't.
89817         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89818         first, falling back to our code only if its results look suspicious.
89819         Ensure that the resulting buffer is only as large as necessary.
89820
89821         * lib/readutmp.c: Include readutmp.h first.
89822         Include <errno.h>, since readutmp.h no longer does that.
89823         * lib/readutmp.h: Don't include <errno.h>,
89824         <sys/param.h>, <time.h>; not needed to establish interface.
89825         (errno): Remove decl.
89826         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89827         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89828         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89829
89830 2004-11-28  Simon Josefsson  <jas@extundo.com>
89831
89832         * lib/base64.h, base64.c: New file.
89833
89834 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89835
89836         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89837
89838 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89839
89840         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89841         (Depends-on): Remove pathmax, same.  Add mempcpy.
89842         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89843         (Makefile.am): Append getcwd.h to lib_SOURCES.
89844         (Include): Add getcwd.h.
89845         (Maintainer): Change from Jim Meyering to "all, glibc",
89846         since getdate now uses intended-for-glibc code.
89847         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89848         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89849
89850 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89851
89852         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89853         HP's ANSI C compiler.
89854         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89855         Declaring int functions causes warnings on some modern systems and
89856         shouldn't be needed to compile on ancient ones.
89857         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89858         defined.
89859
89860         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89861         with the following changes.
89862         (__set_errno): Parenthesize properly.
89863         Include <stdbool.h>.
89864         (MIN, MAX, MATCHING_INO): New macros.
89865         (__getcwd): Define with prototype, not K&R form.
89866         Use heuristics to allocate default buffer on stack if possible.
89867         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89868         behavior, and to avoid the PATH_MAX limit when computing
89869         ../../../../...
89870         Use MATCHING_INO to compare inode number to file.
89871         Check for arithmetic overflow in size calculations.
89872         Fix bug in reallocation of dot array that caused getcwd to fail
89873         on directories nested deeper than 75.
89874         Be more careful about saving errno on error.
89875         Do not use realloc; use only free+malloc, as this is a bit
89876         more flexible and avoids a needless copy operation.
89877         Do not inspect st_dev and st_ino for symbolic links; POSIX
89878         doesn't specify the latter.
89879         Check for closedir errors.
89880         Avoid needless casts.
89881         Use "#ifdef weak_alias" around weak_alias, to be like other
89882         glibc code.
89883         The following changes to getcwd.c have effect only when used in
89884         gnulib; they have no effect inside glibc proper.
89885         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89886         as alloca isn't used.
89887         (alloca, __alloca): Likewise.
89888         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89889         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89890         unconditionally, as gnulib assumes C89 or better.
89891         Do not include <sys/param.h>.
89892         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89893         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89894         better.
89895         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89896         Include <dirent.h> in a way that is compatible with modern Autoconf.
89897         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89898         New macros, if not already defined.
89899         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89900         Use "_LIBC", not "defined _LIBC", for consistency.
89901         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89902         a mempcpy module.
89903         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89904         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89905         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89906         credit only to Jim Meyering and adjust the copyright dates.
89907         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89908         <stdlib.h>, <unistd.h>, "pathmax.h".
89909         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89910         (INITIAL_BUFFER_SIZE): Remove.
89911         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89912
89913 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89914
89915         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89916         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89917         Use the _ONCE methods, for efficiency.
89918         Check for fcntl.h.  In test program, include <errno.h>
89919         and <fcntl.h> if available.  Remove old K&R cruft from
89920         test program.  Check for common errors in GNU/Linux,
89921         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89922         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89923         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89924         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89925         name accordingly.
89926         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89927         accommodate new getcwd.c.
89928         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89929         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89930         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89931         that's all we need now.
89932
89933 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89934
89935         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89936         argp-parse.c depends on getopt internals, that means we should
89937         always use our getopt, to be on the safe side.
89938         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89939         order not to spoil the result of an eventual previous invocation
89940         of gl_GETOPT_SUBSTITUTE.
89941
89942 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89943
89944         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89945         redefinition warnings. To avoid them, include the defines
89946         in `#if !defined __need_getopt ... #endif'. The only place
89947         where __getopt_argv_const is used is in definitions
89948         of getopt_long and getopt_long_only below, which are as well
89949         protected by `#ifndef __need_getopt'.
89950         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89951         __need_getopt after including <stdio.h> and <unistd.h> These
89952         headers might have defined it.
89953
89954 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89955
89956         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89957
89958 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89959
89960         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89961         (futimens): New function, which uses futimes if available.
89962         (futimens, utimens): Support timespec==NULL, with same semantics
89963         as utime and utimens.
89964         * lib/utimens.h (futimens): New decl.
89965
89966 2004-11-23  Jim Meyering  <jim@meyering.net>
89967
89968         * lib/getopt_.h: Remove trailing blanks.
89969
89970 2004-11-23  Jim Meyering  <jim@meyering.net>
89971
89972         * lib/__fpending.c: Add comment.
89973
89974 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89975
89976         * modules/canonicalize (Depends-on): Add xreadlink.
89977         Problem reported by James Youngman.
89978
89979 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89980
89981         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89982         New macros.
89983         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89984         optopt): Use them instead of invoking ## directly; otherwise, the
89985         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89986
89987 2004-11-19  Bruno Haible  <bruno@clisp.org>
89988
89989         * lib/strtok_r.c: Move comments from here...
89990         * lib/strtok_r.h: ... to here.
89991
89992 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89993
89994         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89995         implementations that mishandle size_t overflow.
89996
89997 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89998
89999         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
90000         might fail.  Problem reported by Yoann Vandoorselaere.
90001         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
90002         implementations that mishandle size_t overflow.
90003
90004 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90005
90006         * modules/canon-host (Depends-on): Add strdup.
90007
90008 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90009
90010         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
90011
90012 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90013
90014         * lib/canon-host.c: Include "strdup.h".
90015         (canon_host): Use getaddrinfo if available, so that IPv6 works.
90016         Use strdup instead of malloc/strcpy to duplicate strings.
90017
90018         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
90019         (human_space_before_unit): New constant.
90020         * lib/human.c (human_readable): Support it.
90021
90022         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
90023         (xgetcwd): Set errno correctly when failing.
90024         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
90025         the failure is actually due to a PATH_MAX problem.
90026
90027         Further getopt changes to make it more likely that glibc will
90028         buy the changes back.
90029         * lib/getopt.c (POSIXLY_CORRECT): New constant.
90030         (getopt): Use it, so to preserve glibc semantic
90031         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
90032         when compiling for libc.
90033         * lib/getopt_.h (__getopt_argv_const): Bring it back.
90034         (getopt_long, getopt_long_only): Use it.
90035
90036         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90037         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
90038         (getopt): Argv is now char * const *, as per standard.
90039         (_getopt_internal_r, _getopt_internal): Argv is now char **,
90040         not char *__getopt_argv_const *.
90041         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90042         _getopt_long_only_r): Likewise.
90043         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
90044         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90045         _getopt_long_r, _getopt_long_only_r): Likewise.
90046         * lib/getopt_.h (__getopt_argv_const): Remove.
90047         (getopt): Argv is now char * const *, as per standard.
90048
90049         * lib/getdate.y (tORDINAL): New token.
90050         (day, relunit): Allow it for relative times.
90051         (relative_time_table): Use tORDINAL for ordinals.
90052
90053 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90054
90055         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
90056         Document that "second" isn't allowed as an ordinal number.
90057
90058 2004-11-16  Jim Meyering  <jim@meyering.net>
90059
90060         * modules/closeout (Depends-on): Add fpending.
90061
90062 2004-11-15  Jim Meyering  <jim@meyering.net>
90063
90064         * lib/closeout.c: Include "__fpending.h" once again.
90065         Include <stdbool.h>.
90066         (close_stdout): Don't fail just because stdout was closed initially,
90067         since some programs don't write to stdout in the normal course of
90068         operation (other than --version and --help), and we don't want this
90069         function to make e.g. `touch file >&-' fail.
90070         But do fail if it was closed and someone has tried to write to it.
90071         E.g., `printf foo >&-' must fail.
90072
90073 2004-11-13  Jim Meyering  <jim@meyering.net>
90074
90075         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
90076
90077 2004-11-12  Simon Josefsson  <jas@extundo.com>
90078
90079         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
90080         small doc fix is still pending.
90081
90082 2004-11-11  Simon Josefsson  <jas@extundo.com>
90083
90084         * modules/strtok_r: New file.
90085
90086         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90087         strtok_r.
90088
90089 2004-11-11  Simon Josefsson  <jas@extundo.com>
90090
90091         * m4/strtok_r.m4: New file.
90092
90093         * m4/getopt.m4: Replace opterr.
90094
90095 2004-11-11  Simon Josefsson  <jas@extundo.com>
90096
90097         * lib/strtok_r.h, strtok_r.c: New file.
90098
90099 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90100
90101         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
90102         of replacing opterr, getopt, etc.  This should handle the
90103         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
90104
90105 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90106
90107         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
90108         we can stop lying to compilers about the constness of argv when we
90109         are compiled outside glibc.
90110         (getopt, getopt_long, getopt_long_only): Use it.
90111         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90112         _getopt_internal, getopt): Likewise.
90113         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90114         _getopt_long_only_r): Likewise.
90115         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90116         _getopt_long_r, _getopt_long_only_r): Likewise.
90117
90118         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
90119         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
90120         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
90121         the other external symbols.
90122         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
90123         declaration, since the above renaming now works around collisions.
90124
90125 2004-11-11  Jim Meyering  <jim@meyering.net>
90126
90127         * lib/linebreak.c: Remove trailing blanks.
90128         * lib/alloca_.h: Likewise.
90129         * lib/acosl.c: Likewise.
90130         * lib/euidaccess.c: Likewise.
90131         * lib/allocsa.h: Likewise.
90132
90133 2004-11-10  Simon Josefsson  <jas@extundo.com>
90134
90135         * m4/getaddrinfo.m4: New file.
90136
90137 2004-11-10  Simon Josefsson  <jas@extundo.com>
90138
90139         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
90140
90141 2004-11-10  Simon Josefsson  <jas@extundo.com>
90142
90143         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90144         getaddrinfo.
90145
90146         * modules/getaddrinfo: New file.
90147
90148 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90149
90150         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
90151
90152 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90153
90154         * lib/mktime.c (SHR): New macro, which is a portable
90155         substitute for >> that should work even on Crays.
90156         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
90157         Problem reported by Mark D. Baushke in
90158         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
90159         * lib/getdate.y (SHR): Likewise.
90160         (tm_diff): Use it.
90161         * lib/strftime.c (SHR): Likewise.
90162         (tm_diff): Use it.
90163         * lib/quotearg.c (struct quoting_options): Use unsigned int for
90164         quote_these_too, so that right shifts are well defined.  All uses
90165         changed.
90166
90167 2004-11-10  Jim Meyering  <jim@meyering.net>
90168
90169         Ensure that no close failure goes unreported.
90170         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
90171         return early when it seems there's nothing to flush.
90172         Don't include __fpending.h.
90173
90174 2004-11-10  Jim Meyering  <jim@meyering.net>
90175
90176         * modules/closeout (Depends-on): Remove fpending.
90177
90178 2004-11-10  Jim Meyering  <jim@meyering.net>
90179
90180         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
90181
90182 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90183
90184         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
90185         gl_FUNC_STRFTIME.
90186         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
90187         and AC_REQUIRE when possible, to avoid duplicate checks.
90188         Check for <wchar.h>.
90189
90190 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90191
90192         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
90193
90194 2004-11-09  Bruno Haible  <bruno@clisp.org>
90195
90196         * m4/sockpfaf.m4: New file.
90197
90198 2004-11-05  Bruno Haible  <bruno@clisp.org>
90199
90200         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
90201         Reported by Mark D. Baushke <mdb@cvshome.org>.
90202
90203 2004-11-04  Bruno Haible  <bruno@clisp.org>
90204
90205         2004-09-11  Bruno Haible  <bruno@clisp.org>
90206                 * allocsa.valgrind: New file.
90207         2004-02-06  Bruno Haible  <bruno@clisp.org>
90208                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90209                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90210                 Reported by Christopher Seip <chris.seip@hp.com>.
90211
90212 2004-11-04  Bruno Haible  <bruno@clisp.org>
90213
90214         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90215         (Makefile.am): Distribute it.
90216
90217 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90218
90219         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90220         with errno == ERANGE if the buffer is too small.
90221         Problem reported by Mark D. Baushke.
90222
90223 2004-11-03  Albert Chin  <china@thewrittenword.com>
90224             Paul Eggert  <eggert@cs.ucla.edu>
90225
90226         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90227         equivalent, substitute $ac_type for equivalent type rather than
90228         blindly using uint32_t *always* which won't work if uint32_t is not
90229         available.  Define _UINT32_T to work around typedef of uint32_t if
90230         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90231         2.5.1.
90232
90233 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90234
90235         * m4/jm-macros.m4: Sync from coreutils.
90236         (gl_MACROS): Check for mbrlen, for pathchk.
90237         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90238
90239 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90240
90241         * lib/xreadlink.c (MAXSIZE): New macro.
90242         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90243         size does not exceed MAXSIZE.  Avoid cast.
90244         As suggested by Mark D. Baushke in
90245         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90246         if readlink fails with buffer size just under MAXSIZE, try again
90247         with MAXSIZE.
90248
90249 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90250
90251         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90252
90253 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90254         and  Paul Eggert  <eggert@cs.ucla.edu>
90255
90256         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90257         (get_date): Overparenthesize to avoid GCC warning.
90258
90259 2004-11-02  Bruno Haible  <bruno@clisp.org>
90260
90261         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90262         returns void.
90263
90264 2004-11-02  Bruno Haible  <bruno@clisp.org>
90265
90266         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90267         function returns void.
90268
90269 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90270
90271         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90272         fflush_unlocked, flockfile, funlockfile, funlockfile,
90273         fputs_unlocked, putc_unlocked.
90274
90275 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90276
90277         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90278         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90279         already declared.
90280
90281 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90282
90283         * modules/getdate (Files): Add doc/getdate.texi.
90284         (Depends-on): Add setenv, xalloc.
90285
90286 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90287
90288         * lib/getdate.y: Add support for TZ="foo" within a date string.
90289         Fix some bugs near time_t boundaries.  Reject dates with
90290         out-of-range components, e.g., "Sept 31".
90291         Include <stdlib.h>, "setenv.h", "xalloc.h".
90292         (ISDIGIT_LOCALE): Remove; unused.
90293         Note that the TZ and time functions used here are not reentrant.
90294         (mktime_ok, get_tz): New functions.
90295         (TZBUFSIZE): New constant.
90296         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90297         This requires that we sometimes generate our own TZ="XXX..." setting.
90298
90299 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90300
90301         * doc/getdate.texi: New file, from coreutils with modifications for
90302         the new TZ parsing.
90303
90304 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90305
90306         * lib/mktime.c (not_equal_tm): Remove redundant check.
90307
90308 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90309
90310         * modules/regex (lib_SOURCES): Add regex.c.
90311         Reported by James Youngman in
90312         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90313
90314 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90315
90316         * lib/getdate.y: Use Bison 1.875 features, and some minor
90317         code cleanups.  This change does not affect semantics.
90318         Don't include <stdlib.h>; no longer needed.
90319         Don't include unlocked-io.h; only the "#if TEST" code uses
90320         stdio, and performance isn't crucial there.
90321         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90322         Bison 1.875 features as described below.
90323         All uses of "PC." replaced by "pc->".
90324         (YYSTYPE): Add a forward declaration.
90325         (yylex, yyerror): Use full prototypes in forward decls.
90326         Use "%pure-parser" rather than obsolescent "%pure_parser".
90327         Use %parse-param and %lex-param instead of obsolescent
90328         YYPARSE_PARAM and YYLEX_PARAM.
90329         (meridian_table, month_and_day_table, time_units_table,
90330         relative_time_table, time_zone_table, military_table,
90331         lookup_zone, lookup_word, get_date):
90332         Use NULL instead of 0 where appropriate.
90333         (to_hour): Avoid abort (), to avoid a dependency on
90334         stdlib.h.
90335         (yyerror, yylex): Now accepts parser_control * arg.
90336         (main) [TEST]: Use '\0' rather than 0 for char.
90337
90338 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90339
90340         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90341
90342 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90343
90344         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90345         It's now the caller's responsibility to handle the case where
90346         !HAVE_GETPAGESIZE && !defined getpagesize.
90347
90348         * lib/mktime.c (leapyear): Arg is long int, not int.
90349
90350 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90351
90352         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90353
90354 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90355
90356         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90357         missing.  Problem reported by James Youngman.
90358
90359 2004-10-16  Simon Josefsson  <jas@extundo.com>
90360
90361         * gnulib-tool: Fix comments.  Fix parse problem.
90362         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90363
90364 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90365
90366         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90367         implementation of getopt_long.  Problem reported by Alexander Taler in:
90368         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90369
90370 2004-10-15  Bruno Haible  <bruno@clisp.org>
90371
90372         * gnulib-tool: Untabify. Initialize supplied_libname.
90373         (func_usage): More homogenous output.
90374         (func_modules_transitive_closure, func_modules_to_filelist,
90375         func_emit_lib_Makefile_am): New functions.
90376         (func_import): New function, extracted from big case statement. Use
90377         func_get_license, func_modules_transitive_closure,
90378         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90379         opt_lgpl. Don't use test -a, as it's not portable.
90380         (func_create_testdir): Use func_modules_transitive_closure,
90381         func_modules_to_filelist, func_emit_lib_Makefile_am.
90382
90383 2004-10-15  Bruno Haible  <bruno@clisp.org>
90384
90385         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90386
90387 2004-10-15  Bruno Haible  <bruno@clisp.org>
90388
90389         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90390         the portions belonging to each module.
90391         Suggested by Derek Robert Price <derek@ximbiot.com>.
90392
90393 2004-10-12  Simon Josefsson  <jas@extundo.com>
90394
90395         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90396         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90397         to real functions.
90398
90399 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90400
90401         * modules/vsnprintf: New file.
90402
90403 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90404
90405         * m4/vsnprintf.m4: New file.
90406
90407 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90408
90409         * lib/vsnprintf.h: New file.
90410         * lib/vsnprintf.c: New file.
90411
90412 2004-10-11  Bruno Haible  <bruno@clisp.org>
90413
90414         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90415         vsnprintf.
90416
90417 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90418
90419         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90420
90421 2004-10-07  Bruno Haible  <bruno@clisp.org>
90422
90423         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90424         fits into the provided buffer.
90425
90426 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90427
90428         * lib/diacrit.c, diacrit.h: Add GPL notice.
90429
90430         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90431         notice.
90432         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90433         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90434         This avoids a potential constant-folding bug.
90435
90436 2004-10-05  Bruno Haible  <bruno@clisp.org>
90437
90438         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90439         for the declaration of strsep.
90440
90441 2004-10-05  Bruno Haible  <bruno@clisp.org>
90442
90443         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90444
90445 2004-10-04  Simon Josefsson  <jas@extundo.com>
90446
90447         * modules/memmem: New file.
90448         * tests/test-memmem.c: New file.
90449         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90450
90451 2004-10-04  Simon Josefsson  <jas@extundo.com>
90452
90453         * m4/memmem.m4: New file.
90454
90455 2004-10-04  Simon Josefsson  <jas@extundo.com>
90456
90457         * lib/memmem.h: New file.
90458         * lib/memmem.c: New file, taken from glibc.
90459
90460 2004-10-04  Simon Josefsson  <jas@extundo.com>
90461
90462         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90463         '#ifdef USE_UNLOCKED_IO'.
90464
90465 2004-10-04  Simon Josefsson  <jas@extundo.com>
90466
90467         * config/srclist.txt: Add memmem from glibc.
90468
90469 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90470
90471         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90472
90473         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90474         modules/exclude, modules/getdate, modules/getline,
90475         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90476         modules/getusershell, modules/linebuffer, modules/md5,
90477         modules/mountlist, modules/posixtm, modules/readtokens,
90478         modules/readutmp, modules/regex, modules/sha1,
90479         modules/version-etc, modules/yesno:
90480         Remove dependency on unlocked-io.
90481
90482 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90483
90484         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90485
90486         * m4/unlocked-io.m4: Add copyright notice.
90487         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90488
90489 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90490
90491         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90492         * lib/xmalloc.c (xmemdup): Likewise.
90493         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90494         XFREE): Remove these long-obsolescent macros.
90495         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90496         * lib/xstrdup.c: Remove.
90497
90498         * lib/regex.c (re_comp): Cast gettext return value to char *,
90499         Problem reported by Martin Neitzel via Mark D. Baushke.
90500
90501 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90502
90503         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90504         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90505         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90506         regex.c, sha1.c, version-etc.c, yesno.c:
90507         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90508         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90509         the includer's responsibility.
90510
90511         Sync from coreutils.
90512
90513         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90514         points to the start of a string, as the C Standard says the
90515         resulting behavior is undefined.
90516
90517         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90518         simple -> simple_backups, numbered_existing ->
90519         numbered_existing_backups, numbered -> numbered_backups
90520         to avoid shadowing problems.  All uses changed.
90521         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90522         * lib/backupfile.c (check_extension, numbered_backup):
90523         Rename locals to avoid shadowing 'basename'.
90524         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90525         once.
90526
90527         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90528         * lib/.cvsignore: Add getopt.h.
90529
90530 2004-10-04  Bruno Haible  <bruno@clisp.org>
90531
90532         * modules/README: New file.
90533         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90534         not a module.
90535
90536 2004-10-02  Jim Meyering  <jim@meyering.net>
90537
90538         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90539
90540 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90541
90542         * modules/strsep: New file.
90543
90544 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90545
90546         * m4/strsep.m4: New file.
90547
90548 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90549
90550         * lib/strsep.h: New file.
90551         * lib/strsep.c: New file.
90552
90553 2004-10-01  Simon Josefsson  <jas@extundo.com>
90554
90555         * lib/snprintf.c (snprintf): Handle size==0.
90556
90557 2004-10-01  Simon Josefsson  <jas@extundo.com>
90558             Bruno Haible  <bruno@clisp.org>
90559
90560         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90561         (snprintf): Declare 'args'.
90562
90563 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90564
90565         * lib/snprintf.c: Remove comments as to why each header is needed.
90566
90567 2004-10-01  Bruno Haible  <bruno@clisp.org>
90568
90569         * MODULES.html.sh: Add strsep.
90570
90571 2004-09-30  Simon Josefsson  <jas@extundo.com>
90572
90573         * modules/snprintf: New file.
90574
90575 2004-09-30  Simon Josefsson  <jas@extundo.com>
90576
90577         * m4/snprintf.m4: New file.
90578
90579 2004-09-30  Simon Josefsson  <jas@extundo.com>
90580
90581         * lib/snprintf.h, lib/snprintf.c: New files.
90582
90583 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90584
90585         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90586         (hol_entry_help): Never translate an empty string.
90587         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90588         * lib/argp.h (OPTION_NO_TRANS): New option.
90589
90590 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90591
90592         * modules/argp (Maintainer): Replace Simon Josefsson
90593         by Sergey Poznyakoff.
90594
90595 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90596
90597         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90598         changes merged back into glibc.
90599
90600 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90601
90602         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90603
90604 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90605
90606         * lib/xvasprintf.c: Include xalloc.h.
90607         (xvasprintf): Use xalloc_die, not xmalloc_die.
90608
90609 2004-09-29  Bruno Haible  <bruno@clisp.org>
90610
90611         * modules/alloca-opt: New file, derived from modules/alloca.
90612         * modules/allocsa: Depend on alloca-opt instead of alloca.
90613         * modules/setenv: Likewise.
90614         * modules/vasnprintf: Likewise.
90615         * MODULES.html.sh: Add alloca-opt.
90616
90617 2004-09-28  Simon Josefsson  <jas@extundo.com>
90618
90619         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90620         LGPL, and to replace license template from GPL to LGPL.
90621
90622 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90623
90624         * modules/dummy: Change license to LGPL.
90625
90626 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90627
90628         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90629
90630 2004-09-24  Simon Josefsson  <jas@extundo.com>
90631
90632         * modules/minmax (License): Change from GPL to LGPL.
90633
90634 2004-09-23  Simon Josefsson  <jas@extundo.com>
90635
90636         * gnulib-tool (--import): Typo.
90637
90638 2004-09-23  Simon Josefsson  <jas@extundo.com>
90639
90640         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90641
90642 2004-09-22  Bruno Haible  <bruno@clisp.org>
90643
90644         * modules/*: Add 'License' field.
90645         * gnulib-tool: Accept --extract-license option.
90646         (func_get_license): New function.
90647
90648 2004-09-21  Bruno Haible  <bruno@clisp.org>
90649
90650         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90651         Reported by Simon Josefsson.
90652
90653 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90654
90655         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90656         gl_AC_TYPE_LONG_LONG.
90657
90658 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90659
90660         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90661
90662 2004-09-18  Simon Josefsson  <jas@extundo.com>
90663         and  Paul Eggert  <eggert@cs.ucla.edu>
90664
90665         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90666         calls with autoreconf.  Define GL_LIB.
90667
90668 2004-09-14  Karl Berry  <karl@gnu.org>
90669
90670         * config/srclist.txt: unsync setenv.c, sigh.
90671
90672 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90673
90674         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90675         Problem reported by Bruno Haible in:
90676         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90677
90678 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90679
90680         * config/srclist.txt: Comment out argp-pvh.c.
90681
90682 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90683
90684         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90685         in case some system header has #define'd it.  Problem reported by
90686         Soeren D. Schulze in
90687         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90688
90689 2004-09-09  Karl Berry  <karl@gnu.org>
90690
90691         * regex.[ch]: delete from the root.  These were supposed to be
90692                 synced with emacs cvs, but this has not happened for about
90693                 a year, and anyway nothing else uses emacs regex.[ch].
90694                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90695                 lib/regex[.ch] is untouched.
90696
90697 2004-09-09  Bruno Haible  <bruno@clisp.org>
90698
90699         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90700
90701 2004-09-09  Bruno Haible  <bruno@clisp.org>
90702
90703         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90704         modifications.
90705         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90706
90707 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90708
90709         * modules/xvasprintf: New file.
90710         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90711
90712 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90713
90714         * lib/xvasprintf.h: New file.
90715         * lib/xvasprintf.c: New file.
90716         * lib/xasprintf.c: New file.
90717
90718 2004-09-08  Bruno Haible  <bruno@clisp.org>
90719
90720         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90721
90722 2004-09-08  Bruno Haible  <bruno@clisp.org>
90723
90724         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90725         length is > INT_MAX.
90726         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90727         more.
90728
90729 2004-09-08  Bruno Haible  <bruno@clisp.org>
90730
90731         * lib/stdint_.h: New file, taken from GNU clisp.
90732
90733 2004-09-08  Bruno Haible  <bruno@clisp.org>
90734             Oskar Liljeblad  <oskar@osk.mine.nu>
90735
90736         * modules/stdint: New file.
90737         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90738
90739 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90740
90741         Import from coreutils.
90742         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90743         strings on unbounded length.  alloca's performance benefits aren't
90744         that important here.
90745         (V_STRDUP): Remove.
90746         (parse_with_separator): New function, with most of the internals
90747         of the old parse_user_spec.  Allow user to omit both user and group,
90748         for compatibility with FreeBSD.
90749         Clone only the user name, not the entire spec.
90750         Do not set *uid, *gid unless entirely successful.
90751         Avoid memory leak in some failing cases.
90752         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90753         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90754         (parse_user_spec): Rewrite to use parse_with_separator.
90755
90756 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90757
90758         * modules/userspec: Don't depend on alloca.
90759
90760 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90761
90762         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90763
90764 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90765
90766         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90767         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90768         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90769
90770 2004-08-16  Simon Josefsson  <jas@extundo.com>
90771
90772         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90773         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90774         Add --dry-run for --import.
90775         Let user provided command line parameters override configure.ac
90776         settings.
90777
90778 2004-08-12  Simon Josefsson  <jas@extundo.com>
90779
90780         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90781         as discussed with Paul Eggert in threads rooted at
90782         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90783         and
90784         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90785         Before, the test was empty, and relied on ELIDE_CODE in source
90786         code.)
90787         (gl_PREREQ_GETOPT): New macro.
90788         (gl_GETOPT): Use them.
90789
90790 2004-08-12  Simon Josefsson  <jas@extundo.com>
90791
90792         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90793         * lib/getopt_.h: Renamed from getopt.h.
90794
90795 2004-08-12  Simon Josefsson  <jas@extundo.com>
90796
90797         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90798         Change default library name from libfoo to libgnu.
90799         Now, if you have a configure.ac that says:
90800                 gl_SOURCE_BASE(gl)
90801                 gl_M4_BASE(gl/m4)
90802                 gl_MODULES(error getopt etcetera)
90803                 gl_INIT
90804         you can import all you need by running:
90805                 ../gnulib/gnulib-tool --import
90806
90807         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90808         (Makefile.am): Rewrite, use logic from argz.
90809         (Include): Use <getopt.h> instead of "getopt.h".
90810
90811 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90812
90813         * modules/argp (Files): Add m4/unlocked-io.m4.
90814         (Depends-on): Add extensions.
90815
90816 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90817
90818         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90819         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90820         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90821         Check for program_invocation_name, program_invocation_short_name,
90822         flockfile, funlockfile, features.h, _getopt_long_only_r.
90823
90824 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90825
90826         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90827         its complicated substitute.
90828         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90829         and program_invocation_name.
90830         (__argp_basename) [!_LIBC]: Remove; the only use was
90831         replaced by its body.
90832         (__argp_short_program_name): Change condition from
90833         !defined __argp_short_program_name to
90834         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90835         to match argp-namefrob.h.
90836         (__argp_failure): Don't assume strerror_r returns char *.
90837         * lib/argp-parse.c (N_): Define unconditionally.
90838         (argp_default_options): Fill out initializers with 0 to avoid
90839         gcc warnings.
90840
90841 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90842
90843         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90844         getopt1.c.
90845
90846 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90847
90848         Merge from coreutils.
90849
90850         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90851
90852         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90853         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90854
90855 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90856
90857         Merge from coreutils.
90858
90859         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90860         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90861         for Reliant Unix 5.43.
90862
90863         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90864         (union fooround): Use uintmax_t, not long int.
90865         The rest is a merge from libc:
90866         [defined _LIBC]: Include <shlib-compat.h>.
90867         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90868
90869         * lib/settime.c (settime): Recode to avoid warning with
90870         Sun Forte C 6U2.
90871
90872         * lib/strverscmp.c: Convert to UTF-8.
90873
90874 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90875
90876         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90877         m4/uintmax_t.m4.
90878
90879 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90880
90881         * modules/xalloc-die: New file.
90882         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90883
90884         * modules/md5 (Files): Add m4/uint32_t.m4.
90885         * modules/sha1: Renamed from modules/sha.
90886         (Files):
90887         Rename lib/sha.h to lib/sha1.h.
90888         Rename lib/sha.c to lib/sha1.c.
90889         Rename m4/sha.m4 to m4/sha1.m4.
90890         (lib_SOURCES): Likewise.
90891         (configure.ac): Rename gl_SHA to gl_SHA1.
90892         (Include): sha.h -> sha1.h.
90893
90894 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90895
90896         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90897         * m4/sha1.m4: Renamed from sha.m4.
90898         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90899
90900 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90901
90902         * lib/obstack.h (obstack_empty_p):
90903         Don't assume that chunk->contents is suitably aligned.
90904         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90905         Likewise. Problem reported by Benno in
90906         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90907
90908         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90909         readable.  This could be improved further but it'd take some work.
90910
90911 2004-08-08  Simon Josefsson  <jas@extundo.com>
90912
90913         * modules/xgethostname (Depends-on): Remove exit and error (not
90914         used).
90915
90916         * modules/getpass-gnu: Add getpass.h.
90917         (Depends-on): Add stdbool.
90918         * modules/getpass: Add getpass.h.
90919
90920 2004-08-08  Simon Josefsson  <jas@extundo.com>
90921
90922         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90923         Check getpass declaration.
90924
90925 2004-08-08  Simon Josefsson  <jas@extundo.com>
90926
90927         * lib/xgethostname.c: Don't include error.h (not used).
90928
90929         * lib/getpass.h: Add.
90930         * lib/getpass.c: Include getpass.h first.
90931
90932 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90933
90934         * lib/xalloc-die.c: New file.
90935         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90936         All uses removed.
90937         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90938         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90939         xalloc-die.c.
90940         (_, N_, xalloc_die): Move to xalloc-die.c.
90941         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90942         so that we needn't mess with xalloc_msg_memory_exhausted.
90943
90944         * lib/sha1.h: Renamed from sha.h.
90945         (SHA1_H): Renamed from _SHA_H.
90946         (sha1_ctx): Renamed from sha_ctx.
90947         (sha1_init_ctx): Renamed from sha_init_ctx.
90948         (sha1_process_block): Renamed from sha_process_block.
90949         (sha1_process_bytes): Renamed from sha_process_bytes.
90950         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90951         (sha1_read_ctx): Renamed from sha_read_ctx.
90952         (sha1_stream): Renamed from sha_stream.
90953         (sha1_buffer): Renamed from sha_buffer.
90954         * lib/sha1.c: Likewise; renamed from sha.c.
90955         Do not include <sys/types.h>.
90956         Include <stddef.h> rather than <stdlib.h>.
90957
90958 2004-08-08  Bruno Haible  <bruno@clisp.org>
90959
90960         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90961         FILESYSTEM_PREFIX_LEN.
90962         * lib/progreloc.c: Likewise.
90963         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90964
90965 2004-08-06  Simon Josefsson  <jas@extundo.com>
90966
90967         * modules/progname (Depends-on): Don't depend on stdbool.
90968
90969 2004-08-06  Simon Josefsson  <jas@extundo.com>
90970
90971         * modules/getsubopt: New file.
90972         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90973         getsubopt.
90974
90975 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90976
90977         More merge from coreutils.
90978
90979         * m4/utimens.m4, m4/utimecmp.m4: New files.
90980         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90981         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90982         prereq.m4, sha.m4: Import changes from coreutils.
90983
90984 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90985
90986         More merge from coreutils.
90987         * modules/raise, modules/readtokens0, modules/utimens:
90988         * modules/utimecmp, module/xnanosleep: New files.
90989         * modules/strftime: Add lib/strftime.h.
90990         Change include from <time.h> to "strftime.h".
90991         * modules/yesno: Add lib/yesno.h.
90992         * modules/backupfile: Remove lib/addext.c.
90993         * modules/euidaccess: Add stat-macros.h.
90994         * modules/canonicalize, modules/euidaccess,
90995         modules/filemode, modules/lchown, modules/makepath,
90996         modules/rmdir, modules/stat: Likewise.
90997
90998 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90999
91000         Merge from tar.
91001         * lib/argp-help.c (make_hol, hol_append): Don't assume that
91002         SIZE_MAX is a valid preprocessor constant.
91003         (__argp_basename): Change from "#ifndef _LIBC"
91004         to "#ifndef __argp_short_program_name", so that
91005         we don't compile these functions for tar.
91006
91007         More merges from coreutils.
91008         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
91009         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
91010         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
91011         * lib/addext.c: Remove; no longer needed.
91012         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
91013         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
91014         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
91015         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
91016         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
91017         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
91018         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
91019         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
91020         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
91021         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
91022         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
91023         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
91024         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
91025         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
91026         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
91027         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
91028         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
91029         Import changes from coreutils.
91030
91031 2004-08-05  Simon Josefsson  <jas@extundo.com>
91032
91033         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
91034
91035 2004-08-05  Simon Josefsson  <jas@extundo.com>
91036
91037         * m4/getsubopt.m4: New file.
91038
91039 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91040
91041         Merge from coreutils.
91042
91043         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
91044         * m4/getcwd-path-max.m4: New files.
91045
91046         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
91047         FILESYSTEM_PREFIX_LEN ->
91048         FILE_SYSTEM_PREFIX_LEN.
91049         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
91050         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
91051         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
91052         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
91053
91054         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
91055         prerequisite modules now handle the DOS stuff.
91056         Don't check for unistd.h.
91057
91058 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91059
91060         Merge from coreutils.
91061
91062         * lib/.gdb-history: Remove; this doesn't belong here.
91063
91064         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
91065         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
91066         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
91067         * lib/getcwd.c: New files.
91068
91069         * lib/dirname.h: Include <stdbool.h>.
91070         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
91071         for consistency with POSIX terminology.  All uses changed.
91072         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
91073         (strip_trailing_slashes): Use bool for booleans.
91074         * lib/stripslash.c (strip_trailing_slashes): Likewise.
91075
91076         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
91077         sometimes returns a positive errno value even when it succeeds.
91078         (print_errno_message) [!LIBC]: Fall back on strerror if
91079         __strerror_r fails.
91080
91081         * lib/path-concat.c (mempcpy): Don't define if a system header defines
91082         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
91083         (longest_relative_suffix): New function.
91084         (path_concat): Use it.  Assume first argument is not NULL.
91085         Port to DOS.  Omit redundant separators.
91086         Report an error instead of returning NULL.
91087         Use mempcpy instead of memcpy.
91088         (xpath_concat): Remove: not declared or used.
91089
91090         * lib/same.h: Include <stdbool.h>
91091         (same_name): Return bool, not int.
91092         * lib/same.c (same_name): Likewise.
91093         (errno): Don't declare; we assume C89 or better now.
91094
91095         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
91096         if not already defined.
91097
91098         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
91099         * lib/dup-safer.c (errno): Likewise.
91100
91101 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91102
91103         Merge from coreutils.
91104         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
91105         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
91106         * modules/path-concat: Don't depend on strdup.
91107
91108 2004-08-03  Simon Josefsson  <jas@extundo.com>
91109
91110         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
91111         * lib/progname.h: Don't include stdbool.h.
91112
91113 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91114
91115         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
91116         * MODULES.html.sh (func_all_modules): Remove fatal.
91117
91118 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91119
91120         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
91121
91122 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91123
91124         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
91125         working.
91126
91127 2004-08-02  Simon Josefsson  <jas@extundo.com>
91128
91129         * lib/getsubopt.h: New file, with comments from Bruno Haible.
91130         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
91131         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
91132
91133 2004-08-01  Simon Josefsson  <jas@extundo.com>
91134
91135         * lib/xgetdomainname.c: Include stdlib.h, for free().
91136
91137 2004-07-19  Bruno Haible  <bruno@clisp.org>
91138
91139         * MODULES.html.sh (func_all_modules): Add dummy.
91140
91141 2004-07-16  Simon Josefsson  <jas@extundo.com>
91142
91143         * modules/dummy: New file.
91144
91145 2004-07-16  Simon Josefsson  <jas@extundo.com>
91146
91147         * lib/dummy.c: New file.
91148
91149 2004-07-16  Bruno Haible  <bruno@clisp.org>
91150
91151         * lib/backupfile.h: Add extern "C" for C++.
91152         * lib/closeout.h: Likewise.
91153         * lib/copy-file.h: Likewise.
91154         * lib/findprog.h: Likewise.
91155         * lib/full-write.h: Likewise.
91156         * lib/pathname.h: Likewise.
91157         * lib/progname.h: Likewise.
91158         * lib/stpcpy.h: Likewise.
91159         * lib/stpncpy.h: Likewise.
91160         * lib/strcase.h: Likewise.
91161         * lib/strstr.h: Likewise.
91162         * lib/xalloc.h: Likewise.
91163
91164         * lib/mbswidth.h: Add extern "C" for C++.
91165         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
91166
91167 2004-07-13  Robert Millan  <robertmh@gnu.org>
91168
91169         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
91170
91171 2004-07-09  Simon Josefsson  <jas@extundo.com>
91172
91173         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
91174         failed without this.)
91175
91176 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91177
91178         * modules/chown (Files): Add lib/fchown-stub.c, since
91179         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
91180
91181 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91182
91183         * lib/fchown-stub.c: New file.
91184
91185 2004-06-24  Jim Meyering  <jim@meyering.net>
91186
91187         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
91188
91189 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91190
91191         * modules/argz: Omit "#include".
91192
91193         * MODULES.html.sh (func_all_modules): Add calloc, to match
91194         2004-06-01 addition of calloc module.
91195
91196 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91197
91198         * m4/argz.m4: New file, which is autoupdated from libtool.
91199
91200 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91201
91202         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
91203         libtool.
91204
91205 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91206
91207         * config/srclist-update: Don't insist on "USA." before the
91208         close-comment, as libtool omits the period and puts the */ on a
91209         separate line.
91210         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91211         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91212
91213 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91214
91215         * modules/argz: New file.
91216         * MODULES.html.sh (func_all_modules): Add argz.
91217
91218 2004-06-12  Jim Meyering  <jim@meyering.net>
91219         and  Paul Eggert  <eggert@cs.ucla.edu>
91220
91221         * modules/hash (Files): Add lib/xalloc.h.
91222         * modules/pipe (Depends-on): Add wait-process.
91223         * modules/stat (Depends-on): Add xalloc.
91224         * modules/userspec (Files): Add lib/userspec.h.
91225         * modules/xstrto
91226
91227         Upgrade from gettext-0.13.
91228         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91229         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91230         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91231
91232 2004-06-10  Jim Meyering  <jim@meyering.net>
91233
91234         * lib/calloc.c: New file.
91235
91236 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91237
91238         * lib/getdate.y (yylex): Allow space between sign and number.
91239         Problem reported by Dan Jacobson.
91240
91241 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91242
91243         Merge from coreutils CVS.
91244
91245         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91246         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91247         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91248         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91249         xstrtol.m4: Fix copyright date and/or serial number.
91250
91251         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91252         See if we need an fchown replacement.
91253         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91254         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91255         and use the replacement function if we detect either defect.
91256
91257         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91258         gl_UTIMECMP.
91259
91260 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91261         and  Jim Meyering  <jim@meyering.net>
91262
91263         Merge from coreutils CVS.
91264
91265         * lib/stat-macros.h: New file, with contents from file-type.h
91266         and coreutils' system.h.
91267         * lib/file-type.c: Include "stat-macros.h".
91268         * lib/file-type.h (file_type): Move all macro definitions to new file,
91269         stat-macros.h.
91270
91271         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91272         Wrap old code with this conditional.
91273         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91274         function that does not dereference symlinks.
91275         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91276
91277         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91278         dependency problems.
91279         (xreadlink): Accept new arg SIZE, for efficiency.
91280         All decls and uses changed.
91281         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91282
91283         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91284         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91285
91286         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91287         sysexits.h.
91288
91289 2004-06-01  Jim Meyering  <jim@meyering.net>
91290
91291         * m4/calloc.m4: New file.
91292
91293 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91294
91295         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91296         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91297         Also, fix a typo in a diagnostic.
91298
91299 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91300
91301         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91302         or AC_FUNC_REALLOC.
91303
91304 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91305
91306         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91307         macros to be defined.
91308         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91309         the allocator returns NULL because the requested size is zero.
91310
91311 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91312
91313         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91314         var.  Add comment explaining why libc still defines it.  This
91315         merges the following patch from glibc:
91316         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91317
91318 2004-05-20  Andreas Schwab  <schwab@suse.de>
91319
91320         * m4/free.m4: Replace free if it not known to work, not the other
91321         way round.
91322
91323 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91324
91325         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91326         present in glibc since revision 1.1 of this file.
91327         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91328         obstack_alignment_mask, obstack_alloc, obstack_base,
91329         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91330         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91331         obstack_grow0, obstack_init, obstack_int_grow,
91332         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91333         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91334         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91335         nonexistent functions.
91336
91337 2004-05-18  Karl Berry  <karl@gnu.org>
91338
91339         * config/srclist.txt: break link for vasnprintf.c.
91340
91341 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91342
91343         Port obstack to the AS/400, where pointers are 16 bytes wide and
91344         you cannot cast an integer to a valid pointer.  This patch is
91345         currently waiting to be integrated into glibc; see
91346         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91347
91348         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91349         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91350         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91351         (struct obstack): temp member is now a union of a pointer and
91352         an integer, instead of an integer.  All integer uses changed.
91353         This does not affect the physical layout of struct obstack,
91354         except on hosts (like the AS/400) where the size or alignment of
91355         void * is greater than that of ptrdiff_t.
91356         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91357         __STDC__)]: Store temporary in pointer member of union, not
91358         integer member.
91359         * lib/obstack.c: Include <stddef.h>, for offsetof.
91360         (struct fooalign): Remove; it doesn't need a name.
91361         (union fooround): Change double to long double, and add void *.
91362         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91363         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91364         not a macro.  Hence the values are always int; so remove all
91365         casts-to-int in uses.
91366
91367 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91368
91369         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91370         we can get this patch merged into glibc.
91371
91372 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91373             Paul Eggert  <eggert@cs.ucla.edu>
91374
91375         * m4/argp: Depend on alloca.
91376
91377 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91378             Paul Eggert  <eggert@cs.ucla.edu>
91379
91380         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91381         freecoding.
91382
91383 2004-05-17  Bruno Haible  <bruno@clisp.org>
91384
91385         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91386         precision that consists of a '.' followed by an empty digit string.
91387         Patch by Tor Lillqvist <tml@iki.fi>.
91388
91389 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91390
91391         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91392         for backward compatibility with older code.  We need our own
91393         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91394         it under some other name, and our alloca.h will define it.
91395
91396 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91397             Derek Price  <derek@ximbiot.com>
91398
91399         * lib/alloca.c: Include <alloca.h>, to get our interface.
91400         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91401         include <alloca.h> first.  Use C89 prototype for alloca; this
91402         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91403         Use #elif for simplicity, since we can assume C89 now.
91404         Don't try to source the system alloca.h since it will not be found
91405         and to prevent recursively including its replacement.
91406         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91407         * lib/regex.c: Likewise.
91408
91409 2004-05-16  Derek Price  <derek@ximbiot.com>
91410             Paul Eggert  <eggert@cs.ucla.edu>
91411
91412         getline cleanup.  This changes the getndelim2 API: both order of
91413         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91414         no delimiter).
91415
91416         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91417         interface does that.
91418         (getline): Always use getdelim, so that we don't have two
91419         copies of this code.
91420         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91421         if available.
91422         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91423         (GETNDELIM2_MAXIMUM): New macro.
91424         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91425         instead of the old practice of delim2==0.  All callers changed.
91426         Return -1 on overflow, instead of returning junk.
91427         Do not set *linesize unless allocation succeeds.
91428         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91429         that we include sys/types.h.
91430         * lib/getnline.h: Likewise.
91431         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91432         (getndelim2): Reorder arguments.
91433         * lib/getnline.c (getnline, getndelim):
91434         Don't discard the NMAX argument.
91435         (getnline): Invoke getndelim, to avoid code duplication.
91436         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91437         of (size_t) -1 by callers of the getnline family.
91438
91439 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91440
91441         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91442         Check for gettimeofday.
91443         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91444         Check for settimeofday, stime.
91445
91446 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91447
91448         * lib/nanosleep.c (suspended): Change its type from int to
91449         sig_atomic_t volatile.
91450         (first_call): Make it private to rpl_nanosleep, and have it
91451         be zero initially as that's a bit faster.
91452         (my_usleep): Round up fractional times instead of truncating them,
91453         as this is the usual meaning for 'sleep'.
91454
91455         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91456         doesn't work.
91457         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91458         (ENOSYS): Define if not defined.
91459         (settime): Fall back on stime if it exists and settimeofday fails.
91460         But don't bother with fallbacks if a method fails with errno == EPERM.
91461
91462 2004-05-11  Jim Meyering  <jim@meyering.net>
91463
91464         Prior to this change, the save_cwd caller required read access to the
91465         current directory on most systems (ones with the fchdir function).
91466
91467         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91468         fails, try write-only, and finally, resort to using xgetcwd.
91469
91470 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91471
91472         * lib/obstack.c, obstack.h: Import changes from libc.
91473
91474 2004-04-28  Bruno Haible  <bruno@clisp.org>
91475
91476         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91477         also implicitly appends .exe to executables.
91478         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91479         accepts Windows pathnames.
91480         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91481         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91482         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91483         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91484         Reported by Derek Robert Price <derek@ximbiot.com>.
91485
91486 2004-04-21  Karl Berry  <karl@gnu.org>
91487
91488         * config/srclist.txt (localcharset.c): break sync.
91489
91490 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91491
91492         * m4/host-os.m4: Add a copyright notice.
91493
91494 2004-04-20  Jim Meyering  <jim@meyering.net>
91495
91496         Change UTILS_ to gl_ in AC_DEFINE'd names.
91497         Change utils_- and jm_-prefixed variables, too.
91498         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91499         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91500         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91501
91502         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91503         Don't emit trailing blanks.
91504         Also rename jm_-prefixed variables to have gl_ prefix.
91505
91506         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91507         Also rename jm_-prefixed variables to have gl_ prefix.
91508
91509         * m4/jm-macros.m4: Reflect the renamings.
91510         * m4/prereq.m4: Likewise.
91511
91512 2004-04-20  Jim Meyering  <jim@meyering.net>
91513
91514         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91515         memory.
91516
91517 2004-04-20  Jim Meyering  <jim@meyering.net>
91518             Bruno Haible  <bruno@clisp.org>
91519
91520         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91521         memory when realloc fails.
91522
91523 2004-04-19  Jim Meyering  <jim@meyering.net>
91524
91525         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91526         now that readutmp.c may call `free (0)'.
91527
91528 2004-04-19  Bruno Haible  <bruno@clisp.org>
91529
91530         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91531         * m4/inttypes_h.m4: Likewise.
91532         * m4/stdint_h.m4: Likewise.
91533         * m4/intmax_t.m4: Likewise.
91534         * m4/uintmax_t.m4: Likewise.
91535
91536 2004-04-18  Jim Meyering  <jim@meyering.net>
91537
91538         * m4/prereq.m4: Don't forbid jm_ prefix.
91539
91540         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91541         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91542         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91543         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91544         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91545         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91546         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91547         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91548         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91549         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91550         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91551         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91552         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91553         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91554         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91555         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91556         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91557         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91558         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91559
91560 2004-04-18  Jim Meyering  <jim@meyering.net>
91561
91562         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91563         failure, don't leak memory and do call END_UTMP_ENT.
91564
91565 2004-04-16  Jim Meyering  <jim@meyering.net>
91566
91567         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91568         coreutils' stat program.
91569         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91570
91571 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91572
91573         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91574         C89.
91575         (CHAR_BIT): Remove, since we assume C89.
91576         Include <stdint.h> if available, as per current Autoconf CVS advice.
91577
91578 2004-03-31  Jim Meyering  <jim@meyering.net>
91579
91580         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91581         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91582         * m4/xalloc.m4: Likewise.
91583
91584 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91585
91586         Merge from coreutils.
91587
91588         * m4/inttostr.m4: New file.
91589         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91590         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91591         Require gl_CLOCK_TIME.
91592         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91593
91594 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91595
91596         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91597         not bool, to be more consistent with Unix conventions.
91598         Suggested by Bruno Haible.
91599
91600         Merge from coreutils.
91601
91602         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91603         * lib/umaxtostr.c: New files.
91604
91605         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91606         the usual <time.h> dance.
91607         (get_date): Change signature to support fractional time stamps.
91608         All callers changed.
91609         * lib/getdate.y: Include "getdate.h" first, as we can now
91610         assume C89 and don't need to worry about 'const'.
91611         Similarly, include "unlocked-io.h" near start, not in middle.
91612         Include <limits.h>.
91613         (textint.value): Use long int rather than int.
91614         (textint.digits): Use size_t rather than int.
91615         (BILLION, LOG10_BILLION): New constants.
91616         (parser_control): New member rel_ns.  Members day_ordinal,
91617         time_zone, month, day, hour, minutes, rel_year, rel_month,
91618         rel_day, rel_hour, rel_minutes, rel_seconds
91619         are now long int, not int.  Member seconds is now struct timespec,
91620         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91621         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91622         not int.
91623         (%union.intval): Now long int, not int.
91624         New member timespec.
91625         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91626         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91627         (spec): Now is a timespec or an item list.
91628         (timespec, items): New nonterminals.
91629         (time, rel, relunit, number, get_date):
91630         Add support for fractional seconds.
91631         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91632         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91633         (to_hour): First arg is now long int, not int.
91634         (to_year): Returns long int, not int.
91635         Don't treat year -70 like 70.
91636         (tm_diff): Returns long int, not int.
91637         (lookup_word): Use bool instead of int when appropriate.
91638         (yylex): Use size_t for count, not int.
91639         Detect overflow when parsing large integer constants.
91640         Add support for fractions.
91641         (get_date): Make pointers 'const' if possible.
91642         Use more-portable code to detect integer overflow.
91643         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91644         Don't use ctime; it's not reliable if the year has >4 digits.
91645
91646         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91647         This is for compatibility with BSD.
91648
91649         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91650         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91651         From coreutils' system.h.
91652
91653         * lib/userspec.c: Don't include "posixver.h".
91654         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91655         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91656         compatible extension.  Simplify code by removing a boolean int
91657         that was always nonzero if a string was nonnull.
91658
91659 2004-03-30  Jim Meyering  <jim@meyering.net>
91660
91661         Merge from coreutils.
91662
91663         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91664         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91665         on some systems one must include <grp.h> before it.
91666         Reported by Christian Krackowizer.
91667
91668 2004-03-30  Jim Meyering  <jim@meyering.net>
91669
91670         Merge from coreutils.
91671
91672         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91673
91674         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91675         an empty input stream.
91676
91677         * lib/readtokens.c: Include <stdbool.h>.
91678         (readtoken): Use `size_t' rather than int/long.
91679         All callers adjusted.
91680         Use `bool' rather than `int' where appropriate.
91681         Use memset rather than an explicit loop.
91682         Use x2nrealloc rather than xrealloc.
91683         Allow the use of `\0' as a delimiter.
91684         (readtokens): Likewise.
91685         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91686
91687 2004-03-30  Jim Meyering  <jim@meyering.net>
91688
91689         * m4/realloc.m4: Remove file, since now it does no more than
91690         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91691         the `configure.ac' section of module/realloc.
91692         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91693
91694 2004-03-30  Bruno Haible  <bruno@clisp.org>
91695
91696         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91697         nonnull.
91698
91699 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91700
91701         Merge changes to getloadavg.c from coreutils and Emacs.
91702
91703         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91704         Define to an expression, not to the empty string.
91705         Include cloexec.h and xalloc.h.
91706         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91707         Use set_cloexec_flag rather than rolling our own.
91708         * lib/cloexec.c, lib/cloexec.h: New files.
91709
91710 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91711
91712         * m4/cloexec.m4: New file.
91713
91714 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91715
91716         * lib/getopt.h: Sync with libc CVS.
91717
91718 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91719             Bruno Haible  <bruno@clisp.org>
91720
91721         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91722         mbswidth.
91723
91724 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91725             Bruno Haible  <bruno@clisp.org>
91726
91727         * lib/mbswidth.h: Include <wchar.h> only if
91728         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91729         <wchar.h>.
91730         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91731
91732 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91733
91734         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91735         Sync with libc CVS.
91736         * lib/getopt_int.h: New file, also synced from libc.
91737
91738 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91739
91740         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91741         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91742         Bring back getopt.c, getopt.h, getopt1.c.
91743
91744 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91745
91746         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91747         All uses changed.  Check for sa_sigaction member; this fixes
91748         a bug first reported by Jason Andrade in
91749         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91750
91751 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91752
91753         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91754         '#if' expressions.  Unlike the code it replaces, it does not
91755         depend on (defined _SC_PAGESIZE).  However, it does depend on
91756         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91757         first reported by Jason Andrade in
91758         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91759
91760 2004-02-25  Simon Josefsson  <jas@extundo.com>
91761
91762         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91763
91764 2004-02-25  Simon Josefsson  <jas@extundo.com>
91765
91766         * lib/strdup.h: New file.
91767         * lib/strdup.c: Include it.
91768         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91769         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91770
91771 2004-02-23  Karl Berry  <karl@gnu.org>
91772
91773         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91774         (from fencepost.gnu.org:/gd/gnuorg).
91775
91776 2004-02-23  Karl Berry  <karl@gnu.org>
91777
91778         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91779         * config/srclist.txt: add maintain/standards documents.
91780
91781 2004-02-18  Bruno Haible  <bruno@clisp.org>
91782
91783         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91784         Reported by Derek Robert Price <derek@ximbiot.com>.
91785
91786 2004-02-16  Karl Berry  <karl@gnu.org>
91787
91788         * config/mkinstalldirs, install-sh: update from automake.
91789
91790 2004-02-06  Karl Berry  <karl@gnu.org>
91791
91792         * m4/po.m4: update from gettext 0.14.1.
91793
91794 2004-02-06  Karl Berry  <karl@gnu.org>
91795
91796         * lib/config.charset: update from gettext 0.14.1.
91797
91798 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91799
91800         Add comments and code, prompted by suggestions from Bruno Haible
91801         for sh-quote.
91802         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91803         describing the enum quoting_style values.
91804         * lib/quotearg.c (quotearg_alloc): New function.
91805         (quotearg_buffer_restyled): Treat lone { and } as special.
91806         Treat = as special.  Work around bug with older shells
91807         that "see" a '\' that is really the 2nd byte of a multibyte char.
91808         Quote empty string with shell_quoting_style.
91809
91810 2004-02-03  Bruno Haible  <bruno@clisp.org>
91811
91812         * m4/pipe.m4: New file, from GNU gettext.
91813
91814 2004-02-03  Bruno Haible  <bruno@clisp.org>
91815
91816         * lib/pipe.h: New file, from GNU gettext.
91817         * lib/pipe.c: New file, from GNU gettext.
91818
91819 2004-01-27  Bruno Haible  <bruno@clisp.org>
91820
91821         * m4/execute.m4: New file, from GNU gettext.
91822
91823 2004-01-27  Bruno Haible  <bruno@clisp.org>
91824
91825         * lib/execute.h: New file, from GNU gettext.
91826         * lib/execute.c: New file, from GNU gettext.
91827         * lib/w32spawn.h: New file, from GNU gettext.
91828
91829 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91830
91831         Merge from diffutils.
91832
91833         * lib/file-type.c (file_type): Add typed memory objects.
91834         * lib/file-type.h (S_TYPEISTMO): New macro.
91835
91836         * lib/c-stack.h (c_stack_action): Remove argv argument.
91837         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91838         (die): Don't calculate message unless segv_action returns.
91839         (get_stack_location, min_address_from_argv, max_address_from_argv,
91840         volatile stack_base, volatile_stack_size): Remove.
91841         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91842         that every segmentation violation is a stack overflow.  (Ouch!)
91843         See Debian bug 136249 (still outstanding) for more info about why
91844         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91845
91846 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91847
91848         Exit-status fix from coreutils.
91849
91850         Use exit_failure consistently in place of EXIT_FAILURE,
91851         so that program exit statuses are consistent on failure.
91852
91853         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91854         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91855         * lib/argmatch.h: Comment fix to match the above.
91856         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91857         Now a macro referring to exit_failure, instead of a separate
91858         variable.  Include "exitfail.h" to get it.
91859         * lib/xstrtol.h: Include "exitfail.h".
91860         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91861
91862         * lib/long-options.c (parse_long_options): Use prototype
91863         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91864         for clarity.
91865
91866 2004-01-21  Jim Meyering  <jim@meyering.net>
91867
91868         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91869         so as not to conflict with a different-sized __mktime_internal
91870         function in GNU libc.
91871         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91872         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91873
91874 2004-01-20  Karl Berry  <karl@gnu.org>
91875
91876         * config/config.guess: update from config.
91877
91878         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91879
91880 2004-01-20  Bruno Haible  <bruno@clisp.org>
91881
91882         Safer stack allocation.
91883         * lib/setenv.c: Include allocsa.h.
91884         (alloca): Remove fallback definition.
91885         (freea): Remove macro.
91886         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91887         instead of freea.
91888
91889 2004-01-20  Bruno Haible  <bruno@clisp.org>
91890
91891         * m4/eealloc.m4: New file, from GNU gettext.
91892
91893 2004-01-20  Bruno Haible  <bruno@clisp.org>
91894
91895         * m4/allocsa.m4: New file, from GNU gettext.
91896
91897 2004-01-20  Bruno Haible  <bruno@clisp.org>
91898
91899         * lib/xallocsa.h: New file, from GNU gettext.
91900         * lib/xallocsa.c: New file, from GNU gettext.
91901
91902 2004-01-20  Bruno Haible  <bruno@clisp.org>
91903
91904         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91905
91906 2004-01-20  Bruno Haible  <bruno@clisp.org>
91907
91908         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91909         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91910         specially.
91911
91912 2004-01-20  Bruno Haible  <bruno@clisp.org>
91913
91914         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91915         patch.
91916
91917 2004-01-20  Bruno Haible  <bruno@clisp.org>
91918
91919         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91920
91921 2004-01-20  Bruno Haible  <bruno@clisp.org>
91922
91923         * lib/eealloc.h: New file.
91924
91925 2004-01-20  Bruno Haible  <bruno@clisp.org>
91926
91927         * lib/binary-io.h: Avoid warnings on Cygwin.
91928
91929 2004-01-20  Bruno Haible  <bruno@clisp.org>
91930
91931         * lib/allocsa.h: New file, from GNU gettext.
91932         * lib/allocsa.c: New file, from GNU gettext.
91933
91934 2004-01-18  Karl Berry  <karl@gnu.org>
91935
91936         * doc/gpl.texi, doc/lgpl.texi: new files.
91937
91938 2004-01-18  Karl Berry  <karl@gnu.org>
91939
91940         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91941         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91942
91943 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91944
91945         Merge from coreutils.
91946
91947         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91948         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91949         (gl_DEFAULT_POSIX2_VERSION): Move
91950         the documentation from 'configure' into 'config.hin',
91951         so that 'configure --help' isn't burdened by it and
91952         we don't have to worry about its formatting there.
91953         Reword the documentation so that it's more succinct
91954         and can be run together into a single paragraph.
91955         * m4/same.m4 (gl_SAME): Check for pathconf.
91956
91957 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91958
91959         Merge from coreutils.
91960
91961         * lib/posixver.c: Include posixver.h.
91962
91963         * lib/same.c: Include <stdbool.h>, <limits.h>.
91964         (_POSIX_NAME_MAX): Define if not defined.
91965         (MIN): New macro.
91966         (same_name): If file names are silently truncated, report
91967         that the file names are the same if they are the same after
91968         the silent truncation.
91969
91970         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91971         conversion function.
91972         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91973         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91974         longer needed.
91975
91976 2004-01-15  Jim Meyering  <jim@meyering.net>
91977
91978         Merge from coreutils.
91979
91980         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91981         if no library is required.
91982         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91983         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91984         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91985         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91986         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91987         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91988         value, $ac_cv_search_crypt, if it's "none required".
91989         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91990         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91991         not gl_FUNC_GETLOADAVG.
91992         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91993         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91994
91995 2004-01-15  Jim Meyering  <jim@meyering.net>
91996
91997         Merge from coreutils.
91998
91999         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
92000         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
92001         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
92002
92003         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
92004         optional configure-time default.
92005
92006         * lib/version-etc.c (version_etc_copyright): Update copyright date.
92007
92008         * lib/xreadlink.c (xreadlink): Correct outdated comment.
92009
92010 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
92011
92012         Merge from coreutils.
92013
92014         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
92015         value, $ac_cv_search_nanosleep, if it's "none required".
92016
92017 2004-01-14  Paul Eggert  <eggert@twinsun.com>
92018
92019         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
92020         with like-named macro in fnmatch.c.
92021         (EXT): Use an internal constant instead.
92022
92023         Merge fnmatch patches from glibc.
92024         * lib/fnmatch.c (mbsinit): Remove define.
92025         Add libc_hidden_ver (__fnmatch, fnmatch).
92026         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
92027         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
92028
92029 2004-01-14  Karl Berry  <karl@gnu.org>
92030
92031         * config/install-sh: update from automake.
92032
92033 2004-01-13  Karl Berry  <karl@gnu.org>
92034
92035         * config/install-sh: update from automake.
92036
92037 2004-01-09  Karl Berry  <karl@gnu.org>
92038
92039         * config/install-sh: update from automake.
92040
92041 2004-01-05  Karl Berry  <karl@gnu.org>
92042
92043         * config/config.{sub,guess}: update from config.
92044
92045 2003-12-31  Karl Berry  <karl@gnu.org>
92046
92047         * config/depcomp: update from automake.
92048
92049 2003-12-14  Karl Berry  <karl@gnu.org>
92050
92051         * lib/config.charset: update from gettext-runtime.
92052
92053 2003-12-03  Paul Eggert  <eggert@twinsun.com>
92054
92055         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
92056         Bug reported by Alfred M. Szmidt.
92057
92058 2003-12-03  Bruno Haible  <bruno@clisp.org>
92059
92060         * m4/gettext.m4: Upgrade from gettext-0.13.
92061         * m4/po.m4: Upgrade from gettext-0.13.
92062         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
92063         * m4/intmax.m4: New file, from gettext-0.13.
92064         * m4/printf-posix.m4: New file, from gettext-0.13.
92065
92066 2003-11-29  Karl Berry  <karl@gnu.org>
92067
92068         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
92069
92070 2003-11-25  Paul Eggert  <eggert@twinsun.com>
92071             Bruno Haible  <bruno@clisp.org>
92072
92073         * lib/printf-parse.h: Don't include sys/types.h.
92074         (ARG_NONE): New macro.
92075         (char_directive): Change type of *arg_index fields to size_t.
92076         * lib/printf-parse.c: Don't include sys/types.h.
92077         (SSIZE_MAX): Remove macro.
92078         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
92079         Remove unnecessary overflow check.
92080         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
92081         fields.
92082
92083 2003-11-25  Bruno Haible  <bruno@clisp.org>
92084
92085         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
92086
92087 2003-11-25  Bruno Haible  <bruno@clisp.org>
92088
92089         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
92090         gt_TYPE_SSIZE_T.
92091
92092 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92093
92094         * modules/alloca: Remove dependency on xalloc.
92095
92096 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92097
92098         * lib/alloca.c: Remove dependency on xalloc module.
92099         (xalloc_die): Remove.
92100         (memory_full) [!defined emacs]: New macro.
92101         [!defined emacs]: Don't include xalloc.h.
92102         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
92103         address arithmetic overflows.  Change datatypes a bit to avoid
92104         unnecessary casts.
92105
92106 2003-11-22  Jim Meyering  <jim@meyering.net>
92107
92108         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
92109         s/size/size_t/.
92110
92111 2003-11-21  Karl Berry  <karl@gnu.org>
92112
92113         * config/config.{sub,guess}: update from config.
92114
92115 2003-11-18  Karl Berry  <karl@gnu.org>
92116
92117         * config/config.{sub,guess}: update from config.
92118
92119         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
92120
92121 2003-11-17  Paul Eggert  <eggert@twinsun.com>
92122
92123         * README: Mention that S+T cannot overflow if S is the size of
92124         an existing object and T is sufficiently small.
92125
92126 2003-11-17  Jim Meyering  <jim@meyering.net>
92127
92128         On systems without utime and without a utimes function capable of
92129         dealing with a NULL struct utimbuf* argument, this utime replacement
92130         could -- in unusual circumstances -- leak a file descriptor.
92131         * lib/utime.c: Include <unistd.h> and <errno.h>.
92132         (utime_null): Be sure to close `fd' and to preserve errno.
92133         Reported by Geoff Collyer via Arnold Robbins.
92134
92135 2003-11-17  Bruno Haible  <bruno@clisp.org>
92136
92137         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
92138         (Depends-on): Add xsize.
92139
92140 2003-11-17  Bruno Haible  <bruno@clisp.org>
92141
92142         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
92143
92144 2003-11-17  Bruno Haible  <bruno@clisp.org>
92145
92146         * lib/vasnprintf.c (alloca): Remove fallback definition.
92147         (freea): Remove definition.
92148         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
92149         Reported by Paul Eggert.
92150
92151 2003-11-16  Paul Eggert  <eggert@twinsun.com>
92152             Bruno Haible  <bruno@clisp.org>
92153
92154         Protect against address arithmetic overflow.
92155         * lib/printf-args.h: Include stddef.h.
92156         (arguments): Change type of field 'count' to size_t.
92157         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
92158         'unsigned int' where appropriate.
92159         * lib/printf-parse.h: Include sys/types.h.
92160         (char_directive): Change type of *arg_index fields to ssize_t.
92161         (char_directives): Change type of fields 'count', max_*_length to
92162         size_t.
92163         * lib/printf-parse.c: Include sys/types.h and xsize.h.
92164         (SSIZE_MAX): Define fallback value.
92165         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
92166         instead of 'int' where appropriate. Check a_allocated, d_allocated
92167         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
92168         * lib/vasnprintf.c: Include xsize.h.
92169         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
92170         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
92171         overflow. Avoid wraparound when converting a width or precision from
92172         decimal to binary.
92173
92174 2003-11-16  Bruno Haible  <bruno@clisp.org>
92175
92176         Update from GNU gettext.
92177         * lib/printf-parse.c: Generalize to it can be compiled for wide
92178         strings.
92179         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
92180         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
92181         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
92182         SNPRINTF): New macros.
92183         Don't include <alloca.h> if the file is used inside libintl.
92184         (local_wcslen): New function, for Solaris 2.5.1.
92185         (VASNPRINTF): Use it instead of wcslen.
92186
92187 2003-11-16  Bruno Haible  <bruno@clisp.org>
92188
92189         * lib/xsize.h (xmax): New function.
92190         (xsum, xsum3, xsum4): Declare as "pure" functions.
92191
92192 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92193
92194         * modules/xalloc (Files): Undo latest change, since xalloc.h
92195         no longer needs SIZE_MAX or PTRDIFF_MAX.
92196
92197 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92198
92199         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
92200         gl_PTRDIFF_MAX.
92201
92202 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92203
92204         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92205         "return", to pacify some unknown compiler.  Problem reported
92206         by Joerg Schilling.
92207
92208 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92209
92210         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92211         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92212         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92213         heuristic is just as accurate as far as we know, and it removes a
92214         dependency on size_max.m4 and ptrdiff_max.m4.
92215
92216 2003-11-11  Bruno Haible  <bruno@clisp.org>
92217
92218         * modules/xsize (Files): Add m4/size_max.m4.
92219         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92220
92221 2003-11-11  Bruno Haible  <bruno@clisp.org>
92222
92223         * m4/size_max.m4: New file.
92224         * m4/ptrdiff_max.m4: New file.
92225         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92226         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92227         (gl_XALLOC): Invoke it.
92228
92229 2003-11-11  Bruno Haible  <bruno@clisp.org>
92230
92231         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92232         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92233         defined.
92234
92235 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92236
92237         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92238         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92239         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92240         From Bruno Haible.
92241         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92242         not (size_t) -1, since it's defined here.
92243
92244 2003-11-09  Karl Berry  <karl@gnu.org>
92245
92246         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92247
92248 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92249
92250         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92251         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92252         Reject sizes of exactly SIZE_MAX bytes.
92253         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92254         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92255
92256 2003-11-05  Bruno Haible  <bruno@clisp.org>
92257
92258         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92259         SIZE_MAX defined in <limits.h> on Solaris.
92260
92261 2003-11-04  Jim Meyering  <jim@meyering.net>
92262
92263         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92264         variable names, rather than @VAR@.
92265         * modules/poll: Likewise.
92266
92267 2003-11-04  Bruno Haible  <bruno@clisp.org>
92268
92269         * modules/xsize: New file.
92270         * modules/linebreak: Depend on xsize.
92271         * MODULES.html.sh (func_all_modules): Add xsize.
92272
92273 2003-11-04  Bruno Haible  <bruno@clisp.org>
92274
92275         * m4/xsize.m4: New file.
92276
92277 2003-11-04  Bruno Haible  <bruno@clisp.org>
92278
92279         * lib/xsize.h: New file.
92280         * lib/linebreak.c: Include xsize.h.
92281         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92282         argument for overflow.
92283         Suggested by Paul Eggert.
92284
92285 2003-11-03  Karl Berry  <karl@gnu.org>
92286
92287         * config/config.{guess,sub}: update from config.
92288
92289 2003-11-03  Jim Meyering  <jim@meyering.net>
92290
92291         * modules/userspec (lib_SOURCES): Add userspec.h.
92292         (Include): Add "userspec.h".
92293         Improve description.
92294
92295 2003-11-03  Jim Meyering  <jim@meyering.net>
92296
92297         * lib/userspec.c: Include "userspec.h".
92298         * lib/userspec.h: New file.
92299
92300 2003-11-03  Bruno Haible  <bruno@clisp.org>
92301
92302         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92303
92304 2003-11-03  Bruno Haible  <bruno@clisp.org>
92305
92306         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92307         available, to avoid (extremely rare) race condition.
92308         Suggested by Paul Eggert.
92309
92310 2003-11-02  Karl Berry  <karl@gnu.org>
92311
92312         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92313
92314 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92315
92316         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92317         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92318         (read_filesystem_list): Set and use me_type_malloced.
92319         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92320         whatever the type happens to be), for brevity and consistency.
92321         Check for size calculation overflow on Alphas running OSF/1.
92322
92323 2003-10-31  Jim Meyering  <jim@meyering.net>
92324
92325         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92326
92327         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92328
92329 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92330             Bruno Haible  <bruno@clisp.org>
92331
92332         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92333         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92334
92335 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92336
92337         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92338         netbsd*-gnu*.  Suggested by Robert Millan.
92339
92340 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92341
92342         * modules/group-member: Depend on stdbool.
92343
92344 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92345
92346         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92347
92348 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92349
92350         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92351         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92352         after the 'gnu' in these cases.  This fixes some bugs in the
92353         previous change, and is based on suggestions by Robert Millan.
92354
92355 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92356
92357         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92358         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92359         no longer needed.
92360         * lib/quotearg.c (quotearg_n_options): Use it.
92361         * lib/group-member.c: Include <stdbool.h>.
92362         (free_group_info): Arg is now const *; don't free arg.
92363         (get_group_info): Now returns bool and accepts struct group_info *,
92364         rather than returning a malloc'ed struct group_info *.
92365         All uses changed.  Check for overflow in internal size calculation.
92366
92367         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92368         rather than xmalloc/xrealloc.
92369         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92370         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92371         conformance bug: the old code used a pointer after freeing the
92372         storage that it addressed.
92373         * lib/hash.c (hash_initialize): Simplify the code by using
92374         xalloc_oversized rather than doing it by hand.
92375         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92376         the buffer preserved.  Use free and xmalloc instead.
92377         * lib/quotearg.c (quotearg_n_options): Likewise.
92378         Use a simpler test for size overflow.  Don't use xalloc_oversized
92379         because unsigned int might be wider than size_t (!); this suggests
92380         that we should switch from unsigned int to size_t for slot numbers.
92381
92382 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92383
92384         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92385         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92386         NetBSD kernels.  Requested by Richard Stallman.
92387
92388 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92389
92390         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92391         to allocate the returned structure.  Do not allocate a subarray,
92392         as x2nrealloc will do that.
92393         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92394         instead of xnrealloc.
92395         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92396
92397 2003-10-27  Bruno Haible  <bruno@clisp.org>
92398
92399         * lib/stdbool_.h: Better support for BeOS.
92400
92401 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92402
92403         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92404         now uses inline.
92405
92406 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92407
92408         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92409         callers that want to do their own size-overflow checking.  Include
92410         <stdbool.h>, since xalloc_oversized returns bool.
92411         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92412         to use xalloc_oversized.
92413
92414         Add two functions x2realloc, x2nrealloc, for programs that grow
92415         arrays dynamically by doubling their sizes.
92416         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92417         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92418         New functions.
92419
92420         Port to C99 semantics for 'inline' of external functions.
92421         Bug reported by Bruno Haible.
92422         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92423         with the old contents of xnmalloc.
92424         (xnmalloc, xmalloc): Use it.
92425         (xnrealloc_inline): New static inline function,
92426         with the old contents of xnrealloc.
92427         (xnrealloc, xrealloc): Use it.
92428
92429         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92430         that.
92431
92432 2003-10-26  Karl Berry  <karl@gnu.org>
92433
92434         * config/srclist.txt (COPYING.DOC): no longer available from
92435         /gd/gnuorg; don't know where the ultimate source is.
92436
92437 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92438
92439         Fix several address-calculation bugs in the hash modules,
92440         plus some minor code cleanup.
92441
92442         * lib/hash.h: Include <stdbool.h>, for bool.
92443         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92444         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92445         hash_get_n_entries, hash_get_max_bucket_length,
92446         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92447         hash_rehash): Use size_t rather than unsigned.
92448         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92449         hash_get_n_buckets_used, hash_get_n_entries,
92450         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92451         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92452         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92453         Likewise.
92454         (SIZE_MAX): Define if not defined.
92455         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92456         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92457         hash_print):
92458         Use const * when possible.
92459         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92460         (check_tuning): Fix bug: if tuning parameters were very close to
92461         0 or 1, rounding errors could have caused subscript violations.
92462         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92463         (hash_initialize): Add 'fail:' label
92464         to free table and return NULL, and use it to simplify code.
92465         Use calloc rather than clearing the storage ourself.
92466         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92467         buffer size calculations.
92468         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92469         Include <stddef.h>, for size_t.
92470         * lib/hash-pjw.c (hash_pjw): Likewise.
92471         Switch to method described by Bruno Haible.
92472         Include <limits.h>, for CHAR_BIT.
92473         (SIZE_BITS): New macro.
92474
92475 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92476
92477         * m4/getline.m4 (AM_FUNC_GETLINE):
92478         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92479         hosts.  Problem reported by Derek Robert Price in
92480         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92481         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92482         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92483
92484 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92485
92486         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92487         ceiling the allocation at NMAX bytes rather than silently
92488         discarding input bytes before NMAX is reached.  This makes
92489         a difference only if NMAX exceeds SIZE_MAX / 2.
92490
92491         * lib/obstack.c: Merge from glibc.
92492         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92493         Add libc_hidden_def (_obstack_newchunk).
92494         (_obstack_free) [! defined _LIBC]: Remove.
92495         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92496         a clone of the function body.
92497         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92498         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92499
92500         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92501         glibc.
92502         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92503         arg to memcpy.
92504
92505         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92506         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92507         Don't use lvalue casts, as GCC plans to remove support for them
92508         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92509         was also present in the non-GCC version, indicating that this
92510         code had always been buggy and had never been widely used.
92511         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92512         Use the fast variant of each macro, rather than copying the
92513         definiens of the fast variant; that way, we'll be more likely to
92514         catch future bugs in the fast variants.
92515
92516 2003-10-20  Bruno Haible  <bruno@clisp.org>
92517
92518         * modules/wait-process: New file.
92519         * MODULES.html.sh (func_all_modules): Add wait-process.
92520
92521 2003-10-20  Bruno Haible  <bruno@clisp.org>
92522
92523         * m4/wait-process.m4: New file.
92524
92525 2003-10-20  Bruno Haible  <bruno@clisp.org>
92526
92527         * lib/wait-process.h: New file, from GNU gettext.
92528         * lib/wait-process.c: New file, from GNU gettext.
92529
92530 2003-10-19  Jim Meyering  <jim@meyering.net>
92531
92532         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92533         HPUX 10.20.
92534
92535 2003-10-18  Karl Berry  <karl@gnu.org>
92536
92537         * config/config.guess: update from config.
92538
92539 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92540
92541         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92542         (getgroups): First arg is int, not size_t.
92543         Don't let 'free' mangle errno.
92544
92545 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92546
92547         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92548
92549 2003-10-16  Karl Berry  <karl@gnu.org>
92550
92551         * config/config.{guess,sub}: update from config.
92552
92553 2003-10-16  Jim Meyering  <jim@meyering.net>
92554
92555         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92556         memcpy.
92557
92558 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92559
92560         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92561         (SIZE_MAX): Remove.
92562         (new_exclude, add_exclude_file): Initial size no longer needs to
92563         be a power of 2.
92564         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92565         our own address arithmetic overflow checking.
92566
92567         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92568         (fnmatch): Do not alloca more than 2000 wide characters;
92569         instead, use malloc for large buffers.
92570         Check for address arithmetic overflow, and return -1
92571         with errno set to ENOMEM in that case.
92572         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92573         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92574         instead, return -1.  Check for address arithmetic overflow.
92575
92576 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92577
92578         Handle invalid suffixes and overflow independently, so that
92579         callers can treat them independently as needed.  Fix some bugs in
92580         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92581         suffix for a human-readable blocksize.  The major caller-visible
92582         change is the addition of a new
92583         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92584         that both overflow and suffix chars were found.
92585
92586         * lib/human.c (humblock): Don't check separately for invalid suffix
92587         char; that is xstrtoumax's job (now that its bug is fixed).
92588         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92589         INTMAX_MAX]: New macros.
92590         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92591         TYPE_MAXIMUM): New macros.
92592         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92593         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92594         if overflow occurs, as it's what __strtol does and it's more useful
92595         in practice.
92596         (__xstrtol): If __strtol reports some error other than ERANGE,
92597         reflect it to the caller as LONGINT_INVALID.  If it reports
92598         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92599         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92600         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92601         value.
92602         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92603         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92604         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92605         [defined UINTMAX_MAX]: New macros.
92606
92607 2003-10-14  Bruno Haible  <bruno@clisp.org>
92608
92609         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92610
92611 2003-10-14  Bruno Haible  <bruno@clisp.org>
92612
92613         * m4/sig_atomic_t: New file, from GNU gettext.
92614         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92615
92616 2003-10-14  Bruno Haible  <bruno@clisp.org>
92617
92618         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92619         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92620         Also use volatile where needed.
92621
92622 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92623
92624         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92625         Change maintainer from Bruno Haible to 'all'.
92626
92627 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92628
92629         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92630
92631 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92632
92633         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92634         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92635         and define in terms of the other primitives.
92636         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92637         (SIZE_MAX): Define if not already defined.
92638         (array_size_overflow): New function.
92639         (xalloc_die): Abort instead of exiting if 'error' returns.
92640         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92641         (xmalloc, xrealloc): Use them.
92642         (xcalloc): Check for address arithmetic overflow.
92643         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92644         a bit faster than strcpy.
92645
92646 2003-10-10  Simon Josefsson  <jas@extundo.com>
92647
92648         * modules/argp (Depends-on): Add restrict and strcase.
92649
92650 2003-10-10  Simon Josefsson  <jas@extundo.com>
92651
92652         * m4/argp.m4: Add AC_C_INLINE.
92653
92654 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92655
92656         Merge getpass from libc, plus a few fixes.
92657
92658         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92659         Include <stdbool.h>.
92660         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92661         __fsetlocking to empty.
92662         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92663         do include <bits/libc-lock.h>.
92664         Do not include <fcntl.h>; not needed.
92665         [_LIBC]: Include <wchar.h>.
92666         (NOTCANCEL_MODE): New macro.
92667         (flockfile, funlockfile) [_LIBC]: New macros.
92668         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92669         [!_LIBC]: New macros.
92670         (call_fclose): New function.
92671         (getpass): Use it.  Save tty stream separately; this simplifies the
92672         code and makes it more reliable if stdin happens to equal stdout.
92673         Invoke __fsetlocking on tty.
92674         Handle thread cancellation if needed.
92675         Namespace cleanup (use __tcgetattr, __getline).
92676         Use bool for Booleans.
92677         [USE_IN_LIBIO]: Handle wide streams.
92678         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92679         stream might go where.
92680
92681         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92682         doesn't have to include <stdio.h> before us.
92683         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92684         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92685         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92686         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92687         if not declared, so that we can use getpass.c code from libc without
92688         rewriting it.
92689         (flockfile, ftrylockfile, funlockfile): New macros.
92690
92691 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92692
92693         * modules/getpass: Depend on stdbool.
92694
92695 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92696
92697         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92698
92699 2003-10-07  Karl Berry  <karl@gnu.org>
92700
92701         * config/config.{guess,sub}: update from config.
92702
92703 2003-10-06  Jim Meyering  <jim@meyering.net>
92704             Bruno Haible  <bruno@clisp.org>
92705
92706         This lets translators provide better translations for the
92707         "Written by ..." part of --version output.
92708         * lib/version-etc.h: Include stdarg.h.
92709         (version_etc_copyright): Declare as readonly.
92710         (version_etc): Make this function variadic with a NULL-terminated list
92711         of author name strings.
92712         (version_etc_va): New declaration.
92713         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92714         (version_etc_copyright): Declare as readonly.
92715         (version_etc_va): New function. Provide a different translatable string
92716         for each possible number of authors < 10. Abbreviate when there are 10
92717         authors or more.
92718         (version_etc): Make this function variadic. Call version_etc_va.
92719         Suggestion from Gary V. Vaughan.
92720
92721         * lib/long-options.h (parse_long_options): Change prototype: the
92722         authors string is moved to the end and becomes variadic.
92723         * lib/long-options.c: Include stdarg.h.
92724         (parse_long_options): Make this function variadic, too.
92725         Call version_etc_va, not version_etc.
92726
92727 2003-10-06  Bruno Haible  <bruno@clisp.org>
92728
92729         * modules/version-etc-2: Remove file.
92730         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92731
92732 2003-10-06  Bruno Haible  <bruno@clisp.org>
92733
92734         * modules/fatal-signal: New file.
92735         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92736
92737 2003-10-06  Bruno Haible  <bruno@clisp.org>
92738
92739         * m4/fatal-signal.m4: New file.
92740         * m4/signalblocking.m4: New file, from GNU gettext.
92741
92742 2003-10-06  Bruno Haible  <bruno@clisp.org>
92743
92744         * lib/version-etc-2.h: Remove file.
92745         * lib/version-etc-2.c: Remove file.
92746
92747 2003-10-06  Bruno Haible  <bruno@clisp.org>
92748
92749         * lib/fatal-signal.h: New file, from GNU gettext.
92750         * lib/fatal-signal.c: New file, from GNU gettext.
92751
92752 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92753
92754         * README: Rework advice for preventing empty .o files.
92755         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92756         not <sys/types.h>.
92757
92758 2003-10-04  Karl Berry  <karl@gnu.org>
92759
92760         * lib/argp*: update from libc.
92761
92762 2003-10-04  Karl Berry  <karl@gnu.org>
92763
92764         * config/config.{guess,sub}: update from config.
92765
92766 2003-10-02  Bruno Haible  <bruno@clisp.org>
92767
92768         * modules/lchown (Include): Add lchown.h.
92769         * modules/time_r (Include): Use "..." syntax.
92770         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92771
92772 2003-10-01  Simon Josefsson  <jas@extundo.com>
92773
92774         * MODULES.html.sh (func_all_modules): Move gethostname from section
92775         'based on' to section 'lacking' POSIX:2001.
92776
92777 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92778
92779         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92780         to output mode on the same stream.
92781
92782 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92783
92784         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92785         Fix arg typo in previous patch.
92786
92787 2003-09-28  Jim Meyering  <jim@meyering.net>
92788
92789         * lib/error.c: Correct cpp indentation.
92790
92791 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92792
92793         * modules/free: New file.
92794
92795 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92796
92797         * m4/free.m4: New file.
92798
92799 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92800
92801         * lib/minmax.h (MIN, MAX)
92802         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92803         Omit the special code that used __typeof__, since we worry that
92804         it could be more trouble than it's worth.  See:
92805         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92806         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92807
92808         * lib/free.c: New file.
92809
92810 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92811
92812         Trivial fixes to Makefile.am parts of module listings.
92813         * modules/strstr: Append strstr.h to lib_SOURCES.
92814         * modules/strcase: Likewise, for strcase.h.
92815
92816 2003-09-27  Karl Berry  <karl@gnu.org>
92817
92818         * config/mkinstalldirs: update from automake.
92819
92820 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92821
92822         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92823         (error_tail): Do not loop, reallocating temporary buffer, since
92824         the output cannot contain more wide characters than the input
92825         contains bytes, the size must be big enough already.  This avoids
92826         one potential size overflow calculation.  Check for size overflow
92827         when calculating temporary buffer size.  Free temporary buffer
92828         when done, if it was allocated with malloc; this plugs a memory
92829         leak.  Remove casts from void * to pointers, that are no longer
92830         needed now that we're assuming C89 or better.
92831
92832         Merge error changes from glibc.
92833
92834         * lib/error.c, error.h: Update copyright notice header to match glibc.
92835         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92836         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92837         Disable cancellation while printing error.
92838         * lib/error.h: Prepend __ to parameter names.
92839
92840 2003-09-26  Jim Meyering  <jim@meyering.net>
92841
92842         * lib/error.c (error_tail): Move some declarations
92843         into inner scope where the local variables are used.
92844
92845 2003-09-26  Bruno Haible  <bruno@clisp.org>
92846
92847         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92848         stpncpy().
92849         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92850
92851 2003-09-26  Bruno Haible  <bruno@clisp.org>
92852
92853         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92854         (stpncpy): Define as alias for gnu_stpncpy.
92855         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92856
92857 2003-09-25  Simon Josefsson  <jas@extundo.com>
92858
92859         * lib/xgetdomainname.h: New file.
92860         * lib/xgetdomainname.c: New file.
92861
92862 2003-09-25  Simon Josefsson  <jas@extundo.com>
92863             Bruno Haible  <bruno@clisp.org>
92864
92865         * modules/getdomainname: New file.
92866         * modules/xgetdomainname: New file.
92867         * MODULES.html.sh (func_all_modules): Add getdomainname,
92868         xgetdomainname.
92869
92870 2003-09-25  Simon Josefsson  <jas@extundo.com>
92871             Bruno Haible  <bruno@clisp.org>
92872
92873         * m4/getdomainname.m4: New file.
92874
92875 2003-09-25  Simon Josefsson  <jas@extundo.com>
92876             Bruno Haible  <bruno@clisp.org>
92877
92878         * lib/getdomainname.h: New file.
92879         * lib/getdomainname.c: New file.
92880
92881 2003-09-25  Karl Berry  <karl@gnu.org>
92882
92883         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92884
92885 2003-09-25  Karl Berry  <karl@gnu.org>
92886
92887         * config/install-sh: update from automake.
92888
92889 2003-09-25  Bruno Haible  <bruno@clisp.org>
92890
92891         * modules/version-etc-2: New file, from modules/version-etc with
92892         modifications.
92893         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92894
92895 2003-09-25  Bruno Haible  <bruno@clisp.org>
92896
92897         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92898         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92899
92900 2003-09-24  Simon Josefsson  <jas@extundo.com>
92901
92902         * modules/xgethostname: Add xgethostname.h.
92903
92904 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92905
92906         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92907         the buffer associated with the argument.  Bug reported by
92908         Simon Josefsson.
92909
92910 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92911
92912         * README: Document assumptions that 'int' is at least 32 bits
92913         wide, that integer arithmetic is 2's complement without overflow,
92914         that there are no holes in integer values, that adding sizes of
92915         two nonoverlapping objects can't overflow, and that all-bits-zero
92916         yields scalar zero.  Fix spelling and capitalization typos.
92917
92918 2003-09-19  Karl Berry  <karl@gnu.org>
92919
92920         * lib/argp.h: update from libc.
92921
92922 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92923
92924         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92925         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92926         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92927
92928 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92929
92930         * gnulib-tool: Use "test -h", not "test -L", for portability
92931         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92932         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92933         (sed_extract_prog): Issue s commands one-by-one, rather than
92934         using \| in one s command.
92935
92936 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92937
92938         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92939         input error, instead of returning NULL the next time we are called
92940         (and therefore losing track of errno).
92941
92942 2003-09-16  Bruno Haible  <bruno@clisp.org>
92943
92944         * gnulib-tool (func_create_testdir): Warn about duplicated
92945         dependencies.
92946
92947 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92948
92949         * modules/argmatch, modules/fatal, modules/obstack,
92950         modules/xalloc, modules/xgethostname: Sort dependencies by
92951         importance, not alphabetically.
92952
92953 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92954
92955         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92956         fails, so that the caller gets the proper errno.
92957
92958         * lib/readutmp.c (read_utmp): Likewise.
92959         Check for fstat error.  Close stream and free storage
92960         when failing.
92961
92962 2003-09-14  Karl Berry  <karl@gnu.org>
92963
92964         * config/srclist.txt (strdup.c): disable for c89 changes.
92965
92966 2003-09-14  Jim Meyering  <jim@meyering.net>
92967
92968         * lib/getloadavg.c: Correct cpp indentation.
92969         * lib/strdup.c: Likewise.
92970         * lib/vasnprintf.c: Likewise.
92971
92972 2003-09-14  Bruno Haible  <bruno@clisp.org>
92973
92974         * modules/fwriteerror: New file.
92975         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92976
92977 2003-09-14  Bruno Haible  <bruno@clisp.org>
92978
92979         * lib/fwriteerror.h: New file.
92980         * lib/fwriteerror.c: New file.
92981
92982 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92983
92984         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92985         modules/xgethostname, modules/xalloc: Depend on exit.
92986
92987 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92988
92989         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92990
92991         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92992         and AC_MINIX, too, so that their extensions are available.
92993
92994         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92995         This macro has been superseded by gl_BACKUPFILE.
92996
92997         More patches to assume C89 or better.
92998
92999         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
93000
93001         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
93002         unconditionally.
93003         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
93004         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
93005         Include <string.h>, <stdlib.h> unconditionally.
93006         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
93007         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
93008         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
93009         headers or for string.h.
93010         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
93011         or strtoul.
93012
93013         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
93014         headers.
93015         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
93016         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93017         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
93018         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
93019         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93020         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
93021         memcpy, memset.
93022         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
93023         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
93024         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
93025         strtol.
93026         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
93027         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
93028         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
93029         strtoul.
93030
93031 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93032
93033         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
93034         * lib/obstack.c [!defined _LIBC]: Likewise.
93035         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
93036         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
93037         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
93038
93039         More changes to assume C89 or better.
93040
93041         * lib/error.c (error_tail): Assume vprintf.
93042
93043         * lib/argmatch.c (getenv): Remove decl.
93044         * lib/progreloc.c (get_full_program_name): Define via prototype.
93045         * lib/setenv.c (clearenv): Likewise.
93046         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
93047         needed.
93048         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
93049         (malloc, memcpy): Remove decls.
93050         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
93051         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
93052         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93053         (memcpy): Remove macro.
93054         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
93055         (__P): Remove.  All uses removed.
93056         (PTR): Remove.  All uses changed to void *.
93057         (CHAR_BIT, NULL): Remove.
93058         (spaces, zeros, memset_space, memset_zero)
93059         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
93060         Remove.
93061         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
93062         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
93063         Define with prototype.
93064         Remove now-unnecessary prototype decl.
93065         (extra_args_spec): Assume ANSI C.  All uses changed.
93066         (extra_args_spec_iso): Remove.
93067         (my_strftime, emacs_strftimeu): Define via prototype.
93068         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
93069         unconditionally.
93070         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
93071         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
93072         (strtoul, strtol): Remove decls.
93073         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
93074         LONG_MAX): Remove.
93075         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93076         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
93077         (LOCALE_PARAM_PROTO): New macro.
93078         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
93079         (INTERNAL (strtol), strtol): Define with a prototype.
93080         (PARAMS): Remove.  All uses removed.
93081         * lib/tempname.c: Include <string.h> unconditionally.
93082         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
93083         * lib/xgethostname.c (main): Define with a prototype.
93084         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
93085         Include <stdlib.h> unconditionally.
93086         (calloc, malloc, realloc, free): Remove decls.
93087         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
93088         Include <stdlib.h> unconditionally.  Sort include file names.
93089         (strtod): Remove.
93090         (xstrtod): Define with a prototype.
93091         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
93092         (strtol, strtoul): Remove decls.
93093
93094 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93095
93096         More patches to assume C89 or better.
93097         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
93098         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
93099         string.h, memchr, STDC_HEADERS.
93100
93101 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93102
93103         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
93104         Include <stdlib.h>, <string.h> unconditionally.
93105         Remove now-unnecessary cast to char *.
93106         * lib/strnlen.c: Include <string.h> unconditionally.
93107         * lib/yesno.c (yesno): Define with a prototype.
93108
93109 2003-09-11  Bruno Haible  <bruno@clisp.org>
93110
93111         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
93112
93113 2003-09-10  Jim Meyering  <jim@meyering.net>
93114
93115         * lib/error.c: Correct indentation of cpp directives.
93116
93117 2003-09-10  Bruno Haible  <bruno@clisp.org>
93118
93119         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
93120         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
93121         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
93122         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
93123         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
93124         <stdlib.h> and <string.h> checks.
93125         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
93126         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
93127
93128 2003-09-10  Bruno Haible  <bruno@clisp.org>
93129
93130         * lib/strcspn.c: Include <string.h> unconditionally.
93131         * lib/strpbrk.c: Include <string.h> unconditionally.
93132         * lib/strstr.c: Include <string.h> unconditionally.
93133         * lib/unicodeio.c: Include <string.h> unconditionally.
93134         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
93135         * lib/unsetenv.c: Likewise.
93136         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
93137         * lib/yesno.c: Include <stdlib.h> unconditionally.
93138         (rpmatch): Add prototype.
93139
93140 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93141
93142         More patches to assume C89 or better.
93143         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
93144         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
93145         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
93146         or for string.h.
93147         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
93148         stdlib.h.
93149         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
93150         C headers.
93151         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
93152         string.h.
93153         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
93154         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
93155         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
93156         or for string.h.
93157         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
93158         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
93159         C headers.
93160         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
93161         memcpy.
93162         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
93163         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
93164         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
93165         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
93166         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
93167         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
93168         string.h, free.
93169         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
93170         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
93171         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
93172         C headers, or for string.h.
93173         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
93174         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
93175         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
93176         headers, memory.h, stdlib.h, string.h, strings.h.
93177         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
93178         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
93179         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
93180         strchr.
93181         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
93182         headers, memory.h, string.h.
93183         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
93184         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
93185         free.
93186         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
93187         headers.
93188         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
93189         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
93190         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
93191         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
93192         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
93193
93194 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93195
93196         More K&R removal.
93197
93198         * lib/acosl.c (main): Use a prototype.
93199         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
93200         tanl.c: Likewise.
93201
93202         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
93203
93204         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93205         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93206         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93207         with a prototype.
93208         * lib/getopt.c (const): Remove macro.
93209         Include <string.h> unconditionally.
93210         (my_index): Remove; all uses changed to strchr.
93211         (strlen): Remove decl.
93212         (exchange): Remove forward decl; no longer needed.
93213         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93214         Define with prototype.
93215         * lib/getopt1.c (const): Remove macro.
93216         (getopt_long, getopt_long_only, main): Define with prototype.
93217
93218         * lib/getugroups.c: Include <string.h> unconditionally.
93219
93220         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93221         (getusershell, setusershell, endusershell, readname, main):
93222         Define with prototypes.
93223
93224         * lib/group-member.c: Include group-member.h first.
93225         Include <stdlib.h> unconditionally.
93226
93227         * lib/hard-locale.c: Include hard-locale.h first.
93228         Include <stdlib.h>, <string.h> unconditionally.
93229
93230         * lib/hash.c (free, malloc): Remove decls.
93231         Include <stdlib.h> unconditionally.
93232
93233         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93234         (getenv): Do not declare.
93235
93236         * lib/idcache.c: Include <string.h> unconditionally.
93237
93238         * lib/long-options.c: Include long-options.h first, to test interface.
93239         Include <stdlib.h> unconditionally.
93240
93241         * lib/makepath.c: Include makepath.h first, to test interface.
93242         Include <stdlib.h> and <string.h> unconditionally.
93243
93244         * lib/linebuffer.c: Include <stdlib.h>.
93245         (free): Remove decl.
93246
93247         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93248         stddef.h. rpl_malloc returns void *, not char *.
93249         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93250         prototype.
93251
93252         * lib/md5.h: Include <limits.h> unconditionally.
93253         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93254         (__P): Remove; all uses removed.
93255         * lib/md5.c: Include "md5.h" first.
93256         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93257         md5_buffer, md5_process_bytes, md5_process_block):
93258         Define with prototypes.
93259         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93260         * lib/sha.c: Include "sha.h" first.
93261         Include <stdlib.h>, <string.h> unconditionally.
93262
93263         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93264         * lib/memcmp.c (__ptr_t): Likewise.
93265         * lib/memrchr.c (__ptr_t): Likewise.
93266         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93267         Include <string.h> unconditionally.
93268         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93269         * lib/memchr.c: Include <stdlib.h> unconditionally.
93270         * lib/memchr.c (LONG_MAX): Remove.
93271         * lib/memrchr.c (LONG_MAX): Likewise.
93272         * lib/memchr.c (__memchr): Define via a prototype.
93273         * lib/memrchr.c (__memrchr): Likewise.
93274         * lib/memcmp.c (__P): Remove, and remove all uses.
93275         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93276         Remove forward decls; no longer needed.
93277         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93278         Use types required by C89 in prototype.
93279
93280         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93281         * lib/savedir.c: Likewise.
93282         * lib/mkdir.c (free): Remove decl.
93283         * lib/rmdir.c (rmdir): Define with a prototype.
93284         * lib/savedir.c: Include savedir.h first, to test interface.
93285
93286         * lib/mktime.c (STDC_HEADERS): Remove.
93287         Include <stdlib.h>, <string.h> unconditionally.
93288
93289         * lib/modechange.c: Include <stdlib.h> unconditionally.
93290         (malloc): Remove decl.
93291
93292         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93293         (free): Remove decl.
93294
93295         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93296         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93297         (This type really should be intptr_t, but that's a C99ism.)
93298         (_obstack_memcpy): Remove: all uses changed to memcpy.
93299         Include <string.h> unconditionally.
93300         (struct obstack): Assume __STDC__ for types of members
93301         chunkfun, freefun, extra_arg.
93302         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93303         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93304         obstack_begin, obstack_specify_allocation,
93305         obstack_specify_allocation_with_arg, obstack_chunkfun,
93306         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93307         Remove unprototyped decls and the macros that use them.
93308         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93309         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93310         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93311         (defined __STDC__ && __STDC__)]:
93312         Remove nonprototyped code.
93313         Include <stdlib.h> unconditionally.
93314         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93315         _obstack_allocated_p, _obstack_free, obstack_free,
93316         _obstack_memory_used, print_and_abort):
93317         Define using prototypes.
93318         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93319         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93320         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93321         obstack_next_free, obstack_object_size, obstack_room) [0]:
93322         Remove unused, unprototyped code.
93323
93324         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93325
93326         * lib/physmem.c (physmem_total, physmem_available, main): Define
93327         with prototypes.
93328
93329         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93330         (main): Define with a prototype.
93331
93332         * lib/posixver.c (getenv): Remove decl.
93333
93334         * lib/putenv.c (malloc): Returns void *, not char *.
93335         Include <string.h> unconditionally.
93336         (strchr, memcpy, NULL): Do not define.
93337
93338         * lib/readtokens.c: Include readtokens.h first, to test interface.
93339         Include <stdlib.h>, <string.h> unconditionally.
93340         (init_tokenbuffer): Define with a prototype.
93341
93342         * lib/regex.c (PARAMS): Remove.  All uses removed.
93343         All uses of _RE_ARGS removed, too.
93344         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93345         unconditionally.
93346         (bzero): Assume memset exists.
93347         (memcmp, memcpy, NULL): Remove.
93348         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93349         char, or assignments to local vars of type signed char.
93350         (init_syntax_once, PREFIX(extract_number_and_incr),
93351         PREFIX(print_partial_compiled_pattern),
93352         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93353         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93354         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93355         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93356         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93357         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93358         wcs_compile_range, byte_compile_range, truncate_wchar,
93359         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93360         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93361         count_mbs_length, wcs_re_match_2_internal,
93362         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93363         PREFIX(alt_match_null_string_p),
93364         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93365         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93366         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93367         now-unnecessary declaration, if any.
93368         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93369         regcomp, regexec):
93370         Remove now-unnecessary casts among pointer types.
93371         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93372
93373         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93374         (free): Remove decl.
93375
93376         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93377
93378         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93379         (free): Remove decl.
93380
93381         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93382         * lib/xgetcwd.c: Likewise.
93383
93384         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93385         (free): Remove decl.
93386
93387         * lib/strchrnul.c (strchrnul): Define with a prototype.
93388         Fix bug: c_in was not converted to char before searching.
93389
93390         The following changes are not K&R related:
93391
93392         * lib/group-member.h: Include <sys/types.h>, so that this file is
93393         self-contained.
93394         * lib/makepath.h: Likewise.
93395
93396         * lib/getusershell.c (readname, default_index, line_size, readname):
93397         Use size_t, not int, for sizes.
93398         (readname): If the size overflows, report an error instead of
93399         looping forever.
93400
93401 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93402
93403         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93404         libc.
93405
93406 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93407
93408         * README: New section: portability guidelines.
93409
93410 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93411
93412         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93413         C89 spec.
93414
93415 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93416
93417         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93418
93419 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93420
93421         Assume C89 or better; remove K&R cruft.
93422         A few of these changes were first proposed by Derek Robert Price
93423         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93424
93425         * lib/addext.c: Include <string.h> unconditionally.
93426         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93427         Don't declare getenv or malloc.
93428
93429         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93430         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93431         (NULL): Remove.
93432         (find_stack_direction, alloca): Use prototypes.
93433
93434         * lib/atexit.c (atexit): Define using a prototype.
93435
93436         * lib/basename.c, dirname.c, stripslash.c:
93437         Include <string.h> unconditionally.
93438
93439         * lib/bcopy.c: Include <stddef.h>.
93440         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93441
93442         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93443
93444         * lib/error.h (error, error_at_line, error_print_progname)
93445         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93446         * lib/error.c: Include error.h first, to check interface.
93447         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93448         (VA_START): Remove; all uses changeed to va_start.
93449         (exit, strerror): Remove decls.
93450         (error_print_progname): Prototype uncondionally.
93451         Don't include <errno.h>; no longer needed.
93452         (private_strerror): Remove.
93453         (error_tail): Always define.
93454         (error, error_at_line): Assume C89 or better; always use prototypes.
93455         * lib/fatal.c: Include "fatal.h" first, to test interface.
93456         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93457         (VA_START): Remove; all uses changed to va_start.
93458         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93459         this case.
93460         (exit): Remove decl.
93461         (fatal): Prototype unconditionally.  Assume va_start works.
93462         Abort at end, to pacify gcc.
93463
93464         * lib/euidaccess.c (main): Define with a prototype.
93465
93466         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93467
93468         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93469
93470         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93471         prototypes.
93472         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93473         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93474         (getenv): Remove decl.
93475         (fnmatch): Define using a prototype.
93476         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93477         (FCT): Define using a prototype.
93478
93479         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93480
93481         * lib/gethostname.c: Include <stddef.h>.
93482         (gethostname): Define with prototype.  Length is size_t, not int.
93483
93484 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93485
93486         Assume C89 or better; remove K&R cruft.
93487         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93488         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93489         string.h, getenv, malloc.
93490         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93491         headers.
93492         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93493         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93494         do not check for strerror.
93495         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93496         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93497         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93498         do not check for doprnt or vprintf.
93499         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93500         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93501
93502 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93503
93504         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93505         getversion.c should have been removed then, but was accidentally
93506         preserved.
93507
93508         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93509         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93510
93511 2003-09-08  Karl Berry  <karl@gnu.org>
93512
93513         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93514                 config, forget about prep.
93515
93516         * config/depcomp, missing: update from automake.
93517
93518 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93519
93520         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93521         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93522
93523 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93524
93525         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93526         copy_tm_result.  Bug reported by Simon Josefsson in
93527         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93528
93529 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93530
93531         * m4/time_r.m4: New file.
93532         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93533         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93534         is. Check for timegm declaration.
93535         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93536         Do not check for gmtime_r.
93537         Replace mktime if __mktime_internal does not exist and if mktime
93538         hasn't been replaced already.
93539
93540 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93541
93542         * lib/time_r.c, lib/time_r.h: New files.
93543
93544         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93545         __localtime_r.
93546         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93547         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93548
93549         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93550         __gmtime_r.
93551         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93552         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93553         Include <time_r.h>.
93554
93555         * lib/timegm.c: Switch to glibc implementation, with the following
93556         changes:
93557         [defined HAVE_CONFIG_H]: Include <config.h>.
93558         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93559         (__mktime_internal) [!defined _LIBC]: New decl.
93560         (__gmtime_r) [!defined _LIBC]: New macro and function.
93561         (timegm): Use a prototype, since gnulib assumes C89.
93562         Do not bother declaring tmp to be const, as it's not really usefu.
93563         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93564         (timegm): Declare only if HAVE_DECL_TIMEGM.
93565
93566 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93567
93568         * MODULES.html.sh (func_all_modules): Add time_r.
93569         * modules/time_r: New file.
93570         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93571         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93572
93573 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93574
93575         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93576         Bug reported by Lute Kamstra in
93577         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93578
93579         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93580         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93581         course with correspondingly smaller numbers for tomorrow and
93582         yesterday.  From Tadayoshi Funaba.  Originally installed into
93583         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93584         coreutils merge?).
93585
93586 2003-08-31  Simon Josefsson  <jas@extundo.com>
93587
93588         * modules/timegm: New file.
93589         * MODULES.html.sh (func_all_modules): Add timegm.
93590
93591 2003-08-31  Simon Josefsson  <jas@extundo.com>
93592
93593         * m4/timegm.m4: New file.
93594
93595 2003-08-31  Simon Josefsson  <jas@extundo.com>
93596
93597         * lib/timegm.h: New file.
93598         * lib/timegm.c: New file.  Based on
93599         wget-1.8.2/src/http.c:mktime_from_utc.
93600
93601 2003-08-31  Karl Berry  <karl@gnu.org>
93602
93603         * lib/argp.h: update from libc.
93604
93605 2003-08-28  Bruno Haible  <bruno@clisp.org>
93606
93607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93608         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93609         followed by '#define fnmatch fnmatch_posix' gives an error.
93610
93611 2003-08-28  Bruno Haible  <bruno@clisp.org>
93612
93613         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93614         warning on QNX, which defines O_BINARY to 000000.
93615
93616 2003-08-27  Jim Meyering  <jim@meyering.net>
93617
93618         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93619         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93620         would fail after 32.  Reported by Danny Levinson.  Details here:
93621         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93622
93623 2003-08-24  Bruno Haible  <bruno@clisp.org>
93624
93625         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93626         MSVC7 <stdio.h> is included later.
93627
93628 2003-08-22  Simon Josefsson  <jas@extundo.com>
93629
93630         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93631
93632 2003-08-20  Karl Berry  <karl@gnu.org>
93633
93634         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93635
93636 2003-08-20  Bruno Haible  <bruno@clisp.org>
93637
93638         * modules/progname: New file.
93639         * MODULES.html.sh (func_all_modules): Add progname.
93640
93641 2003-08-20  Bruno Haible  <bruno@clisp.org>
93642
93643         * lib/progname.h: New file, from GNU gettext.
93644         * lib/progname.c: New file, from GNU gettext.
93645         * lib/progreloc.c: New file, from GNU gettext.
93646
93647 2003-08-19  Jim Meyering  <jim@meyering.net>
93648
93649         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93650         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93651
93652 2003-08-19  Bruno Haible  <bruno@clisp.org>
93653
93654         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93655         more.
93656
93657 2003-08-19  Bruno Haible  <bruno@clisp.org>
93658
93659         * lib/xstrdup.c: Assume <string.h> exists.
93660
93661 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93662
93663         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93664         in makefile rules.
93665
93666 2003-08-18  Jim Meyering  <jim@meyering.net>
93667
93668         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93669         * m4/lib-ld.m4: Likewise.
93670
93671 2003-08-18  Jim Meyering  <jim@meyering.net>
93672
93673         * lib/setenv.h: Indent nested cpp directive.
93674         * lib/vasnprintf.c: Remove trailing blanks.
93675
93676 2003-08-17  Simon Josefsson  <jas@extundo.com>
93677
93678         * modules/xstrndup: New file.
93679         * MODULES.html.sh (func_all_modules): Add xstrndup.
93680
93681 2003-08-17  Simon Josefsson  <jas@extundo.com>
93682
93683         * modules/argp: Fix autoconf macro name. Add more dependencies.
93684
93685 2003-08-17  Simon Josefsson  <jas@extundo.com>
93686
93687         * m4/xstrndup.m4: New file.
93688
93689 2003-08-17  Simon Josefsson  <jas@extundo.com>
93690
93691         * m4/argp.m4: New file.
93692
93693 2003-08-17  Simon Josefsson  <jas@extundo.com>
93694             Bruno Haible  <bruno@clisp.org>
93695
93696         * lib/xstrndup.h: New file.
93697         * lib/xstrndup.c: New file.
93698
93699 2003-08-17  Bruno Haible  <bruno@clisp.org>
93700
93701         * modules/strndup (Files, Include): Add lib/strndup.h.
93702
93703 2003-08-17  Bruno Haible  <bruno@clisp.org>
93704
93705         * modules/euidaccess (Files): Add lib/euidaccess.h.
93706
93707 2003-08-17  Bruno Haible  <bruno@clisp.org>
93708
93709         * lib/strndup.h: New file.
93710
93711 2003-08-17  Bruno Haible  <bruno@clisp.org>
93712
93713         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93714         like AC_GNU_SOURCE.
93715         * modules/extensions (configure.ac): Comment out the invocation of
93716         gl_USE_SYSTEM_EXTENSIONS.
93717
93718 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93719
93720         Merges from coreutils, etc.
93721         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93722         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93723         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93724         fixing a typo.
93725         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93726         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93727
93728 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93729
93730         Document merge from coreutils.
93731         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93732         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93733         * modules/utime: Add m4/utimes-null.m4.
93734
93735 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93736
93737         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93738         space, undoing this 2003-08-12 change:
93739         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93740
93741 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93742
93743         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93744         strtoul.c from libc, undoing this 2003-08-12 change:
93745         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93746
93747 2003-08-16  Jim Meyering  <jim@meyering.net>
93748
93749         Merges from coreutils.
93750         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93751         prefix.  Adjust cache variables similarly.  Create 500 rather than
93752         just 300 files, to exercise bug on Darwin6.5, too.
93753         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93754         $missing_dir.
93755         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93756         AM_SYS_POSIX_TERMIOS.
93757         Reported by mkc@mathdogs.com.
93758         Also change use of $am_cv_sys_posix_termios
93759         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93760         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93761         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93762         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93763         in /proc/mounts until it finds one with matching device number.  This
93764         is unnecessary when the FILE argument *is* a mount point.  No stat call
93765         is necessary in that case.  So, disable the statvfs-testing code on
93766         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93767         as RedHat bug# 84846.
93768         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93769         to 1MB, so as not to render systems with no stack size limit (e.g.,
93770         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93771         Include <unistd.h>.  On some systems,
93772         it is required for the definition of _SC_PAGESIZE.
93773
93774 2003-08-16  Jim Meyering  <jim@meyering.net>
93775
93776         Merge from coreutils.
93777         * lib/xstrtoimax.c: #else #if -> #elif.
93778         * lib/xstrtoumax.c: Likewise.
93779
93780 2003-08-16  Jim Meyering  <jim@meyering.net>
93781
93782         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93783         * m4/utimes.m4: Removed.
93784         * m4/utimes-null.m4: Renamed from utimes.m4.
93785
93786         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93787         to 1MB, so as not to render systems with no stack size limit (e.g.,
93788         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93789         Include <unistd.h>.  On some systems,
93790         it is required for the definition of _SC_PAGESIZE.
93791
93792 2003-08-16  Jim Meyering  <jim@meyering.net>
93793         and Paul Eggert  <eggert@cs.ucla.edu>
93794
93795         Merges from coreutils, etc.
93796
93797         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93798         using the latest version from cvs.  This avoids problems with #line
93799         directives using a vendor (Sun) compiler.
93800         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93801         Don't set GETGROUPS_LIB here; now it's
93802         done via getgroups.m4's wrapper function.
93803         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93804         rather than just in sh-util/configure.in, so that the
93805         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93806         same.
93807         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93808         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93809         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93810         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93811         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93812         Remove code that is now done by the newly-required macros.
93813         Append $(EXEEXT) to DF_PROG.
93814         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93815         Do not invoke or require the following here,
93816         since prereq.m4 or some gnulib .m4 now does this for us:
93817         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93818         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93819         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93820         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93821         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93822         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93823         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93824         AC_FUNC_OBSTACK.
93825         Do not replace the following functions, as this is now the job
93826         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93827         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93828         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93829         atexit getpass, strdup, getpagesize.
93830         Replace 'raise'.
93831         Do not check for the following functions, as this is now the job
93832         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93833         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93834         setregid.
93835         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93836         Check for sys/sysctl.h.
93837         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93838         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93839         of checking for ssize_t ourselves.
93840
93841         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93842         Require every macro that gnulib/modules/* suggests for us.
93843         (jm_PREREQ_ADDEXT): New macro.
93844         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93845         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93846
93847         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93848         (gl_PHYSMEM): Use it.
93849         Also check for `table' function.
93850         Check for new headers and functions.
93851         Add check for sys/sysmp.h.
93852         With suggestions from Kaveh Ghazi.
93853         Ignore headers that are present but cannot be compiled.  This
93854         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93855         C 5.4.
93856
93857 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93858
93859         Document merge from coreutils.
93860         * modules/userspec: Depend on posixver.
93861         * modules/strftime: Depend on tzset.
93862
93863 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93864
93865         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93866         rather than tab, after '#' in shell-script copyright notices.
93867         Suggested by Bruno Haible.
93868
93869 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93870
93871         * config/srclist-update: Use three spaces, rather than tab, after '#'
93872         in shell-script copyright notices.  Suggested by Bruno Haible.
93873         Remove unnecessary parenthesization in regular expression.
93874
93875 2003-08-15  Jim Meyering  <jim@meyering.net>
93876
93877         Merge from coreutils.
93878         * lib/xgethostname.c: Include <stdlib.h>.
93879         (xghostname): Don't exit for anything other than memory-related
93880         failure; just return NULL.
93881         * lib/userspec.c: Include "posixver.h".
93882         (parse_user_spec): Accept `.' as a separator only
93883         in pre-POSIX-200112 mode.
93884         * lib/strtoimax.c: Use #elif rather than #else #if.
93885         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93886         Remove function, now that we can rely on a working tzset function.
93887         [!_LIBC]: Ensure that the required autoconf test has been run.
93888         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93889         Use underlying_strftime for %r.
93890         * lib/sha.c: Merge in some clean-up and optimization changes from
93891         glibc.
93892         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93893         Ensure that it is a multiple of 64.
93894         Rearrange loop exit tests so as to avoid performing an
93895         additional fread after encountering an error or EOF.
93896         * lib/realloc.c: Update copyright date.
93897
93898 2003-08-15  Jim Meyering  <jim@meyering.net>
93899         and Paul Eggert  <eggert@twinsun.com>
93900
93901         Merge from coreutils.
93902         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93903         member but strut utmpx does not.  Needed for AIX 4.3.3.
93904         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93905
93906 2003-08-15  Jim Meyering  <jim@meyering.net>
93907         and Paul Eggert  <eggert@cs.ucla.edu>
93908
93909         Merges from coreutils, etc.
93910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93911         Require gl_FUNC_TZSET_CLOBBER.
93912         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93913         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93914         members.
93915
93916 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93917
93918         Help the merge from coreutils.
93919         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93920         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93921         * m4/tzset.m4: Use it too.
93922
93923 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93924
93925         * modules/tzset: New file.
93926
93927 2003-08-14  Jim Meyering  <jim@meyering.net>
93928
93929         Merges from coreutils.
93930         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93931         variable names, rather than @FNMATCH_H@.
93932         * modules/alloca: Likewise for $(ALLOCA_H).
93933
93934         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93935         the three copies of the literal target, `fnmatch.h'.
93936         * modules/alloca (alloca.h): Likewise.
93937
93938 2003-08-14  Jim Meyering  <jim@meyering.net>
93939
93940         Merge from coreutils.
93941         * m4/tzset.m4: New file.
93942         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93943         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93944         otherwise, AIX 5.1 systems would end up using the latter.
93945         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93946         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93947         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93948         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93949
93950 2003-08-14  Jim Meyering  <jim@meyering.net>
93951
93952         Merge from coreutils.
93953         * lib/obstack.h: Whitespace changes.
93954         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93955         and xcalloc return values.
93956         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93957         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93958         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93959         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93960         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93961         error from mntctl.
93962         Use mntctl's return value to drive the entry-processing loop, since
93963         we can't rely on the value of the vmt_length member in the last
93964         entry.  On some systems doing so could result in exhausting
93965         virtual memory.  Based in part on a patch from Mike Jetzer.
93966
93967 2003-08-14  Jim Meyering  <jim@meyering.net>
93968         and Paul Eggert  <eggert@twinsun.com>
93969
93970         Merges from coreutils, plus other fixes.
93971         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93972         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93973         for credits and details.  Thanks to Kaveh Ghazi for helping
93974         to keep these files in sync.
93975         (ARRAY_SIZE): Define it.
93976         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93977         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93978         (memcasecmp): Don't assume size_t fits in unsigned int.
93979         Remove casts and duplicate code.
93980         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93981         (memcpy): Remove definition.
93982         Merge in some clean-up and optimization changes from glibc.
93983         [BLOCKSIZE]: Move definition to top of file.
93984         Ensure that it is a multiple of 64.
93985         Rearrange loop exit tests so as to avoid performing an
93986         additional fread after encountering an error or EOF.
93987         * lib/md5.h (md5_uintptr): Define.
93988         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93989         return to the initial working directory.  Preserve errno
93990         for caller.
93991         * lib/idcache.c: Include "xalloc.h".
93992         (xmalloc, xrealloc): Remove decls.
93993         (getuser): Remove casts no longer required in C89.
93994         * lib/human.c: Include stdio.h, for sprintf.
93995         * lib/group-member.c: Include "xalloc.h".
93996         (xmalloc, xrealloc): Remove decls.
93997         (get_group_info): Remove casts no longer required in C89.
93998         * lib/getusershell.c (readname): Remove casts no longer required in
93999         C89.
94000         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
94001         * lib/getline.c: Whitespace fix, from coreutils.
94002
94003 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94004
94005         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
94006         Check for isascii.
94007
94008         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94009         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94010         Undo previous (whitespace-only) change.
94011
94012 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94013
94014         * lib/exclude.c: Include <ctype.h>
94015         (IN_CTYPE_DOMAIN): New macro.
94016         (is_space): New fn.
94017         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
94018         and empty lines.
94019
94020         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94021         Undo previous (whitespace-only) change.
94022
94023 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94024
94025         * config/srclist-update: Change update back to the old behavior,
94026         leaving whitespace alone.  Use one 'sed' command rather than a
94027         pipeline.
94028         (fixlicense): Now a variable, not a function.
94029         (remove_trailing_blanks): Remove.
94030         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
94031         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94032         Undo previous (whitespace-only) change.
94033
94034 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94035
94036         Merge from coreutils.
94037         * modules/euidaccess: Add lib_SOURCES, include for new
94038         file euidaccess.h
94039
94040 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94041
94042         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94043         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94044         Normalize leading white space and remove trailing white space.
94045
94046         Merge from coreutils
94047         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
94048
94049         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
94050         0.12.1.  These files are now being upgraded automatically by
94051         ../config/srclist-update.
94052
94053 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94054
94055         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94056         Normalize leading white space and remove trailing white space.
94057         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
94058         notice, as per ../config/srclist-update.
94059
94060         Merge from coreutils.
94061         * lib/euidaccess.h: New file.
94062         * lib/euidaccess.c: Include it.
94063         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
94064         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
94065         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
94066
94067 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94068
94069         * config/srclist-update: Add copyright notice.
94070         (remove_id_lines, remove_trailing_blanks): New constants.
94071         (fixfile): Use them to normalize spacing a bit in copied files.
94072         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94073         Normalize leading white space and remove trailing white space.
94074
94075         * config/texinfo.tex: Sync with texinfo.
94076
94077         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
94078         strtoul.c from libc, to merge coreutils whitespace changes.
94079
94080         * config/srclist.txt: Get the following m4 files from gettext:
94081         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
94082         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
94083         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
94084         wint_t.m4.
94085
94086 2003-08-12  Karl Berry  <karl@gnu.org>
94087
94088         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
94089         been made.
94090
94091 2003-08-11  Paul Eggert  <eggert@twinsun.com>
94092
94093         * modules/gnu-source, m4/gnu-source.m4:
94094         Remove; we're assuming Autoconf 2.54 or later now.
94095         Suggested by Bruno Haible.
94096         * MODULES.html.sh (func_all_modules): Remove gnu-source.
94097
94098 2003-08-11  Bruno Haible  <bruno@clisp.org>
94099
94100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
94101
94102 2003-08-11  Bruno Haible  <bruno@clisp.org>
94103
94104         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
94105         (vasnprintf): Use it instead of wcslen.
94106
94107 2003-08-11  Bruno Haible  <bruno@clisp.org>
94108
94109         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
94110         value to ensure that _Bool promotes to int. Use #define for _Bool when
94111         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
94112
94113 2003-08-10  Karl Berry  <karl@gnu.org>
94114
94115         * lib/regex.h: update from libc (whitespace fix).
94116
94117 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94118
94119         Merge some files from coreutils.  These changes were
94120         originally made by Jim Meyering.
94121         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
94122         many older Unixes require this.
94123         * lib/alloca.c (alloca): Remove cast to argument of free;
94124         no longer needed in C89.
94125         * lib/alloca_.h, regex.h: Fix white space to match
94126         what GNU indent does.
94127
94128 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94129
94130         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
94131         apparently Emacs's Unicode mode got confused before my 2003-08-05
94132         checkin.
94133
94134 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94135
94136         * m4/extensions.m4: New file.
94137         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
94138         Require gl_USE_SYSTEM_EXTENSIONS.
94139         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
94140         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
94141
94142 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94143
94144         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
94145         * modules/extensions, modules/gnu-source: New files.
94146         * modules/timespec, modules/unlocked-io: Depend on extensions.
94147
94148 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94149
94150         * modules/restrict: New file.
94151         * MODULES.html.sh (func_all_modules): Add restrict.
94152         * modules/regex: Depend on restrict.
94153
94154 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94155
94156         * m4/restrict.m4: New file.
94157         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
94158
94159 2003-08-07  Bruno Haible  <bruno@clisp.org>
94160
94161         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
94162         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
94163
94164 2003-08-07  Bruno Haible  <bruno@clisp.org>
94165
94166         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
94167         makes the module 'getndelim2' compatible with the module 'getline'.
94168
94169 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94170
94171         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
94172         byte with "\201" to avoid glitches when editing that source file
94173         with multi-gnome-terminal.
94174
94175 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94176
94177         * lib/bumpalloc.h: Remove.
94178
94179 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94180
94181         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
94182         * modules/bumpalloc: Remove.
94183
94184 2003-08-04  Paul Eggert  <eggert@twinsun.com>
94185
94186         * lib/getloadavg.c: Change copyright notice and spacing to conform to
94187         GNU coding style.
94188
94189         Merge from coreutils.
94190         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
94191         1. From glibc.
94192         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
94193         from Karl Berry, implemented by Jim Meyering.
94194         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
94195         from Dmitry V. Levin.
94196         Remove anachronistic cast of xrealloc.
94197         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
94198         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
94199         type. Otherwise, it wouldn't compile with at least /bin/cc on
94200         ymp-cray-unicos9.0.2.X.
94201         Combine two mostly-identical uses of alloca into one.
94202         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
94203
94204 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94205
94206         [From Emacs.]
94207
94208         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94209         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94210         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94211         obsolete NLIST_NAME_UNION.
94212         [__GNU__]: Undef BSD and FSCALE.
94213         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94214
94215 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94216
94217         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94218         an enum type, so that it's guaranteed to promote to int.  See:
94219         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94220
94221 2003-08-03  Karl Berry  <karl@gnu.org>
94222
94223         * config/depcomp: update from automake.
94224
94225 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94226
94227         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94228         (strerror): Don't assume that a printable int fits in 14 bytes.
94229
94230 2003-07-31  Bruno Haible  <bruno@clisp.org>
94231
94232         * modules/getpass-gnu: New file.
94233         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94234
94235 2003-07-31  Bruno Haible  <bruno@clisp.org>
94236
94237         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94238
94239 2003-07-24  Karl Berry  <karl@gnu.org>
94240
94241         * config/missing: update from automake.
94242
94243 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94244             Bruno Haible  <bruno@clisp.org>
94245
94246         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94247         * lib/getline.c (getline, getdelim): Likewise.
94248         Remove _GNU_SOURCE define; now it's defined in config.h through
94249         m4/getline.m4.
94250
94251 2003-07-23  Karl Berry  <karl@gnu.org>
94252
94253         * config/config.sub: update from prep.
94254
94255 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94256
94257         * modules/xalloc (Depends-on): Add exitfail.
94258         * modules/xmemcoll: Likewise.
94259
94260 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94261
94262         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94263         over-parenthesization in macros.
94264
94265         Sync with coreutils.
94266
94267         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94268         required by C99.
94269
94270         Use `exit_failure' for xalloc and xmemcoll instead of their own
94271         private exit-failure variables.
94272         * lib/xalloc.h (xalloc_exit_failure): Remove.
94273         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94274         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94275         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94276         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94277         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94278
94279 2003-07-20  Jim Meyering  <jim@meyering.net>
94280
94281         * modules/closeout (Depends-on): Add exitfail.
94282         Suggestion from Bruno Haible.
94283
94284 2003-07-19  Karl Berry  <karl@gnu.org>
94285
94286         * config/config.sub: update from prep.
94287
94288 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94289
94290         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94291         Remove.
94292         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94293         to test that it can stand by itself.  Include "exitfail.h".
94294         Clients should set exit_failure instead.
94295         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94296
94297 2003-07-18  Bruno Haible  <bruno@clisp.org>
94298
94299         * modules/getndelim2: New file.
94300         * modules/getline: Share files with module getndelim2.
94301         * modules/getnline: Depend on getndelim2 instead of sharing files with
94302         it. Add getnline.c to lib_SOURCES.
94303         * MODULES.html.sh (func_all_modules): Add getndelim2.
94304
94305 2003-07-18  Bruno Haible  <bruno@clisp.org>
94306
94307         * m4/getndelim2.m4: New file.
94308         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94309         invoke gl_PREREQ_GETNDELIM2.
94310         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94311         gl_PREREQ_GETNDELIM2.
94312         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94313         gl_GETNDELIM2.
94314
94315 2003-07-18  Bruno Haible  <bruno@clisp.org>
94316
94317         * lib/getndelim2.h: New file.
94318         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94319         getndelim2.h.
94320         (getndelim2): Make non-static. Change return type to ssize_t.
94321         * lib/getline.h: Change argument names.
94322         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94323         * lib/getnline.c: Include getndelim2.h.
94324
94325 2003-07-18  Andreas Schwab  <schwab@suse.de>
94326
94327         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94328
94329 2003-07-17  Karl Berry  <karl@gnu.org>
94330
94331         * config/config.sub: update from prep.
94332
94333 2003-07-17  Bruno Haible  <bruno@clisp.org>
94334
94335         * modules/getnline: New file.
94336         * modules/getline: Add lib/getndelim2.c to source file list.
94337         * MODULES.html.sh (func_all_modules): Add getnline.
94338
94339 2003-07-17  Bruno Haible  <bruno@clisp.org>
94340
94341         * m4/getnline.m4: New file.
94342
94343 2003-07-17  Bruno Haible  <bruno@clisp.org>
94344
94345         * m4/Makefile.am.in: Remove file.
94346         * m4/Makefile.am: Remove file.
94347         * m4/Makefile.in: Remove file.
94348
94349 2003-07-17  Bruno Haible  <bruno@clisp.org>
94350
94351         * lib/getnline.h: New file.
94352         * lib/getnline.c: New file.
94353         * lib/getndelim2.c: New file, extracted from getline.c.
94354         (getndelim2): Renamed from getdelim2, with added nmax argument.
94355         * lib/getline.c: Include getndelim2.c.
94356         (getdelim2): Moved out to getndelim2.c.
94357         (getline, getdelim): Update.
94358
94359 2003-07-17  Bruno Haible  <bruno@clisp.org>
94360
94361         * lib/Makefile.am: Remove file.
94362         * lib/Makefile.in: Remove file.
94363
94364 2003-07-17  Bruno Haible  <bruno@clisp.org>
94365
94366         * configure.in: Remove file.
94367         * Makefile.in: Remove file.
94368
94369 2003-07-17  Bruno Haible  <bruno@clisp.org>
94370
94371         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94372
94373 2003-07-16  Karl Berry  <karl@gnu.org>
94374
94375         * config/srclist-update: was running fixlicense twice, which caused
94376                 texinfo.tex to be nullified for some reason.  Simplify,
94377                 $gplsrc is no longer needed as far as I can see?
94378
94379 2003-07-16  Jim Meyering  <jim@meyering.net>
94380
94381         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94382
94383 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94384
94385         * config/srclist.txt: Get the following files from gettext-runtime/intl
94386         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94387         ref-del.sin.  From Bruno Haible.
94388         * config/srclist-update (fixfile): Change grep pattern again, since the
94389         previous fix didn't work (there was another trailing $).  Use
94390         '[$]' to escape the $s.
94391
94392 2003-07-15  Karl Berry  <karl@gnu.org>
94393
94394         * lib/vasnprintf.c: update from gettext.
94395
94396 2003-07-15  Karl Berry  <karl@gnu.org>
94397
94398         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94399         gets expanded when surrounded by '$'.
94400
94401 2003-07-15  Jim Meyering  <jim@meyering.net>
94402
94403         * modules/save-cwd: Don't depend on error.  From Derek Price.
94404
94405 2003-07-15  Jim Meyering  <jim@meyering.net>
94406
94407         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94408
94409 2003-07-14  Simon Josefsson  <jas@extundo.com>
94410
94411         * modules/mempcpy: New file.
94412         * MODULES.html.sh (func_all_modules): Add mempcpy.
94413
94414 2003-07-14  Simon Josefsson  <jas@extundo.com>
94415
94416         * m4/mempcpy.m4: New file.
94417
94418 2003-07-14  Simon Josefsson  <jas@extundo.com>
94419
94420         * lib/mempcpy.h: New file.
94421         * lib/mempcpy.c: New file.
94422
94423 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94424
94425         * modules/getdate, modules/posixtm: Depend on mktime.
94426
94427 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94428
94429         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94430         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94431         unicodeio.c, unicodeio.h, unlocked-io.h:
94432         Switch from LGPL to GPL.
94433
94434 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94435
94436         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94437         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94438         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94439         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94440         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94441         updated automatically by ../config/srclist-update.  This changes
94442         their license from LPGL to GPL.
94443
94444 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94445
94446         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94447         assumed to refer to the root of the most recent stable gettext version.
94448         * config/srclistvars.sh: Add defaults for eggert.
94449         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94450         Match "This program" as well as "The program".  This is needed
94451         for gettext.
94452
94453 2003-07-14  Jim Meyering  <jim@meyering.net>
94454
94455         Don't emit diagnostics.  Let callers do that.
94456         * lib/save-cwd.c: Don't include "error.h".
94457         (save_cwd): Don't call error.  Ensure that errno is valid
94458         when returning nonzero.
94459
94460         * lib/save-cwd.h (restore_cwd): Update prototype.
94461         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94462         Simplify.  Don't call error upon failure.  Let callers do that.
94463         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94464         when auditing is enabled.  But don't bother updating the #if.
94465
94466 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94467
94468         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94469         it breaks C++ compilation.
94470         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94471
94472 2003-07-10  Simon Josefsson  <jas@extundo.com>
94473
94474         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94475
94476 2003-07-10  Jim Meyering  <jim@meyering.net>
94477
94478         * m4/clock_time.m4: Remove trailing blank.
94479         * m4/intmax_t.m4: Likewise.
94480
94481 2003-07-10  Jim Meyering  <jim@meyering.net>
94482
94483         * lib/vasnprintf.c: Remove trailing blanks.
94484         Make cpp indentation consistent.
94485
94486 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94487
94488         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94489         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94490         Switch from LGPL to GPL.
94491
94492 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94493
94494         * config/srclist.txt: Sort sublists.  Add
94495         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94496         that differ from gnulib for one reason or another; we'd like this list
94497         to be smaller but for now let's document what we have.
94498
94499 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94500
94501         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94502         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94503         and sweeter "eval x=$x".
94504         * config/srclist.txt: Get lib/argp* from glibc.
94505
94506 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94507
94508         * lib/mktime.c: Fix some boundary cases and remove need for floating
94509         point.
94510
94511         Issue a compile-time diagnostic if time_t is floating point, or if
94512         two's complement arithmetic is not in effect, or if arithmetic
94513         right shift does not propagate the sign.  These assumptions were
94514         all in the original code but they weren't checked.
94515
94516         (TIME_T_MIDPOINT, verify): New macros.
94517         (__isleap): Remove; it has integer overflow problems.
94518         (leapyear): New function, without those problems.
94519         (ydhms_tm_diff): Remove; splitting into two parts.
94520         (ydhms_diff): New function, containing the arithmetic part of
94521         the old ydhms_tm_diff function.  Issue a compile-time
94522         diagnostic if we are not using C99 integer division.
94523         Avoid casts when possible.
94524         (guess_time_tm): New function, containing the checking part of
94525         the old ydhms_tm_diff function.  Return the new value, rather than
94526         the difference between it and the old.  Accept a new argument T
94527         so that *T specifies the old value.  Check for overflow in the result.
94528
94529         (__mktime_internal): Use a time_t offset, not a long int offset.
94530         This undoes the 2003-06-04 change, which is no longer needed now
94531         that we have better overflow checking.
94532         (localtime_offset): Likewise.
94533
94534         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94535         and long are 64-bit but int is only 32-bit.
94536         (ydhms_diff): Use long int to store year1 and yday1.
94537         Issue a compile-time diagnostic if long int is not wide enough.
94538
94539         (__mktime_internal): Use long int to store adjusted year and yday.
94540         Use plain C rather than preprocessor commands, if that doesn't
94541         affect efficiency.
94542         Check for overflow (and try to repair) after each probe
94543         rather than checking only at the very end.  This avoids some bugs
94544         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94545         does not equal GMT offset at maximum time).
94546         Use integer to check for overflow rather than floating point; this
94547         is more portable to non-IEEE hosts, and is a tad faster.
94548         When we detect that we are oscillating between two values,
94549         don't check whether tm_isdst has the requested value, since
94550         we already know the answer.  When tm_isdst has the wrong value,
94551         use a different heuristic to find the right one, based on the
94552         extreme values actually observed in practice in tz2003a,
94553         rather than the (overly optimistic) "previous 3 calendar quarters".
94554
94555         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94556         "T const" to accommodate glibc style.
94557         (check_result): Use less-confusing report format.  "long" -> "long int.
94558         (main): Likewise.
94559         Don't loop if the iteration overflows time_t.
94560         Allow a negative step in the iteration.
94561
94562 2003-07-06  Karl Berry  <karl@gnu.org>
94563
94564         * config/depcomp: update from automake.
94565         * config/config.sub: update from prep.
94566
94567 2003-07-03  Karl Berry  <karl@gnu.org>
94568
94569         * config/config.guess: update from prep.
94570
94571 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94572
94573         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94574         xreadlink.c now includes it unconditionally.
94575
94576 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94577
94578         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94579         having it depend on HAVE_SYS_TYPES_H.
94580
94581 2003-07-01  Bruno Haible  <bruno@clisp.org>
94582
94583         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94584         <sys/types.h> should be sufficient.
94585         Reported by Paul Eggert.
94586
94587 2003-06-26  Karl Berry  <karl@gnu.org>
94588
94589         * config/depcomp: update from automake.
94590
94591 2003-06-26  Bruno Haible  <bruno@clisp.org>
94592
94593         * modules/human: Depend on module stdbool.
94594
94595 2003-06-25  Bruno Haible  <bruno@clisp.org>
94596
94597         * modules/readlink: New file.
94598         * modules/xreadlink: Depend on it.
94599         * MODULES.html.sh (func_all_modules): Add readlink.
94600
94601 2003-06-25  Bruno Haible  <bruno@clisp.org>
94602
94603         * m4/readlink.m4: New file.
94604
94605 2003-06-25  Bruno Haible  <bruno@clisp.org>
94606
94607         * lib/readlink.c: New file.
94608
94609 2003-06-22  Karl Berry  <karl@gnu.org>
94610
94611         * config/srclist.txt: update mkinstalldirs from automake.
94612         * config/mkinstalldirs: update.
94613
94614 2003-06-22  Bruno Haible  <bruno@clisp.org>
94615
94616         Portability to mingw32.
94617         * m4/ssize_t.m4: New file, from GNU gettext.
94618         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94619         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94620
94621 2003-06-22  Bruno Haible  <bruno@clisp.org>
94622
94623         * modules/safe-read: Add m4/ssize_t.m4.
94624         * modules/xreadlink: Add m4/ssize_t.m4.
94625
94626 2003-06-20  Bruno Haible  <bruno@clisp.org>
94627
94628         Assume C89, so PARAMS isn't needed.
94629         * lib/unicodeio.h (PARAMS): Remove.
94630         * lib/unicodeio.c: Don't use PARAMS.
94631
94632 2003-06-18  Karl Berry  <karl@gnu.org>
94633
94634         * config/config.{guess,sub}: update from prep.
94635
94636 2003-06-18  Jim Meyering  <jim@meyering.net>
94637
94638         Merge changes from coreutils.
94639         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94640         Remove explicit declarations of xmalloc and realloc.
94641         Include xalloc.h.
94642         (read_utmp): Remove anachronistic cast of xmalloc.
94643
94644 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94645
94646         Assume C89, so PARAMS isn't needed.
94647         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94648         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94649         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94650         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94651         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94652         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94653         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94654         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94655         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94656         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94657         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94658         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94659         no longer needed. Anyway, config.h should always be included before any
94660         other file.
94661
94662 2003-06-11  Simon Josefsson  <jas@extundo.com>
94663
94664         * modules/sysexits: New file.
94665         * MODULES.html.sh (func_all_modules): Add sysexits.
94666
94667 2003-06-11  Simon Josefsson  <jas@extundo.com>
94668
94669         * lib/sysexit_.h: New file.
94670
94671 2003-06-11  Derek Price  <derek@ximbiot.com>
94672
94673         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94674         necessary.
94675
94676 2003-06-11  Bruno Haible  <bruno@clisp.org>
94677
94678         * m4/sysexits.m4: New file.
94679
94680 2003-06-10  Simon Josefsson  <jas@extundo.com>
94681
94682         * lib/argp.h: New file, from glibc.
94683         * lib/argp-ba.c: New file, from glibc.
94684         * lib/argp-eexst.c: New file, from glibc.
94685         * lib/argp-fmtstream.c: New file, from glibc.
94686         * lib/argp-fmtstream.h: New file, from glibc.
94687         * lib/argp-fs-xinl.c: New file, from glibc.
94688         * lib/argp-help.c: New file, from glibc.
94689         * lib/argp-namefrob.h: New file, from glibc.
94690         * lib/argp-parse.c: New file, from glibc.
94691         * lib/argp-pv.c: New file, from glibc.
94692         * lib/argp-pvh.c: New file, from glibc.
94693         * lib/argp-xinl.c: New file, from glibc.
94694
94695 2003-06-10  Simon Josefsson  <jas@extundo.com>
94696
94697         * modules/strchrnul: New file.
94698
94699 2003-06-10  Simon Josefsson  <jas@extundo.com>
94700
94701         * modules/argp: New file.
94702
94703 2003-06-10  Simon Josefsson  <jas@extundo.com>
94704
94705         * m4/strchrnul.m4: New file.
94706
94707 2003-06-10  Simon Josefsson  <jas@extundo.com>
94708
94709         * lib/strchrnul.h: New file.
94710         * lib/strchrnul.c: New file.
94711
94712 2003-06-10  Bruno Haible  <bruno@clisp.org>
94713
94714         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94715
94716 2003-06-07  Karl Berry  <karl@gnu.org>
94717
94718         * config/config.{guess,sub}: update from prep.
94719
94720 2003-06-07  Jim Meyering  <jim@meyering.net>
94721
94722         * modules/strtod: Use $(...) notation, not @...@ for
94723         AC_REPLACE'd variables.
94724         * modules/localcharset: Likewise.
94725
94726 2003-06-07  Jim Meyering  <jim@meyering.net>
94727
94728         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94729         in place of my name in the copyright comment.
94730         Remove definition and uses of __P.
94731
94732         From coreutils.
94733         * lib/stat.c: Don't declare xmalloc explicitly.
94734         Instead, include "xalloc.h".
94735         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94736         xrealloc, and xcalloc return values.
94737         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94738         Improve comment.
94739         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94740
94741 2003-06-07  Bruno Haible  <bruno@clisp.org>
94742
94743         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94744         avoid AC_CONFIG_LINKS.
94745         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94746         fnmatch.h, to avoid AC_CONFIG_LINKS.
94747         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94748
94749 2003-06-07  Bruno Haible  <bruno@clisp.org>
94750
94751         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94752         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94753         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94754         directory.
94755         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94756         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94757         directory.
94758
94759 2003-06-06  Jim Meyering  <jim@meyering.net>
94760
94761         Merge from coreutils.
94762         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94763         Consolidate declarations and initializations of *_base* locals.
94764
94765         Merge from coreutils.
94766         This avoids a core dump on systems without GNU putenv,
94767         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94768         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94769         (unsetenv): New static function, from GNU libc.
94770         (rpl_putenv): Use it.
94771
94772         * lib/modechange.c: Remove trailing blanks.
94773
94774         Merge from coreutils.
94775         * lib/fsusage.c: Remove declaration of statfs.
94776         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94777
94778         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94779
94780 2003-06-06  Jim Meyering  <jim@meyering.net>
94781
94782         * lib/stdbool_.h: Renamed from stdbool.h.in.
94783
94784 2003-06-06  Jim Meyering  <jim@meyering.net>
94785             Bruno Haible  <bruno@clisp.org>
94786
94787         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94788         Adjust Makefile.am snippet not to redirect directly to target.
94789         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94790
94791 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94792
94793         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94794         mismatch, look in future quarters as well as past.  This fixes a
94795         bug when processing fall-backwards gaps immediately after a long
94796         period of daylight-saving time.
94797
94798         * lib/mktime.c: Assume freestanding C89 or better.
94799         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94800         (__P): Remove; not used.
94801         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94802         (mktime, not_equal_tm, print_tm, check_result,
94803         main): Use prototypes.  Use const * where appropriate.
94804         (main): Fix typo in testing code that uncovered by above changes.
94805         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94806
94807 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94808
94809         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94810         locale.h, localeconv.  This merges changes from coreutils.
94811
94812         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94813         It can be removed after the next Autoconf is released.
94814         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94815         needed.
94816
94817 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94818
94819         * lib/mktime.c: Fix Debian bug 177940
94820         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94821         (localtime_offset): Now long int, not time_t, because we want it
94822         to be guaranteed to be signed.  All uses changed.
94823         (__mktime_internal): If overflow would occur when adding offset,
94824         don't add it.
94825
94826         Merge 'human' changes from coreutils.  Rewrite to support
94827         locale-specific notations like thousands separators.
94828         * lib/human.c: Simplify authorship notice.
94829         Include human.h immediately after config.h.
94830         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94831         <limits.h>: Do not include, since human.h does.
94832         (SIZE_MAX, UINTMAX_MAX): New macros.
94833         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94834         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94835         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94836         (power_letter): Renamed from suffixes.
94837         (generate_suffix_backwards): Remove.
94838         (adjust_value): Now takes int style (because of human.h changes)
94839         and long double value (for greater precision on some platforms).
94840         (group_number): New function.
94841         (human_readable): Use it.  Use integer options, not enum.
94842         Put the options before the sizes in the arg list.
94843         Support all the new options.
94844         The old human_readable function has been removed;
94845         use inttostr.h instead.
94846         (human_readable, default_block_size, humblock):
94847         Use uintmax_t, not int, for block sizes.
94848         (human_readable_inexact, block_size_types): Remove.
94849         (block_size_opts): New constant.
94850         (human_options): Renamed from human_block_size, with new signature
94851         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94852         * lib/human.h: Add copyright and authorship notice.
94853         Include <limits.h> and <stdbool.h> unconditionally.
94854         (PARAMS): Remove.  All uses removed.
94855         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94856         (enum human_inexact_style): Remove tag; now a nameless enum.
94857         (human_floor, human_ceiling, human_round_to_even): Now have
94858         values 2, 0, 1 rather than -1, 1, 0.
94859         (human_group_digits, human_suppress_point_zero, human_autoscale,
94860         human_base_1024, human_SI, human_B): New constants.
94861         (human_readable_inexact, human_block_size): Remove.
94862         (human_readable): Size args are now uintmax_t, not int.
94863         (human_options): New decl.
94864
94865         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94866         unnecessary now that we assume C89 or better.  This change
94867         imported from coreutils.
94868
94869         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94870         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94871         in the 2003-05-30 sync from glibc.
94872
94873         .h files should stand alone, but we shouldn't include <sys/types.h>
94874         if we can get away with just <stddef.h>.
94875
94876         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94877         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94878         rather than <sys/types.h>, as we merely need size_t.
94879         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94880         to get size_t.
94881         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94882         Include <stdio.h>, to get FILE.
94883         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94884         memcasecmp.h has included <stddef.h> and all we need is size_t.
94885         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94886         our interface, instead of including <sys/types.h>
94887
94888 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94889
94890         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94891         now, as glibc mktime is buggy on non-glibc systems.
94892
94893 2003-06-03  Karl Berry  <karl@gnu.org>
94894
94895         * config/config.sub: update from prep.
94896
94897 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94898
94899         [from coreutils]
94900         Fix some minor time-related bugs with POSIX time arguments.
94901         Some valid time stamps were being rejected (notably -1, and
94902         time stamps before 1900 on 64-bit hosts).  And some invalid
94903         time stamps were being accepted, e.g. September 31.
94904
94905         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94906         that we can return (time_t) -1 successfully.
94907         * lib/posixtm.c: Likewise.
94908         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94909         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94910         (t): Remove static var.
94911         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94912         of static var.  All uses changed.
94913         (year): Do not reject years before 1900; they can occur with
94914         64-bit time_t.
94915         (posix_time_parse): Do not check for out-of-range components;
94916         that is now the caller's responsibility, since our checks were
94917         only approximations.
94918         (posixtime): Use mktime to check for out-of-range components,
94919         since it knows them exactly.
94920         If mktime returns (time_t) -1, check whether an error actually occurred
94921         by invoking localtime on -1.
94922         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94923         posixtime failures better.
94924         Improve the test data (in comments only).
94925
94926 2003-06-02  Karl Berry  <karl@gnu.org>
94927
94928         * config/mkinstalldirs (version): new variable.
94929         (--version): new option.
94930         (usage): improve message.
94931
94932 2003-05-30  Karl Berry  <karl@gnu.org>
94933
94934         * lib/mktime.c: update from libc.
94935
94936 2003-05-30  Bruno Haible  <bruno@clisp.org>
94937
94938         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94939         * config/config.rpath: Upgrade to gettext-0.12.1.
94940
94941 2003-05-30  Bruno Haible  <bruno@clisp.org>
94942
94943         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94944         * m4/nls.m4: New file, from gettext-0.12.1.
94945         * m4/po.m4: New file, from gettext-0.12.1.
94946         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94947
94948 2003-05-30  Bruno Haible  <bruno@clisp.org>
94949
94950         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94951         * lib/localcharset.h: Likewise.
94952         * lib/localcharset.c: Likewise.
94953
94954 2003-05-29  Karl Berry  <karl@gnu.org>
94955
94956         * config/config.rpath: update from gettext.
94957
94958 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94959
94960         Assume the headers required for C89 freestanding compilers.
94961         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94962         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94963         * m4/human.m4 (gl_HUMAN): Likewise.
94964         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94965         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94966         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94967         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94968         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94969         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94970
94971 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94972
94973         Assume the headers required for C89 freestanding compilers.
94974         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94975         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94976         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94977         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94978         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94979         define, since <limits.h> is guaranteed to do that.
94980         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94981         * lib/exclude.c: Include <stdbool.h> unconditionally.
94982         * lib/tempname.c: Include <stddef.h> unconditionally.
94983         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94984         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94985         <stddef.h> does that.
94986         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94987         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94988         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94989         needed.
94990         * lib/xstrtol.c: Likewise.
94991         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94992         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94993
94994         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94995         warnings on some platforms.
94996
94997         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94998         arbitrarily.
94999
95000 2003-05-26  Jim Meyering  <jim@meyering.net>
95001
95002         Merge in a change from coreutils:
95003         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
95004         that is guaranteed to be `no'.  Use `no_such_member' to indicate
95005         that condition, rather than `-1' which is slightly misleading.
95006         Change the name of the cache variable to have the gl_ prefix.
95007         Prompted by a patch from Richard Dawe for DJGPP.
95008
95009 2003-05-24  Karl Berry  <karl@gnu.org>
95010
95011         * config/config.guess: update from prep.
95012
95013 2003-05-22  Karl Berry  <karl@gnu.org>
95014
95015         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
95016
95017 2003-05-20  Karl Berry  <karl@gnu.org>
95018
95019         * config/config.guess: update from prep.
95020
95021 2003-05-18  Karl Berry  <karl@gnu.org>
95022
95023         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
95024         might actually be set by the user.
95025
95026         * config/depcomp, install-sh, mdate-sh: update from automake.
95027
95028 2003-05-17  Bruno Haible  <bruno@clisp.org>
95029
95030         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
95031         invalid expansion for AC_EGREP_CPP.
95032         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
95033         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
95034         Suggested by Akim Demaille <akim@epita.fr> in
95035         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
95036
95037 2003-05-12  Jim Meyering  <jim@meyering.net>
95038
95039         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
95040         the space-padded-by-default conversion specifiers, %e, %k, %l.
95041
95042 2003-05-12  Bruno Haible  <bruno@clisp.org>
95043
95044         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
95045         the string is longer than 4 KB.
95046
95047 2003-05-11  Karl Berry  <karl@gnu.org>
95048
95049         * config/config.{guess,sub}: update from prep.
95050
95051 2003-05-09  Bruno Haible  <bruno@clisp.org>
95052
95053         * modules/error: Add m4/strerror_r.m4 to file list.
95054
95055 2003-05-03  Bruno Haible  <bruno@clisp.org>
95056
95057         Upgrade to Unicode-4.0.
95058         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
95059         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
95060         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
95061         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
95062         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
95063         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
95064         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
95065         Change width of U+E0100..U+E01EF from 1 to 0.
95066
95067 2003-04-25  Jim Meyering  <jim@meyering.net>
95068
95069         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
95070         of type size_t, not int.
95071
95072 2003-04-25  Bruno Haible  <bruno@clisp.org>
95073
95074         * lib/copy-file.c: Include <stddef.h>, for size_t.
95075
95076 2003-04-21  Paul Eggert  <eggert@twinsun.com>
95077
95078         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
95079         code which expansion is under static control.  Patch imported from
95080         Akim Demaille's patch to Bison; see
95081         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
95082
95083 2003-04-14  Bruno Haible  <bruno@clisp.org>
95084
95085         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
95086
95087 2003-04-11  Jim Meyering  <jim@meyering.net>
95088
95089         Merge changes from Coreutils.
95090
95091         2003-03-22  Jim Meyering  <jim@meyering.net>
95092
95093         * lib/strftime.c (widen): Cast alloca return value to proper type.
95094
95095         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
95096
95097         From GNU libc.
95098         * lib/strftime.c (my_strftime): Handle very large width
95099         specifications for numeric values correctly.  Improve checks for
95100         overflow.
95101
95102         2003-01-19  Jim Meyering  <jim@meyering.net>
95103
95104         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
95105         definitions.
95106         (nl_get_alt_digit) [! defined my_strftime]: Define.
95107         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
95108         _nl_get_alt_digit and _nl_get_walt_digit.
95109
95110         * lib/strftime.c (my_strftime): Merge in locale-related changes from
95111         libc. These changes have no effect outside of _LIBC.
95112
95113 2003-04-10  Bruno Haible  <bruno@clisp.org>
95114
95115         * modules/findprog: New file.
95116         * MODULES.html.sh (func_all_modules): Add it.
95117
95118 2003-04-10  Bruno Haible  <bruno@clisp.org>
95119
95120         * m4/findprog.m4: New file.
95121         * m4/eaccess.m4: New file.
95122
95123 2003-04-10  Bruno Haible  <bruno@clisp.org>
95124
95125         * lib/findprog.h: New file, from GNU gettext.
95126         * lib/findprog.c: New file, from GNU gettext.
95127
95128 2003-04-05  Jim Meyering  <jim@meyering.net>
95129
95130         Merge changes from Coreutils.
95131
95132         * lib/exclude.h (PARAMS): Remove definition and uses.
95133         * lib/exclude.c: Remove uses of `PARAMS'.
95134
95135         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
95136         Add test-cases for DOS filenames. Declare program_name.
95137         (main): Set up program_name.  Patch by Rich Dawe.
95138
95139         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
95140         error from mntctl.
95141         Use mntctl's return value to drive the entry-processing loop, since
95142         we can't rely on the value of the vmt_length member in the last
95143         entry.  On some systems doing so could result in exhausting
95144         virtual memory.  Based in part on a patch from Mike Jetzer.
95145
95146 2003-04-04  Bruno Haible  <bruno@clisp.org>
95147
95148         * modules/linebreak: New file.
95149         * MODULES.html.sh (func_all_modules): Add it.
95150
95151 2003-04-04  Bruno Haible  <bruno@clisp.org>
95152
95153         * m4/linebreak.m4: New file.
95154
95155 2003-04-04  Bruno Haible  <bruno@clisp.org>
95156
95157         * lib/linebreak.h: New file, from GNU gettext.
95158         * lib/linebreak.c: New file, from GNU gettext with slight
95159         modifications.
95160         * lib/lbrkprop.h: New file, from GNU gettext.
95161
95162 2003-04-03  Bruno Haible  <bruno@clisp.org>
95163
95164         * modules/utf8-ucs4: New file.
95165         * modules/utf16-ucs4: New file.
95166         * modules/ucs4-utf8: New file.
95167         * modules/ucs4-utf16: New file.
95168         * MODULES.html.sh (func_all_modules): Add them.
95169
95170 2003-04-03  Bruno Haible  <bruno@clisp.org>
95171
95172         * m4/utf-ucs4.m4: New file.
95173         * m4/ucs4-utf.m4: New file.
95174
95175 2003-04-03  Bruno Haible  <bruno@clisp.org>
95176
95177         * lib/utf8-ucs4.h: New file, from GNU gettext.
95178         * lib/utf16-ucs4.h: New file, from GNU gettext.
95179         * lib/ucs4-utf8.h: New file, from GNU gettext.
95180         * lib/ucs4-utf16.h: New file, from GNU gettext.
95181
95182 2003-04-02  Bruno Haible  <bruno@clisp.org>
95183
95184         * modules/binary-io: New file.
95185         * MODULES.html.sh (func_all_modules): Add it.
95186
95187 2003-04-02  Bruno Haible  <bruno@clisp.org>
95188
95189         * lib/binary-io.h: New file, from GNU gettext.
95190
95191 2003-04-01  Bruno Haible  <bruno@clisp.org>
95192
95193         * modules/pathname: New file.
95194         * MODULES.html.sh (func_all_modules): Add it.
95195
95196 2003-04-01  Bruno Haible  <bruno@clisp.org>
95197
95198         * lib/pathname.h: New file, from GNU gettext.
95199         * lib/concatpath.c: New file, from GNU gettext.
95200
95201 2003-03-30  Bruno Haible  <bruno@clisp.org>
95202
95203         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95204
95205 2003-03-30  Bruno Haible  <bruno@clisp.org>
95206
95207         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95208         function chown() doesn't exist.
95209
95210 2003-03-28  Bruno Haible  <bruno@clisp.org>
95211
95212         * modules/copy-file: New file.
95213         * MODULES.html.sh (func_all_modules): Add it.
95214
95215 2003-03-28  Bruno Haible  <bruno@clisp.org>
95216
95217         * m4/copy-file.m4: New file.
95218
95219 2003-03-28  Bruno Haible  <bruno@clisp.org>
95220
95221         * lib/copy-file.h: New file, from GNU gettext.
95222         * lib/copy-file.c: New file, from GNU gettext.
95223
95224 2003-03-18  Jim Meyering  <jim@meyering.net>
95225
95226         * lib/quote.c (quote_n): Fix typo in comment.
95227
95228 2003-03-18  Bruno Haible  <bruno@clisp.org>
95229
95230         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95231         checking.
95232         * m4/onceonly_2_57.m4: Likewise.
95233
95234 2003-03-17  Bruno Haible  <bruno@clisp.org>
95235
95236         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95237         (m4_quote): Remove macro.
95238         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95239
95240 2003-03-14  Jim Meyering  <jim@meyering.net>
95241
95242         Merge changes from Coreutils.
95243         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95244         to be const, in order to avoid warnings.
95245         (obstack_room): Likewise.
95246         (obstack_empty_p): Likewise.
95247
95248 2003-03-14  Bruno Haible  <bruno@clisp.org>
95249
95250         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95251         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95252
95253 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95254
95255         Merge changes from Bison.
95256         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95257         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95258         when compiling Bison 1.875's `bitset bset = obstack_alloc
95259         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95260         * lib/hash.c: Include <stdbool.h> unconditionally.
95261
95262 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95263
95264         * m4/onceonly.m4 (m4_quote): New macro.
95265         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95266         Quote AC_FOREACH variable-expansions properly.
95267
95268 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95269
95270         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95271
95272 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95273
95274         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95275         Reported by Bruce Becker; see:
95276         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95277
95278 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95279             Bruno Haible  <bruno@clisp.org>
95280
95281         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95282         Reported by John Hughes, see
95283         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95284
95285 2003-02-20  Bruno Haible  <bruno@clisp.org>
95286
95287         * MODULES.html.sh (func_all_modules): Add poll.
95288
95289 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95290
95291         * modules/poll: New file.
95292
95293 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95294
95295         * lib/poll_.h: New file.
95296         * lib/poll.c: New file.
95297
95298 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95299
95300         * m4/poll.m4: New file.
95301
95302 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95303
95304         * modules/mathl: New file.
95305
95306 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95307
95308         * lib/mathl.h: New file.
95309         * lib/acosl.c: New file.
95310         * lib/asinl.c: New file.
95311         * lib/atanl.c: New file.
95312         * lib/ceill.c: New file.
95313         * lib/cosl.c: New file.
95314         * lib/expl.c: New file.
95315         * lib/floorl.c: New file.
95316         * lib/frexpl.c: New file.
95317         * lib/ldexpl.c: New file.
95318         * lib/logl.c: New file.
95319         * lib/sincosl.c: New file.
95320         * lib/sinl.c: New file.
95321         * lib/sqrtl.c: New file.
95322         * lib/tanl.c: New file.
95323         * lib/trigl.c: New file.
95324         * lib/trigl.h: New file.
95325
95326 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95327
95328         * m4/mathl.m4: New file.
95329
95330 2003-02-18  Bruno Haible  <bruno@clisp.org>
95331
95332         * MODULES.html.sh (func_all_modules): Add mathl.
95333
95334 2003-02-17  Bruno Haible  <bruno@clisp.org>
95335
95336         * modules/mkdtemp: New module.
95337         * MODULES.html.sh (func_all_modules): Add it.
95338
95339 2003-02-17  Bruno Haible  <bruno@clisp.org>
95340
95341         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95342
95343 2003-02-17  Bruno Haible  <bruno@clisp.org>
95344
95345         * lib/mkdtemp.h: New file, from GNU gettext.
95346         * lib/mkdtemp.c: New file, from GNU gettext.
95347
95348 2003-02-02  Jim Meyering  <jim@meyering.net>
95349
95350         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95351         e.g. glibc-2.2.93.
95352
95353 2003-01-31  Bruno Haible  <bruno@clisp.org>
95354
95355         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95356         'rpl_rename'.
95357         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95358         'rpl_strnlen'.
95359         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95360         'rpl_strtod'.
95361         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95362         'rpl_utime'.
95363
95364 2003-01-31  Bruno Haible  <bruno@clisp.org>
95365
95366         * lib/rename.c: #undef rename before defining rpl_rename.
95367         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95368
95369 2003-01-30  Bruno Haible  <bruno@clisp.org>
95370
95371         * modules/vasnprintf, modules/vasprintf: New modules.
95372         * MODULES.html.sh (func_all_modules): Add them.
95373
95374 2003-01-30  Bruno Haible  <bruno@clisp.org>
95375
95376         * m4/signed.m4: New file, from GNU gettext.
95377         * m4/longdouble.m4: New file, from GNU gettext.
95378         * m4/wchar_t.m4: New file, from GNU gettext.
95379         * m4/wint_t.m4: New file, from GNU gettext.
95380         * m4/vasnprintf.m4: New file.
95381         * m4/vasprintf.m4: New file.
95382
95383 2003-01-30  Bruno Haible  <bruno@clisp.org>
95384
95385         * lib/printf-args.h: New file, from GNU gettext.
95386         * lib/printf-args.c: New file, from GNU gettext.
95387         * lib/printf-parse.h: New file, from GNU gettext.
95388         * lib/printf-parse.c: New file, from GNU gettext.
95389         * lib/vasnprintf.h: New file, from GNU gettext.
95390         * lib/vasnprintf.c: New file, from GNU gettext.
95391         * lib/asnprintf.c: New file, from GNU gettext.
95392         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95393         * lib/vasprintf.c: New file, from GNU gettext.
95394         * lib/asprintf.c: New file, from GNU gettext.
95395
95396 2003-01-29  Bruno Haible  <bruno@clisp.org>
95397
95398         * modules/stpncpy: New module.
95399         * MODULES.html.sh (func_all_modules): Add it.
95400
95401 2003-01-29  Bruno Haible  <bruno@clisp.org>
95402
95403         * m4/stpncpy.m4: New file.
95404
95405 2003-01-29  Bruno Haible  <bruno@clisp.org>
95406
95407         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95408         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95409
95410 2003-01-28  Bruno Haible  <bruno@clisp.org>
95411
95412         * modules/c-ctype: New module.
95413         * MODULES.html.sh (func_all_modules): Add it.
95414
95415 2003-01-28  Bruno Haible  <bruno@clisp.org>
95416
95417         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95418         Paul Eggert.
95419         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95420         Paul Eggert.
95421
95422 2003-01-27  Bruno Haible  <bruno@clisp.org>
95423
95424         * modules/xsetenv: New module.
95425         * MODULES.html.sh (func_all_modules): Add it.
95426
95427 2003-01-27  Bruno Haible  <bruno@clisp.org>
95428
95429         * lib/xsetenv.h: New file, from GNU gettext.
95430         * lib/xsetenv.c: New file, from GNU gettext.
95431
95432 2003-01-23  Jim Meyering  <jim@meyering.net>
95433
95434         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95435         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95436
95437 2003-01-23  Bruno Haible  <bruno@clisp.org>
95438
95439         * modules/minmax: New module.
95440         * MODULES.html.sh (func_all_modules): Add it.
95441
95442 2003-01-23  Bruno Haible  <bruno@clisp.org>
95443
95444         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95445         Eggert.
95446
95447 2003-01-22  Bruno Haible  <bruno@clisp.org>
95448
95449         * modules/exit: New module.
95450         * MODULES.html.sh (func_all_modules): Add it.
95451
95452 2003-01-22  Bruno Haible  <bruno@clisp.org>
95453
95454         * lib/exit.h: New file, from GNU gettext.
95455
95456 2003-01-19  Bruno Haible  <bruno@clisp.org>
95457
95458         * gnulib-tool: Recognize option --extract-maintainer.
95459         (func_get_maintainer): New function.
95460         * modules/*: Add Maintainer entry.
95461
95462 2003-01-16  Jim Meyering  <jim@meyering.net>
95463
95464         * m4/regex.m4: The `regex' struct is both input and output.
95465         Initialize it before each use.  Patch by Tim Waugh.
95466
95467 2003-01-16  Bruno Haible  <bruno@clisp.org>
95468
95469         * MODULES.html.sh: Add a table of contents. Add the module name as
95470         leftmost column. Add hyperlinks.
95471
95472 2003-01-15  Bruno Haible  <bruno@clisp.org>
95473
95474         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95475
95476 2003-01-15  Bruno Haible  <bruno@clisp.org>
95477
95478         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95479         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95480         suffix.
95481
95482 2003-01-15  Bruno Haible  <bruno@clisp.org>
95483
95484         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95485
95486 2003-01-15  Bruno Haible  <bruno@clisp.org>
95487
95488         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95489         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95490
95491 2003-01-14  Jim Meyering  <jim@meyering.net>
95492
95493         * lib/same.c (same_name): Tweak a comment.
95494
95495 2003-01-14  Bruno Haible  <bruno@clisp.org>
95496
95497         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95498         when a string comparison is sufficient.
95499
95500 2003-01-14  Bruno Haible  <bruno@clisp.org>
95501
95502         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95503         'unsigned int'.
95504
95505 2003-01-14  Bruno Haible  <bruno@clisp.org>
95506
95507         * lib/hash-pjw.c: Add comment about low quality of this function.
95508
95509 2003-01-13  Bruno Haible  <bruno@clisp.org>
95510
95511         * modules/stpcpy: Distribute lib/stpcpy.h.
95512         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95513
95514 2003-01-13  Bruno Haible  <bruno@clisp.org>
95515
95516         * modules/*: Add a description.
95517         * modules/strpbrk: Fix Makefile.am snippet.
95518         * modules/strtoimax: Fix dependencies.
95519         * modules/strtoumax: Likewise.
95520
95521 2003-01-13  Bruno Haible  <bruno@clisp.org>
95522
95523         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95524         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95525         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95526
95527 2003-01-13  Bruno Haible  <bruno@clisp.org>
95528
95529         * gnulib-tool (func_create_testdir): Store config/* files in the main
95530         directory.
95531         * config.rpath: Move to ...
95532         * config/config.rpath: ... here.
95533         * modules/gettext: Contains config/config.rpath, not config.rpath.
95534         * modules/iconv: Likewise.
95535
95536 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95537
95538         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95539         to avoid collisions with libcurses and libreadline.
95540
95541         * m4/getstr.m4: Remove.
95542         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95543
95544 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95545
95546         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95547         to avoid collisions with libcurses and libreadline.
95548
95549         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95550         * lib/getstr.h, getstr.c: Remove.
95551         * lib/getline.c: Include "getline.h", to check interface.
95552         Move body of old getstr.c here: this defines MIN_CHUNK and
95553         declares getdelim2, which is renamed from getstr.
95554         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95555
95556         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95557         All uses changed.
95558         * lib/linebuffer.h: Likewise.
95559         (readline): Remove backward-compatibility macro.
95560
95561 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95562
95563         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95564         to avoid collisions with libcurses and libreadline.
95565         * getstr: Remove.
95566         * MODULES.html.sh: Remove getstr.
95567         * modules/getline: Depend on unlocked-io, not getstr.
95568
95569 2003-01-12  Jim Meyering  <jim@meyering.net>
95570
95571         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95572
95573 2003-01-10  Bruno Haible  <bruno@clisp.org>
95574
95575         * modules/alloca: Change Makefile.am requirements. Simplify Include
95576         requirements. Add lib/alloca_.h to file list.
95577
95578 2003-01-10  Bruno Haible  <bruno@clisp.org>
95579
95580         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95581
95582 2003-01-10  Bruno Haible  <bruno@clisp.org>
95583
95584         * lib/alloca_.h: New file.
95585         * lib/getdate.y: Unconditionally include alloca.h.
95586         * lib/makepath.c: Likewise.
95587         * lib/setenv.c: Likewise.
95588         * lib/userspec.c: Likewise.
95589
95590 2003-01-09  Karl Berry  <karl@gnu.org>
95591
95592         * MODULES.html.sh: include `dirname $0` in PATH, to find
95593         gnulib-tool.
95594
95595 2003-01-09  Bruno Haible  <bruno@clisp.org>
95596
95597         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95598         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95599
95600 2003-01-09  Bruno Haible  <bruno@clisp.org>
95601
95602         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95603
95604 2003-01-09  Bruno Haible  <bruno@clisp.org>
95605
95606         * lib/stdbool.h.in: New file.
95607
95608 2003-01-09  Bruno Haible  <bruno@clisp.org>
95609
95610         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95611         * MODULES.html.sh: Likewise.
95612
95613 2003-01-08  Jim Meyering  <jim@meyering.net>
95614
95615         * lib/full-write.c: Undefine and define-away `const' after inclusion
95616         of errno.h, not before.  Suggestion from Bruno Haible.
95617
95618 2003-01-08  Bruno Haible  <bruno@clisp.org>
95619
95620         * modules/full-read: Depend on full-write.
95621
95622 2003-01-08  Bruno Haible  <bruno@clisp.org>
95623
95624         * lib/safe-read.c: Include specification header first, to ensure its
95625         selfcontainedness.
95626         * lib/full-write.c: Likewise.
95627
95628 2003-01-07  Jim Meyering  <jim@meyering.net>
95629
95630         * lib/full-write.c: Rework so that it may serve to define full_read,
95631         too.
95632         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95633
95634 2003-01-07  Bruno Haible  <bruno@clisp.org>
95635
95636         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95637         <inttypes.h>.
95638         * lib/xstrtol.h: Likewise.
95639         * lib/xstrtoimax.c: Likewise.
95640         * lib/xstrtoumax.c: Likewise.
95641         * lib/human.h: Likewise.
95642
95643         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95644         on systems that have <inttypes.h> but not <stdint.h>.
95645
95646 2003-01-07  Bruno Haible  <bruno@clisp.org>
95647
95648         * MODULES.html.sh: Add copyright notice.
95649         (missed_files): Omit CVS directory entries.
95650         (func_module): Make it work with sed-3.02.
95651         * MODULES.txt: Remove file.
95652
95653 2003-01-06  Jim Meyering  <jim@meyering.net>
95654
95655         * lib/version-etc.c: Update year in translatable copyright string.
95656
95657 2003-01-03  Karl Berry  <karl@gnu.org>
95658
95659         * config/config.{guess,sub}: update from prep.
95660
95661 2003-01-02  Karl Berry  <karl@gnu.org>
95662
95663         * doc/COPYING.DOC: belatedly updated to 1.2.
95664
95665 2003-01-01  Karl Berry  <karl@gnu.org>
95666
95667         * gnulib-tool (func_verify_module): report module name $module in
95668         error message, not $1.
95669         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95670         be created, only if it doesn't exist.
95671         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95672
95673 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95674
95675         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95676
95677 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95678
95679         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95680         memcmp if strcoll doesn't work.
95681
95682 2002-12-31  Bruno Haible  <bruno@clisp.org>
95683
95684         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95685         nonempty.
95686
95687 2002-12-31  Bruno Haible  <bruno@clisp.org>
95688
95689         * lib/memcoll.c (STRCOLL): New macro.
95690         (memcoll): Use it.
95691
95692 2002-12-31  Bruno Haible  <bruno@clisp.org>
95693
95694         * lib/localcharset.h: New file.
95695         * lib/localcharset.c: Include it.
95696         * lib/unicodeio.c: Likewise.
95697
95698 2002-12-31  Bruno Haible  <bruno@clisp.org>
95699
95700         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95701         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95702
95703 2002-12-31  Bruno Haible  <bruno@clisp.org>
95704
95705         * lib/getline.h: Include <stddef.h>, for size_t.
95706
95707         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95708         * lib/unicodeio.c: Don't include <stddef.h>.
95709
95710 2002-12-31  Bruno Haible  <bruno@clisp.org>
95711
95712         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95713         HAVE_TM_ZONE.
95714
95715 2002-12-24  Karl Berry  <karl@gnu.org>
95716
95717         * config/config.guess: update from prep.
95718
95719 2002-12-24  Bruno Haible  <bruno@clisp.org>
95720
95721         General infrasructure.
95722         * m4/README: Rewritten.
95723         * m4/onceonly.m4: New file.
95724         * m4/onceonly_2_57.m4: New file.
95725
95726         Module atexit.
95727         * m4/atexit.m4: New file.
95728
95729         Module strtod.
95730         * m4/strtod.m4: New file.
95731
95732         Module strtol.
95733         * m4/strtol.m4: New file.
95734
95735         Module strtoul.
95736         * m4/strtoul.m4: New file.
95737
95738         Module memchr.
95739         * m4/memchr.m4: New file.
95740
95741         Module memcmp.
95742         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95743         (jm_FUNC_MEMCMP): Invoke it.
95744
95745         Module memcpy.
95746         * m4/memcpy.m4: New file.
95747
95748         Module memmove.
95749         * m4/memmove.m4: New file.
95750
95751         Module memset.
95752         * m4/memset.m4: New file.
95753
95754         Module strcspn.
95755         * m4/strcspn.m4: New file.
95756
95757         Module strpbrk.
95758         * m4/strpbrk.m4: New file.
95759
95760         Module strstr.
95761         * m4/strstr.m4: New file.
95762
95763         Module strerror.
95764         * m4/strerror.m4: New file.
95765
95766         Module mktime.
95767         * m4/mktime.m4: Renamed from jm-mktime.m4.
95768         (gl_PREREQ_MKTIME): New macro.
95769         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95770
95771         Module malloc.
95772         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95773         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95774         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95775
95776         Module realloc.
95777         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95778         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95779         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95780
95781         Module strftime.
95782         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95783         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95784         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95785         gl_TM_GMTOFF.
95786         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95787
95788         Module xalloc.
95789         * m4/xalloc.m4: New file.
95790
95791         Module alloca.
95792         * m4/alloca.m4: New file.
95793
95794         Module putenv.
95795         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95796         (jm_FUNC_PUTENV): Invoke it.
95797
95798         Module setenv.
95799         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95800         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95801         when invoked twice.
95802         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95803         gt_FUNC_SETENV.
95804
95805         Module memrchr.
95806         * m4/memrchr.m4: New file.
95807
95808         Module stpcpy.
95809         * m4/stpcpy.m4: New file.
95810
95811         Module strcase.
95812         * m4/strcase.m4: New file.
95813
95814         Module strdup.
95815         * m4/strdup.m4: New file.
95816
95817         Module strnlen.
95818         * m4/strnlen.m4: New file.
95819
95820         Module strndup.
95821         * m4/strndup.m4: New file.
95822
95823         Module xstrtod.
95824         * m4/xstrtod.m4: New file.
95825
95826         Module xstrtol.
95827         * m4/xstrtol.m4: New file.
95828
95829         Module getdate.
95830         * m4/getdate.m4: New file.
95831
95832         Module unlocked-io.
95833         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95834         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95835         * m4/jm-glibc-io.m4n: Remove file.
95836
95837         Module long-options.
95838         * m4/long-options.m4: New file.
95839
95840         Module md5.
95841         * m4/md5.m4: New file.
95842
95843         Module sha.
95844         * m4/sha.m4: New file.
95845
95846         Module getstr.
95847         * m4/getstr.m4: New file.
95848
95849         Module getline.
95850         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95851         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95852         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95853         simply getline. Infoke gl_PREREQ_GETLINE.
95854
95855         Module obstack.
95856         * m4/obstack.m4: New file.
95857
95858         Module hash.
95859         * m4/hash.m4: New file.
95860
95861         Module readtokens.
95862         * m4/readtokens.m4: New file.
95863
95864         Module strverscmp.
95865         * m4/strverscmp.m4: New file.
95866
95867         Module stdbool.
95868         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95869         OSF/1.
95870
95871         Module strtoll.
95872         * m4/strtoll.m4: New file.
95873
95874         Module strtoull.
95875         * m4/strtoull.m4: New file.
95876
95877         Module strtoimax.
95878         * m4/strtoimax.m4: New file.
95879
95880         Module strtoumax.
95881         * m4/strtoumax.m4: New file.
95882
95883         Module xstrtoimax.
95884         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95885         jm_AC_PREREQ_XSTRTOIMAX.
95886         Moved the strtol prerequisites to strtol.m4.
95887         Moved the strtoll prerequisites to strtoll.m4.
95888         Moved the strtoimax prerequisites to strtoimax.m4.
95889
95890         Module xstrtoumax.
95891         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95892         jm_AC_PREREQ_XSTRTOUMAX.
95893         Moved the strtoul prerequisites to strtoul.m4.
95894         Moved the strtoull prerequisites to strtoull.m4.
95895         Moved the strtoumax prerequisites to strtoumax.m4.
95896
95897         Module chown.
95898         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95899         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95900
95901         Module dup2.
95902         * m4/dup2.m4: New file.
95903
95904         Module ftruncate.
95905         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95906         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95907
95908         Module getgroups.
95909         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95910         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95911
95912         Module gettimeofday.
95913         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95914         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95915         gl_PREREQ_GETTIMEOFDAY.
95916
95917         Module mkdir.
95918         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95919         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95920
95921         Module mkstemp.
95922         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95923         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95924         jm_AC_TYPE_UINTMAX_T.
95925         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95926
95927         Module stat.
95928         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95929         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95930
95931         Module lstat.
95932         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95933         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95934
95935         Module timespec.
95936         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95937         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95938         * m4/st_mtim.m4: Indentation.
95939
95940         Module nanosleep.
95941         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95942         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95943         gl_PREREQ_NANOSLEEP.
95944
95945         Module regex.
95946         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95947         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95948         (gl_REGEX): New macro.
95949
95950         Module rename.
95951         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95952         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95953
95954         Module rmdir.
95955         * m4/rmdir.m4: New file.
95956
95957         Module utime.
95958         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95959         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95960         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95961
95962         Module dirname.
95963         * m4/dirname.m4: New file.
95964
95965         Module getopt.
95966         * m4/getopt.m4: New file.
95967
95968         Module unistd-safer.
95969         * m4/unistd-safer.m4: New file.
95970
95971         Module fnmatch.
95972         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95973         declaration.
95974         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95975         (gl_FUNC_FNMATCH_POSIX): New macro.
95976         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95977         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95978         simply fnmatch.
95979
95980         Module exclude.
95981         * m4/exclude.m4: New file.
95982
95983         Module human.
95984         * m4/human.m4: New file.
95985
95986         Module acl.
95987         * m4/acl.m4: Nop.
95988
95989         Module backupfile.
95990         * m4/backupfile.m4: New file.
95991         * m4/d-ino.m4: Indentation.
95992
95993         Module fsusage.
95994         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95995         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95996         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95997
95998         Module dirfd.
95999         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
96000         requirements.
96001
96002         Module euidaccess.
96003         * m4/euidaccess.m4: New file.
96004
96005         Module file-type.
96006         * m4/file-type.m4: New file.
96007
96008         Module fileblocks.
96009         * m4/fileblocks.m4: New file.
96010
96011         Module filemode.
96012         * m4/filemode.m4: New file.
96013
96014         Module isdir.
96015         * m4/isdir.m4: New file.
96016
96017         Module lchown.
96018         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
96019         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
96020
96021         Module makepath.
96022         * m4/makepath.m4: New file.
96023
96024         Module modechange.
96025         * m4/modechange.m4: New file.
96026
96027         Module mountlist.
96028         * m4/mountlist.m4: New file.
96029         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
96030         Indentation.
96031
96032         Module path-concat.
96033         * m4/path-concat.m4: New file.
96034
96035         Module pathmax.
96036         * m4/pathmax.m4: New file.
96037
96038         Module same.
96039         * m4/same.m4: New file.
96040
96041         Module save-cwd.
96042         * m4/save-cwd.m4: New file.
96043
96044         Module savedir.
96045         * m4/savedir.m4: New file.
96046
96047         Module xgetcwd.
96048         * m4/xgetcwd.m4: New file.
96049         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
96050
96051         Module xreadlink.
96052         * m4/xreadlink.m4: New file.
96053
96054         Module safe-read.
96055         * m4/safe-read.m4: New file.
96056
96057         Module safe-write.
96058         * m4/safe-write.m4: New file.
96059
96060         Module closeout.
96061         * m4/closeout.m4: New file.
96062
96063         Module stdio-safer.
96064         * m4/stdio-safer.m4: New file.
96065
96066         Module getpass.
96067         * m4/getpass.m4: New file.
96068
96069         Module getugroups.
96070         * m4/getugroups.m4: New file.
96071
96072         Module group-member.
96073         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
96074         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
96075
96076         Module idcache.
96077         * m4/idcache.m4: New file.
96078
96079         Module userspec.
96080         * m4/userspec.m4: New file.
96081
96082         Module gettime.
96083         * m4/clock_time.m4: New file.
96084         * m4/gettime.m4: New file.
96085
96086         Module settime.
96087         * m4/settime.m4: New file.
96088
96089         Module posixtm.
96090         * m4/posixtm.m4: New file.
96091
96092         Module gethostname.
96093         * m4/gethostname.m4: New file.
96094
96095         Module canon-host.
96096         * m4/canon-host.m4: New file.
96097
96098         Module gettext.
96099         * m4/codeset.m4: New file, from gettext-0.11.5.
96100         * m4/gettext.m4: New file, from gettext-0.11.5.
96101         * m4/glibc21.m4: New file, from gettext-0.11.5.
96102         * m4/iconv.m4: New file, from gettext-0.11.5.
96103         * m4/intdiv0.m4: New file, from gettext-0.11.5.
96104         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
96105         * m4/inttypes.m4: New file, from gettext-0.11.5.
96106         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
96107         * m4/isc-posix.m4: New file, from gettext-0.11.5.
96108         * m4/lcmessage.m4: New file, from gettext-0.11.5.
96109         * m4/lib-ld.m4: New file, from gettext-0.11.5.
96110         * m4/lib-link.m4: New file, from gettext-0.11.5.
96111         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
96112         * m4/progtest.m4: New file, from gettext-0.11.5.
96113         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
96114         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
96115         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
96116
96117         Module localcharset.
96118         * m4/localcharset.m4: New file.
96119
96120         Module hard-locale.
96121         * m4/hard-locale.m4: New file.
96122
96123         Module mbswidth.
96124         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
96125         onceonly macros.
96126         * m4/mbrtowc.m4: Add comment.
96127
96128         Module memcasecmp.
96129         * m4/memcasecmp.m4: New file.
96130
96131         Module memcoll.
96132         * m4/memcoll.m4: New file.
96133
96134         Module unicodeio.
96135         * m4/unicodeio.m4: New file.
96136
96137         Module rpmatch.
96138         * m4/rpmatch.m4: New file.
96139
96140         Module yesno.
96141         * m4/yesno.m4: New file.
96142
96143         Module exitfail.
96144         * m4/exitfail.m4: New file.
96145
96146         Module c-stack.
96147         * m4/c-stack.m4 (gl_C_STACK): New macro.
96148         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
96149
96150         Module error.
96151         * m4/error.m4 (gl_ERROR): New macro.
96152         (jm_PREREQ_ERROR): Use onceonly macros.
96153
96154         Module fatal.
96155         * m4/fatal.m4: New file.
96156
96157         Module getloadavg.
96158         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
96159         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
96160
96161         Module getpagesize.
96162         * m4/getpagesize.m4: New file.
96163
96164         Module getusershell.
96165         * m4/getusershell.m4: New file.
96166
96167         Module physmem.
96168         * m4/physmem.m4: New file.
96169
96170         Module posixver.
96171         * m4/posixver.m4: New file.
96172
96173         Module quotearg.
96174         * m4/quotearg.m4: New file.
96175
96176         Module quote.
96177         * m4/quote.m4: New file.
96178
96179         Module readutmp.
96180         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
96181
96182         Module sig2str.
96183         * m4/sig2str.m4: New file.
96184
96185         Other.
96186         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
96187         ulonglong.m4.
96188         * m4/intmax_t.m4: New file.
96189         * m4/d-type.m4: Indentation.
96190         * m4/jm-macros.m4: Update.
96191         * m4/prereq.m4 (jm_PREREQ): Update.
96192         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
96193         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
96194         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
96195         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
96196         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
96197         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
96198         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
96199         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
96200         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
96201         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
96202         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
96203         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96204         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96205         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96206         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96207         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96208         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96209         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96210         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96211
96212 2002-12-24  Bruno Haible  <bruno@clisp.org>
96213
96214         * MODULES.txt: Update according to m4/ changes.
96215
96216         Module gettext.
96217         * config.rpath: New file, from gettext-0.11.5.
96218
96219         * modules/*: New module descriptions.
96220         * gnulib-tool: New file.
96221         * MODULES.html.sh: New file.
96222
96223 2002-12-21  Karl Berry  <karl@gnu.org>
96224
96225         * doc/fdl.texi: update to version 1.2.
96226
96227 2002-12-19  Karl Berry  <karl@gnu.org>
96228
96229         * config/config.guess: update from prep.
96230
96231 2002-12-18  Bruno Haible  <bruno@clisp.org>
96232
96233         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96234         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96235
96236 2002-12-17  Bruno Haible  <bruno@clisp.org>
96237
96238         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96239         stdlib.h, string.h.
96240
96241 2002-12-17  Bruno Haible  <bruno@clisp.org>
96242
96243         * lib/canon-host.c (strdup): Remove unused declaration.
96244
96245         * lib/fsusage.c: Include full_read.h.
96246         (get_fs_usage): Use full_read instead of safe_read.
96247
96248         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96249
96250 2002-12-12  Karl Berry  <karl@gnu.org>
96251
96252         * config/config.guess: update from prep.
96253
96254 2002-12-11  Bruno Haible  <bruno@clisp.org>
96255
96256         * m4/setenv.m4: New file, from gettext-0.11.5.
96257
96258 2002-12-11  Bruno Haible  <bruno@clisp.org>
96259
96260         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96261         not unsetenv().
96262         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96263         modifications:
96264
96265         2002-12-11  Bruno Haible  <bruno@clisp.org>
96266
96267                 * setenv.c (alloca): Fall back to malloc.
96268                 (freea): New macro.
96269                 (setenv): Use freea() to free memory allocated with alloca().
96270
96271         2002-11-13  Bruno Haible  <bruno@clisp.org>
96272
96273                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96274                 function declarations.
96275                 * unsetenv.c (unsetenv): Likewise.
96276
96277         2002-03-04  Bruno Haible  <bruno@clisp.org>
96278
96279                 Portability to AIX 4.3.3.
96280                 * unsetenv.c: New file, extracted from setenv.c.
96281                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96282
96283         2001-12-20  Bruno Haible  <bruno@clisp.org>
96284
96285                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96286                 use malloc instead. For SunOS 4.
96287
96288         2001-12-11  Bruno Haible  <bruno@clisp.org>
96289
96290                 * setenv.c: Declare alloca.
96291                 (compar_fn_t): New typedef.
96292                 (KNOWN_VALUE, STORE_VALUE): Use it.
96293
96294         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96295         setenv.h.
96296
96297 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96298
96299         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96300         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96301         Choose values that are less likely to collide with system fnmatch
96302         options.
96303         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96304         defined (e.g., a pure POSIX system).
96305         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96306         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96307
96308 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96309
96310         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96311         a pain in practice to deal with generated m4 files.  This change
96312         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96313
96314         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96315         and jm-glibc-io.m4, as they are no longer a special case.
96316         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96317         kludge and the auto-generation stuff.  Check only whether the
96318         functions are declared, not whether they exist, since older hosts
96319         that don't declare the functions can't use the optimization anyway.
96320
96321 2002-12-06  Jim Meyering  <jim@meyering.net>
96322
96323         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96324
96325         Merge in changes from libc's misc/error.c, in preparation
96326         for the merge of gnulib's changes back into libc.
96327
96328         * lib/error.c (_): Define only if not already defined.
96329         Move definition to follow all #include directives.
96330         Include unlocked-io.h only if !_LIBC.
96331         [_LIBC]: Include <libio/libioP.h>.
96332         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96333         (fflush): Tweak definition to use INTUSE.
96334         (putc): Define.
96335
96336 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96337
96338         * lib/alloca.c [defined emacs]: Include "lisp.h".
96339         (xalloc_die) [defined emacs]: New macro.
96340         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96341         [! defined emacs]: Include <xalloc.h>.
96342         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96343         (pointer): Typedef to POINTER_TYPE *.
96344         (malloc): Remove decl; we now always use xmalloc.
96345         (alloca): Use old-style definition, since Emacs needs this.
96346         Check for arithmetic overflow when computing combined size.
96347
96348 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96349
96350         Do not generate unlocked-io.h automatically, since it's easier to
96351         maintain it by hand.
96352
96353         * lib/unlocked-io.h: New file, from GNU diffutils,
96354         but with proper copyright notice and attribution.
96355         * lib/gen-uio: Remove.
96356         * lib/Makefile.am: Add copyright notice.
96357         (libfetish_a_SOURCES): Add unlocked-io.h.
96358         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96359         (DISTCLEANFILES, io_functions): Remove macros.
96360         (EXTRA_DIST): Remove gen_uio.
96361         (unlocked-io.h): Remove rule.
96362
96363 2002-12-04  Jim Meyering  <jim@meyering.net>
96364
96365         Reflect the fact that stat.c and lstat.c are no longer generated.
96366         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96367         (DISTCLEANFILES): Likewise.
96368         (EXTRA_DIST): Likewise.
96369         (all_local): Don't depend on stat.c or lstat.c.
96370         (stat.c, lstat.c): Remove rules.
96371         (EXTRA_DIST): Remove xstat.in.
96372
96373         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96374         * lib/stat.c: New file.  Contents mostly from xstat.in.
96375         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96376         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96377
96378         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96379         too.
96380         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96381
96382 2002-12-03  Jim Meyering  <jim@meyering.net>
96383
96384         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96385         but not semantics, to minimize the differences between these two files.
96386         (safe_read): Change comment to mention SAFE_READ_ERROR.
96387
96388         * lib/safe-read.c (IS_EINTR): Define.
96389         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96390
96391 2002-12-02  Jim Meyering  <jim@meyering.net>
96392
96393         * lib/safe-read.c (EINTR): Define.
96394         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96395         (INT_MAX): Provide fallback.
96396         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96397
96398         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96399
96400 2002-12-02  Bruno Haible  <bruno@clisp.org>
96401
96402         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96403         Define, taken from safe-read.c.
96404         (INT_MAX): Provide fallback.
96405         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96406         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96407
96408         * lib/safe-read.c (EINTR): Remove definition.
96409         (safe_read): Don't use EINTR if it is absent.
96410
96411 2002-12-01  Jim Meyering  <jim@meyering.net>
96412
96413         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96414         zero.
96415         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96416
96417 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96418
96419         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96420         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96421         with `if (! (value < limit)) abort ();', for readability.
96422
96423 2002-11-26  Karl Berry  <karl@gnu.org>
96424
96425         * lib/strdup.c: copy from libc again, with jim's ok.
96426         * lib/.cppi-disable: re-add strdup.c
96427
96428 2002-11-25  Karl Berry  <karl@gnu.org>
96429
96430         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96431         instead of "strtol.c".
96432
96433 2002-11-25  Karl Berry  <karl@gnu.org>
96434
96435         * config/install-sh: update from automake for variable quoting, $0 in
96436         error msgs, etc.
96437
96438         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96439         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96440         entry.
96441
96442 2002-11-25  Jim Meyering  <jim@meyering.net>
96443
96444         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96445
96446 2002-11-24  Karl Berry  <karl@gnu.org>
96447
96448         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96449         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96450
96451 2002-11-24  Jim Meyering  <jim@meyering.net>
96452
96453         Update from coreutils:
96454
96455         * lib/mktime.c: Merge in changes from libc.
96456
96457         Avoid a link-time failure on some Linux systems.
96458         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96459         (otherwise).
96460         (__mon_yday): Declare with the STATIC attribute.
96461         (__mktime_internal): Likewise.
96462         Based on a report from Greg Schafer.
96463
96464 2002-11-23  Jim Meyering  <jim@meyering.net>
96465
96466         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96467         Use `unsigned', not `int', as type of index.
96468
96469         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96470
96471         * lib/fsusage.c: Remove unneeded parentheses around operands of
96472         `defined'.
96473
96474 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96475
96476         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96477         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96478         so that we can be included first.
96479         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96480         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96481         No need to include stddef.h or sys/types.h any more.
96482         Surround local include files with "", not "<>".
96483         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96484         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96485         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96486         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96487         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96488         (ISPRINT): Remove; no longer needed now that we assume C89.
96489
96490         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96491         Preserve errno.
96492
96493         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96494         quotearg_char): Use SIZE_MAX rather than
96495         (size_t) -1 when we are talking about "infinity".
96496
96497         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96498
96499 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96500
96501         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96502         hint that one should use `if (! x) abort ();' rather than `assert
96503         (x);', and anyway it's one less thing to worry about configuring.
96504         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96505         hash_rehash, hash_insert): Use abort rather than assert.
96506
96507 2002-11-22  Bruno Haible  <bruno@clisp.org>
96508
96509         * lib/safe-read.h: Assume C89. Add comments.
96510         (safe_read): Change return type to size_t.
96511         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96512         byte counts > SSIZE_MAX correctly.
96513         * lib/safe-write.h: New file.
96514         * lib/safe-write.c: New file.
96515         * lib/full-read.h: New file.
96516         * lib/full-read.c: New file.
96517         * lib/full-write.h: Assume C89. Add comments.
96518         * lib/full-write.c: Include safe-write.h.
96519         (full_write): Rewritten to use safe_write.
96520         Suggested by Jim Meyering and Paul Eggert.
96521
96522 2002-11-21  Jim Meyering  <jim@meyering.net>
96523
96524         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96525
96526         Merge in changes from the coreutils.
96527
96528         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96529         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96530         <stdint.h>.
96531         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96532         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96533         int.  Work more efficiently if X is the same width as uintmax_t.
96534         Do not compare X to -1, to avoid bogus compiler warning.
96535         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96536         Don't assume that f_frsize and f_bsize are the same type.
96537
96538         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96539         warning on FreeBSD.
96540
96541         * lib/makepath.c (make_path): Restore umask *before* creating the final
96542         component.
96543         (make_path): Minor reformatting.
96544
96545         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96546         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96547         HAVE_MALLOC/HAVE_REALLOC.
96548
96549         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96550         dummy ones.  At least on GNU/Linux systems, `auto' means something
96551         else.
96552         From Michael Stone.
96553
96554 2002-11-21  Bruno Haible  <bruno@clisp.org>
96555
96556         Remove case insensitive option matching.
96557         * lib/argmatch.h (argcasematch): Remove declaration.
96558         (ARGCASEMATCH): Remove macro.
96559         (__xargmatch_internal): Remove case_sensitive argument.
96560         (XARGMATCH): Update.
96561         (XARGCASEMATCH): Remove macro.
96562         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96563         case_sensitive argument.
96564         (argcasematch): Remove function.
96565         (__xargmatch_internal): Remove case_sensitive argument.
96566         (main): Use XARGMATCH instead of XARGCASEMATCH.
96567
96568         * lib/xmalloc.c: Change compile-time error message. Add comment about
96569         required autoconf version.
96570
96571 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96572
96573         Merge argmatch cleanups from Bison.  Assume C89.
96574
96575         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96576         Include stdlib.h, for EXIT_FAILURE.
96577         Always include <string.h>, since we assume C89.
96578         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96579         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96580         Include <stddef.h> instead, since it's all we need for size_t.
96581         (PARAMS): Remove.  All uses removed.
96582         (ARRAY_CARDINALITY): Do not bother to #undef.
96583         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96584         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96585         Remove unnecessary parentheses.
96586         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96587         Insert necessary parentheses.
96588         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96589         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96590
96591 2002-11-19  Bruno Haible  <bruno@clisp.org>
96592
96593         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96594         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96595
96596         * lib/mbswidth.h (PARAMS): Remove macro.
96597         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96598         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96599
96600         * lib/gcd.h (PARAMS): Remove macro.
96601         (gcd): Use ANSI C function declarations.
96602         * lib/gcd.c (gcd): Likewise.
96603
96604 2002-11-15  Bruno Haible  <bruno@clisp.org>
96605
96606         * lib/strcspn.c: Include <stddef.h>.
96607         (strcspn): Use ANSI C function declaration. Change return type to
96608         size_t. Use NULL.
96609         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96610         (strpbrk): Use NULL.
96611         * lib/strpbrk.h (PARAMS): Remove macro.
96612         (strpbrk): Use ANSI C function declaration.
96613         * lib/strstr.c: Don't include <sys/types.h>.
96614         * lib/strstr.h (PARAMS): Remove macro.
96615         (strstr): Use ANSI C function declarations.
96616
96617 2002-11-14  Karl Berry  <karl@gnu.org>
96618
96619         * config/mkinstalldirs: `do' on separate line, instead of
96620         `for var; do'.
96621
96622 2002-11-06  Bruno Haible  <bruno@clisp.org>
96623
96624         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96625         * lib/gcd.c (gcd): Likewise.
96626
96627 2002-11-05  Bruno Haible  <bruno@clisp.org>
96628
96629         * lib/gcd.h: New file, from gettext-0.11.5.
96630         * lib/gcd.c: New file, from gettext-0.11.5.
96631
96632 2002-11-05  Bruno Haible  <bruno@clisp.org>
96633
96634         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96635         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96636         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96637         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96638
96639         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96640         <libintl.h>.
96641         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96642         <libintl.h>.
96643
96644         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96645         * lib/human.c: Include gettext.h instead of <libintl.h>.
96646         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96647         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96648         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96649         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96650         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96651         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96652         (textdomain): Remove definition.
96653         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96654
96655         * lib/long-options.c: Remove include of <libintl.h> and definition of
96656         _.
96657         * lib/same.c: Remove include of <libintl.h> and definition of _.
96658
96659 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96660
96661         * lib/config.charset: A few additions for Solaris.
96662
96663 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96664
96665         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96666         * lib/localcharset.c (locale_charset): Declare as extern "C".
96667
96668 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96669
96670         * lib/config.charset: msdos in uk_UA uses CP1125.
96671
96672 2002-11-04  Bruno Haible  <bruno@clisp.org>
96673
96674         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96675         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96676         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96677         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96678         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96679
96680 2002-11-04  Bruno Haible  <bruno@clisp.org>
96681
96682         * lib/localcharset.c (locale_charset): Don't return an empty string.
96683
96684 2002-11-04  Bruno Haible  <bruno@clisp.org>
96685
96686         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96687         aliases.
96688
96689 2002-11-04  Bruno Haible  <bruno@clisp.org>
96690
96691         * lib/config.charset: Update for newest glibc. Add canonical names
96692         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96693
96694 2002-11-04  Bruno Haible  <bruno@clisp.org>
96695
96696         * lib/config.charset: Add support for NetBSD.
96697
96698 2002-11-04  Bruno Haible  <bruno@clisp.org>
96699
96700         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96701
96702 2002-11-01  Bruno Haible  <bruno@clisp.org>
96703
96704         * configure.in: Add AC_CONFIG_AUX_DIR call.
96705         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96706         test/Makefile.
96707         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96708
96709 2002-09-28  Karl Berry  <karl@gnu.org>
96710
96711         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96712         installed automake until the next release, since changes have been
96713         made.
96714
96715 2002-09-25  Karl Berry  <karl@gnu.org>
96716
96717         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96718         * lib/getopt*: copy from libc/posix.
96719         * lib/gettext.h: copy from gettext.
96720         * lib/.cppi-disable: add strdup.c, gettext.h.
96721
96722 2002-09-25  Karl Berry  <karl@gnu.org>
96723
96724         * config/srclist.txt: enable gettext.h check.
96725         * config/config.{guess,sub}: update from prep.
96726         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96727                 from automake 1.6.3.
96728         See srclist*.
96729
96730 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96731
96732         * regex.c (PATFETCH): Remove the translating fetch.
96733         (PATFETCH_RAW): Rename to PATFETCH.
96734         (set_image_of_range): New fun.
96735         (SET_RANGE_TABLE_WORK_AREA): Use it.
96736         (regex_compile): Don't translate the pattern chars so eagerly.
96737         Only do it when inserting an `exactn' bytecode or when handling
96738         a char-range.
96739         (mutually_exclusive_p): Avoid empty statement.
96740
96741 2002-07-06  Jim Meyering  <meyering@lucent.com>
96742
96743         * m4/README: Don't mention Makefile.am.in.
96744         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96745
96746 2002-07-01  Jim Meyering  <meyering@lucent.com>
96747
96748         * lib/c-stack.c: Include sys/time.h.
96749         From Volker Borchert.
96750
96751 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96752
96753         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96754
96755 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96756
96757         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96758         New macro.  Use it uniformly instead of
96759         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96760         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96761         reported by Vin Shelton.
96762
96763 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96764
96765         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96766         Do not assume SA_SIGINFO behavior.
96767         Bug reported by Jim Meyering on NetBSD 1.5.2.
96768
96769 2002-06-22  Jim Meyering  <meyering@lucent.com>
96770
96771         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96772         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96773
96774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96775         now that configure.ac uses AC_GNU_SOURCE.
96776         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96777         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96778
96779         Update to latest tools.  Suggestions from Paul Eggert.
96780         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96781         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96782         * m4/fnmatch.m4: Likewise.
96783         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96784         to AC_HEADER_STDBOOL
96785
96786 2002-06-22  Jim Meyering  <meyering@lucent.com>
96787
96788         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96789         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96790
96791 2002-06-22  Jim Meyering  <meyering@lucent.com>
96792
96793         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96794
96795         * lib/exitfail.c, exitfail.h: Likewise.
96796         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96797
96798         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96799         of fnmatch.h.
96800         (EXTRA_DIST): Add fnmatch_loop.c.
96801         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96802
96803         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96804         * lib/fnmatch.c: Update from diffutils-2.8.2.
96805         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96806         * lib/fnmatch.h: Remove file.
96807
96808 2002-06-21  Jim Meyering  <meyering@lucent.com>
96809
96810         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96811         * m4/mbrtowc.m4: Likewise.
96812
96813         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96814         * m4/mbswidth.m4: Reflect name change:
96815         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96816         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96817
96818         * m4/lib-link.m4: Update from gettext-0.11.2.
96819         * m4/gettext.m4: Likewise.
96820
96821         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96822         From Alfred M. Szmidt.
96823
96824 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96825
96826         * lib/file-type.h: Report an error if neither S_ISREG nor
96827         S_IFREG is defined, instead of using a test specific to glibc
96828         2.2.  This should be safe, since POSIX requires S_ISREG and
96829         Unix Version 7 had S_IFREG.  We don't need to check for
96830         <sys/types.h> since we don't use any symbols that it defines.
96831
96832 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96833
96834         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96835         $@-t, so that each temporary file name is unique and valid in the first
96836         8 characters, for operation under DOS.
96837
96838 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96839
96840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96841
96842 2002-06-15  Jim Meyering  <meyering@lucent.com>
96843
96844         Work even with DJGPP 2.03, which lacks support for symlinks.
96845         From Richard Dawe.
96846         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96847         is defined.
96848         * lib/lchown.c (S_ISLNK): Likewise.
96849
96850 2002-06-15  Jim Meyering  <meyering@lucent.com>
96851
96852         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96853         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96854         have been included before this file.
96855
96856 2002-06-14  Jim Meyering  <meyering@lucent.com>
96857
96858         * lib/file-type.h: Use the version from diffutils-2.8.2.
96859         * lib/file-type.c: Likewise.
96860
96861 2002-06-07  Jim Meyering  <meyering@lucent.com>
96862
96863         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96864         They're needed at least for NetBSD 1.5.2.
96865         ($statxfs_includes): Include those same headers.
96866         ($statxfs_includes): Include sys/vfs.h if available.
96867         ($statxfs_includes): Likewise for sys/statvfs.h.
96868         Check for the following members in both structs statfs and statvfs:
96869         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96870
96871 2002-06-01  Jim Meyering  <meyering@lucent.com>
96872
96873         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96874         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96875
96876 2002-05-28  Jim Meyering  <meyering@lucent.com>
96877
96878         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96879         Reported by Volker Borchert.
96880
96881 2002-05-27  Jim Meyering  <meyering@lucent.com>
96882
96883         Fix a problem seen only on nonconforming systems whereby ls.c's
96884         use of localtime, and then of gettimeofday would cause trouble:
96885         the localtime call used to initialize rpl_gettimeofday's save
96886         mechanism would clobber ls's current local time information so
96887         that in any long listing the first file would always be listed
96888         with date 1970-01-01.  Analysis by Volker Borchert.
96889
96890         * lib/gettimeofday.c (localtime): Undefine.
96891         (rpl_localtime): New function.
96892
96893 2002-05-27  Jim Meyering  <meyering@lucent.com>
96894
96895         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96896         localtime.
96897
96898         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96899         use the replacement function; it wouldn't resolve at link time.
96900         Reported by Volker Borchert.
96901
96902 2002-05-22  Jim Meyering  <meyering@lucent.com>
96903
96904         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96905         file-type.h.
96906         * lib/file-type.h: New file.
96907         * lib/file-type.c (file_type): New file/function.  Extracted from
96908         diffutils.
96909
96910 2002-04-30  Jim Meyering  <meyering@lucent.com>
96911
96912         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96913
96914 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96915
96916         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96917
96918 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96919
96920         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96921         Do not check for alloca.h (no longer used) or stdbool.h (was never
96922         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96923
96924 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96925
96926         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96927
96928 2002-04-29  Jim Meyering  <meyering@lucent.com>
96929
96930         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96931         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96932         Use AC_FUNC_STRNLEN here instead.
96933
96934         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96935         With autoconf-2.53a, it's part of AC_PROG_CC.
96936
96937 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96938
96939         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96940         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96941
96942 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96943
96944         * lib/sig2str.h, lib/sig2str.c: New files.
96945         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96946
96947 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96948
96949         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96950         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96951         of 127, since 64 is the largest conceivable number for ancient
96952         nonstandard hosts.
96953         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96954
96955 2002-04-28  Jim Meyering  <meyering@lucent.com>
96956
96957         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96958
96959 2002-04-24  Jim Meyering  <meyering@lucent.com>
96960
96961         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96962         (jm_PREREQ): Use it.
96963
96964         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96965         mach/mach.h fcntl.h.
96966         Check for this function: setlocale.
96967
96968 2002-04-24  Jim Meyering  <meyering@lucent.com>
96969
96970         * lib/gettext.h: New file, from Gettext.
96971         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96972         (libfetish_a_SOURCES): Add gettext.h.
96973
96974 2002-04-16  Jim Meyering  <meyering@lucent.com>
96975
96976         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96977         ut_pid, ut_id, ut_exit.
96978
96979 2002-04-16  Jim Meyering  <meyering@lucent.com>
96980
96981         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96982         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96983         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96984
96985 2002-04-12  Jim Meyering  <meyering@lucent.com>
96986
96987         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96988         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96989         existence of the getmntinfo function.  Needed for Darwin 5.3.
96990
96991         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96992         This is necessary at least on Darwin 5.3.
96993
96994         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96995         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96996         strnlen.o in the library, and that makes some versions of ranlib
96997         object.
96998
96999 2002-04-12  Jim Meyering  <meyering@lucent.com>
97000
97001         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
97002
97003 2002-04-09  Jim Meyering  <meyering@lucent.com>
97004
97005         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
97006         to be more precise.  Rather than saying we're checking whether the
97007         function `works', say what we're testing.
97008         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
97009         Reported by Bruno Haible.
97010
97011 2002-03-10  Jim Meyering  <meyering@lucent.com>
97012
97013         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
97014         Suggestion from Santiago Vila.
97015
97016 2002-03-08  Jim Meyering  <meyering@lucent.com>
97017
97018         * lib/rename.c: Mention that this wrapper is needed also on
97019         mips-dec-ultrix4.4 systems.
97020
97021 2002-03-02  Jim Meyering  <meyering@lucent.com>
97022
97023         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
97024         not HAVE_CLOCK_SETTIME.
97025
97026 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97027
97028         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
97029         Check for clock_settime.
97030
97031 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97032
97033         * lib/nanosleep.h: Rename to....
97034         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
97035
97036         * lib/gettime.c: New file.
97037         * lib/settime.c: New file.
97038         * lib/stime.c: Remove.
97039
97040         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
97041         timespec.h.  Remove nanosleep.h.
97042
97043 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97044
97045         * m4/acl.m4: New file.
97046         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
97047         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
97048
97049 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97050
97051         * lib/acl.c, lib/acl.h: New files.
97052         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
97053
97054 2002-02-24  Jim Meyering  <meyering@lucent.com>
97055
97056         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
97057         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
97058         cause trouble.  Reported by Nelson Beebe.
97059
97060 2002-02-23  Paul Eggert  <eggert@twinsun.com>
97061
97062         * lib/path-concat.c (xpath_concat): Reorder code to pacify
97063         compilers that don't know that xalloc_die never returns.
97064
97065 2002-02-20  Jim Meyering  <meyering@lucent.com>
97066
97067         * lib/getdate.c: Regenerate using bison-1.33.
97068
97069 2002-02-17  Jim Meyering  <meyering@lucent.com>
97070
97071         * config/config.guess (main): Don't use `head -1'; it's no longer
97072         portable. Use `sed 1q' instead.
97073
97074 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
97075
97076         * m4/codeset.m4: Upgrade to gettext-0.11.
97077         * m4/gettext.m4: Upgrade to gettext-0.11.
97078         * m4/glibc21.m4: Upgrade to gettext-0.11.
97079         * m4/iconv.m4: Upgrade to gettext-0.11.
97080         * m4/isc-posix.m4: Upgrade to gettext-0.11.
97081         * m4/lcmessage.m4: Upgrade to gettext-0.11.
97082         * m4/lib-ld.m4: New file, from gettext-0.11.
97083         * m4/lib-link.m4: New file, from gettext-0.11.
97084         * m4/lib-prefix.m4: New file, from gettext-0.11.
97085         * m4/progtest.m4: Upgrade to gettext-0.11.
97086
97087 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97088
97089         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
97090         (jm_PREREQ): Use it.
97091
97092 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97093
97094         * lib/posixver.c, lib/posixver.h: New files.
97095         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97096
97097 2002-02-02  Paul Eggert  <eggert@twinsun.com>
97098             Bruno Haible  <bruno@clisp.org>
97099
97100         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
97101         (fwrite_success_callback): New declaration.
97102         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
97103         print_unicode_char. Call failure callback instead of error.
97104         (fwrite_success_callback): New function.
97105         (exit_failure_callback): New function.
97106         (fallback_failure_callback): New function.
97107         (print_unicode_char): Call unicode_to_mb.
97108
97109 2002-01-26  Jim Meyering  <meyering@lucent.com>
97110
97111         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
97112         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
97113
97114 2002-01-26  Jim Meyering  <meyering@lucent.com>
97115
97116         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
97117
97118 2002-01-22  Paul Eggert  <eggert@twinsun.com>
97119
97120         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
97121
97122 2002-01-22  Jim Meyering  <meyering@lucent.com>
97123
97124         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
97125         Otherwise, some versions of automake would omit the rule that makes
97126         Makefile from Makefile.in.
97127
97128 2002-01-21  Paul Eggert  <eggert@twinsun.com>
97129
97130         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
97131         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97132         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
97133         (memcoll): Set errno to zero if there is no error.
97134
97135         * lib/quotearg.c (quotearg_buffer_restyled):
97136         Fix bug with quoting buffers containing NUL when backslashing escapes.
97137         This bug was exposed by the other changes in this patch.
97138         (quotearg_n_options): New arg ARGSIZE.
97139         All callers changed.
97140         (quoting_options_from_style): New function.
97141         (quotearg_n_style): Use it.
97142         (quotearg_n_style_mem): New function.
97143
97144         * lib/quotearg.h (quotearg_n_style_mem): New function.
97145
97146 2002-01-19  Jim Meyering  <meyering@lucent.com>
97147
97148         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
97149         Remove useless quotes: DF_PROG="df".
97150         * m4/strnlen.m4: New file.
97151
97152 2002-01-16  Paul Eggert  <eggert@twinsun.com>
97153
97154         * lib/backupfile.c (ISDIGIT): Comment fix.
97155         * lib/getdate.y (ISDIGIT): Likewise.
97156         * lib/posixtm.c (ISDIGIT, year): Likewise.
97157         * lib/strverscmp.c (ISDIGIT): Likewise.
97158         * lib/userspec.c (ISDIGIT): Likewise.
97159
97160 2002-01-16  Jim Meyering  <meyering@lucent.com>
97161
97162         * lib/getdate.y: Add three semicolons, each just before a closing
97163         brace. Bison (as of version 1.31) no longer papers over that mistake.
97164
97165 2002-01-05  Jim Meyering  <meyering@lucent.com>
97166
97167         * lib/version-etc.c (version_etc_copyright): Update copyright year.
97168
97169 2001-12-19  Paul Eggert  <eggert@twinsun.com>
97170
97171         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
97172         not silently exit merely because the output buffer happens to
97173         have nothing pending.
97174
97175 2001-12-18  Paul Eggert  <eggert@twinsun.com>
97176
97177         See the big note in ../ChangeLog.
97178         * lib/human.c (suffixes): Prefer K to k for 1024.
97179         (generate_suffix_backwards): New function.
97180         (human_readable_inexact): Use it.
97181         * lib/xstrtol.c (__xstrtol): If there is no number but there
97182         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
97183         Accept 'K' as well as 'k'.
97184
97185 2001-12-15  Jim Meyering  <meyering@lucent.com>
97186
97187         * lib/regex.h (__restrict_arr): Update from libc.
97188
97189         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
97190         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
97191         (STREQ): Define.
97192
97193 2001-12-14  Jim Meyering  <meyering@lucent.com>
97194
97195         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
97196         Suggestion from Bruno Haible.
97197
97198 2001-12-10  Jim Meyering  <meyering@lucent.com>
97199
97200         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
97201         xrealloc, Instead, include "xalloc.h".
97202         (initbuffer): Don't cast xmalloc return value to char*.
97203         (readline): Reword comment.
97204         Don't cast xrealloc return value to char*
97205         Return NULL, not 0.
97206
97207 2001-12-09  Jim Meyering  <meyering@lucent.com>
97208
97209         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97210         about `signed and unsigned type in conditional expression'.
97211         * lib/posixtm.c (posix_time_parse): Likewise.
97212
97213         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97214
97215         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97216         to avoid a pedantic warning.
97217
97218         * lib/getstr.c: Don't include assert.h.
97219         (getstr): Remove warning-evoking assertions.
97220         Return -1 if offset parameter is out of bounds.
97221         Change the type of a local from int to size_t.
97222
97223         * lib/strftime.c (my_strftime_localtime_r): Include this function
97224         definition in the `#if ! HAVE_TM_GMTOFF' block.
97225
97226         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97227         Include xalloc.h instead.
97228
97229 2001-12-02  Jim Meyering  <meyering@lucent.com>
97230
97231         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97232         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97233         included.
97234
97235         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97236         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97237
97238 2001-11-30  Akim Demaille  <akim@epita.fr>
97239
97240         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97241         before being defined.
97242
97243 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97244
97245         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97246         First arg is int, not unsigned.
97247         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97248         (SIZE_MAX, UINT_MAX): New macros.
97249         (quotearg_n_options): Abort if N is negative.
97250         Avoid overflow check on hosts where size_t is 64 bits and int
97251         is 32 bits, as overflow is impossible there.
97252         Fix off-by-one typo that caused unnecessary reallocation.
97253
97254 2001-11-27  Jim Meyering  <meyering@lucent.com>
97255
97256         * lib/tempname.c: Merge with version from libc.
97257         * lib/regex.c: Likewise.
97258
97259         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97260         systems for which STDC_HEADERS is 0, it was not included, resulting in
97261         a warning about an integer-to-pointer conversion problem with getenv.
97262         Reported by Volker Borchert.
97263
97264 2001-11-26  Jim Meyering  <meyering@lucent.com>
97265
97266         * lib/gtod.h: Remove file.
97267         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97268         * lib/gettimeofday.c: Don't include gtod.h.
97269         (GTOD_init): Remove function.
97270         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97271         Suggestion from Volker Borchert.
97272
97273 2001-11-23  Jim Meyering  <meyering@lucent.com>
97274
97275         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97276         it.
97277         * lib/hash.c (struct hash_table): Define it here instead.
97278
97279 2001-11-22  Jim Meyering  <meyering@lucent.com>
97280
97281         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97282
97283 2001-11-20  Jim Meyering  <meyering@lucent.com>
97284
97285         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97286         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97287
97288 2001-11-19  Jim Meyering  <meyering@lucent.com>
97289
97290         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97291         directory.  Use "conftestXXXXXX" as the template.
97292         Suggestion from Paul Eggert.
97293
97294         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97295         immediately, so the test doesn't mistakenly hit the max-open-files
97296         limit.
97297
97298 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97299
97300         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97301         (TEMPORARIES): New macro.
97302         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97303         removes an artificial limitation (e.g. HP-UX 10.20, where
97304         TMP_MAX is 17576).
97305
97306 2001-11-18  Jim Meyering  <meyering@lucent.com>
97307
97308         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97309
97310 2001-11-18  Jim Meyering  <meyering@lucent.com>
97311
97312         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97313         on SunOS 4.
97314
97315         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97316         files will be created before anything else.
97317
97318 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97319
97320         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97321         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97322
97323 2001-11-17  Jim Meyering  <meyering@lucent.com>
97324
97325         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97326         Prompted by a report from Bob Proulx.
97327
97328         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97329         Instead, require UTILS_FUNC_MKSTEMP.
97330
97331 2001-11-17  Jim Meyering  <meyering@lucent.com>
97332
97333         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97334         Now, that's done as part of AC_FUNC_STRTOD.
97335
97336 2001-11-17  Jim Meyering  <meyering@lucent.com>
97337
97338         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97339         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97340         rather than group writable.  Patch by Juan F. Codagnone.
97341
97342         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97343         xrealloc, Instead, include "xalloc.h".
97344
97345         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97346         Remove explicit declarations of xmalloc, xrealloc,
97347         and xstrdup.  Instead, include "xalloc.h".
97348
97349         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97350         unlocked-io.h.
97351         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97352         Likewise.
97353         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97354
97355         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97356         Reported by Padraig Brady.
97357
97358         * lib/mkstemp.c: #undef mkstemp.
97359         Include config.h.
97360         (rpl_mkstemp): Rename from mkstemp.
97361         Protoize.
97362
97363 2001-11-16  Jim Meyering  <meyering@lucent.com>
97364
97365         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97366         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97367         determine the amount of total physical memory, use pstat_getstatic.
97368         HPUX-11 doesn't define _SC_PHYS_PAGES.
97369         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97370         If sysconf couldn't be used to determine the amount of available
97371         physical memory, use both pstat_getstatic and pstat_getdynamic.
97372         Based on a patch from Bob Proulx.
97373
97374 2001-11-10  Jim Meyering  <meyering@lucent.com>
97375
97376         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97377         (jm_PREREQ): Use it.
97378
97379 2001-11-09  Jim Meyering  <meyering@lucent.com>
97380
97381         * m4/jm-macros.m4: Require autoconf-2.52f.
97382         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97383         Use these AC_-prefixed names, not the AM_-prefixed ones.
97384
97385         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97386
97387 2001-11-05  Jim Meyering  <meyering@lucent.com>
97388
97389         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97390
97391 2001-11-04  Jim Meyering  <meyering@lucent.com>
97392
97393         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97394         $DEFS.
97395
97396 2001-11-03  Jim Meyering  <meyering@lucent.com>
97397
97398         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97399         of AC_DEFUN.
97400
97401         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97402         know the name of the variable in the macro definition.
97403
97404 2001-11-03  Jim Meyering  <meyering@lucent.com>
97405
97406         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97407         in argmatch_to_argument call.
97408
97409         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97410         argument.
97411
97412         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97413         e.g., a fault due to an attempt to free a NULL pointer.
97414
97415 2001-11-01  Jim Meyering  <meyering@lucent.com>
97416
97417         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97418         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97419
97420 2001-11-01  Jim Meyering  <meyering@lucent.com>
97421
97422         * lib/dirfd.c, lib/dirfd.h: New files.
97423         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97424
97425         * lib/hash.c (hash_print) [TESTING]: Clean up.
97426
97427 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97428
97429         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97430         to avoid a warning if -Wall.
97431
97432 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97433
97434         * README: New file
97435         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97436         (per RMS's instructions, this is now the canonical source)
97437         * lgpl/, gpl/: New directories.
97438
97439 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97440
97441         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97442
97443 2001-10-21  Jim Meyering  <meyering@lucent.com>
97444
97445         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97446         this code would end up calling gettext even in packages built
97447         with --disable-nls.
97448         * lib/getopt.c (_): Likewise.
97449         * lib/regex.c (_): Likewise.
97450
97451 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97452
97453         * m4/error.m4 (jm_PREREQ_ERROR):
97454         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97455         AC_FUNC_STRERROR_R does that.
97456         Check for strerror declaration.
97457
97458         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97459         are supposed to have them these days.
97460         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97461         Merge changes from latest Autoconf CVS.
97462         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97463         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97464         POSIX decided to standardize on the int flavor of strerror_r.
97465
97466 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97467
97468         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97469         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97470         Use strerror_r that is only a macro, even if it is not a function.
97471         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97472         (private_strerror): Use prototypes, not old-style function definition.
97473         (print_errno_message): New function.
97474         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97475         char*-flavored one.
97476         (error_tail, error, error_at_line): Use it.
97477
97478 2001-10-11  Jim Meyering  <meyering@lucent.com>
97479
97480         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97481         and quote_n (1, ... to avoid clobbering a buffer.
97482
97483 2001-10-05  Jim Meyering  <meyering@lucent.com>
97484
97485         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97486         hash-pjw.h.
97487         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97488         * lib/hash-pjw.h: New file.
97489
97490 2001-09-30  Jim Meyering  <meyering@lucent.com>
97491
97492         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97493         `struct fsstat' has the `f_fstypename' member.
97494         Use that to define FS_TYPE, which is now used to make
97495         the getfsstat link test tighter.
97496
97497 2001-09-30  Jim Meyering  <meyering@lucent.com>
97498
97499         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97500         Include <sys/ucred.h>, for Apple Darwin.
97501         Include sys/mount.h and sys/fs_types.h only if available.
97502         (FS_TYPE): Define.
97503         (read_filesystem_list): Use FS_TYPE.
97504
97505 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97506
97507         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97508         a boolean context.
97509
97510 2001-09-29  Jim Meyering  <meyering@lucent.com>
97511
97512         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97513         [one-argument getmntent function]): Include stdio.h before mntent.h.
97514         SunOS 4.1.x needs it for the declaration of `FILE'.
97515         Patch by Volker Borchert.
97516
97517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97518         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97519         sys/fs_types.h, and make the link-test for getfsstat guard #include
97520         directives with appropriate #if HAVE_*_H tests so that we can
97521         detect getfsstat on Apple Darwin1.3.7 systems.
97522         Reported by Nelson Beebe.
97523         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97524
97525 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97526
97527         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97528         #defines strtoimax.  Also treat the other strto* functions
97529         like strtoimax.
97530
97531         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97532         Check for strtoul and strtoumax,
97533         as those declarations are made even in the signed case.
97534         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97535         Likewise, for strtol and strtoimax.
97536
97537 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97538
97539         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97540         #defines strtoimax.  Also treat the other strto* functions
97541         like strtoimax.
97542
97543         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97544         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97545         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97546
97547 2001-09-26  Jim Meyering  <meyering@lucent.com>
97548
97549         Most macros in unlocked-io.h had the wrong number of arguments.
97550         * lib/gen-uio: New script.
97551         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97552         * lib/unlocked-io.hin: Remove file.
97553         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97554         rather than trying to embed it here.
97555         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97556         Reported by Padraig Brady.
97557
97558 2001-09-25  Volker Borchert  <bt@teknon.de>
97559
97560         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97561         `result'.
97562
97563 2001-09-24  Jim Meyering  <meyering@lucent.com>
97564
97565         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97566
97567 2001-09-23  Jim Meyering  <meyering@lucent.com>
97568
97569         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97570         instead of the mere test for existence of mntent.h.  The latter
97571         would get a false-positive on AIX 3.4 systems.
97572         In the outer getmntent if-block, don't die if neither of the getmntent
97573         tests succeeds.  Instead, just fall through and continue with the
97574         remaining tests.
97575
97576 2001-09-23  Jim Meyering  <meyering@lucent.com>
97577
97578         * lib/mountlist.c: Remove useless parentheses in #if directives.
97579         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97580         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97581
97582 2001-09-22  Jim Meyering  <meyering@lucent.com>
97583
97584         * m4/gettext.m4: New file.  From gettext.
97585         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97586         * m4/progtest.m4: Likewise
97587         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97588         * m4/glibc21.m4: Likewise.
97589
97590         * m4/libintl.m4: Remove.  No longer used.
97591
97592 2001-09-22  Jim Meyering  <meyering@lucent.com>
97593
97594         * lib/localcharset.c: Update from latest gettext.
97595         * lib/config.charset: Likewise.
97596
97597 2001-09-20  Jim Meyering  <meyering@lucent.com>
97598
97599         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97600         strtoimax.
97601         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97602         strtoumax.
97603
97604 2001-09-20  Jim Meyering  <meyering@lucent.com>
97605
97606         * lib/xstrtol.c (strtoimax): Guard declaration with
97607         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97608         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97609         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97610         (strtoumax): Likewise, for completeness (it wasn't necessary).
97611
97612 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97613
97614         * lib/strtoimax.c (HAVE_LONG_LONG):
97615         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97616         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97617         to work around bug in IBM C compiler.
97618
97619 2001-09-17  Jim Meyering  <meyering@lucent.com>
97620
97621         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97622         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97623         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97624         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97625         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97626         whenever the right hand side need not be expanded by the shell.
97627
97628 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97629
97630         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97631         library.  It's not correct, as some older glibcs are buggy.
97632         fnmatch wasn't fixed until glibc 2.2.
97633
97634         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97635         special shell magic here.
97636
97637 2001-09-16  Jim Meyering  <meyering@lucent.com>
97638
97639         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97640         * m4/jm-macros.m4: Require it.
97641
97642 2001-09-16  Jim Meyering  <meyering@lucent.com>
97643
97644         * lib/mkdir.c: New file.
97645
97646 2001-09-15  Jim Meyering  <meyering@lucent.com>
97647
97648         * m4/jm-macros.m4: Check for help2man.
97649
97650 2001-09-11  Jim Meyering  <meyering@lucent.com>
97651
97652         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97653         The body, by Paul Eggert, was moved here from configure.in.
97654         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97655
97656 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97657
97658         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97659         (jm_PREREQ): Use it.
97660
97661 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97662
97663         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97664         Use ssize_t, not int, to store result of readlink.
97665         Check for ssize_t overflow as well as size_t overflow,
97666         as POSIX says the result of readlink is implementation-defined
97667         when ssize_t overflows.
97668         Remove unnecessary cast to char*.
97669         Use free+malloc instead of realloc, as the storage doesn't need
97670         to be preserved and it's clearer and can be more efficient that way.
97671         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97672         * lib/xreadlink.h (xreadlink): Update prototype.
97673
97674 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97675
97676         * lib/xgetcwd.c: Revert some of the previous change; intead,
97677         fix the HAVE_GETCWD_NULL code to behave more like the
97678         !HAVE_GETCWD_NULL code used to.
97679
97680         Include "xalloc.h".
97681         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97682         invoke xalloc_die.
97683
97684 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97685
97686         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97687         sys/param.h, as pathmax.h includes them.
97688
97689 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97690
97691         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97692         (jm_PREREQ_XGETCWD): New macro.
97693
97694         * m4/getcwd.m4: New file.
97695
97696 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97697
97698         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97699         like the HAVE_GETCWD_NULL code.
97700         Include pathmax.h if not HAVE_GETCWD.
97701         Do not include xalloc.h.
97702         (INITIAL_BUFFER_SIZE): New symbol.
97703         Do not use xmalloc / xrealloc, since the caller is responsible for
97704         handling errors.  Preserve errno around `free' during failure.
97705         Do not overrun buffer when using getwd.
97706
97707 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97708
97709         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97710         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97711         getcwd (NULL, 0).
97712
97713 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97714
97715         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97716         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97717         spotted by Jim Meyering.
97718
97719 2001-09-03  Jim Meyering  <meyering@lucent.com>
97720
97721         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97722         failure.
97723
97724 2001-09-02  Jim Meyering  <meyering@lucent.com>
97725
97726         * lib/error.c: Update from GNU libc.
97727
97728 2001-09-01  Jim Meyering  <meyering@lucent.com>
97729
97730         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97731         Used by df.
97732
97733 2001-09-01  Jim Meyering  <meyering@lucent.com>
97734
97735         * lib/xreadlink.c: New file.
97736         * lib/xreadlink.h: New file.
97737         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97738         xreadlink.h.
97739
97740         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97741         doesn't conflict with sparc Solaris 7's definition in
97742         /usr/include/sys/int_types.h.
97743
97744         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97745         files.
97746         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97747         and strncasecmp as r-values.  Unixware didn't have declarations.
97748
97749 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97750
97751         * lib/xstrtol.h: Add copyright notice.
97752         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97753         LONGINT_INVALID_SUFFIX_CHAR.
97754
97755 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97756
97757         * lib/xstrtol.c (strtoimax): New decl.
97758
97759 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97760
97761         * lib/xgetcwd.c: Don't include pathmax.h.
97762         Include stdlib.h and unistd.h if available.
97763         Include xalloc.h.
97764         (xmalloc, xstrdup, free): Remove decls.
97765         (xgetcwd): Don't assume sizes fit in unsigned.
97766         Check for overflow when computing sizes.
97767         Simplify reallocation code.
97768
97769 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97770
97771         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97772         a directory's st_size can have an arbitrary value, so the old
97773         usage could waste an arbitrary amount of memory.  All uses
97774         changed.
97775         * lib/savedir.h: Update prototype.
97776
97777 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97778
97779         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97780
97781         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97782         old strtoimax.c.
97783
97784         Also, make the following further changes to make this file's
97785         configuration more similar to that of strtol.c:
97786         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97787         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97788         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97789         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97790         changed to signed values.
97791
97792         And make the following changes as well:
97793         Fix copyright notice, as 1999 was missing.
97794         (verify): New macro.
97795         (strtoimax): Check sizes at compile-time, not run-time.
97796         Prefer strtol to strtoll if both work.
97797         (main): Remove; it was not that useful and was a pain to maintain.
97798
97799         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97800
97801 2001-08-31  Jim Meyering  <meyering@lucent.com>
97802
97803         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97804         Use an initial, malloc'd, buffer of length 128 rather than
97805         a statically allocated one of length 1024.
97806
97807 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97808
97809         Simplify code, partly by assuming autoconf 2.52 semantics.
97810
97811         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97812
97813         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97814         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97815         All uses removed.
97816         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97817         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97818         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97819         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97820         jm_AC_HEADER_INTTYPES_H.
97821         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97822
97823         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97824
97825         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97826         Quote first arg of AC_DEFUN.
97827         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97828         since they are needed to parse the include file even if we need
97829         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97830         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97831         but with opposite signedness.
97832
97833 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97834
97835         Merge 'exclude' changes from tar 1.13.22.
97836         This fixes one or two unlikely storage allocation overflow bugs,
97837         but doesn't change user-visible behavior otherwise.
97838
97839 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97840
97841         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97842         (jm_PREREQ_EXCLUDE): New macro.
97843
97844 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97845
97846         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97847         tm to be declared.
97848
97849 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97850
97851         * lib/hash.c: Remove '2001' from copyright notice.
97852
97853 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97854
97855         * lib/full-write.h: New file.
97856         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97857         * lib/full-write.c: Correct credits, as cccp.c no longer
97858         exists and anyway it was so heavily changed from the old cccp
97859         code as to be unrecognizable.  Include full-write.h.
97860         (full_write): Return size_t, with short writes meaning failure.
97861         All callers changed.  This fixes a bug with large buffers
97862         on 64-bit hosts.
97863         * lib/utime.c: Include full-write.h.
97864
97865 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97866
97867         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97868         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97869         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97870         Include if available.
97871         (<xalloc.h>): Include
97872         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97873         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97874         collide with FNM macros.
97875         (struct patopts): New struct.
97876         (struct exclude): Use it, as exclude patterns now come with options.
97877         (new_exclude): Support above changes.
97878         (new_exclude, add_exclude_file):
97879         Initial size must now be a power of two to simplify overflow checking.
97880         (free_exclude, fnmatch_no_wildcards): New function.
97881         (excluded_filename): No longer requires options arg, as the options
97882         are determined by add_exclude.  Now returns bool, not int.
97883         (excluded_filename, add_exclude):
97884         Add support for the fancy new exclusion options.
97885         (add_exclude, add_exclude_file): Now takes int options arg.
97886         Check for arithmetic overflow when computing sizes.
97887         (add_exclude_file): xrealloc might modify errno, so don't
97888         realloc until after errno might be used.
97889
97890         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97891         New macros.
97892         (free_exclude): New decl.
97893         (add_exclude, add_exclude_file): Now takes int options arg.
97894         (excluded_filename): No longer requires options arg, as the options
97895         are determined by add_exclude.  Now returns bool, not int.
97896
97897 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97898
97899         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97900
97901 2001-08-27  Jim Meyering  <meyering@lucent.com>
97902
97903         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97904
97905         * lib/version-etc.c (N_): Remove definition.
97906         Revert most of last change.
97907         Instead, simply don't mark the `Copyright...' string for translation.
97908         Based on advice from Paul Eggert.
97909
97910         * lib/strtoxmax.c: Tweak comment.
97911
97912 2001-08-26  Jim Meyering  <meyering@lucent.com>
97913
97914         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97915
97916         * m4/xstrtoimax.m4: New file.
97917         * m4/xstrtoumax.m4: Add comments explaining why we
97918         AC_REPLACE_FUNCS(strtol).
97919
97920 2001-08-26  Jim Meyering  <meyering@lucent.com>
97921
97922         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97923         of copyright with `%s' so translators don't get an untranslated
97924         message in 2002.
97925         (COPYRIGHT_YEAR): Define.
97926         (version_etc): Use fprintf rather than fputs.
97927         Suggestion from Ulrich Drepper.
97928
97929         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97930
97931         * lib/strtoll.c: New file, from GNU libc.
97932         * lib/xstrtoimax.c: New file.
97933
97934         * lib/xstrtol.h: Add xstrtoimax.
97935         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97936         * lib/strtoimax.c: New file.  Likewise, but first define
97937         STRTOUXMAX_SIGNED.
97938
97939         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97940         ...
97941         * lib/strtoxmax.c: ... then renamed to this.
97942
97943 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97944
97945         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97946         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97947         (jm_AC_TYPE_INTMAX_T): New macro.
97948         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97949
97950         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97951
97952         * m4/longlong.m4: Renamed from ulonglong.m4.
97953         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97954         * m4/uintmax_t.m4: Removed.
97955
97956 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97957
97958         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97959         Port to Solaris 8, where 'sed' requires a space after the 'r'
97960         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97961         Redirect output to $tmp just once.
97962
97963 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97964
97965         * lib/addext.c (<errno.h>): Include.
97966         (errno): Declare if not defined.
97967         (addext): Work correctly when pathconf returns -1 and leaves
97968         errno alone because there is no limit.  Also, work even if
97969         pathconf returns a value greater than SIZE_MAX.
97970
97971 2001-08-12  Jim Meyering  <meyering@lucent.com>
97972
97973         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97974         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97975         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97976         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97977         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97978         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97979         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97980         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97981         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97982         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97983         utime.m4, utimes.m4, xstrtoumax.m4:
97984         Quote the first argument in each use of AC_DEFUN.
97985
97986 2001-08-12  Jim Meyering  <meyering@lucent.com>
97987
97988         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97989         Simply `return getcwd (NULL, 0);'.
97990         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97991         Use 1300 as initial value for length, not PATH_MAX.
97992
97993         * lib/pathmax.h: Clean up cpp syntax.
97994
97995 2001-08-12  Jim Meyering  <meyering@lucent.com>
97996
97997         * lib/gettimeofday.c: New file.
97998         * lib/gtod.h: New file.
97999         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
98000
98001 2001-08-05  Jim Meyering  <meyering@lucent.com>
98002
98003         * m4/jm-macros.m4: Require autoconf-2.52.
98004
98005 2001-08-04  Jim Meyering  <meyering@lucent.com>
98006
98007         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
98008         stmt, to get in sync with glibc.
98009
98010 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98011
98012         The following changes are from gettext 0.10.39 as maintained by
98013         Bruno Haible.
98014
98015         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
98016         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
98017         with inverted sense.  All uses changed.
98018
98019         * lib/mbswidth.c: Don't include <limits.h>.
98020         Include <stdlib.h> and <string.h> unconditionally.
98021         (iswcntrl, mbsinit, ISCNTRL): New macros.
98022         (mbsnwidth): Use K&R style function declarations.
98023         Don't bother checking for MB_LEN_MAX == 1, since the compiler
98024         can optimize it when MB_CUR_MAX == 1.
98025         The width of control characters is zero, not 1.
98026
98027 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98028
98029         The following changes are from gettext 0.10.39 as maintained by
98030         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
98031
98032         * m4/codeset.m4: Upgrade to serial AM1.
98033         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
98034         all uses changed.  Quote first arg of AC_DEFUN.
98035         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
98036
98037         * m4/iconv.m4: Upgrade to serial AM2.
98038         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
98039         Add --with-libconv-prefix.
98040         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
98041         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
98042         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
98043         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
98044         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
98045
98046         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
98047         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
98048         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
98049         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
98050         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
98051         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
98052         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
98053         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
98054         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98055
98056         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
98057         string.h any more.
98058
98059         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
98060         not the default value.
98061
98062         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
98063         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
98064         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
98065         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
98066         Also check for iswcntrl, used for wcwidth fallback.
98067         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
98068         to Autoconf 2.13.
98069
98070 2001-08-03  Jim Meyering  <meyering@lucent.com>
98071
98072         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
98073         as it was in the original.  Reported by Paul Eggert.
98074
98075 2001-07-16  Jim Meyering  <meyering@lucent.com>
98076
98077         * m4/gettimeofday.m4: New file.
98078         Prompted by a report from Bernhard Baehr.
98079
98080 2001-07-15  Jim Meyering  <meyering@lucent.com>
98081
98082         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
98083         stuff. Now it's in ../Makefile.cfg.
98084
98085 2001-07-15  Jim Meyering  <meyering@lucent.com>
98086
98087         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
98088         (BUILT_SOURCES): Add unlocked-io.h.
98089         (io_functions): Define.
98090         (unlocked-io.h): New rule.
98091         (DISTCLEANFILES): Add unlocked-io.h.
98092         (all-local): Depend on unlocked-io.h, to ensure it is created.
98093
98094         * lib/unlocked-io.hin: New file
98095
98096         * lib/regex.c: Update from glibc.
98097
98098 2001-07-05  Jim Meyering  <meyering@lucent.com>
98099
98100         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
98101         recommendation.
98102         (libfetish_a_SOURCES): Put all .h files here instead.
98103         Remove a thus-exposed (better checks in automake) duplicate and
98104         two unnecessary .h files.
98105
98106 2001-07-04  Jim Meyering  <meyering@lucent.com>
98107
98108         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
98109         that generates jm-glibc-io.m4 so that it doesn't trigger any make
98110         distcheck failure.
98111
98112 2001-07-02  Jim Meyering  <meyering@lucent.com>
98113
98114         The following changes were prompted by suggestions from Bruno Haible.
98115
98116         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
98117         is now generated.
98118         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
98119         definition of EXTRA_DIST.
98120         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
98121         ensure that the generated file is created/updated whenever the list
98122         of $(unlocked_functions) is changed.
98123         (jm-glibc-io.m4): New rule.
98124         (unlocked-io.h): New rule -- currently unused.
98125
98126 2001-06-24  Jim Meyering  <meyering@lucent.com>
98127
98128         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
98129         unmatched right bracket, rather than kludging it with an extra,
98130         falsely-matching quote in a comment.  Patch by Akim Demaille.
98131
98132 2001-06-11  Jim Meyering  <meyering@lucent.com>
98133
98134         * lib/regex.c: Update from GNU libc.
98135
98136 2001-05-27  Jim Meyering  <meyering@lucent.com>
98137
98138         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
98139         Check for ut_type in struct utmp.
98140
98141 2001-05-27  Jim Meyering  <meyering@lucent.com>
98142
98143         * lib/readutmp.h (UT_TYPE): Define.
98144
98145 2001-05-24  Jim Meyering  <meyering@lucent.com>
98146
98147         * lib/argmatch.c: Include "quote.h".
98148         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
98149         quote function.  Reported by Göran Uddeborg.
98150
98151 2001-05-22  Jim Meyering  <meyering@lucent.com>
98152
98153         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
98154         now that we use the package-supplied version unconditionally.
98155         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
98156
98157 2001-05-21  Jim Meyering  <meyering@lucent.com>
98158
98159         * m4/regex.m4: Change a couple backticks to single quotes to avoid
98160         shell syntax errors.
98161
98162 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98163
98164         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
98165
98166 2001-05-20  Paul Eggert  <eggert@twinsun.com>
98167
98168         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
98169         Don't bother to check library strftime, since
98170         we'll be using our own my_strftime function anyway.
98171         Define my_strftime instead of strftime.
98172
98173 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
98174
98175         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
98176         which is not yet declared.
98177
98178 2001-05-15  Jim Meyering  <meyering@lucent.com>
98179
98180         * m4/regex.m4: Use proper quoting so brackets appear in the test
98181         program.
98182         Reported by, and with help from, Bruno Haible.
98183
98184 2001-05-13  Jim Meyering  <meyering@lucent.com>
98185
98186         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
98187         undefined.
98188
98189 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98190
98191         dirname code cleanup.  base_name now behaves more compatibly
98192         with POSIX basename when given file names that have trailing
98193         slashes, and similarly for dir_name.  Add new primitives
98194         base_len and dir_len.  Put the directory-name-related decls
98195         into dirname.h.
98196
98197         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
98198         * lib/backupfile.c (base_name): Likewise.
98199         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
98200         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
98201         * lib/makepath.c (strip_trailing_slashes): Likewise.
98202         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
98203         ISSLASH): Likewise.
98204         * lib/rename.c (strip_trailing_slashes): Likewise.
98205         * lib/same.c (base_name): Likewise.
98206         * lib/stripslash.c (ISSLASH): Likewise.
98207
98208         * lib/addext.c: Include <dirname.h> after size_t is defined.
98209         * lib/backupfile.c: Likewise.
98210
98211         * lib/addext.c (addext): Use base_len to trim redundant
98212         trailing slashes instead of doing it ourselves.
98213         But do not trim the last slash if it is not redundant.
98214
98215         * lib/backupfile.c (find_backup_file_name,
98216         max_backup_version): Use base_len instead of rolling it ourselves.
98217         Handle the case of "" and (on DOS) "C:" correctly.
98218
98219         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98220         needed. Include <string.h>, <dirname.h>.
98221         (base_name): Allow file names ending in slashes, other than names
98222         that are all slashes.  In this case, return the basename followed
98223         by the slashes.  This is more general, and can be used in places
98224         where the original base_name purposely had an assertion failure.
98225         (base_len): New function.
98226
98227         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98228         Do not include <assert.h>; no longer needed.
98229         Include xalloc.h.
98230         (memrchr): Remove decl.
98231         (dir_name_r): Remove.
98232         (dir_len): Renamed from dirlen.  All callers changed.
98233         Rewrite in terms of base_name, for simplicity and consistency.
98234         (dir_name): Never return NULL.  All callers changed.
98235         Do not include <stdlib.h> in test program; no longer needed.
98236         return 0; is fine for test program.
98237
98238         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98239         New macros.
98240         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98241
98242         * lib/path-concat.c (path_concat): Use base_len to compute
98243         base length, not strlen; this means we cannot rely on memcpy
98244         to null-terminate.
98245
98246         * lib/same.c (STREQ): Remove.
98247         (same_name): Handle the case where the basename ends in trailing '/'.
98248
98249         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98250         a slash was stripped.  Do not strip the last slash after a
98251         file system prefix.
98252
98253 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98254
98255         * lib/Makefile.am (libfetish_a_SOURCES):
98256         Add strftime.c, since we now compile it on all hosts.
98257
98258         * lib/strftime.c (my_strftime):
98259         Define to nstrftime if emacs, but only if my_strftime is not defined.
98260         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98261         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98262         Add one more extra argument: a nanoseconds value.
98263         All uses changed.
98264         (ns): New macro.
98265         (my_strftime function): Add %N format.
98266         (emacs_strftimeu): Renamed from emacs_strftime,
98267         with extra ut argument.
98268
98269 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98270
98271         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98272
98273 2001-04-21  Jim Meyering  <meyering@lucent.com>
98274
98275         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98276         doesn't interfere.
98277
98278 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98279
98280         * m4/ftruncate.m4: Check for chsize.
98281         Link with ftruncate.o unconditionally if ftruncate is missing.
98282         This was required when cross-compiling to i586-mingw32msvc.
98283
98284 2001-04-08  Jim Meyering  <meyering@lucent.com>
98285
98286         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98287         recomputed; that's necessary when the offset spans a DST transition.
98288         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98289
98290 2001-04-02  Jim Meyering  <meyering@lucent.com>
98291
98292         * lib/regex.h, regex.c: Update from GNU libc.
98293
98294 2001-03-24  Jim Meyering  <meyering@lucent.com>
98295
98296         * m4/jm-macros.m4: Require autoconf-2.49d.
98297
98298 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98299
98300         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98301
98302 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98303
98304         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98305
98306 2001-03-17  Jim Meyering  <meyering@lucent.com>
98307
98308         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98309         now that the version in autoconf is equivalent.
98310         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98311
98312         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98313         Suggestion from Akim Demaille.
98314
98315         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98316         (jm_PREREQ_TEMPNAME): New function.
98317
98318 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98319
98320         * lib/tempname.c (uint64_t): Define to uintmax_t if
98321         not defined, and if UINT64_MAX is not defined.
98322         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98323         Reported by John David Anglin.
98324
98325 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98326
98327         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98328         resolve alias if codeset is empty.
98329         * lib/config.charset (BeOS): Use wildcard syntax.
98330
98331 2001-03-13  Jim Meyering  <meyering@lucent.com>
98332
98333         * lib/path-concat.c (path_concat)
98334         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98335         concatenating e.g., `C:' and `foo'.
98336         From Bruno Haible.
98337
98338 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98339
98340         * lib/localcharset.c (locale_charset): Don't use
98341         setlocale(LC_CTYPE,NULL). Don't return NULL.
98342         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98343
98344 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98345
98346         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98347         support for DOS/DJGPP.
98348
98349 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98350
98351         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98352         lacks mkstemp.  Compile our own tempname.c if we compile our own
98353         mkstemp.c, as mkstemp relies on tempname.
98354
98355 2001-03-01  Jim Meyering  <meyering@lucent.com>
98356
98357         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98358         AH_VERBATIM really does output its argument verbatim.
98359
98360 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98361
98362         * lib/Makefile.am (libfetish_a_SOURCES):
98363         Add dup-safer.c, fopen-safer.c.
98364         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98365
98366         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98367         * lib/unistd-safer.h: New files.
98368
98369 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98370
98371         The mkstemp replacement is taken from glibc 2.2.2, with some
98372         portability fixes for use outside glibc, as follows:
98373
98374         * lib/tempname.c (struct_stat64): New macro.
98375         (direxists, __gen_tempname): Use it.
98376         This avoids a portability problem with Solaris 8.
98377
98378         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98379         (<stddef.h>, <stdint.h>, <string.h>):
98380         Include only if STDC_HEADERS || _LIBC.
98381         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98382         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98383         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98384         (__set_errno): Define this macro if <errno.h> doesn't.
98385         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98386         Define these macros if <stdio.h> doesn't.
98387         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98388         Define these macros if <sys/stat.h>
98389         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98390         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98391         __xstat64): Define if not _LIBC.
98392         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98393         (__gen_tempname): Invoke gettimeofday only if
98394         HAVE_GETTIMEOFDAY || _LIBC;
98395         otherwise, fall back on plain "time".
98396         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98397
98398         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98399
98400         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98401
98402 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98403
98404         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98405
98406 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98407
98408         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98409         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98410         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98411         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98412
98413 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98414
98415         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98416         Remove workaround macros for hosts that have mbrtowc but not
98417         mbstate_t, as we now insist on proper declarations for both
98418         before using mbrtowc.
98419
98420 2001-02-17  Jim Meyering  <meyering@lucent.com>
98421
98422         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98423         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98424         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98425         UnixWare 7.1.1.
98426
98427         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98428         rather than AC_CACHE_VAL.
98429
98430 2001-02-17  Jim Meyering  <meyering@lucent.com>
98431
98432         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98433         around included file name.
98434
98435         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98436
98437         * lib/strftime.c: Update from GNU libc (the only changes were to
98438         comments).
98439
98440 2001-02-17  Jim Meyering  <meyering@lucent.com>
98441
98442         * lib/regex.c: Update from libc.
98443
98444 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98445
98446         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98447         clash.
98448
98449 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98450
98451         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98452         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98453         Reported by Mark Hounschell via Paul Eggert.
98454
98455 2001-02-07  Jim Meyering  <meyering@lucent.com>
98456
98457         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98458
98459 2001-02-05  Jim Meyering  <meyering@lucent.com>
98460
98461         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98462         it includes the patch required for `large file' support with at least
98463         HP-UX's 10.20 /bin/cc.
98464
98465 2001-02-03  Jim Meyering  <meyering@lucent.com>
98466
98467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98468         AS_IF, now that it works once again (mysteriously).
98469         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98470
98471 2001-01-30  Jim Meyering  <meyering@lucent.com>
98472
98473         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98474         * m4/chown.m4: Rename conftestchown to conftest.chown.
98475         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98476         s/conftestdir2/conftest.d2/.
98477         * m4/utimes.m4: s/conftestdata/conftest.data/
98478         Inspired by Pavel Roskin's change in autoconf.
98479
98480 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98481
98482         * lib/config.charset: Update for FreeBSD 4.2.
98483
98484 2001-01-27  Jim Meyering  <meyering@lucent.com>
98485
98486         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98487         a use of AS_IF.
98488         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98489
98490 2001-01-26  Jim Meyering  <meyering@lucent.com>
98491
98492         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98493         quotearg.c includes it.
98494
98495 2001-01-26  Jim Meyering  <meyering@lucent.com>
98496
98497         * lib/quotearg.c: Include stddef.h.
98498         * lib/quote.c: Include stddef.h.
98499         Reported by Axel Kittenberger.
98500
98501         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98502         line in double quotes so that it evokes a better diagnostic.
98503         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98504         Reported by Axel Kittenberger.
98505
98506 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98507
98508         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98509         as if it was a `charset'.
98510
98511 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98512
98513         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98514         has const.
98515
98516 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98517
98518         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98519         to avoid a warning.  Add back 'const' to inptr.
98520
98521 2001-01-20  Jim Meyering  <meyering@lucent.com>
98522
98523         Be sure that headers are checked before used in code compiled
98524         for the type checks.
98525         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98526         In place of that, invoke jm_CHECK_ALL_TYPES.
98527         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98528         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98529         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98530         The check for ssize_t was mistakenly run before the test for unistd.h.
98531
98532         The configure-time check for stdbool.h was missing.
98533         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98534         (jm_PREREQ_HASH): New function.
98535
98536 2001-01-17  Jim Meyering  <meyering@lucent.com>
98537
98538         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98539         for autoconf-2.49c.
98540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98541
98542 2001-01-16  Jim Meyering  <meyering@lucent.com>
98543
98544         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98545         From Bruno Haible.
98546
98547 2001-01-14  Jim Meyering  <meyering@lucent.com>
98548
98549         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98550         foo and bar.  Create conftestdir/ in the script, not in the C code.
98551         Remove directories in the script, not in the C code.
98552         Remove conftestdir{,2} before trying to create the directory.
98553         Make the entire configure script fail if the mkdir fails.
98554
98555 2001-01-14  Jim Meyering  <meyering@lucent.com>
98556
98557         * lib/rename.c: New file.  From Volker Borchert.
98558         Include stdlib.h, string.h or strings.h, and xalloc.h.
98559         Use strip_trailing_slashes rather than open-coding it.
98560
98561 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98562
98563         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98564
98565 2001-01-03  Jim Meyering  <meyering@lucent.com>
98566
98567         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98568         of local `inptr' to avoid warning with some system declarations of
98569         iconv.
98570
98571 2001-01-02  Volker Borchert  <bt@teknon.de>
98572
98573         * m4/rename.m4: New file.
98574         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98575
98576 2001-01-01  Jim Meyering  <meyering@lucent.com>
98577
98578         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98579         even on systems with utmpx.h.  It's necessary for the declaration of
98580         utmp's ut_user member.  Reported by Andreas Jaeger.
98581
98582         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98583         available. They are required for the declarations of getgrgid and
98584         getpwuid resp.
98585         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98586         Reported by Andreas Jaeger.
98587
98588 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98589
98590         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98591         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98592         so `make install' also works in VPATH builds.
98593
98594 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98595
98596         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98597         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98598         can be used in subdirectories.
98599
98600 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98601
98602         * lib/modechange.c: Do not assume that mode_t uses the
98603         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98604         the other-execute bit of FOO even if S_IXOTH != 1.
98605
98606         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98607         WOTH, XOTH, ALLM): New macros.
98608         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98609          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98610         Use them.
98611         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98612         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98613         (mode_compile):
98614         No need to use uintmax_t; unsigned long is long enough.
98615         Don't bother to get suffix since we don't use it.
98616
98617 2000-12-26  Jim Meyering  <meyering@lucent.com>
98618
98619         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98620         better with autoheader.
98621
98622 2000-12-24  Jim Meyering  <meyering@lucent.com>
98623
98624         * lib/hash.c (is_prime): Return explicit boolean values.
98625         (hash_get_first): Return NULL to appease Irix5.6's 89.
98626         Reported by Nelson Beebe.
98627
98628 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98629
98630         * lib/localcharset.c (locale_charset): Add support for Win32.
98631
98632 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98633
98634         * lib/physmem.h, lib/physmem.c: New files.
98635
98636         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98637         (noinst_HEADERS): Add physmem.h.
98638
98639         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98640         't' for compatibility with Solaris 8 sort.
98641
98642 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98643
98644         * lib/config.charset: Add support for BeOS.
98645
98646 2000-12-17  Jim Meyering  <meyering@lucent.com>
98647
98648         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98649         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98650
98651 2000-12-16  Jim Meyering  <meyering@lucent.com>
98652
98653         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98654         N and M) would have treated it like `chown N:N FILE'.
98655
98656         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98657
98658 2000-12-16  Jim Meyering  <meyering@lucent.com>
98659
98660         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98661         SHELLS_FILE to a file name that's useful on djgpp systems.
98662         Include stdlib.h.
98663         (ADDITIONAL_DEFAULT_SHELLS): Define.
98664         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98665         Based mostly on a patch from Prashant TR.
98666
98667 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98668
98669         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98670         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98671         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98672
98673 2000-12-08  Andreas Schwab  <schwab@suse.de>
98674
98675         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98676         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98677
98678 2000-12-07  Jim Meyering  <meyering@lucent.com>
98679
98680         * lib/stripslash.c (ISSLASH): Define.
98681         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98682         `/'.
98683         From Prashant TR.
98684
98685         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98686         (dir_name_r): Declare this function as static.
98687         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98688         manifest itself on a name containing a mix of slashes and
98689         backslashes.
98690         Make this function work with names starting with a DOS-style
98691         drive letter and colon prefix.
98692         (dir_name): Append `.' if necessary.
98693         Based mostly on patches from Prashant TR and Eli Zaretskii.
98694
98695         * lib/dirname.h (dir_name_r): Remove prototype.
98696
98697 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98698
98699         * m4/off_t-format.m4: Remove this file.
98700         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98701
98702 2000-12-06  Jim Meyering  <meyering@lucent.com>
98703
98704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98705         replacement strtoull, we may well need the replacement strtoul, too.
98706         Check for declarations of strtoul and strtoull.
98707         Check for strtol.  Mainly as a cue to cause automake to include
98708         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98709         Check for limits.h -- strtol.c needs it.
98710
98711 2000-12-05  Jim Meyering  <meyering@lucent.com>
98712
98713         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98714
98715 2000-12-04  Jim Meyering  <meyering@lucent.com>
98716
98717         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98718         Also include memory.h, stdlib.h, unistd.h if appropriate.
98719         Reported by Andreas Jaeger (conflicting declaration of malloc).
98720
98721 2000-12-02  Jim Meyering  <meyering@lucent.com>
98722
98723         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98724         * m4/jm-macros.m4 (jm_MACROS): require it.
98725
98726 2000-12-02  Jim Meyering  <meyering@lucent.com>
98727
98728         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98729
98730 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98731
98732         * lib/memrchr.c: Include <config.h> before any system include file.
98733
98734 2000-11-30  Jim Meyering  <meyering@lucent.com>
98735
98736         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98737
98738 2000-11-30  Jim Meyering  <meyering@lucent.com>
98739
98740         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98741
98742 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98743
98744         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98745
98746 2000-11-26  Jim Meyering  <meyering@lucent.com>
98747
98748         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98749
98750 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98751
98752         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98753         size of (size_t) -1; it's not portable.
98754
98755 2000-11-17  Jim Meyering  <meyering@lucent.com>
98756
98757         * lib/strstr.c: Update from GNU libc.
98758
98759 2000-11-17  Akim Demaille  <akim@epita.fr>
98760
98761         * lib/obstack.h: Formatting changes.
98762         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98763         prevent type checking.
98764         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98765         cast the value to (void *): assigning a `foo *' to a `void *'
98766         variable is valid.
98767         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98768
98769 2000-11-16  Jim Meyering  <meyering@lucent.com>
98770
98771         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98772
98773 2000-11-11  Jim Meyering  <meyering@lucent.com>
98774
98775         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98776
98777 2000-11-10  Jim Meyering  <meyering@lucent.com>
98778
98779         * lib/obstack.h: Update from GNU libc.
98780         * lib/obstack.c: Likewise.
98781
98782 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98783
98784         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98785
98786 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98787
98788         * lib/getusershell.c (setusershell): Use rewind rather than
98789         fseek/fseeko, to avoid configuration hassles with fseeko.
98790         Don't bother opening SHELLS_FILE if shellstream is NULL;
98791         it's not necessary.
98792
98793 2000-11-05  Jim Meyering  <meyering@lucent.com>
98794
98795         * lib/makepath.h (make_dir): Declare.
98796         * lib/makepath.c (make_dir): Remove `static' attribute.
98797         Tweak a comment.
98798
98799 2000-11-04  Jim Meyering  <meyering@lucent.com>
98800
98801         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98802
98803 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98804
98805         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98806         last one in a bucket, advance to the next bucket.
98807
98808 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98809
98810         * lib/fnmatch.c: Do not comment out all the code if we are using
98811         the GNU C library, because in some cases we are replacing buggy
98812         code in the GNU C library itself.
98813
98814 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98815
98816         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98817         (regex_compile): Catch bogus \(\1\).
98818
98819 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98820
98821         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98822         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98823         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98824
98825 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98826
98827         * lib/error.h, getline.h, modechange.h:
98828         Remove "2000" from Copyright line, as the file hasn't been
98829         changed this year other than in the copyright notice.
98830
98831         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98832         was changed this year.
98833
98834 2000-10-29  Jim Meyering  <meyering@lucent.com>
98835
98836         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98837         renaming.
98838         * m4/ls-mntd-fs.m4: Likewise
98839
98840 2000-10-29  Jim Meyering  <meyering@lucent.com>
98841
98842         * lib/xstat.in: Fix grammar in comment.
98843
98844 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98845
98846         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98847         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98848         doesn't define __restrict_arr.
98849
98850 2000-10-28  Jim Meyering  <meyering@lucent.com>
98851
98852         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98853         (jm_PREREQ_MEMCHR): New function.
98854
98855 2000-10-28  Jim Meyering  <meyering@lucent.com>
98856
98857         * lib/memchr.c: Update from libc.
98858         Adjust for portability:
98859         [HAVE_STDLIB_H]: Include stdlib.h.
98860         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98861         Undef __memchr, too.
98862         [!weak_alias]: Define __memchr to memchr.
98863
98864         * lib/regex.c: Update from libc.
98865         * lib/regex.h: Likewise.
98866         * lib/getopt1.c: Likewise.
98867         * lib/memcmp.c: Likewise.
98868
98869         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98870         Avoid using fseek, when possible -- it's broken by design.
98871         Patch by Ulrich Drepper.
98872
98873 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98874
98875         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98876         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98877         Giving in to popular pressure to shut up the compiler with casts.
98878
98879 2000-10-26  Jim Meyering  <meyering@lucent.com>
98880
98881         * lib/strftime.c: Update from libc.
98882
98883 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98884
98885         * regex.c: More `unsigned char' -> `re_char' changes.
98886         Also change several `int' into `re_wchar_t'.
98887         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98888         (PUSH_FAILURE_POINTER): Don't cast any more.
98889         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98890         We want GCC to complain, since this piece of code makes
98891         re_match non-reentrant, which *should* be fixed.
98892         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98893         (EXTEND_BUFFER): Use RETALLOC.
98894         (SET_LIST_BIT): Don't cast.
98895         (re_wchar_t): New type.
98896         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98897         that those two functions will always properly return.
98898         (IMMEDIATE_QUIT_CHECK): Cast to void.
98899         (analyse_first): Use recursion rather than an explicit stack.
98900         (re_compile_fastmap): Can't fail anymore.
98901         (re_search_2): Don't check re_compile_fastmap for failure.
98902         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98903         Now also sets the new value (passed in a new argument).
98904         (re_match_2_internal): Use it.
98905         Also, use a new var `reg' of type size_t when looping through regs
98906         rather than reuse the inappropriate `mcnt'.
98907
98908 2000-10-25  Jim Meyering  <meyering@lucent.com>
98909
98910         * lib/obstack.c: Update from libc.
98911
98912 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98913
98914         * regex.c (regex_compile): Change the way of handling a range from
98915         a char less than 256 to a char not less than 256.
98916
98917 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98918
98919         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98920         NT-Emacs only.
98921         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98922         so that re_search functions only quit when callers expect them to.
98923
98924 2000-10-23  Jim Meyering  <meyering@lucent.com>
98925
98926         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98927         wrong.  That set_locale call must not have any side effects.
98928         From Paul Eggert.
98929
98930 2000-10-22  Jim Meyering  <meyering@lucent.com>
98931
98932         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98933         [CYCLIC]: Remove now-unused definition.
98934
98935         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98936         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98937         Suggestion from Ulrich Drepper.
98938
98939 2000-10-21  Jim Meyering  <meyering@lucent.com>
98940
98941         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98942         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98943         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98944
98945 2000-10-21  Jim Meyering  <meyering@lucent.com>
98946
98947         * lib/dirname.c (memrchr): Declare if necessary.
98948         (dir_name): Remove the restriction that there be no
98949         trailing slashes.  Now, this code skips past them, effectively
98950         ignoring them.
98951         [TEST_DIRNAME] (main): New unit tests.
98952
98953         * lib/memrchr.c: New file from GNU libc.
98954         Undef __memrchr, too.
98955         [!weak_alias]: Define __memrchr to memrchr.
98956         Guard weak_alias use with `#ifdef weak_alias'.
98957
98958 2000-10-21  Jim Meyering  <meyering@lucent.com>
98959
98960         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98961         (dir_name): Use dir_name_r.
98962         * lib/dirname.h (dir_name_r): Declare it.
98963
98964 2000-10-17  Jim Meyering  <meyering@lucent.com>
98965
98966         * lib/quote.h (PARAMS): Define and use.
98967         Reported by Akim Demaille.
98968
98969         * lib/getopt.c: Update from libc.
98970
98971 2000-10-16  Jim Meyering  <meyering@lucent.com>
98972
98973         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98974         setlocale.
98975         From Jan Fedak.
98976
98977 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98978
98979         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98980
98981 2000-09-25  Jim Meyering  <meyering@lucent.com>
98982
98983         * lib/md5.h (rol): Define (from GnuPG).
98984
98985         * lib/sha.c: Give credit (GnuPG) where due.
98986         (M): Use rol rather than open-coding it.
98987         Add a FIXME comment.
98988
98989 2000-09-21  Jim Meyering  <meyering@lucent.com>
98990
98991         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98992         Reported by Michael Stone.
98993
98994 2000-09-20  Jim Meyering  <meyering@lucent.com>
98995
98996         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98997         (noinst_HEADERS): Add sha.h.
98998         Based on code from Scott G. Miller and from GnuPG.
98999
99000 2000-09-18  Jim Meyering  <meyering@lucent.com>
99001
99002         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
99003         LIBS. Otherwise, everyone ends up linking with -lelf for some
99004         configurations.
99005         Reported by Mike Stone.
99006
99007 2000-09-15  Jim Meyering  <meyering@lucent.com>
99008
99009         * lib/regex.c: Update from libc.
99010
99011 2000-09-10  Jim Meyering  <meyering@lucent.com>
99012
99013         * lib/getopt.c (_getopt_internal): Update from glibc.
99014
99015 2000-09-09  Jim Meyering  <meyering@lucent.com>
99016
99017         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
99018         think it should be used as a general replacement for isascii.
99019         * lib/fnmatch.c: Likewise.
99020         * lib/mbswidth.c: Likewise
99021         * lib/regex.c: Likewise.
99022
99023         Don't use atoi.
99024         * lib/userspec.c: Include sys/param.h and limits.h.
99025         Include xstrtol.h.
99026         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
99027         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
99028         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
99029         UID, GID.  Check range.
99030
99031 2000-09-06  Jim Meyering  <meyering@lucent.com>
99032
99033         * lib/getopt.c (_getopt_internal): Update from glibc.
99034
99035 2000-08-30  Jim Meyering  <meyering@lucent.com>
99036
99037         * lib/strftime.c: Merge in changes from GNU libc.
99038
99039 2000-08-26  Jim Meyering  <meyering@lucent.com>
99040
99041         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
99042         * m4/fpending.m4: New file.
99043
99044 2000-08-26  Jim Meyering  <meyering@lucent.com>
99045
99046         * lib/closeout.c: Include "__fpending.h".
99047         (close_stdout_status): Return right away if there's nothing to flush.
99048
99049         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
99050         * lib/__fpending.c: New file.
99051         * lib/__fpending.h: New file.
99052
99053 2000-08-20  Jim Meyering  <meyering@lucent.com>
99054
99055         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
99056         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
99057         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
99058
99059 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
99060
99061         Improve fileutils installation on systems where running
99062         programs (like install) can't be unlinked.
99063         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
99064         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
99065
99066 2000-08-07  Paul Eggert  <eggert@twinsun.com>
99067
99068         Standardize on "memory exhausted" instead of "Memory exhausted"
99069         or "virtual memory exhausted".
99070         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
99071         "virtual memory exhausted".
99072         * lib/same.c (same_name): Invoke xalloc_die instead of printing
99073         our own message.
99074         * lib/userspec.c (parse_user_spec): Likewise.
99075         * lib/bumpalloc.h: comment fix
99076         * lib/same.c, userspec.c: Include xalloc.h.
99077
99078         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
99079         not char *const and pointing to a constant array.
99080         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
99081         (xrealloc): Comment fix.
99082
99083         * lib/userspec.c (parse_user_spec):
99084         Don't translate a message until just before returning,
99085         to avoid unnecessary translation.
99086
99087 2000-08-07  Jim Meyering  <meyering@lucent.com>
99088
99089         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
99090         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
99091         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
99092         getgroups.c, gethostname.c, getopt.h, group-member.c,
99093         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
99094         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
99095         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
99096         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
99097         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
99098         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
99099         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
99100         yesno.c: Back out Copyright date changes for each file with no change
99101         this year.  This eases coordination with other programs using the same
99102         source code modules.  From Paul Eggert.
99103
99104 2000-08-06  Paul Eggert  <eggert@twinsun.com>
99105
99106         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
99107         not char, for compatibility with glibc 2.1.3 strftime.c.
99108
99109 2000-08-03  Greg McGary  <greg@mcgary.org>
99110
99111         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
99112         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
99113         (EXTEND_BUFFER): Use them.
99114
99115 2000-08-01  Jim Meyering  <meyering@lucent.com>
99116
99117         * lib/dirname.c (ISSLASH): Define.
99118         (BACKSLASH_IS_PATH_SEPARATOR): Define.
99119         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
99120         both `\' and `/' may be use as path separators.
99121         Based on a patch from Prashant TR.
99122
99123 2000-07-31  Paul Eggert  <eggert@twinsun.com>
99124
99125         * lib/quotearg.c (quotearg_n_options): Don't make the initial
99126         slot vector a constant, since it might get modified.
99127
99128 2000-07-31  Jim Meyering  <meyering@lucent.com>
99129
99130         * lib/xmalloc.c: Use `virtual memory exhausted', not
99131         `Memory exhausted'.
99132         * lib/obstack.c (print_and_abort): Likewise.
99133
99134 2000-07-30  Paul Eggert  <eggert@twinsun.com>
99135
99136         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
99137         buffer, so that the caller can always quote one small
99138         component of a "memory exhausted" message in slot 0.
99139         From a suggestion by Jim Meyering.
99140
99141 2000-07-30  Jim Meyering  <meyering@lucent.com>
99142
99143         * lib/makepath.c (make_path): Quote the other instance, too.
99144
99145         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
99146         (STATIC_BUF_SIZE): Define.
99147         (quotearg_n_options): Use only statically allocated storage when
99148         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
99149         than STATIC_BUF_SIZE.
99150
99151 2000-07-29  Jim Meyering  <meyering@lucent.com>
99152
99153         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
99154         * lib/dirname.c (dir_name): Likewise.
99155
99156         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
99157         `/'.
99158
99159         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
99160         (dir_name): Assert that there are no trailing slashes.
99161
99162 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
99163
99164         * lib/mbswidth.h (mbswidth): Add a flags argument.
99165         (mbswidth): New declaration.
99166         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
99167         * lib/mbswidth.c (mbswidth): Add a flags argument.
99168         (mbsnwidth): New function.
99169
99170 2000-07-24  Jim Meyering  <meyering@lucent.com>
99171
99172         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
99173
99174 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99175
99176         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
99177
99178 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99179
99180         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
99181         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
99182         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
99183         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
99184         invoke multibyte primitives.
99185
99186 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99187
99188         * lib/quotearg.c:
99189         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
99190         so that mbstate_t is always defined.
99191
99192         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
99193         be 1 in at least one GCC installation, and this configuration
99194         error is likely to be common.  Ignoring MB_LEN_MAX hurts
99195         performance on hosts that have mbrtowc but have only unibyte
99196         locales, but I assume these hosts are rare.
99197
99198 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99199
99200         * lib/mbswidth.c (_XOPEN_SOURCE):
99201         Don't define; this causes problems on Solaris 7.
99202         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
99203
99204 2000-07-23  Jim Meyering  <meyering@lucent.com>
99205
99206         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99207         too: getgrgid, getpwuid, getuid.
99208
99209 2000-07-23  Jim Meyering  <meyering@lucent.com>
99210
99211         * lib/basename.c (base_name): Add an assertion.
99212
99213 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99214
99215         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99216         shadow its mbsinit function.
99217
99218 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99219
99220         * lib/mbswidth.h: New file.
99221         * lib/mbswidth.c: New file.
99222         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99223         (noinst_HEADERS): Add mbswidth.h.
99224
99225 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99226
99227         * lib/config.charset: Add support for FreeBSD. Improve support for
99228         HP-UX and IRIX 6.
99229
99230 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99231
99232         * m4/mbswidth.m4: New file.
99233         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99234
99235 2000-07-15  Jim Meyering  <meyering@lucent.com>
99236
99237         * lib/makepath.c: Include quote.h.
99238         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99239         corresponding argument in a `quote (...)' call.
99240         Give better diagnostics.
99241
99242         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99243         (noinst_HEADERS): Add quote.h.
99244
99245         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99246         from tar's src/misc.c.
99247         * lib/quote.h: New file.  Prototypes for same.
99248
99249 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99250
99251         From a suggestion by Bruno Haible.
99252         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99253         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99254         to decide whether to define the BeOS workaround macro;
99255         this adjusts to the change to AC_MBSTATE_T.
99256
99257 2000-07-14  Jim Meyering  <meyering@lucent.com>
99258
99259         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99260         jm_AC_TYPE_UINTMAX_T.
99261
99262 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99263
99264         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99265
99266         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99267         quotearg_buffer_restyled): Add support for
99268         clocale_quoting_style.  Undo previous change to
99269         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99270         and "{RIGHT QUOTATION MARK}" msgids.
99271
99272 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99273
99274         From a suggestion by Bruno Haible.
99275         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99276         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99277         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99278         and mbstate_t, to a single-part test that simply defines mbstate_t.
99279         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99280         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99281
99282 2000-07-10  Jim Meyering  <meyering@lucent.com>
99283
99284         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99285
99286         * m4/gnu-source.m4: Output to confdefs.h directly.
99287         Suggestion from Akim Demaille.
99288
99289 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99290
99291         The old behavior of quoting `like this' doesn't look good with
99292         newer, ISO-style fonts.  See:
99293         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99294
99295         Instead, quote "like this" by default.  Let the translator
99296         tailor the locale-specific quoting behavior by providing
99297         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99298
99299         * lib/quotearg.c (N_): New macro.
99300         (gettext_default): New function.
99301         (quotearg_buffer_restyled): Use
99302         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99303         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99304
99305 2000-07-09  Jim Meyering  <meyering@lucent.com>
99306
99307         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99308         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99309
99310         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99312
99313 2000-07-09  Jim Meyering  <meyering@lucent.com>
99314
99315         * lib/Most files: Update copyright dates to include 2000.
99316
99317 2000-07-08  Jim Meyering  <meyering@lucent.com>
99318
99319         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99320         if not defined.
99321         (xgethostname): Remove now-unnecessary #ifdef.
99322         Move declaration of `err' into loop where it's used.
99323
99324 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99325         and Bruno Haible  <haible@clisp.cons.org>
99326
99327         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99328         only if the test for an object-type mbstate_t fails.  This
99329         prevents us from mistakenly reporting that mbstate_t is a
99330         system object type after we "#define mbstate_t int" to work
99331         around its lack.
99332
99333 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99334         and Bruno Haible  <haible@clisp.cons.org>
99335
99336         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99337
99338 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99339
99340         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99341         to strerror_r.
99342         Include <ctype.h> for use of isalpha.
99343
99344 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99345
99346         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99347         by allocating a larger buffer. Test the gethostname return value for
99348         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99349         returns an error and ENAMETOOLONG isn't defined.
99350
99351 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99352
99353         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99354         dimension.
99355
99356 2000-07-04  Jim Meyering  <meyering@lucent.com>
99357
99358         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99359         of the deprecated AC_CHECKING.
99360
99361 2000-07-04  Jim Meyering  <meyering@lucent.com>
99362
99363         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99364         Reported by Bruno Haible.
99365
99366 2000-07-04  Jim Meyering  <meyering@lucent.com>
99367
99368         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99369         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99370         lacks mbrtowc.
99371
99372 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99373
99374         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99375         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99376
99377 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99378         and Bruno Haible  <haible@clisp.cons.org>
99379
99380         * lib/quotearg.c (mbrtowc):
99381         Assign to *pwc, and return 1 only if result is nonzero.
99382         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99383
99384 2000-07-03  Jim Meyering  <meyering@lucent.com>
99385
99386         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99387
99388 2000-07-03  Jim Meyering  <meyering@lucent.com>
99389
99390         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99391         This is necessary to get a definition of e.g., UTMP_FILE on
99392         HP-UX 10.20.
99393         From Bob Proulx.
99394
99395 2000-07-02  Jim Meyering  <meyering@lucent.com>
99396
99397         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99398
99399         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99400         AC_LIBOBJ(function_name).
99401         * m4/chown.m4: Likewise.
99402         * m4/fnmatch.m4: Likewise.
99403         * m4/ftruncate.m4: Likewise.
99404         * m4/getgroups.m4: Likewise.
99405         * m4/getline.m4: Likewise.
99406         * m4/group-member.m4: Likewise.
99407         * m4/jm-macros.m4: Likewise.
99408         * m4/lstat.m4: Likewise.
99409         * m4/malloc.m4: Likewise.
99410         * m4/memcmp.m4: Likewise.
99411         * m4/nanosleep.m4: Likewise.
99412         * m4/putenv.m4: Likewise.
99413         * m4/realloc.m4: Likewise.
99414         * m4/regex.m4: Likewise.
99415         * m4/stat.m4: Likewise.
99416         * m4/strftime.m4: Likewise.
99417
99418 2000-07-02  Jim Meyering  <meyering@lucent.com>
99419
99420         * lib/quotearg.c (mbstate_t): Don't define here.
99421
99422 2000-07-02  Jim Meyering  <meyering@lucent.com>
99423
99424         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99425
99426 2000-07-01  Jim Meyering  <meyering@lucent.com>
99427
99428         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99429
99430 2000-07-01  Jim Meyering  <meyering@lucent.com>
99431
99432         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99433         problem.
99434
99435 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99436
99437         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99438         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99439
99440 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99441
99442         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99443         per change in ../m4/ls-mntd-fs.m4.
99444         (read_filesystem_list): Ignore symbolic links.
99445
99446 2000-06-29  Jim Meyering  <meyering@lucent.com>
99447
99448         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99449         for declaration of strcmp.
99450
99451         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99452
99453         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99454         Avoid warning by casting result to `char *' to remove `const'.
99455
99456 2000-06-28  Jim Meyering  <meyering@lucent.com>
99457
99458         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99459         included by quotearg.c, for which we perform this test.  From
99460         Bruno Haible.
99461
99462 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99463
99464         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99465         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99466         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99467
99468 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99469
99470         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99471
99472 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99473
99474         savedir now sets errno on failure and invokes xmalloc to get memory.
99475         Fix a couple of other minor bugs while we're at it.
99476
99477         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99478         (NAMLEN): Remove macro.
99479         (malloc, realloc): Remove decls.
99480         (stpcpy): Likewise.
99481         ("xalloc.h"): Include.
99482         (NAME_SIZE_DEFAULT): New macro.
99483         (savedir): Use xmalloc / xrealloc to allocate memory.
99484         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99485         Skip "" directory entries.
99486         Use strlen to calculate directory entry length, since the old method
99487         is rarely used these days and isn't worth supporting.
99488         Don't use a pointer after freeing it.
99489         Check for integer overflow when calculating allocation size.
99490         Use memcpy to copy entries, instead of stpcpy.
99491         Set errno properly when returning NULL.
99492         Check for readdir error.
99493
99494 2000-06-26  Jim Meyering  <meyering@lucent.com>
99495
99496         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99497
99498 2000-06-25  Jim Meyering  <meyering@lucent.com>
99499
99500         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99501         Linux header bug when _XOPEN_SOURCE is defined to 500.
99502
99503 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99504
99505         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99506         deficiency.
99507
99508 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99509
99510         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99511         Include xalloc.h.
99512         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99513
99514 2000-06-24  Jim Meyering  <meyering@lucent.com>
99515
99516         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99517         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99518         for which strerror does return char*, but which lacks a conveniently
99519         accessible declaration of the function.  If the compile-test says
99520         strerror_r doesn't work, then resort to a `run'-test that works on
99521         BeOS and segfaults on DEC Unix.
99522
99523 2000-06-24  Jim Meyering  <meyering@lucent.com>
99524
99525         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99526
99527 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99528
99529         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99530         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99531
99532 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99533
99534         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99535         (mbrtowc, mbstate_t): Define substitutes if
99536         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99537         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99538         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99539
99540 2000-06-23  Jim Meyering  <meyering@lucent.com>
99541
99542         * m4/afs.m4: Add missing AC_MSG_RESULT.
99543         Reported by Bruno Haible.
99544
99545         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99546         Suggestion from Bruno Haible.
99547
99548 2000-06-23  Jim Meyering  <meyering@lucent.com>
99549
99550         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99551
99552 2000-06-21  Jim Meyering  <meyering@lucent.com>
99553
99554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99555
99556 2000-06-21  Jim Meyering  <meyering@lucent.com>
99557
99558         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99559         (noinst_HEADERS): Add getstr.h.
99560
99561         * lib/getline.c (getstr): Move into a separate file.
99562         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99563         the following changes: new parameter, delim2; both delim[12]
99564         parameters have type `int', not `char'.  The latter would lose
99565         with 8-bit delimiters.
99566         * lib/getstr.h: New file.
99567
99568 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99569
99570         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99571         than 1024, return a memory chunk of least possible size, instead
99572         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99573         Use free/xmalloc instead of xrealloc to avoid copying for very long
99574         paths.
99575
99576 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99577
99578         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99579         the empty string.
99580
99581 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99582
99583         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99584         address, not strdup.  Include <stdlib.h> and don't declare free().
99585
99586 2000-06-19  Jim Meyering  <meyering@lucent.com>
99587
99588         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99589
99590 2000-06-18  Jim Meyering  <meyering@lucent.com>
99591
99592         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99593
99594         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99595         `checking whether...' message to be consistent with that of the
99596         lstat test.
99597
99598 2000-06-18  Jim Meyering  <meyering@lucent.com>
99599
99600         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99601         Besides, these days every porting target provides a mkdir function.
99602
99603         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99604         needed. (this snippet comes from src/system.h).
99605
99606 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99607
99608         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99609
99610 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99611
99612         * lib/human.c (adjust_value): New function.
99613         (human_readable_inexact): Apply rounding style even when
99614         printing approximate values.
99615
99616 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99617
99618         * lib/human.c (human_readable_inexact): Allow an input block
99619         size that is not a multiple of the output block size, and vice versa.
99620         Reported by Piergiorgio Sartor.
99621
99622 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99623
99624         * lib/getdate.y (get_date): Apply relative times after time
99625         zone indicator, not before.  Reported by Todd A. Jacobs.
99626
99627 2000-06-13  Jim Meyering  <meyering@lucent.com>
99628
99629         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99630
99631         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99632
99633 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99634
99635         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99636
99637 2000-06-12  Jim Meyering  <meyering@lucent.com>
99638
99639         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99640         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99641         optional argument.
99642         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99643         the optional argument, `lib'.
99644
99645 2000-06-08  Jim Meyering  <meyering@lucent.com>
99646
99647         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99648
99649 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99650
99651         Rewrite largefile configuration so that we don't need to run
99652         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99653         AC_CANONICAL_HOST in configure.in -- jmm]
99654
99655         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99656         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99657         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99658         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99659         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99660         All uses changed.
99661         Instead of inspecting the output of getconf, try to compile the
99662         test program without and with the macro definition.
99663         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99664         for getconf.  Instead, check for the needed flags by compiling
99665         test programs.
99666
99667 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99668
99669         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99670
99671 2000-06-04  Jim Meyering  <meyering@lucent.com>
99672
99673         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99674         SunOS 4.1.4 for which gid_t is an unsigned type.
99675
99676 2000-06-03  Jim Meyering  <meyering@lucent.com>
99677
99678         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99679         now that autoconf requires that.
99680
99681         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99682         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99683         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99684
99685 2000-06-03  Jim Meyering  <meyering@lucent.com>
99686
99687         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99688
99689 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99690
99691         * m4/glibc21.m4: New file.
99692         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99693
99694 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99695
99696         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99697         newer, don't install charset.alias.
99698         * lib/config.charset: Change the Linux/glibc rules so they become empty
99699         on glibc-2.1 or newer.
99700
99701 2000-06-02  Jim Meyering  <meyering@lucent.com>
99702
99703         * lib/mountlist.c: Back out last change.  Instead, do this...
99704         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99705         me_dummy member using the same `ignore'-testing code.
99706         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99707         fs_type strings.
99708         From Mark D. Roth.
99709
99710 2000-05-29  Jim Meyering  <meyering@lucent.com>
99711
99712         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99713         mounts with the `ignore' attribute.  Based on a patch from
99714         Mark D. Roth.
99715
99716 2000-05-28  Jim Meyering  <meyering@lucent.com>
99717
99718         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99719         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99720         * m4/stat.m4: Likewise.
99721         * m4/lstat.m4: Likewise.
99722         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99723
99724         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99725         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99726
99727 2000-05-26  Jim Meyering  <meyering@lucent.com>
99728
99729         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99730
99731 2000-05-24  Jim Meyering  <meyering@lucent.com>
99732
99733         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99734         autoconf requires that.
99735         * m4/lib-check.m4: Likewise.
99736         * m4/jm-macros.m4: Likewise.
99737         * m4/strftime.m4: Likewise.
99738
99739         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99740         AC_CHECK_DECLS, now that autoconf requires that.
99741
99742 2000-05-22  Jim Meyering  <meyering@lucent.com>
99743
99744         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99745         * m4/lstat.m4: Likewise.
99746
99747 2000-05-22  Jim Meyering  <meyering@lucent.com>
99748
99749         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99750
99751 2000-05-20  Jim Meyering  <meyering@lucent.com>
99752
99753         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99754         (jm_PREREQ): Use it.
99755
99756 2000-05-18  Jim Meyering  <meyering@lucent.com>
99757
99758         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99759         back, too, since it may have been modified by allocate_entry.
99760         (hash_delete): Rewrite to use neither the assignment operator
99761         nor the comma operator in an if-expression.
99762
99763 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99764
99765         * lib/closeout.c:
99766         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99767         Remove; no longer needed.
99768         "quotearg.h": Add include.
99769         (file_name): Do not bother to explicitly initialize to NULL; it's less
99770         efficient on some hosts.
99771         (close_stdout_status): Remove test as to whether stdout was already
99772         closed; it breaks for the case "echo x | sort >&-".
99773         Quote file name colons.
99774         Do not assume that _("write error") lacks format strings.
99775
99776 2000-05-15  Jim Meyering  <meyering@lucent.com>
99777
99778         * lib/version-etc.c (version_etc_copyright): Update the copyright
99779         string used in all --version output.
99780
99781 2000-05-14  Jim Meyering  <meyering@lucent.com>
99782
99783         * lib/closeout.c (close_stdout_set_file_name): New function.
99784         (close_stdout_status): Use new file-scoped global.
99785         Return right away if fstat says the stdout file descriptor is invalid.
99786         * lib/closeout.h (close_stdout_set_file_name): Declare.
99787
99788 2000-05-10  Jim Meyering  <meyering@lucent.com>
99789
99790         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99791         (close_stdout_set_status): New function.
99792         * lib/closeout.h (close_stdout_set_status): Declare.
99793
99794 2000-05-09  Jim Meyering  <meyering@lucent.com>
99795
99796         * m4/gettext.m4: Rename this...
99797         * m4/libintl.m4: ...to this.
99798
99799 2000-05-08  Jim Meyering  <meyering@lucent.com>
99800
99801         * lib/long-options.c: Don't include closeout.h.
99802         (parse_long_options): Don't call close_stdout for --version.
99803
99804 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99805
99806         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99807         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99808         2.1.3 bug.  This avoids a clash when files like regex.c define
99809         _GNU_SOURCE.
99810
99811 2000-05-06  Jim Meyering  <meyering@lucent.com>
99812
99813         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99814         (AC_REPLACE_FUNCS): Add strnlen.
99815
99816         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99817         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99818
99819         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99820         AC_SEARCH_LIBS call for nanosleep.
99821         (LIB_NANOSLEEP): Set and AC_SUBST.
99822
99823 2000-05-06  Jim Meyering  <meyering@lucent.com>
99824
99825         * lib/strnlen.c: Undefine __strnlen and strnlen.
99826         [!weak_alias]: Define __strnlen to strnlen.
99827
99828         * lib/atexit.c: New file, from libiberty.
99829
99830 2000-05-06  Jim Meyering  <meyering@lucent.com>
99831
99832         * lib/closeout.c (close_stdout_status): Also check for errors on the
99833         stderr stream.
99834
99835 2000-05-05  Jim Meyering  <meyering@lucent.com>
99836
99837         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99838         AC_SEARCH_LIBS call for clock_gettime.
99839         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99840
99841         * m4/search-libs.m4: Update from autoconf.
99842
99843         su doesn't work on Solaris 2.6.
99844         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99845         <shadow.h>.  Reported by Dragos Harabor.
99846
99847 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99848
99849         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99850         memcpy instead of xmalloc, xrealloc, path_concat.
99851         (locale_charset): Treat empty environment variables as absent.
99852         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99853
99854 2000-05-04  Jim Meyering  <meyering@lucent.com>
99855
99856         * lib/getopt.c: Update from glibc.
99857         * lib/obstack.c: Likewise.
99858         * lib/obstack.h: Likewise.
99859         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99860         file
99861
99862         * lib/regex.h: Likewise.
99863         * lib/strndup.c: Likewise.
99864         * lib/strnlen.c: New file, from glibc.
99865
99866 2000-05-03  Jim Meyering  <meyering@lucent.com>
99867
99868         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99869
99870 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99871
99872         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99873         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99874         compile-time test, rather than inspecting host and OS, to
99875         decide whether to define _LARGEFILE_SOURCE.
99876
99877 2000-05-01  Jim Meyering  <meyering@lucent.com>
99878
99879         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99880
99881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99882         Based on a patch from Bruno Haible.
99883
99884 2000-05-01  Jim Meyering  <meyering@lucent.com>
99885
99886         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99887
99888 2000-04-29  Jim Meyering  <meyering@lucent.com>
99889
99890         * lib/path-concat.c: Declare strdup only if it's not defined.
99891         * lib/canon-host.c: Likewise.
99892
99893 2000-04-28  Jim Meyering  <meyering@lucent.com>
99894
99895         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99896         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99897         is included first, then limits.h is included by locale.h by libintl.h.
99898         From John David Anglin.
99899
99900 2000-04-25  Jim Meyering  <meyering@lucent.com>
99901
99902         * lib/makepath.c (S_IRWXUGO): Define.
99903         (make_path): Always perform explicit chmod if MODE specifies any
99904         of the `special' permission bits.  Prompted by a bug report against
99905         install from Mate Wierdl and Joost van Baal.
99906
99907 2000-04-18  Jim Meyering  <meyering@lucent.com>
99908
99909         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99910         (jm_PREREQ): Use it.
99911
99912 2000-04-18  Jim Meyering  <meyering@lucent.com>
99913
99914         * lib/README: New file.
99915
99916         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99917         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99918
99919 2000-04-17  Jim Meyering  <meyering@lucent.com>
99920
99921         Get it right :-)
99922         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99923         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99924         Suggestion from Akim Demaille.
99925
99926 2000-04-17  Jim Meyering  <meyering@lucent.com>
99927
99928         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99929         the definition of it to rpl_strftime also defined-away the system's
99930         declaration.
99931
99932 2000-04-15  Jim Meyering  <meyering@lucent.com>
99933
99934         Use `C' to denote so-called `contiguous' files, the same way
99935         that tar does.
99936         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99937         (ftypelet): Use S_ISCTG.
99938         From Michael Deutschmann.
99939
99940 2000-04-14  Jim Meyering  <meyering@lucent.com>
99941
99942         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99943         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99944         clobbered.
99945
99946 2000-04-14  Jim Meyering  <meyering@lucent.com>
99947
99948         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99949
99950 2000-04-13  Jim Meyering  <meyering@lucent.com>
99951
99952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99953         AH_VERBATIM to insert required #ifndef into config.h.in.
99954         Suggestion from Akim Demaille.
99955
99956 2000-04-12  Jim Meyering  <meyering@lucent.com>
99957
99958         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99959         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99960         Christian Krackowizer.
99961
99962         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99963         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99964         (AC_SYS_LARGEFILE): Require.
99965         (AM_C_PROTOTYPES): Require.
99966
99967 2000-04-08  Jim Meyering  <meyering@lucent.com>
99968
99969         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99970         names don't conflict.  Reported by Eli Zaretskii.
99971
99972 2000-04-07  Jim Meyering  <meyering@lucent.com>
99973
99974         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99975         sys/types.h, to work around system header problems on AIX 3.2.5.
99976         From Bruno Haible.
99977
99978 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99979
99980         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99981         bug.  Deal with the different error behavior of Irix iconv.
99982
99983 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99984
99985         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99986         IRIX if the installer said otherwise.
99987
99988 2000-04-05  Jim Meyering  <meyering@lucent.com>
99989
99990         Portability tweaks required for ultrix4.3.
99991         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99992         (jm_CHECK_DECLS): Add getutent to the list of functions.
99993         (_jm_DECL_HEADERS): Add utmpx.h.
99994         From John David Anglin.
99995
99996         * m4/strftime.m4: Back out the 2000-04-02 change.
99997         Instead of that change, simply undefine putenv in the test program.
99998
99999 2000-04-05  Jim Meyering  <meyering@lucent.com>
100000
100001         Portability tweaks required for ultrix4.3.
100002         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
100003         getutent.
100004         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
100005         * lib/canon-host.c: Declare strdup.
100006         * lib/path-concat.c: Likewise.
100007         From John David Anglin.
100008
100009 2000-04-04  Jim Meyering  <meyering@lucent.com>
100010
100011         Be more DOS 8.3-friendly.
100012         * lib/ref-add.sin: Renamed from ref-add.sed.in.
100013         * lib/ref-del.sin: Renamed from ref-del.sed.in.
100014         * lib/Makefile.am: Reflect renaming.
100015         Reported by Eli Zaretskii.
100016
100017         Use a temporary file name that won't clash with `charset.alias'
100018         in the DOS 8.3 name space.
100019         * lib/Makefile.am (charset_tmp): Define.
100020         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
100021         (uninstall-local): Likewise.
100022         Reported by Eli Zaretskii.
100023
100024 2000-04-03  Jim Meyering  <meyering@lucent.com>
100025
100026         * m4/gettext.m4: Fix typo in comment.
100027
100028         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
100029         textutils/configure.in).  Suggestion from Paul Eggert.
100030         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
100031
100032 2000-04-02  Paul Eggert  <eggert@twinsun.com>
100033
100034         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
100035         variable in the shell rather than using putenv, which isn't
100036         portable.  This avoids the configure-time inter-test dependency
100037         on the potentially-renamed putenv function.
100038
100039 2000-03-30  Paul Eggert  <eggert@twinsun.com>
100040
100041         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
100042         before checking struct stat.st_blksize, so that
100043         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
100044
100045 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100046
100047         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
100048         since strftime.c uses HAVE_STRFTIME to decide whether to use
100049         the underlying strftime.
100050
100051 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100052
100053         * lib/time/strftime.c (my_strftime): Make sure we call the system
100054         strftime, not ourselves, when invoking the underlying strftime.
100055
100056 2000-03-24  Jim Meyering  <meyering@lucent.com>
100057
100058         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
100059         (charset_alias): Define.
100060         (install-exec-local): Factor out common code.
100061         (uninstall-local): Split lines longer than 80.
100062         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
100063         (SUFFIXES): Define.
100064         (.sed.in.sed): New rule.  Don't redirect directly to $@.
100065         (CLEANFILES): Add ref-add.sed and ref-del.sed.
100066
100067 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
100068
100069         * lib/config.charset: Output a line containing "Packages using this
100070         file".
100071         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
100072         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
100073         ref-del.sed): New rules.
100074
100075 2000-03-17  Jim Meyering  <meyering@lucent.com>
100076
100077         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
100078         Otherwise, include <strings.h>
100079
100080 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
100081
100082         * lib/unicodeio.c (utf8_wctomb): New function.
100083         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
100084         format instead of in UCS-4 with platform dependent endianness.
100085
100086 2000-03-10  Jim Meyering  <meyering@lucent.com>
100087
100088         * m4/lib-check.m4: Look for getspnam in -lgen, too.
100089         From Marco Franzen.
100090
100091 2000-03-07  Paul Eggert  <eggert@twinsun.com>
100092
100093         * lib/savedir.c (savedir): Work even if directory size is
100094         negative; this can happen with some screwy NFS configurations.
100095
100096 2000-03-06  Jim Meyering  <meyering@lucent.com>
100097
100098         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
100099         if it's NULL (because we ran out of memory).  From Bruno Haible.
100100
100101 2000-03-05  Jim Meyering  <meyering@lucent.com>
100102
100103         * lib/localcharset.c ("path-concat.h"): Include.
100104         (get_charset_aliases): Use path_concat instead of ANSI string
100105         concatenation.
100106
100107         * lib/unicodeio.h (PARAMS): Define.
100108         Use it to guard prototype.
100109
100110 2000-03-04  Jim Meyering  <meyering@lucent.com>
100111
100112         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
100113         for lib/localcharset.c.
100114
100115 2000-03-04  Jim Meyering  <meyering@lucent.com>
100116
100117         * lib/Makefile.am (install-exec-local): Create $(libdir) before
100118         installing into it.
100119         (uninstall-local): Uncomment this rule so `make distcheck' works
100120         once again.
100121
100122         * lib/unicodeio.c (<errno.h>): Include it.
100123         (errno): Declare if not defined.
100124
100125         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
100126
100127         * lib/config.charset: New version, incorporating remarks from a linux
100128         i18n mailing list.  From Bruno Haible.
100129
100130 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
100131
100132         * m4/codeset.m4: New file.
100133         * m4/iconv.m4: New file.
100134         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
100135
100136 2000-03-03  Jim Meyering  <meyering@lucent.com>
100137
100138         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
100139
100140 2000-03-02  Jim Meyering  <meyering@lucent.com>
100141
100142         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
100143         the messages come out on separate lines.
100144
100145         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
100146         rather than jm_CHECK_DECLARATIONS.
100147         * m4/decl.m4: Remove now-unused file.
100148
100149         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
100150         geteuid.
100151
100152 2000-03-02  Jim Meyering  <meyering@lucent.com>
100153
100154         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
100155
100156 2000-03-01  Jim Meyering  <meyering@lucent.com>
100157
100158         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
100159         * lib/unicodeio.c: Likewise.
100160
100161 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
100162
100163         * lib/config.charset: New file.
100164         * lib/localcharset.c: New file.
100165         * lib/unicodeio.h, lib/unicodeio.c: New files.
100166         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
100167         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
100168         (noinst_HEADERS): Add unicodeio.h.
100169         (all-local, install-exec-local, charset.alias): New targets.
100170
100171 2000-02-28  Paul Eggert  <eggert@twinsun.com>
100172
100173         * lib/quotearg.c (ALERT_CHAR): New macro.
100174         (quotearg_buffer_restyled): Use it.
100175
100176 2000-02-27  Jim Meyering  <meyering@lucent.com>
100177
100178         * m4/check-decl.m4: Add getenv to the list.
100179
100180 2000-02-27  Jim Meyering  <meyering@lucent.com>
100181
100182         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
100183         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
100184
100185         * lib/backupfile.c: Guard inclusion of stdlib.h with
100186         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
100187         Declare malloc if needed.
100188
100189         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
100190         `#ifndef HAVE_DECL..'
100191         now that autoconf always defines the HAVE_DECL_ symbols.
100192         * lib/human.c: Likewise.
100193         * lib/same.c: Likewise.
100194         * lib/strtoumax.c: Likewise.
100195
100196         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
100197         declaration check was not run.
100198         * lib/hash.c: Likewise.
100199         * lib/human.c: Likewise.
100200         * lib/same.c: Likewise.
100201         * lib/strtoumax.c: Likewise.
100202
100203         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100204         `.', then first look up the entire `.'-containing string as a login
100205         name.
100206
100207 2000-02-23  Jim Meyering  <meyering@lucent.com>
100208
100209         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100210         in place of my hack.
100211
100212 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100213
100214         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100215         (textint): New typedef.
100216         (parser_control): Member year changed from int to textint.
100217         All uses changed.
100218         (YYSTYPE): Removed; replaced by %union with int and textint members.
100219         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100220         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100221         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100222         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100223         (date, number, to_year): Use width of number in digits, not its value,
100224         to determine whether it's a 2-digit year, or a 2-digit time.
100225         (yylex): Store number of digits of numeric tokens.
100226         Reported by John Kendall.
100227
100228         (parser_control): Changed from struct parser_control to typedef (for
100229         consistency).  All uses changed.
100230
100231         (tID): Removed; not used.
100232         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100233
100234 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100235
100236         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100237         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100238
100239 2000-02-12  Jim Meyering  <meyering@lucent.com>
100240
100241         * lib/userspec.c (ISDIGIT): Define it.
100242         (isdigit): Remove definition.
100243         (is_number): Use ISDIGIT, not isdigit.
100244         <libintl.h>: Include.
100245         (_ and N_): Define.
100246         (parse_user_spec): Mark translatable strings.
100247
100248 2000-02-10  Jim Meyering  <meyering@lucent.com>
100249
100250         With these changes, nanosleep.[ch] are finally enough like the other
100251         lib/* replacement files to compile on a few more losing systems.
100252
100253         * lib/nanosleep.h: Don't include config.h.
100254         Remove prototype from declaration of nanosleep.
100255         (PARAMS): Remove now-unneeded definition.
100256         * lib/nanosleep.c: #undef nanosleep.
100257         (rpl_nanosleep): Rename from nanosleep.
100258
100259 2000-02-10  Jim Meyering  <meyering@lucent.com>
100260
100261         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100262         gnu_nanosleep to rpl_nanosleep.
100263
100264 2000-02-09  Jim Meyering  <meyering@lucent.com>
100265
100266         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100267         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100268
100269 2000-02-08  Akim Demaille  <akim@epita.fr>
100270
100271         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100272         `[' and `]' and remove uses of `changequote'.
100273         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100274         (AC_SYS_LARGEFILE): Likewise.
100275         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100276         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100277         of changequote.
100278         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100279         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100280         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100281         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100282
100283 2000-02-05  Jim Meyering  <meyering@lucent.com>
100284
100285         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100286         Remove explicit use of AC_HEADER_TIME.  It is required by
100287         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100288         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100289         in autoconf whereby the expansion of the latter ended up preceding
100290         the expansion of its prerequisite, AC_HEADER_TIME.
100291         Reported by Volker Borchert.
100292
100293 2000-02-03  Jim Meyering  <meyering@lucent.com>
100294
100295         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100296
100297 2000-02-03  Jim Meyering  <meyering@lucent.com>
100298
100299         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100300         rather than with `#if HAVE_UTMPNAME'.
100301
100302 2000-02-02  Jim Meyering  <meyering@lucent.com>
100303
100304         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100305         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100306         Reported by Eli Zaretskii.
100307
100308 2000-02-01  Jim Meyering  <meyering@lucent.com>
100309
100310         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100311
100312 2000-01-31  Jim Meyering  <meyering@lucent.com>
100313
100314         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100315         functions.  Add the time.h and sys/time.h headers along with the
100316         AC_REQUIRE'ment of AC_HEADER_TIME.
100317
100318 2000-01-31  Jim Meyering  <meyering@lucent.com>
100319
100320         * lib/nanosleep.h (nanosleep): Guard declaration with
100321         `#if ! HAVE_DECL_NANOSLEEP'.
100322         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100323         the declaration in that vendor's sys/timers.h.
100324         Reported by Christian Krackowizer.
100325
100326         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100327         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100328         (ISPRINT): Likewise.
100329         Reported by Tom Tromey.
100330
100331 2000-01-30  Jim Meyering  <meyering@lucent.com>
100332
100333         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100334
100335         * m4/prereq.m4 (utmp_includes): Define.
100336         Check for ut_user and ut_name members in both struct utmpx
100337         and struct utmp.
100338
100339 2000-01-30  Jim Meyering  <meyering@lucent.com>
100340
100341         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100342         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100343         header files where only utmpx.ut_user is declared.
100344
100345         * lib/readutmp.h (UT_USER): Define.
100346
100347 2000-01-29  Jim Meyering  <meyering@lucent.com>
100348
100349         * m4/lib-check.m4: New file containing library-related checks from
100350         fileutils and sh-utils (textutils had none).
100351
100352 2000-01-28  Jim Meyering  <meyering@lucent.com>
100353
100354         * m4/perl.m4: Change format of warning message to look more like that
100355         from the missing script.  Suggestion from François Pinard.
100356
100357 2000-01-25  Jim Meyering  <meyering@lucent.com>
100358
100359         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100360         well as time.h in the compile check.
100361         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100362         Fix typo in cross-compiling case: s/yes/no/.
100363
100364 2000-01-23  Jim Meyering  <meyering@lucent.com>
100365
100366         * m4/jm-macros.m4: Move df-related tests here from
100367         fileutils/configure.in
100368
100369         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100370         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100371
100372         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100373         s/space/ac_fsusage_space/.
100374         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100375
100376         * m4/ftruncate.m4: New file (derived from part of
100377         fileutils/configure.in).
100378         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100379         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100380
100381         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100382         AC_SUBST these here, rather than just in sh-util/configure.in, so
100383         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100384         all the same.
100385         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100386         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100387         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100388         (AC_SUBST(POW_LIBM)): Likewise.
100389         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100390
100391 2000-01-23  Jim Meyering  <meyering@lucent.com>
100392
100393         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100394         obstack.c.
100395
100396 2000-01-22  Jim Meyering  <meyering@lucent.com>
100397
100398         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100399
100400         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100401
100402         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100403         configure.in
100404         (AC_CHECK_HEADERS): Likewise for sh-utils.
100405         (AC_CHECK_HEADERS): Likewise for textutils.
100406         Merge the three lists of headers.
100407
100408         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100409         from fileutils' configure.in.
100410
100411         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100412         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100413         check-decl.m4.
100414
100415         * m4/check-decl.m4: Use #if rather than #ifdef.
100416         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100417         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100418         (_jm_DECL_HEADERS): Define new function.
100419         (jm_CHECK_DECLARATIONS): Require it.
100420
100421 2000-01-22  Jim Meyering  <meyering@lucent.com>
100422
100423         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100424         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100425         Required for some AIX systems.  Reported by Christian Krackowizer.
100426         [TESTING] (main): New function.
100427
100428         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100429         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100430         letters.
100431
100432         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100433         iswprint.
100434
100435         * lib/strverscmp.c (ISDIGIT): Define.
100436         (strverscmp): Use ISDIGIT, not isdigit.
100437
100438 2000-01-19  Jim Meyering  <meyering@lucent.com>
100439
100440         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100441         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100442         defines `struct timespec' in <sys/time.h>
100443
100444         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100445         Thanks to Akim for explaining.
100446
100447 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100448
100449         * lib/nanosleep.c (nanosleep):
100450         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100451         POSIX.1 doesn't require SA_INTERRUPT and some systems
100452         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100453         it's been part of POSIX.1 since day 1 (in 1988).
100454
100455 2000-01-17  Jim Meyering  <meyering@lucent.com>
100456
100457         * lib/interlock: Remove unused file.  Reported by François Pinard.
100458
100459 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100460
100461         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100462         alert, backslash, formfeed, and vertical tab unnecessarily in
100463         shell quoting style.
100464
100465 2000-01-16  Jim Meyering  <meyering@lucent.com>
100466
100467         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100468         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100469         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100470         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100471
100472 2000-01-16  Jim Meyering  <meyering@lucent.com>
100473
100474         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100475         because the latter didn't work.
100476
100477 2000-01-15  Jim Meyering  <meyering@lucent.com>
100478
100479         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100480         (AC_REPLACE_FUNCS): Add memcpy and memset.
100481         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100482         Add strpbrk.
100483         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100484
100485 2000-01-12  Jim Meyering  <meyering@lucent.com>
100486
100487         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100488         (jm_PREREQ): Use it.
100489         (jm_PREREQ_READUTMP): New macro.
100490         (jm_PREREQ): Use it.
100491
100492 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100493
100494         Quote multibyte characters correctly.
100495         * m4/c-bs-a.m4: New file.
100496         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100497         (jm_PREREQ): Use it.
100498
100499 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100500
100501         * m4/uintmax_t.m4: Port to autoconf 2.13.
100502
100503 2000-01-08  Jim Meyering  <meyering@ascend.com>
100504
100505         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100506         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100507
100508 2000-01-04  Jim Meyering  <meyering@ascend.com>
100509
100510         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100511         jm_STRUCT_DIRENT_D_TYPE.
100512         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100513         jm_STRUCT_DIRENT_D_INO.
100514         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100515         jm_STRUCT_UTIMBUF.
100516         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100517         renamings.
100518         * m4/utime.m4: Likewise.
100519
100520         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100521         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100522
100523 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100524
100525         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100526         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100527
100528 2000-01-02  Jim Meyering  <meyering@ascend.com>
100529
100530         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100531         remember if this is necessary.
100532
100533 1999-12-26  Jim Meyering  <meyering@ascend.com>
100534
100535         * m4/jm-macros.m4: Use it here.
100536         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100537
100538 1999-12-23  Jim Meyering  <meyering@ascend.com>
100539
100540         * m4/jm-macros.m4: Check for clock_gettime (moved from
100541         fileutils/configure.in)
100542         Check for gettimeofday.
100543
100544 1999-12-20  Jim Meyering  <meyering@ascend.com>
100545
100546         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100547         autoconf-2.14a-1999-12-20.
100548
100549 1999-12-19  Jim Meyering  <meyering@ascend.com>
100550
100551         * m4/lstat-slash.m4: New file.
100552         * m4/jm-macros.m4: Use the new macro:
100553         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100554
100555 1999-12-07  Jim Meyering  <meyering@ascend.com>
100556
100557         * m4/perl.m4: Require that File::Compare be available, too.
100558         Too many systems seem to lack it.
100559
100560         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100561         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100562
100563 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100564
100565         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100566         problem with the QNX 4.25 shell, which doesn't propagate exit
100567         status of failed commands inside shell assignments.
100568
100569 1999-11-17  Jim Meyering  <meyering@ascend.com>
100570
100571         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100572
100573 1999-11-07  Jim Meyering  <meyering@ascend.com>
100574
100575         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100576
100577 1999-11-06  Jim Meyering  <meyering@ascend.com>
100578
100579         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100580         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100581
100582 1999-11-05  Jim Meyering  <meyering@ascend.com>
100583
100584         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100585         configure.in of textutils, fileutils, and sh-utils into this one
100586         (shared between those packages) file.
100587         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100588         AC_STRUCT_ST_BLKSIZE.
100589
100590 1999-11-03  Jim Meyering  <meyering@ascend.com>
100591
100592         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100593         of AC_CHECK_TYPE checks includes unistd.h.
100594         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100595         Suggestion from Akim Demaille.
100596
100597 1999-10-30  Jim Meyering  <meyering@ascend.com>
100598
100599         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100600         m4-quoted string.
100601         * m4/ls-mntd-fs.m4: Likewise.
100602         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100603         * m4/jm-winsz1.m4: Likewise.
100604
100605         * m4/const.m4: Remove file, since the fix made it into the experimental
100606         version of autoconf.
100607         * m4/mktime.m4: Likewise.
100608
100609         * m4/check-type.m4: Remove file, now that the latest version of
100610         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100611
100612         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100613         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100614         AC_CHECK_TYPE.
100615
100616 1999-10-04  Jim Meyering  <meyering@ascend.com>
100617
100618         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100619
100620 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100621
100622         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100623         2.95.1 bug with HP-UX 10.20.
100624
100625 1999-09-17  Jim Meyering  <meyering@ascend.com>
100626
100627         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100628         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100629         due to missing strdup (against sh-utils-2.0).
100630
100631 1999-08-29  Jim Meyering  <meyering@ascend.com>
100632
100633         * m4/jm-macros.m4: Require jm_BISON.
100634         * m4/bison.m4: New file.
100635
100636 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100637
100638         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100639         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100640
100641 1999-08-05  Jim Meyering  <meyering@ascend.com>
100642
100643         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100644         to avoid conflicts with `conftest' on 8+3 filesystems.
100645         Suggestion from Eli Zaretskii.
100646
100647 1999-08-04  Jim Meyering  <meyering@ascend.com>
100648
100649         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100650         fileutils and sh-utils (textutils's getline test was inadequate).
100651         (AM_FUNC_GETLINE): Run this test.
100652         (AC_CHECK_FUNCS): Check for getdelim.
100653         Reported by Bob Proulx.
100654
100655 1999-08-02  Jim Meyering  <meyering@ascend.com>
100656
100657         * m4/jm-macros.m4: Add a comment.
100658
100659 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100660
100661         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100662         <inttypes.h> defines strtoumax as a macro (and not as a
100663         function).
100664
100665 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100666
100667         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100668         that we can shift, multiply and divide unsigned long long
100669         values; Ultrix cc can't do it.
100670
100671 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100672
100673         * m4/mktime.m4: New file, which is a preview of what should appear
100674         in the next public autoconf release.
100675
100676 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100677
100678         * m4/lfs.m4: Remove this file.
100679         * m4/largefile.m4: New file.  It contains the old contents of
100680         lfs.m4, except that all names with prefix AC_LFS have been
100681         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100682         compatible with future autoconf versions.  Also, some minor m4
100683         quoting problems have been fixed.
100684
100685 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100686
100687         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100688         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100689         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100690         and simplify the shell code.
100691
100692 1999-08-01  Jim Meyering  <meyering@ascend.com>
100693
100694         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100695         m4.
100696
100697 1999-07-20  Jim Meyering  <meyering@ascend.com>
100698
100699         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100700
100701 1999-07-15  Jim Meyering  <meyering@ascend.com>
100702
100703         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100704
100705 1999-05-22  Jim Meyering  <meyering@ascend.com>
100706
100707         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100708
100709 1999-05-20  Jim Meyering  <meyering@ascend.com>
100710
100711         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100712         Add a colon after each `then' in case $4 is empty.
100713
100714 1999-05-16  Jim Meyering  <meyering@ascend.com>
100715
100716         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100717
100718 1999-05-10  Jim Meyering  <meyering@ascend.com>
100719
100720         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100721
100722         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100723         AC_FUNC_MKTIME.
100724
100725 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100726
100727         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100728
100729 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100730
100731         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100732         not CPPFLAGS, so that linking works correctly in IRIX.
100733
100734 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100735
100736         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100737
100738 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100739
100740         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100741         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100742         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100743         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100744         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100745
100746         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100747
100748 1999-04-20  Jim Meyering  <meyering@ascend.com>
100749
100750         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100751         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100752         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100753
100754 1999-04-18  Jim Meyering  <meyering@ascend.com>
100755
100756         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100757         * m4/jm-macros.m4: Use it.
100758
100759 1999-04-06  Jim Meyering  <meyering@ascend.com>
100760
100761         * m4/strftime.m4: Remove test for %f.
100762
100763 1999-03-29  Jim Meyering  <meyering@ascend.com>
100764
100765         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100766         superset of the AC_TYPE_* checks in the textutils, fileutils,
100767         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100768         AC_TYPE_PID_T.
100769
100770 1999-03-28  Jim Meyering  <meyering@ascend.com>
100771
100772         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100773         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100774         replaced e.g., in the *.sh files of the sh-utils.
100775
100776 1999-03-20  Jim Meyering  <meyering@ascend.com>
100777
100778         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100779         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100780         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100781
100782 1999-03-19  Jim Meyering  <meyering@ascend.com>
100783
100784         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100785
100786 1999-03-12  Jim Meyering  <meyering@ascend.com>
100787
100788         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100789
100790 1999-03-07  Jim Meyering  <meyering@ascend.com>
100791
100792         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100793         declared.
100794
100795 1999-02-17  Jim Meyering  <meyering@ascend.com>
100796
100797         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100798         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100799
100800 1999-02-07  Jim Meyering  <meyering@ascend.com>
100801
100802         * m4/group-member.m4: New file -- extracted from sh-utils'
100803         configure.in.
100804
100805         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100806         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100807
100808 1999-02-06  Jim Meyering  <meyering@ascend.com>
100809
100810         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100811         * m4/fnmatch.m4: Likewise.
100812         * m4/getgroups.m4: Likewise.
100813         * m4/lstat.m4: Likewise.
100814         * m4/malloc.m4: Likewise.
100815         * m4/putenv.m4: Likewise.
100816         * m4/realloc.m4: Likewise.
100817         * m4/regex.m4: Likewise.
100818         * m4/stat.m4: Likewise.
100819         * m4/strftime.m4: Likewise.
100820         Suggestion from Alain Magloire.
100821
100822         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100823         * m4/fnmatch.m4: Likewise.
100824         * m4/getgroups.m4: Likewise.
100825         * m4/getline.m4: Likewise.
100826         * m4/lstat.m4: Likewise.
100827         * m4/malloc.m4: Likewise.
100828         * m4/memcmp.m4: Likewise.
100829         * m4/putenv.m4: Likewise.
100830         * m4/realloc.m4: Likewise.
100831         * m4/regex.m4: Likewise.
100832         * m4/stat.m4: Likewise.
100833         * m4/strftime.m4: Likewise.
100834         Suggestion from Alain Magloire.
100835
100836         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100837         an argument.
100838
100839         * m4/regex.m4: Add a run-time Test for proper operation of
100840         re_compile_pattern.
100841
100842 1999-01-31  Jim Meyering  <meyering@ascend.com>
100843
100844         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100845
100846 1999-01-30  Jim Meyering  <meyering@ascend.com>
100847
100848         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100849
100850         * m4/jm-mktime.m4: Make this a wrapper around the official
100851         AM_FUNC_MKTIME rather than my private copy, now that the official one
100852         is up to date.
100853         * m4/mktime.m4: Remove file.
100854
100855         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100856         * m4/uptime.m4: Likewise.
100857         * m4/uintmax_t.m4: Likewise.
100858
100859 1999-01-28  Jim Meyering  <meyering@ascend.com>
100860
100861         * m4/jm-macros.m4: Use jm_AFS.
100862         * m4/afs.m4: New file (from fileutils' configure.in).
100863
100864         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100865         * m4/chown.m4: Likewise.
100866         * m4/d-ino.m4: Likewise.
100867         * m4/d-type.m4: Likewise.
100868         * m4/fnmatch.m4: Likewise.
100869         * m4/getgroups.m4: Likewise.
100870         * m4/gettext.m4: Likewise.
100871         * m4/jm-mktime.m4: Likewise.
100872         * m4/jm-winsz2.m4: Likewise.
100873         * m4/lcmessage.m4: Likewise.
100874         * m4/ls-mntd-fs.m4: Likewise.
100875         * m4/malloc.m4: Likewise.
100876         * m4/memcmp.m4: Likewise.
100877         * m4/putenv.m4: Likewise.
100878         * m4/realloc.m4: Likewise.
100879         * m4/st_mtim.m4: Likewise.
100880         * m4/strftime.m4: Likewise.
100881
100882 1999-01-16  Jim Meyering  <meyering@ascend.com>
100883
100884         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100885         (ARGMATCH_DIE_DECL): Define.
100886
100887 1999-01-12  Jim Meyering  <meyering@ascend.com>
100888
100889         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100890         Reported by Lars Hecking.
100891
100892 1999-01-10  Jim Meyering  <meyering@ascend.com>
100893
100894         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100895         gross kludge.
100896         * m4/inttypes_h.m4: Likewise.
100897         * m4/lstat.m4: Likewise.
100898         * m4/malloc.m4: Likewise.
100899         * m4/readdir.m4: Likewise.
100900         * m4/realloc.m4: Likewise.
100901         * m4/st_dm_mode.m4: Likewise.
100902         * m4/stat.m4: Likewise.
100903         * m4/utimbuf.m4: Likewise.
100904         * m4/utimes.m4: Likewise.
100905
100906         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100907         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100908         comments in config.h.in are meaningful.
100909
100910         * m4/jm-macros.m4: Require autoconf-2.13 here.
100911
100912         * m4/regex.m4: By default, don't use the included regex.c on systems
100913         with glibc 2.  Suggestion from Uli Drepper.
100914
100915 1999-01-02  Jim Meyering  <meyering@ascend.com>
100916
100917         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100918
100919 1998-12-18  Jim Meyering  <meyering@ascend.com>
100920
100921         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100922         Based on a suggestion from Lars Hecking.
100923
100924 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100925
100926         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100927
100928 1998-11-16  Jim Meyering  <meyering@ascend.com>
100929
100930         * m4/lfs.m4: Double-quote the `uname...` expression.
100931
100932 1998-11-14  Jim Meyering  <meyering@ascend.com>
100933
100934         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100935         * m4/stat.m4: Likewise.
100936
100937 1998-11-03  Jim Meyering  <meyering@ascend.com>
100938
100939         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100940         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100941
100942 1998-10-18  Jim Meyering  <meyering@ascend.com>
100943
100944         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100945
100946 1998-10-17  Jim Meyering  <meyering@ascend.com>
100947
100948         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100949         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100950         calls for those previously hard-coded headers.  Instead, take a new
100951         parameter.
100952         (jm_CHECK_DECLARATIONS): Reflect interface change.
100953         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100954         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100955
100956         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100957
100958 1998-10-14  Jim Meyering  <meyering@ascend.com>
100959
100960         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100961         instead of "TZ=America/Vancouver".  From Paul Eggert.
100962
100963 1998-10-11  Jim Meyering  <meyering@ascend.com>
100964
100965         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100966         This adds a test for a recently added compatibility fix for mktime.c.
100967         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100968
100969 1998-09-27  Jim Meyering  <meyering@ascend.com>
100970
100971         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100972
100973         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100974         ../configure.in, including a change from Gordon Matzigkeit to allow
100975         cross-compiling for the Hurd.
100976
100977         * m4/glibc.m4: New file/macro to test for the GNU C Library
100978         versions 1 and 2.  From Gordon Matzigkeit.
100979         Indent.
100980
100981 1998-09-21  Jim Meyering  <meyering@ascend.com>
100982
100983         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100984
100985 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100986
100987         Port nanosecond-resolution times to UnixWare 2.1.2 and
100988         pedantic Solaris 2.6.
100989
100990         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100991         AC_STRUCT_ST_MTIM.
100992         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100993         Generate name of ns member, instead of just 1 or undef.
100994         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100995
100996 1998-08-15  Jim Meyering  <meyering@ascend.com>
100997
100998         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100999         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
101000         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
101001         instead of jm_TYPE_SSIZE_T.
101002
101003 1998-08-12  Jim Meyering  <meyering@ascend.com>
101004
101005         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
101006
101007 1998-08-02  Jim Meyering  <meyering@ascend.com>
101008
101009         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
101010         in acconfig.h manually.
101011
101012 1998-07-31  Paul Eggert  <eggert@twinsun.com>
101013
101014         * m4/st_mtim.m4: New file.
101015
101016 1998-07-28  Jim Meyering  <meyering@ascend.com>
101017
101018         * m4/utimes.m4: Undef stat.
101019
101020 1998-07-25  Jim Meyering  <meyering@ascend.com>
101021
101022         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
101023         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
101024
101025 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
101026
101027         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
101028         uid and gid actually remain unchanged.
101029
101030 1998-07-07  Jim Meyering  <meyering@ascend.com>
101031
101032         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
101033
101034 1998-07-04  Jim Meyering  <meyering@ascend.com>
101035
101036         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
101037         to prove that this macro can be used in packages without regex.c.
101038
101039 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
101040
101041         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
101042         is to be used.
101043
101044 1998-07-03  Jim Meyering  <meyering@ascend.com>
101045
101046         * m4/gettext.m4: Add -lintl if it's found to be necessary.
101047
101048         * m4/gettext.m4: New file -- from gettext-0.10.35.
101049         * m4/lcmessage.m4: Likewise.
101050         * m4/progtest.m4: Likewise.
101051
101052         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
101053         * m4/jm-macros.m4: Require the new macro.
101054
101055 1998-06-29  Jim Meyering  <meyering@ascend.com>
101056
101057         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
101058         for the definition of NGROUPS (used in a system header included
101059         by sys/mount.h).
101060
101061 1998-06-28  Jim Meyering  <meyering@ascend.com>
101062
101063         * m4/ls-mntd-fs.m4: New file.
101064         * m4/fstypename.m4: New file.
101065
101066         * m4/jm-macros.m4: Require the new macro.
101067         * m4/jm-glibc-io.m4: New file.
101068
101069 1998-05-19  Jim Meyering  <meyering@ascend.com>
101070
101071         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
101072         * m4/lchown.m4: New file.
101073
101074         * m4/Makefile.am.in: New file.
101075         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
101076
101077 1998-05-14  Jim Meyering  <meyering@ascend.com>
101078
101079         * m4/Makefile.am (EXTRA_DIST): Add them.
101080         * m4/jm-macros.m4: New file.
101081         * m4/utimbuf.m4: New file.
101082
101083 1998-05-12  Jim Meyering  <meyering@ascend.com>
101084
101085         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
101086
101087 1998-05-11  Jim Meyering  <meyering@ascend.com>
101088
101089         * m4/isc-posix.m4: New file.
101090
101091 1998-05-10  Jim Meyering  <meyering@ascend.com>
101092
101093         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
101094
101095 1998-05-09  Jim Meyering  <meyering@ascend.com>
101096
101097         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
101098         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
101099         with automake.
101100
101101         * m4/ssize_t.m4: New file.
101102         * m4/mktime.m4: Remove file -- the new automake has this now.
101103
101104 1998-04-26  Jim Meyering  <meyering@ascend.com>
101105
101106         * m4/assert.m4: New file.
101107         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
101108
101109 1998-04-05  Jim Meyering  <meyering@ascend.com>
101110
101111         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
101112         (jm_PREREQ): Use it here.
101113
101114 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
101115
101116         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
101117         in acconfig.h.
101118
101119 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
101120
101121         * m4/prereq.m4: New file.
101122         * m4/error.m4: New file.
101123         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
101124
101125 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
101126
101127         * m4/getline.m4: Don't set am_cv_func_working_getline before the
101128         cache-check for the same variable -- that defeated the purpose of
101129         the test; the test program was never run.  This was a problem only
101130         on systems with losing getline functions -- HP-UX 10.20 is one.
101131         Reported by Bjorn Helgaas.
101132
101133 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
101134
101135         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
101136
101137 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
101138
101139         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
101140
101141         * m4/const.m4: New file.  Use an initializer in this declaration
101142         typedef int charset[2]; const charset x;
101143         Reported by Bob Glickstein.
101144
101145 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
101146
101147         * m4/chown.m4: Fix reversed types on -1 args to chown.
101148         From Kaveh Ghazi.
101149
101150 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
101151
101152         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
101153         Add lseek and memchr.
101154
101155         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
101156         T.E.Dickey <dickey@clark.net> said that some older preprocessors
101157         have a 20-character limit on names.
101158
101159 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
101160
101161         * m4/inttypes_h.m4: New file.
101162         * m4/uintmax_t.m4: New file.
101163         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
101164
101165
101166         -----
101167
101168         Local Variables:
101169         coding: utf-8
101170         End:
101171
101172         Copyright (C) 1997-2014 Free Software Foundation, Inc.
101173
101174         Copying and distribution of this file, with or without
101175         modification, are permitted provided the copyright notice
101176         and this notice are preserved.